1549 lines
1.7 MiB
1549 lines
1.7 MiB
/*!
|
||
* FormCreate商业版可视化表单设计器-让表单设计更简单
|
||
* fc-designer-pro v5.7.0
|
||
* (c) 2018-2025 FormCreate Team https://form-create.com/
|
||
* license 仅限于被授权主体(个人、企业或组织)使用
|
||
*/
|
||
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-step-form .van-step{line-height:1.4;text-align:left}._fc-popup.van-popup{display:flex;height:100%;padding-bottom:110px;padding-top:50px}._fc-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}._fc-popup-content{display:flex;flex:1;overflow:auto}._fc-popup-footer{bottom:0;left:0;padding:10px;position:absolute;right:0}._fc-data-table{width:100%}._fc-data-table .el-table{--el-table-header-bg-color:#e8eefc}._fc-data-table .el-pagination{display:flex;margin-top:10px}._fc-data-table .el-pagination.left{justify-content:flex-start}._fc-data-table .el-pagination.center{justify-content:center}._fc-data-table .el-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .el-image{height:60px;max-width:150px}._fc-table{overflow:auto}._fc-table>table{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;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._fc-table.is-mini td{min-height:12px;padding:0}._fc-table.is-mini .el-form-item{margin:0;padding:0}._fc-table-form{color:var(--fc-text-color-2);overflow:auto}._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{font-weight:500;min-width:40px;text-align:center;width:40px}._fc-tf-btn,._fc-tf-edit{min-width:70px;text-align:center;width:70px}._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{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._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{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:5px;position:relative}._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{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2{color:var(--fc-text-color-2);overflow:auto;width:100%}._fc-table-form-v2 .is-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-table-form-v2 .form-create td .el-form-item{margin-bottom:1px}._fc-table-form-v2 .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form-v2 .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-table-form-v2 .el-form-item__label{display:none!important}._fc-tf-pro-handle{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin-top:12px}._fc-table-form-v2 .el-cascader,._fc-table-form-v2 .el-date-editor,._fc-table-form-v2 .el-input-number,._fc-table-form-v2 .el-select,._fc-table-form-v2 .el-slider{width:100%}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .el-form-item{margin-bottom:1px}._fc-infinite-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-infinite-table-form .el-form-item__label,._fc-infinite-table-form .van-field__label{display:none!important}._fc-infinite-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-itf-table ._fc-itf-head-idx,._fc-itf-table ._fc-itf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-itf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-itf-sub-idx{width:30px}._fc-itf-btn,._fc-itf-edit{min-width:70px;text-align:center;width:70px}._fc-itf-btn .fc-icon{cursor:pointer}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-itf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-itf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-itf-table ._fc-itf-table>thead{display:none}._fc-itf-table ._fc-itf-table{border-right:0}._fc-itf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-itf-table tr{min-height:50px}._fc-itf-table ._fc-read-view{text-align:center;width:100%}._fc-itf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-itf-table td+td{border-left:1px solid #ebeef5}._fc-itf-table .el-cascader,._fc-itf-table .el-date-editor,._fc-itf-table .el-input-number,._fc-itf-table .el-select,._fc-itf-table .el-slider{width:100%}._fc-infinite-table-form ._fc-itf-sub{padding:5px 0 5px 10px}._fc-itf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-itf-sub ._fc-tf-table{border:0}._fc-itf-idx+._fc-itf-idx,._fc-itf-sub-idx+._fc-itf-head-idx{border-left:0}._fc-itf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-nested-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-nested-table-form .form-create .el-form-item{margin-bottom:1px}._fc-nested-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-nested-table-form .el-form-item__label,._fc-nested-table-form .van-field__label{display:none!important}._fc-nested-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-ntf-table ._fc-ntf-head-idx,._fc-ntf-table ._fc-ntf-idx{font-weight:500;min-width:40px;padding:0;text-align:center;width:40px}._fc-ntf-idx div{border:1px solid #bfbfbf;border-radius:6px;cursor:pointer;display:inline-flex;height:18px;justify-content:center;line-height:16px;width:18px}._fc-ntf-sub-idx{width:30px}._fc-ntf-btn,._fc-ntf-edit{min-width:70px;text-align:center;width:70px}._fc-ntf-btn .fc-icon{cursor:pointer}._fc-nested-table-form._fc-disabled ._fc-ntf-btn .fc-icon,._fc-nested-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-ntf-table{border:1px solid #ebeef5;border-bottom:0;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fc-ntf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;font-weight:500;height:40px}._fc-ntf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-ntf-table tr{min-height:50px}._fc-ntf-table ._fc-read-view{text-align:center;width:100%}._fc-ntf-table td{border:0;border-bottom:1px solid #ebeef5;box-sizing:border-box;min-height:50px;min-width:80px;overflow:hidden;overflow-wrap:break-word;padding:10px;position:relative}._fc-ntf-table td+td{border-left:1px solid #ebeef5}._fc-ntf-table .el-cascader,._fc-ntf-table .el-date-editor,._fc-ntf-table .el-input-number,._fc-ntf-table .el-select,._fc-ntf-table .el-slider{width:100%}._fc-nested-table-form ._fc-ntf-sub{background-color:#fafafa}._fc-ntf-sub ._fc-table-form{background-color:var(--fc-bg-color-1)}._fc-ntf-sub ._fc-tf-table{border:0}._fc-ntf-idx+._fc-ntf-idx,._fc-ntf-sub-idx+._fc-ntf-head-idx{border-left:0}._fc-ntf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-cell{display:inline-block}._fc-cell .el-cascader,._fc-cell .el-date-editor,._fc-cell .el-input-number,._fc-cell .el-select,._fc-cell .el-slider,._fc-city-m{width:100%}._fc-city-m .van-cell{padding:0}._fc-line-form{align-items:flex-start;display:flex;flex-flow:wrap;width:100%}.form-create-m ._fc-line-form{display:flex;flex-wrap:wrap}.form-create ._fc-line-form ._fc-line-form,.form-create ._fc-line-form ._fd-drag-item,.form-create ._fc-line-form ._fd-drag-tool,.form-create ._fc-line-form .el-col-24{display:inline-flex;flex:initial;flex:unset!important;flex-wrap:wrap;max-width:100%;width:auto!important}._fc-m-con .form-create ._fc-line-form>.el-col-24{width:100%!important}._fc-line-form .el-form-item{display:inline-flex;vertical-align:middle}._fc-line-form .el-select,._fc-line-form .el-slider{width:220px}._fc-echarts{height:300px;width:100%}._fc-m-signature{width:100%}._fc-m-signature-btn,._fc-m-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-m-signature-btn{cursor:pointer}._fc-m-signature-preview>img{display:inline-block;height:88px}._fc-m-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-m-signature-btn i{font-size:14px}._fc-m-signature-dialog .van-dialog__header{padding:15px 0;position:relative}._fc-m-signature-dialog .icon-add2{color:var(--fc-text-color-3);display:inline-block;position:absolute;right:18px;transform:rotate(45deg)}._fc-m-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;width:100%}._fc-title{font-size:16px;font-weight:600;margin-bottom:16px;margin-top:1em;width:100%}._fc-title.h1,._fc-title.h2{border-bottom:1px solid #eee;padding-bottom:.3em}._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}._fc-markdown{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;word-wrap:break-word;color-scheme:light;font-size:16px;line-height:1.5;margin:0;width:100%}._fc-markdown details,._fc-markdown figcaption,._fc-markdown figure{display:block}._fc-markdown summary{display:list-item}._fc-markdown [hidden]{display:none!important}._fc-markdown a{background-color:transparent;color:#0969da;text-decoration:none}._fc-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}._fc-markdown b,._fc-markdown strong{font-weight:600}._fc-markdown dfn{font-style:italic}._fc-markdown h1{border-bottom:1px solid #d1d9e0b3;font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}._fc-markdown mark{background-color:#fff8c5;color:#1f2328}._fc-markdown small{font-size:90%}._fc-markdown sub,._fc-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}._fc-markdown sub{bottom:-.25em}._fc-markdown sup{top:-.5em}._fc-markdown img{border-style:none;box-sizing:content-box;max-width:100%}._fc-markdown code,._fc-markdown kbd,._fc-markdown pre,._fc-markdown samp{font-family:monospace;font-size:1em}._fc-markdown figure{margin:1em 2.5rem}._fc-markdown hr{background:transparent;background-color:#d1d9e0;border:0;box-sizing:content-box;height:.25em;margin:1.5rem 0;overflow:hidden;padding:0}._fc-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}._fc-markdown [type=button],._fc-markdown [type=reset],._fc-markdown [type=submit]{-webkit-appearance:button;appearance:button}._fc-markdown [type=checkbox],._fc-markdown [type=radio]{box-sizing:border-box;padding:0}._fc-markdown [type=number]::-webkit-inner-spin-button,._fc-markdown [type=number]::-webkit-outer-spin-button{height:auto}._fc-markdown [type=search]::-webkit-search-cancel-button,._fc-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}._fc-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}._fc-markdown ::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}._fc-markdown a:hover{text-decoration:underline}._fc-markdown ::placeholder{color:#59636e;opacity:1}._fc-markdown hr:after,._fc-markdown hr:before{content:"";display:table}._fc-markdown hr:after{clear:both}._fc-markdown table{border-collapse:collapse;border-spacing:0;display:block;font-variant:tabular-nums;max-width:100%;overflow:auto;width:max-content}._fc-markdown td,._fc-markdown th{padding:0}._fc-markdown details summary{cursor:pointer}._fc-markdown [role=button]:focus,._fc-markdown a:focus,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=radio]:focus{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown input[type=checkbox]:focus:not(:focus-visible),._fc-markdown input[type=radio]:focus:not(:focus-visible){outline:1px solid transparent}._fc-markdown [role=button]:focus-visible,._fc-markdown a:focus-visible,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus-visible{box-shadow:none;outline:2px solid #0969da;outline-offset:-2px}._fc-markdown a:not([class]):focus,._fc-markdown a:not([class]):focus-visible,._fc-markdown input[type=checkbox]:focus,._fc-markdown input[type=checkbox]:focus-visible,._fc-markdown input[type=radio]:focus,._fc-markdown input[type=radio]:focus-visible{outline-offset:0}._fc-markdown kbd{background-color:#f6f8fa;border:1px solid #d1d9e0b3;border-radius:6px;box-shadow:inset 0 -1px #d1d9e0b3;color:#1f2328;display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:.25rem;vertical-align:middle}._fc-markdown h1,._fc-markdown h2,._fc-markdown h3,._fc-markdown h4,._fc-markdown h5,._fc-markdown h6{font-weight:600;line-height:1.25;margin-bottom:1rem;margin-top:1.5rem}._fc-markdown h2{border-bottom:1px solid #d1d9e0b3;font-size:1.5em;font-weight:600;padding-bottom:.3em}._fc-markdown h3{font-size:1.25em;font-weight:600}._fc-markdown h4{font-size:1em;font-weight:600}._fc-markdown h5{font-size:.875em;font-weight:600}._fc-markdown h6{color:#59636e;font-size:.85em;font-weight:600}._fc-markdown p{margin-bottom:10px;margin-top:0}._fc-markdown blockquote{border-left:.25em solid #d1d9e0;color:#59636e;margin:0;padding:0 1em}._fc-markdown ol,._fc-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}._fc-markdown ol ol,._fc-markdown ul ol{list-style-type:lower-roman}._fc-markdown ol ol ol,._fc-markdown ol ul ol,._fc-markdown ul ol ol,._fc-markdown ul ul ol{list-style-type:lower-alpha}._fc-markdown dd{margin-left:0}._fc-markdown code,._fc-markdown pre,._fc-markdown samp,._fc-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}._fc-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}._fc-markdown input::-webkit-inner-spin-button,._fc-markdown input::-webkit-outer-spin-button{appearance:none;margin:0}._fc-markdown:after,._fc-markdown:before{content:"";display:table}._fc-markdown:after{clear:both}._fc-markdown>:first-child{margin-top:0!important}._fc-markdown>:last-child{margin-bottom:0!important}._fc-markdown a:not([href]){color:inherit;text-decoration:none}._fc-markdown blockquote,._fc-markdown details,._fc-markdown dl,._fc-markdown ol,._fc-markdown p,._fc-markdown pre,._fc-markdown table,._fc-markdown ul{margin-bottom:1rem;margin-top:0}._fc-markdown blockquote>:first-child{margin-top:0}._fc-markdown blockquote>:last-child{margin-bottom:0}._fc-markdown h1:hover .anchor,._fc-markdown h2:hover .anchor,._fc-markdown h3:hover .anchor,._fc-markdown h4:hover .anchor,._fc-markdown h5:hover .anchor,._fc-markdown h6:hover .anchor{text-decoration:none}._fc-markdown h1 code,._fc-markdown h1 tt,._fc-markdown h2 code,._fc-markdown h2 tt,._fc-markdown h3 code,._fc-markdown h3 tt,._fc-markdown h4 code,._fc-markdown h4 tt,._fc-markdown h5 code,._fc-markdown h5 tt,._fc-markdown h6 code,._fc-markdown h6 tt{font-size:inherit;padding:0 .2em}._fc-markdown summary h1,._fc-markdown summary h2,._fc-markdown summary h3,._fc-markdown summary h4,._fc-markdown summary h5,._fc-markdown summary h6{display:inline-block}._fc-markdown summary h1,._fc-markdown summary h2{border-bottom:0;padding-bottom:0}._fc-markdown ol.no-list,._fc-markdown ul.no-list{list-style-type:none;padding:0}._fc-markdown ol[type="a s"]{list-style-type:lower-alpha}._fc-markdown ol[type="A s"]{list-style-type:upper-alpha}._fc-markdown ol[type="i s"]{list-style-type:lower-roman}._fc-markdown ol[type="I s"]{list-style-type:upper-roman}._fc-markdown div>ol:not([type]),._fc-markdown ol[type="1"]{list-style-type:decimal}._fc-markdown ol ol,._fc-markdown ol ul,._fc-markdown ul ol,._fc-markdown ul ul{margin-bottom:0;margin-top:0}._fc-markdown li>p{margin-top:1rem}._fc-markdown li+li{margin-top:.25em}._fc-markdown dl{padding:0}._fc-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:1rem;padding:0}._fc-markdown dl dd{margin-bottom:1rem;padding:0 1rem}._fc-markdown table th{font-weight:600}._fc-markdown table td,._fc-markdown table th{border:1px solid #d1d9e0;padding:6px 13px}._fc-markdown table td>:last-child{margin-bottom:0}._fc-markdown table tr{background-color:#fff;border-top:1px solid #d1d9e0b3}._fc-markdown table tr:nth-child(2n){background-color:#f6f8fa}._fc-markdown table img{background-color:transparent}._fc-markdown img[align=right]{padding-left:20px}._fc-markdown img[align=left]{padding-right:20px}._fc-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}._fc-markdown span.frame{display:block;overflow:hidden}._fc-markdown span.frame>span{border:1px solid #d1d9e0;display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}._fc-markdown span.frame span img{display:block;float:left}._fc-markdown span.frame span span{clear:both;color:#1f2328;display:block;padding:5px 0 0}._fc-markdown span.align-center{clear:both;display:block;overflow:hidden}._fc-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}._fc-markdown span.align-center span img{margin:0 auto;text-align:center}._fc-markdown span.align-right{clear:both;display:block;overflow:hidden}._fc-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}._fc-markdown span.align-right span img{margin:0;text-align:right}._fc-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}._fc-markdown span.float-left span{margin:13px 0 0}._fc-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}._fc-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}._fc-markdown code,._fc-markdown tt{background-color:#818b981f;border-radius:6px;font-size:85%;margin:0;padding:.2em .4em;white-space:break-spaces}._fc-markdown code br,._fc-markdown tt br{display:none}._fc-markdown del code{text-decoration:inherit}._fc-markdown samp{font-size:85%}._fc-markdown pre code{font-size:100%}._fc-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}._fc-markdown .highlight{margin-bottom:1rem}._fc-markdown .highlight pre{margin-bottom:0;word-break:normal}._fc-markdown .highlight pre,._fc-markdown pre{background-color:#f6f8fa;border-radius:6px;color:#1f2328;font-size:85%;line-height:1.45;overflow:auto;padding:1rem}._fc-markdown pre code,._fc-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}._fc-markdown [data-footnote-ref]:before{content:"["}._fc-markdown [data-footnote-ref]:after{content:"]"}._fc-markdown [role=button]:focus:not(:focus-visible),._fc-markdown [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),._fc-markdown a:focus:not(:focus-visible),._fc-markdown button:focus:not(:focus-visible),._fc-markdown summary:focus:not(:focus-visible){box-shadow:none;outline:none}._fc-markdown [tabindex="0"]:focus:not(:focus-visible),._fc-markdown details-dialog:focus:not(:focus-visible){outline:none}._fc-markdown g-emoji{display:inline-block;font-family:Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;min-width:1ch;vertical-align:-.075em}._fc-markdown g-emoji img{height:1em;width:1em}._fc-markdown .task-list-item{list-style-type:none}._fc-markdown .task-list-item label{font-weight:400}._fc-markdown .task-list-item.enabled label{cursor:pointer}._fc-markdown .task-list-item+.task-list-item{margin-top:.25rem}._fc-markdown .task-list-item .handle{display:none}._fc-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}._fc-markdown ul:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-markdown ol:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}._fc-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fc-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fc-data-select-pop{display:none!important}._fc-data-select,._fc-iframe-box,._fc-video-box{width:100%}.form-create-m .van-checkbox--horizontal,.form-create-m .van-radio--horizontal{margin-bottom:5px}.form-create-m .el-input__wrapper,.form-create-m .el-select__wrapper{border-radius:0;box-shadow:none;padding-right:0}.form-create-m .el-input__wrapper:before,.form-create-m .el-select__wrapper:before{border-bottom:1px solid var(--van-cell-border-color);bottom:0;box-sizing:border-box;content:" ";left:var(--van-padding-md);pointer-events:none;position:absolute;right:var(--van-padding-md);transform:scaleY(.5)}.form-create-m .el-select__suffix{display:none}.form-create-m .el-input__wrapper:after,.form-create-m .el-select__wrapper:after{color:var(--van-cell-right-icon-color);content:"\\e660";font:normal normal normal 14px/1 var(--van-icon-font-family,"vant-icon")}.form-create-m .el-date-editor.el-input,.form-create-m .el-date-editor.el-input__wrapper,.form-create-m .el-tree{width:100%}.form-create-m .el-upload--picture-card,.form-create-m .el-upload-list{--el-upload-list-picture-card-size:64px;--el-upload-picture-card-size:64px}.form-create-m.is-preview ._fc-upload .el-icon--close,.form-create-m.is-preview ._fc-upload .el-icon--close-tip,.form-create-m.is-preview ._fc-upload .el-upload{display:none!important}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAFEEAAsAAAAAoPAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8FUuIY21hcAAAAYgAAAP7AAAKGJ2RrB1nbHlmAAAFhAAAQ/kAAIgow5ZWYGhlYWQAAEmAAAAALwAAADYrnfY1aGhlYQAASbAAAAAeAAAAJAfeBJ5obXR4AABJ0AAAAF0AAAJ4jxAAAGxvY2EAAEowAAABPgAAAT5fhjx4bWF4cAAAS3AAAAAfAAAAIAHCAPxuYW1lAABLkAAAAUUAAAJb1Yvg7HBvc3QAAEzYAAAELAAABq340wMHeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRZZzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjG8mMzc8L+BgYH5DgOQZGBEUcQEAICVDRp4nO3WZXOVVxiF4fsAhUpq1N3d3agBJQ3u7u7u7u7BIfVSo+7u7u58XMO/oGtndforemauTN53MnNmdp61ng0cAjS0y60RNNhHxb9R2eu3lfr3DTm8/n2jymw/V3EoDWgk1FLV2n+g9uBB8FNztVJNnv77VPzXVRxD00qz+m8Zx3gmMJFJTGaKv3kq05jODGYyi9nMYS7zmM8CFrKIxSxhKctYzgpWsorVnMsazmMt61jPBjayic3Ucg7ncwFb2MqFnM02LmI7O9jJLnazhzqu5Cqu5hrO4Fqu42Ku5wZu5CZu5hZu5RJuoxm3cwd3chd3cynNaUFL7qEV1dxLDa1pQ1va0Z4OdKQTl9GZLj6VrnSjOz3oSS9604e+9KM/AxjIIAYzhKEMYzgjGMkVjGI0YxjLWZzJyZzCqZzG6ZzECZxIE47jeJ/pYT7lxhzh8zqSozjap3YsTctJl/9CpTH/f6rKjyZj/32qK1MXZX7VPDxjqEV42jyl4blDrcITiKrDs4hqwlOJWofnE7WJkhG1Dc8saheeXtQ+PMeoQ3iiUcfwbKNO4SlHncPzjrqEJx91DWcAdQunAXUP5wL1CCcE9QxnBfUKpwb1DucH9QknCfUNZwr1C6cL9Q/nDA0IJw4NDGcPDQqnEA0O5xENCScTDQ1nFA0LpxUND+cWjQgnGI0MZxmNCqcajQ7nG40JJx2NDWcejQunH40P9wCaEG4ENDHcDWhSuCXQ5HBfoCnh5kBTwx2CpoXbBE0P9wqaEW4YNDPcNWhWuHXQ7HD/oDnhJkJzw52E5kX9DM8P9xRaEG4stDDcXWhRuMXQ4nCfoSXhZkNLwx2HloXbDi0P9x5aEW5AtDLchWhVuBXR6nA/ojXhpkRrw52J1oXbE60P9yjaEG5UtDHcrWhTuGXR5nDfotpw86It4Q5GW8NtjLYFJd/bg5LvHUHJ985wa6NdQcn67qBkfU+401FdUHJ/X1Byf39Qcv9AUHL/YFBy/1BQcv9wUHL/SFBy/2hQcr83vDfQY0HpgMeD0gFPRNnBejIoffBUUPpgX1D64Omg9MEzQemDZ4PSB88FpQ+eD0ofvBCUPngxKH3wUlD64OWg9MErQemDV4PSB68FpQ9eD0ofvBGUPngzKH3wVlD64O2g9ME7QemDd8MbE70XlG54Pyjd8EFQuuHDoHTDR+Ediz4Ob1v0SXjvok/DGxh9Ft7F6PPwVkZfhPcz+jK8qdFX4Z2Nvg5vb/RNeI+jb8MbHX0X3u3o+/CWRz+E9z36Mcr9Sj+F7wDo5/BtAP0SZfvp1/ANAf0Wviug38O3BvRH+P6A/gzfJNBf4TsF+jt8u0D7o9z9DtQGlX8AZj1A2gB4nL29CWAbxdkwvDOr1UoraXWuVrJ1ryXZli1bt287sU3iXE6AhBzk5ko4c5T7PgqlXC2EQikBCg3QchYCoQVajtK3tNCWu/SjLUc52r6F9oWWt402/zOzK1ly4tjt1/+zR3PP7M75nDPLGBj4Y6/ATzNuRmF6mHGGQdkQkpweESnRWBoVnPkBlOOiMSPEeXPRbBFiElwYDaKc7OSVZMGOlA4kgc9Zime9QYj22pEx1oESxV5UyBfx35tHm8GoLs1Ff1ZdSiajoD+DrY7whx/Kt5tMnXyBb4Zfp8mEzhVdPmRgi4jDRcyyXjd+qnmkWd0FFhi0EqyhjKLuorWsVDJLuSef5EzqsybTHWcaDGfeAVX0mZBb/AixhmGMh7HxI9HNMDaG2fcpewVrZTxME3MIM4c5jDmcWcesZ05kTmLOZM5iLp3Uenzg1iezIRxESiGfUPSUXiQpenacc/eirJTxpFCskMkXagOlXIYElAwJ9KKpAmxLQ7qxMd2gDnuaAnbwoyfUYbvHY0dPiB7P7SRyyGNXhyEgZrPueKPD0Rh3Px75KELMLcRcF41EokdG4G8V8eHToBZ1GCySEz0BlVdrQE/YPa+S6GyWBMmThuyBJg96gtRc/jmp5DJi3Rmp+YNpY6j2J8vwjIWxM4w7KtF/5FTo/3bWt/dD8sPrL7jrAryUWOu1GNZHpp4AdbzJXs4mmCRTYIrMIMzAiVGhoxFE8I4pVMhli/1I63KI0rscQRSMkAyDUYTh8ZJhiSLF480W84mYUc56YXiMUCYBY1OEkXRG4zAiUAGMCJSVagNsJJgJBDJBRXFIkqP8Q2IrihZ37EjYi67xhkfUq9CufKgtHG4L2b3hsFc9hdjoAojfqj7je8NXNXh1IBP4EH4jXvuHdi+1RvSowZdJqZefUf8MLlR2NFT0LK2ozxseVd97w8f5wBylOQxjrva1zMSZDqaT6WP6mTFmHrMMekmCPuHpBJWi1WkIfYfJTMZK1Enarc1dvnY+SlMGMKO+bnNj6PkW9fXKDMOHVnzqLrRSfR81wIT5TeS4yCSD3h1y2tSXRM8sOttayIRFLcRfvo/UwPpmlTfDix0qeq4mc+kbVYvOqTfYU9lmxspITB7WKINiIvKEUHYA5dOIjyXyxazXY2RjIpY8shf+S8Xa/0I+jdlEEv4LMDPIavbwRt6Ig6mxVGpsGbFSsHEcAnvH6Lnr8yuGjskl7C4p0BgNKYGI3GCz59efN5LPzGktzDnrq2fOLbbM7cQnpeYeMdbaOnbE3NT/ZEezYNC9hXXnjV520erFLV6z1e6RAyElnkplssUSVFso80p6ZGztuvnnzpt37vx1a8dG0kxDdQztsNt6mAiMYh5m/SxmCbMUxnEDs5E5mTmFOZs5h/kSczlzPfM15nbmDuYB5kHmCbIW6ueyrEi5ZO30jU+XYfoayBRw0ingzPfiiYRaP19boq64uzZQWwR92xMMetS9UjAoffb++9cLeQEMXkrC6l6SBrE7hJwARv30QHlRRGgTwFxbcdoFMNcKPxTAXCv8QABTn8ZaK3UjgxScVanoKweMVX9XeSQyeIJDlXf5iqDeKwjoMEF7gGa+qtX/Ve1p6ntCSagaxlgdYwJPm2CEe5iRGcJUAhycFAQ481EoQLc9p6w4c9rcPyggLZdD8IesxZVFMNdcs3RpfCgeH2KtdQXAmgWQs1rskpD6AJRaHCqsOmFVAV3Rp/4pPrhgMF6z35B2JJlmfabOZhbNsDWwFc0Q3B28XWfiN8rNK+PwdxaxzibWNK26b2hPvOaPqYNVpD1dMx0TXjZ6w4hPJHkRJ9N4AHll3hgCt1RMI+NBX/znJSEZx/Z8pNeS7gslslzz3AUNN3Bmfyzm44yN+fQ0jdguJkYsqCS2vRVsEU1C36LhsCM42xnzm81+Z0NabKCwU2uTBDAhwWSZHMDPIWYB7CRbD4TJ4P3ah6ZEVeoCiCI8dD5CVRWQW4HDGlzG1wFSQbGMCpAgWEsFwfCoX4h8GCFmJzVriMFOkhWKPUcgRGN743PPiZIkPgeFJiMsdTgPqVB9iOA1Z0Wi0chZBHKgNpLxOaiE4C7PQcFZHrFSHVPTV5V1mQH4OQDw8whm1b+xPukErgRkSIGugAB0hOz1EPQ3kR9ExSyXk5Rplm0wFAp+GAoGQ7cTX9ZkGjT5nMRSL7333pku34q7I/h4KPR40GTym4ZMTp950OzpY3QcnyULwQpQB9wSNIqsvygd3WI2jLweHhnhxdMY3rtkRnwJbYngX0ci5XgE/dOq2C6xWtWzzdZbBY/diPxYQLer17jPQCePkd7HP7dav2hTrOo5JjaKjaLbcpdoRiPqdRf40Unk8Rz0/1/ZL7M2Jga9vhB2kSMAWyTwqFQM4xJAo1JOg07wDh2INyaSBEShCSgP63AyiK8B8Mkqyvd1m/tOUTT880WHlbO5BdPHDsc/fiyGWDf6QmpJf9TrUQJNjQGvHGiIBxS3HB1Y3FZqGUqNLZ+XGmrpmpcaaGsbSKF33Tb1kZWANly/CVmsLuwS1bfNdu4Mk/n6E0x2J4fOt7lRa6x/SapUSKdiEdltt7vlSKytvVCCx8TU1kR2/LD2BW1tC9oPG89+P5wiFWv9oM1DMhYKrNgFk0dDR9sOtmy5ASR7s6UBFMKA2sSSsBfxIkqjTyLod5GICuPRra8sDeHSkLfyfWTxEKzLU/6v3qtGs6uKBrvDZsTcnBtGYl35AC9LxgJZUfh1iuQNQwUTlMAsjTbQqJC/bkQb5o4ZeWy2O4zr12fCoU6L0eYDOkCjJ9/T4UYKcNUcU5rpCnMq7km/g6+e/z311JsXLz4tkxnPZtPz5uH3CJ24WacTryd0Yjambqb5r49l16jb0RX1v/1hQxLed8YQjpM8XlgveSB2Dw4NyisJzYMGfJZbBOEWi2+6hT3r/NdsNtPxRp/xeJNNXz9vsruATvLA+s0yvcxc8pZkXVD0NkYQ3jxZHLKOLhN/nsTyGioB7YBWyDGjtlDYoldW0gjoBmUAYWbbhrVdPT1daze8X/FsW3vHmjV3/ODQxR2dnR2LD12XIvjvMmKlkl1di7q6ksc+2rskd/n1l+eW9D7KJuoKU8/omjuevGMNKfxDUktXamwpwb7BGiqNl8Cov0brDu/q6+s6fB0ZB0znTj9+gq4Nxk1WhZOuCmf+2Z2ob+dO9dmd+HFikxAdt3fwMWyIIfSRwHihRyYov9rdGgfGUn0pMA2kMfjVEPGnnu9U/Z2d6INOKI9o/66F/m2g/Yq8Iu5AsB0RVJmsLVwsoSJmZAdqsaNQyvELoNp+IQQCHt4kAG3DJpzq645UCNl/Wb6Z0HF44y8FE+8JBCDVqdX/Eh0/OruATvUYAZgCMdML61ZkAafAJaBhByGNF1lANVivDGF2HVmzvyHW5bmrbvzi4VLnCVd//YLFvNPGiRIyrfn69+67qN931G177hmU2ISWNeDp6bYsPP9r156Ydx164ULW6kHIa1+98xhf34UPPnrTOnH4kCsAKLK0v2/H/8WYoL8d8F5srhSVc6zCunNu5Mw50UX/3NaL3L3b/nFm27GGY5F4Av5xeesd38LXqCeisPo2+mp5K76K0cYL6tqGf0T9NsYP/ZigaykPGMks2PEZdy1x4axDL/6NlCs7juwAo2xXwCDv1CH8ow51bTqNbusoP67AHx45eJghPTFNWxYxKwFrOPZgbfrPplzZkYa/DmVUAfOTNIQ60gcMpDsgqAX+1Ybv1xGmKfuhvt3R2kAdRhmtb8MHHWCgfuqqa5V9Chh0m+ZOvG79a2hjYtjvXer3B2ctCL2yA1/W0VE+vUPBtypKed1+XVGZr1vxrw8+X6sUrLOOjv43Uq7ObMxmN2Y0G4nZDdmqgVAlAWz8Zua3GTDqlZqLth08TGEDtOUd/AiFX+2A1x4xQwgmIl4qlqScU2cdkB1J4wwAXMgBcqUBFx5204JCiB6AG0sTsxJgyjsSs+LxWQl8fHkHbKchfDzY5Q8dCW+yIY3u80WjvrflaFT+QrIDNSNvSnJYvK02P7rrNNM8m68d74ay6n1aHehQcIdTIfU+UhM6NJQ62iEb2y3yO6ihKyqr75OKUIMcnZdrCQbdzS6LIwAIiuLKiA2DLfrc+EBv/2LmyJliG4BqSp4chPIKAYu5bEk2KjECSCmLSYkVSBB24azMA0Tx6BxIduVBukAdSrgRNjlCJ+XnLip1SLFcd6Rfzm68eMlQRGoINjSlB6wtdj9q8Phc03TCt441WVhLOnTMrJOGHI2Nspy++MiFx4yG/K2BppLPEXSnkk6D6KS0+pPsn9hhoANbmFFmKbOa2cKczZzHfFnnDUpV3qDeF9Fq/2QKWm8omSRpcwq2fc3VYJNTIW6O1SAW4RxBDxDOEZ8r5eRcSZFyxdIALuQTScqj0NENmDIpVEjKSimb04JJpYC/oS6nbbtLXa71ID5eazuJ9RIOaVMTsW+wS5K9tZXY42QiqY+TCbA2eUjCPuZoXjV3ICbYJKvbYRUtTsEh++0mwWR0x3b4Mz9xc2bBarbZfHi33pfDlb6t9PWw1ru/kMJSWQQLDP4rWOoHUflteJz8jhxd9Ehr6yOPIITsXpvdb+Akn9uK8bGc1WlFqLNveBxZHOBDLRUe9n+zV7NuphHoygHA6I9iToIROAv6/2oK7WVAE+UoXWMiTkaNFK8vUhKasG2BCEElIleIQgcCEs4rRJxSAFOKhhGvdCDFjpTkIIpmKbpnR4Qa0tZmCkEuwsjzErookeTpmGQp7ueeNGoEY0V3ukMstCLX2k1Q+/IdhLLuaXnxRasLovFRFjd2WNUfxjJshOP6uHb4cajHsJDLGGxjNq6DW8ghQ8olWFgDNhgNBrNgD9idGzhufabTYrZK/y21/CTVaRGMJusVTll2qq8RGzWqnyIr6w5Il8IDulvV0ylPGJFXwOtaemY7reVvWNwsgl69EnKwWeUZLsHdy4FJcOwbvKGlxcC/wfrtraKBRayB48QWp8/Icm9wF3Ugg9FpM/cNHZHgDF5IflB2rnX4fI61Trk0i+71gNs9BbjX/ryscYDjJ/7HOVp1EqD4AIJBpCjkIAJSrcTGKCs6Vf4LxalT2F7+S7xQiGM72OVx1rz37+uak8nmi5PNzcmLiG88cl44fF5E/YO5QbjhBt5pt7C8cdUqs4FjE6m5qfInYIHBDrBG8/HyJ/F8Po4d8fxjo8+SSio/9eRwJBJeJrCmM8/iWN7mtBvHxnivhSF0Ww0NNMyMwD66BPaRmcIRSlx4ZQoziE1JjkRSAbqDzMka4CzVBg4uG9xqDkckKRI2z+XlBpmfWx+8I4LWAbF7a6TiTkNTvWi3mhpjDWab3WqzWe02c0Os0WS1W0TRchLhYVyui7V0vPhb+CMmwHRT+QppU4UhS1sU1aipHCxc2BplnVurRKdPVLTEXgRUl+oMmcdNdrPZbho3h2IhU/kDLYT9ptArrqAZ5bWw+jNzUAkRRzSDgejQr6EsjmjJ5d+R0uY5WmiOOYQ/ctrNdviJLpdIPXYgT5x2k90FP2fVo75RTa4W0ObCm+wL+62X/8AqYZX0ovb2RWnVmF6YBoPU8r7m7u5mjMAuH8aye8vrqrN+5nOb0fnud+uySBNQyRITJTiiU0HkNyW++tVMBv8+my3fq2FfqE3DyVirLre8KKNuz2TQFZmKS+nUff9gf4g/h/lBOBtkMw4hEScmCEad/ycjuvMOaGLMaKHiI1wu7OYspsuNHGdzuvhxT0AaF4Ie4XLBrl4keswOl8OMnzE73HYBKD38OcL85bwLvJxxsXopZYKesVjwBIUvWVCZ9dghqxnMbbdp7jM2IPn0uQz9skvnNwUmYc0cFQ/Gk1wWQLjz6uvQyuuuU3ddx8rh0lhSPQWhr0jNYSdr3QGRkLjjOXV7cqwURiuQM9wsoSu0vniT/SHMlQ5thtRzJAoEh9DwCcrDo+w7KpyD+QCIBU8glAydhzoQleUWccPWjRoTYePvN6zr6vaIJ5PWzjcX84ce/v1FC1rbjJmO8SVrREkyip4dNqvQYLvLInomMSC2UTJ4zYJ5zS3WfHbxoY+PL2pPe4Keb3vE3xU5f6OV62fdls8Ja5j20ZvsL6ENPiYGex/j1tCl3CR8yY+SVPYM45igCFF1T5DIsPej6tqGZj/f1Ywsn6kGbb6jf8Bk3wVzvQs/3d0rerYLZJiE7fCO27UR2+5BH6lXx/OjlblO5v7HaOvn+fjKlfG8utkjbiezQthOugPKwwTZTl9fn/tP6GNMaJkgmftTz/l4ZVU4dHLkbG3yq/5sFr8PC+K0yZN+h7YatPH+jH2WRfCULMPEc0XC/krE7MhJuC6SMwm2B5ATbtLML2q4CK9gr9HCXy54AsK4FPAsFgJk0qtftXsEu5vMeegSh437CzZdTpLG0emEh69eNk5KXC7s9YjPaH13662EF/mM1UPZRu4q/LIxMpMGLGyQmQ+Y2HJmBXM0czHzFeZmZifzbeY7zKPMHuZZghdTyTgVZ7QgDT8rFtiKoENPqTBfiaCD7HAE/edqAVgdhVuqCgFgA2Q1EiKZINxsoDQ0RDpLNosk2RpiJJZsHNB9OvkxCKsgEZ+ZgJ69YkKejl8vb3ba8DLRE5uG7XurH630+9VdfvSEf6MfzEa/z+dvCieSIZffaUeszcL7XOFEIuzy2Z1Gg9Pml0yikectAB1s1tstViv18Tb1Xv+9Pt+9/lobDX1UeexHH1HtAby7Tiqjs5ErYpkTfX7yeL8v69/o8230q+c297XYLTaErbzB3tzfDMCJM4hmR1pgjZyJNyO7R7R5bYLNYhDm++FvPik9j1gwBywaP4uNMyEmzKSYNqYL4PcocxvzFvM+83FFm2R/vR19kdejKVP2fLxIkG/Cf4e5P0CHkBKSgCOEkCzB7ieJECPCpIJ8ZOhhCsCORwdc2+hg/BPETRYS+VJhAJF6iL5USeYlL2wmfIYniyhDZRsSVXAgG2umVCA7ailTIhznDLw3lE5m9M1WJhOOTLIqjxd/u4VwwBV1G8GBdu/WMCNnBC0EfOmhSOSX1KwlBm2xBgVA6C02i9GAhaC1WbRyCLts2C5hlsWSHdtcGHFWsdkWtCCOs9qsQBhYgrYEyWh0OScyOl1GknG4yZAIIIxRIGGIIiMvJ2WeVwzxIIkLxg2K0SQlvTxfDLe19be1hQRRlESRbWoeafnxj5UsvLZDycwiqNwn0Iz7ibjvAYKiUetynoXXNZhMBgM2s0aZD9kxZ7R5MJZE1hmFt/FghCQbZ8T2EC/zBnhnkptDgoH3ktyOINBv8LYOxQGvDv6gnbWHTCEPslgDKQOy+mzI0Bq0WpAbGTmnk+PdlRS/FUigAEkxcnY7ZxxtGyDinawo2e2SSPZjij9+UI+LIH3XjdZOszq+FYq//DKSXn5ZPUzBL8Vi5bRScfE3y4/jkfLjMUWJ4S8psZjCVHhiL+EfMWZdnwSeQYhMBYjLeNWH6h6xabMUfjmM2jZ5wVGDMdYUi+39PIYTYa96NdriDe8EsvgT7JDC8DT4q8LHH+qyh9JM5Q5UrFginBRdHTBfD9tLPT2ldUTMsHbthJhBfU4ICFvfJqjQPwSy4c9AsKA+LAhb3yHI0P8KUCJQkelo70xwWCKFmhn2ylK2hgWBDWSaBoWrGOgE7plX7753vOXJlvF7t85h50yDqJ6v9m3dip5V//Dcc5RX8An7IDtEZfYtTCtThB4dZtYypzHnz0xmTzBsd63EOVobYOs5d7AL5QoKRbvyiZwGZoqlnERBk+KlzK8EX9k5WJdOmX4c6Wn3+dp7IthZ/jiRh63EqdGmlr2fPU+mH0qTqfhxpht2sVAp4LFG8g67/Zc3CJl2Z6j0fHtfvl1OWnE8nDa3W5fnBnoKjbFodzTKWqB6VQHC19fWG0ZvhXvb/KOFuKoQAhi9FS+cN4oGlM2x2GZFs9WLB3PxREPOZ/XGXc4Wb4s/EnZFF+V6V3Z73FxbX9thq8dGFyeaepVYb5zyYmDCnssK+/F15xJJax13Wp5ZAFGaFnkJPWvRN/ASUXTEC0OfhsOfhgZDu8Ph3aE5oZPC4ZNCszXdQHWnAWgsFrk5syxzf/+nwWMxWM3cyehM9Yv4mVA4HNpNFHYervrwoSZBMJWXWmWzYMHHlm8UBIw5GTaZ/up8/r4+n49mrpyh/gpdqSImoAKwDIqI8FKOcqQAJ2cJoCJMO0Kwy2Q2DCKegCUijid6AEV3lsrdwU+WMVQmeaFcBachRA5BcGDmBDRexgF5Gm83yRKLjKID6EvBZrVYsZErWBzYaR0Z4tsDBqVgYq2yxPM2p0k09A1bYFe2LrGzbq+v0+yENpnsRpvbnO4wY+S2GR3meJOZxmTaTBi5pll+A43+pMkuIJNosvq8nhZekpBo4awudW8wgTCbjlklo0WyeByWzxASBc7qRN3CrEBEfcVsamuzsQi5Gs3FksliFF2s2Nmpx/TkaAzDuHT9iui08qLjmO06BXZA/JGdEjLUrfe6SVyqW/x1eEptypYoOheA/oVRvCpyXjR6XmRfBJ0bjaoXRirubwlYLf8IkiDDrSRwa/SuSOSuKKJqxPjZiuav+pluE0WBrZE9ETDqjSTuyGoAko6MPhqJPBrV5+4n7E2shXHoekp07hKZdA30INsV1fSogSB1rCJx857jj9/z2uqV+WIxv3L1CasWLmhrb29bsHB3xaO+F0Wz4dWehG3m+D2v7tlcLKxY/caRKwvFWe1t8xftXji/LZ1um79w96L5be3qK+QtJ3SQydqqjF+8Rj+IqXuLOhwxXrP6uChh5NJ1h6pyZxiBXG0AHRVDwVhMfTf2WYzlAfD+bwy/A/NVfYbM3Lzq7IiZUD9Qe+8R0HslsdgE2WivIl5U/q0+x6OjapOSY/NxtJVUVqmUuEyFf/O9uvZkKXU+o5bI2haibSA5GqDat1RfbIOCAoqivqd8pmgNUPC7ZEd/Fpb934AgC3o85+mknOfAr36/R1TfpQyMIFU3f1ejf0lI13N4g71Lf/cA4E3dk6WNk0VVChFUA3EZrXC7YWsj2AbZs3YUfloAg+8hIvnnifX973y7/BbGl/FmM18+3cp9zWD4msHEJgrqsfk8urEAaNCxUjgsoRuJHval6Izyuyw7TzDGefM8nmNPZC3sCSzWZaNP4if20yebGZ4xSdH2gH42PBWfGCBy+cF8Af7yL9c5+PFWfTDARX3gjgBwfZYC1754YbCgfl4oIFNhskt55J/iP1IeAtGlIPhkEOgowv3LUH2TGt0KrupjZxiH1s5r60+l+tvQFfPABv/n00bgp0KUMAhrjnor0aFKpcKaA0GNbNAcpooP147JDOWANRyx6foc/Rr6LD7jftbh9kswnx2A7Y0xmyj2rInEiN5Wnu59xsrmBwutWNn+0ojoa1cyFkqUqV6bpyhPk45T2zas27Jl3Ybfb1y7devajVsXXlFolj0eublwxU3g9UqSF7yoKHr0TAhLja6adI84dRKbaPAfcdwR/gbdGW2QXZIrBD+5ocarPuUR81quPGdzYk9gIkfQ8+HBEjWdoH2fwt5shZ40E14rkO9I5pMlfMYDatsD+Nj7l9+/nPhT38XHPHDE/UdU6ZW7YJW2AuZP6BXCYFRyysS496MBTKZGQaqfG3E54+WRMZlJlFARvWlzIZcNPUeIUfSJkkGERW4iQgZHC1Exa8HHyLKsEktGN3nxp8jd4NLo1ozyY5PdZHaY8I91eQQhYkU9O6CTN8k6rrob/+GAeEM9nuCcMlBHTpZqoc3NEfw6gPSWSNVFCwA6PhxBv4ggHnz/G3mWAvE/UNB/IqGw0VgFzF8cUT+HEqbIpL0uxaSpjvFSgsvMZH0hhVeAnFIAZ+SUQk4TYfIwV3kqFqbCygJMeIWQKCmgV7KcJnYvUXaZrBBuMVkiHooa5IwHXaOq/zBHdklxST4QCCH7cSe3Oi0Wo8XpEuyNdld3l91kt1usPrNfzHbZkaMhme2KBFLdjXbUyZptfquXt0cyNp7rME6zxNUX0u++u2zFimXv+uwtVmhKY7PDx7FH9RtMkpM3pIwhc+5032BXbySYkLyixW4RpIUJp8kVp/PzdXY77AkpoPyWUwkC+R+k5zM0hQtArpOUT96BnITH5CUrmmgUEwQeUlnKgyLrnHfSjCzsAYS9RNhRGnspYeRxyKW0DcxpirvMFsSJzoY1D7OiuHud3ykaEbKanNHmQwY641ajw2TpnjM014IsYfOhN3710LQdWeYOzelpXmawcrIBGU4zWA0vgevlrAY24mzyK1YeIYtJPdXg9gVDJ8/DBsP8k0NBn8eArjAJCCHeqjQ0W43LhEzAZ0Tqd0MJ4cjhgWWdLQiNI84fyKhfOBYqdEPFV3HI8AdwoaxB08WD+bYHzwEYxLjTsFS9shlpyq4INrsLzEbO6ZVNaDlabvJ6HUajSb3cpljRP01e2WHkTepdkGA0OrxekmDTeeRQ5/dxGLAjASAbgWoLCUzjFXfOrc1NZ+3cFFHd5DzI3IxVJyaynSLNPmHu8aPxRBId+6VrSz4R6B1ZtplDTkleMN9t9XgsVmvMNTzfjTbHCrPmp5p6FigeNGgUnCPNrbNcZn7AhJoHUFp9aetpp21F6Yi76LTwpnjea/cYDJcs5oSAbOZ6+BbL8K3hw8fGU/FsICBZ3aVjcl6rnNFh4Jv4d4yPaWd66PmpLAUKHmOFX6NBHYpzi9gT0lSJ8YTyxoSuaM3BK5w/bMlYf/fwSPfA2OI7Fo8NdI8Md/ePLTlscHb/sX39x/XNPntW/3H9fcf2zx6ksr0jF6bbF6UbyUHGIrHw75oiXYWzjj2z2BVVlGhX8cxjzyp0RZpGGxuWHbXsqCMaAoGGI8CzrKFxKy1NrVG9NFh6234E+3oAMJIxbeUQNqtGu0KTZGihojURSNgw0hIJxwPyUUYvtFzrDsnDJ4kiOSKbC3jjxaysSfGSgDuieHZkGTRn1kBXbymb6Zk9d+zQxWP9PSNrf5VxSdAoX6vY6RuOty9qD3/p8MXz+npmpzON0BGzh1ye3k51rxAQ8Bm6cK98mYCvyLadUUhthFbKUiKbbgg2RaEzcoM7Du8UW31QoeTKBMLQcYnhv9N+yvfP7Uwn20h34B6bTxDKlxpdLhvH8fh0IajLqL9PxzkJ8OJgo0xU6Kvn52oHGEv6mPb0w5gumQtjOrunb97iw2MDHQ3aGCxqr4xgw5Qj+GhDx0AsfYABq667K3Bax+e1M29MnZ6cMqEOqysXSTl0oLibMsdlwFxJjm8dRw5rrZg3D68inuNIFAm1Zz7PgAl6PicxYA29iRpqQ1U94wfws4yd6hFqQkrYT7UDpFwVdt3gd33ssi5nWbTM5d/7kd+Fn3L50d9ud/lty7Hf1aeoVzkbGpxoK0NgJOAppx7gfMnMcdADix7qaOC3NbxDHdBV3J9WB6h6w9OAoqilCJoPUH13JPJ8NPo8wG4/EPYfTKcWcTJBAR7UGOsaQVzR5f1tdcyisJekYTeZxyxi1jAbJulGRg8wVu4ptSJnOtpXdqxPp9d3oDvcjY3uDcQ6/JBDvgoxEK/+Kb0hDeZiEr3e09joOeyQQ3CBeNbrOdExmpppwP0hifnQHej/GTLrKqhnaC6Nphn6foZMtSEdb/8O5beFofW9Bx5HFKUs1SihcpJUiterL7RSJYWGWJtG/qphzUUnqK9QGrgNaOaNbxDvG5QOPl+9hcavp6H9OVvlnxESO+h53BOQqAwYPJq2QIWP8QwboXMwV6PFcyJzzkz5hZMHov6QF1c7Nes0lOPTlGSbDoK0nRDt6IjujKbT0Z07TTabaafZZlMjynKlatBbkY6OyE6aj6SaST42Qnrkb3r3CDrj72+U8SfE81vS0QIpVYime6zmAqm4YLZaiQKw+jmx59A0mqtHSyO5dPrhJZ3XOjyznmMlgtvS00lOGHByXl1SKFOL8k9ybG6CQUr6oY5B+sh/2z1WE2cwS2478Zo5lpfd0/A1y09brTxnMSmoVXFbbIC0WnhFfU1xVc6LfMo+q991QE6KH0rbgWfEMZbSiHCGAYZAEwpFrzyA47oWU52AkU2Ee9p9U8lItg4P9Ha0XHnzOYHIvKal6ebk/Bv6/evPV99vaPP72xqSXV1Jm9vd4HazVn9bT0RNaD2D3gSLyAQSFNd+M1541+9rO2F4jrhu3hFdgaB1jivaMXx013UNbbk2f9eirkFSR4NbPyPztRq+V3BaLYihws4CGDSuuWp8dBQ/ni9/ks9jR77ibt77MMNUzuDsqK9/ak34JNT/UJ5Um0dvatVfMWXt2n5zDdRNZHky00jovwqni0gNNW5XRXPjrzsJL2snenwn8agS1LsTfpeFvepKb5iMQtiLdnnDO/c+zC4g9RM6+j32QdgbgnQvowx/Po2pSDpENBPlyikXimiTaMCNSjQJ8FESk0QdypEblgYyzr45Iw3bQl6pd/Hi4KqOVaktpywNBlvQttZt2w4PRVq312TbHpSk3vHx0KoO9JoSNWebO8PNZtm/Pbh4cY8khY7sOLI1GDp8y5ZWtC0VCR++bVvL9rps44t7PR7IVoXb30ffrDkfVIGMJzfjvc3NZUMzuo0qhLlof/6cjpWNEaE/A1TaVmK6mFHmEHrHxHqAZOS8PeyNbqWKIQHSyx0khP5/yPnSuBRvjUvUQrvqAou9TakmL7XK3/xPZsOvS3q0pJvJXvW6//scOv73C/SLunH4F/r75albUxs4f9o3qeBot9I7NJphT1zIHMOcxnyZuUnbGYneD5444NyL+EkgTInXHoOu3jxSn2n/mvCBa0LT1nQj0ZEmejP36cej70f3Ec2Z+ymG8E39bpj7tGPX991H1KGIpS6qK0c89QX1ApPLsVaiq3N/tYx2hJqWuV+/yuN+eAnyHvVJ6k6av6L6Q2uoLamXgOeR8jUpjHYnz5tA0xHdAoXpoOcal9J1eTbzJRiZO5mHptA3cPPaoWCqhpNM2JGuFg8Z4oRDokUnS4qkJ0ChuCLp4kySS9FiaYpb06qXpRykcCSQK1ApJ/nxUk4vE9VYMjE9NwD8JF+tfrDqQi4crh6p/H1F6aFkQaLHLWKbR7IjS++llnjUxHX2OFjJimys1WNw9HRyfKzpxR+wPCvmOqzcoKWsPmkd4GzpnAhxCD2JMMfa5syxsRx+yNqREw1G9gfIMqheDxHoScxjSHyeG7BCRqPBWuxEC8kzbaz2TI/bk0ze7+jOGOAxAmuVfmSANEtTjIf3OJCqRfk8xBYTigHFE10GZPKzNpeBi3s4U2vabE63mjhPwmBw2V5w5bJOg7PRxI8fZTQeNc6bGiGYzbncrc1uJJgxuEgmkb72di+/cXwWSXCk223YbJ7HL9po8qbbZdYVrHkYi/jTOE+cg+pZ8ihTImvWH6/pPL7JngzzpnKXCqFR9rsjhdx7g6ZknbIlcq6k/BGxMbjwezCHo7lc+be5issmIEcTzfF/5GhXuYn15LLZXNmfzeWy2nvcyi5g1/1fvYfdryh+NUJs9Ds1gn5Xfq+I/lQsqp5ixWXXKf69e0gOdq5f6du7h724CH977yF2BX94muKsccBZ11dlrLp2KnmNQaSf6qHqmOQFeYWSXiUd5lcUAzDFDotxgstXTi4ABkIE/b2Y4sJG9DVNbvcWECJEQ9lEtpG3NOXNvf8rep7mnYRbYXzmXqoIuI+zOSVWIvGaFvPT90A88tghweFhE1TT+S26PzHkuOreh4HIoeF9EMZoxCPe+zTPcTaXy/g0OfvqwR4rYkTPs3UJViNN2MeQzYWcuX2W/RXbT3F4b04mqgtSjnKGqFISUdmVclk9VLmxjJc8mp6eJkIMwk4AbSdYEG5C6GzOyC//o4273mC4nrP9cTlmsYE92yAYIMG0/I8YsWbDDo7bYbT94QiTkTubFdhudL3R+sflPIS0fFABIvm0Ov6ESCUsYidSoXoW6brVT1M+8RiVYsCA1Usx8mTgpKRci9PjHEcuc6gZywlFXFTMot+LLo8NvVwhvgToeTNCFdKMqOXgbwmCevrEwFFxLrpMCLAJJDW6UYUKeVmAkmanGb9cwf4JOSAIQSjtoGPktu3TtHXvgeKMxtvdp7IP4X8ABGYqqGaU7u+EfKTEI1AdUZkqVZIhKSVKKA9j4oD+PRmduWzenNY2X8Q3eOIs9fITBGxmrVHLfTaMbfhPJo6zSxJ/clvrnHnL3iHnjt6ZdeLg8ULIwlks0By3TeObGRi8G/BsG+PUV2q0skaJbhW7ya/s/VTx4+vKJ+Dr9r7G/nDvEN6t+Mt7sQFWntrV2qfJmFT22yxmQgC1hrQzIgRpqODsIgB9QKCVqpRaGzaiWSQ7ISFKsziLJXIShIpJbmk+RPbNSX6bSJsejOSsg9Zc5Lsk8J3vCHar2fCd7naIQfd9m4/kLS35hziz1c7ipnC4Kd9U/mtTHidCoQTON2GxKT9gt5T/arZjBYchDlLKb0dYbDdj0WLX94onYV65AB9LT2j0SUoxjcmLD2BOIuQrjIamo1HIeeitNzkRxwuE0IXRwvI2osQ3ig45++ZvnNc0P3LaTeqntz7gDaFvbSWa+yOHnLXzG+c2LYB4ZIH4sAZfti255qiEsn5s/PRZy+4aCXn3lAUCG7dCdDy2Ye74abOX3TUa9u6h+ry6Xj5PNdqJvlw7k2EKTDdgb7MYpkReEl6HiJW0q0FyhOrWJCg8grSS/ovrv+ik3/ODmxtQ36bTtqxf1z9gY0dZ5Jw798StF6r7Rskfu2C0vGETioHZrNmnrxgtbNo5ypYKq448ZdMm8bzNx/YNsOiIzZv3bNr02KZNhc2bx0erfxWa5S38EuMleC9ZhXIIi5gn+n3QoQPYTZTnK1rzWaJNn8SGgZMXO3tW5w3d63vUYHZ5ty02N8MvOutVS8hyRqsQlizDlrBwrcWCf5k7ss846+jtG3rZ9OKjVg/b5mybrf7YArks3hDkslwrhC1Vmej3KZ4VZAanwqkSFcIeMBwpR6UcXqlyBphsnZULWBLYs40McncXlQ4Tz9qNJzl9vpjfZ5rX0lz0+vNtacngLok2VLRZvG2WhkUHRDC+i+QmUgzdlm4dywZjnc1Bv9GdCQfCDkfA63YnbUq6f+7EOYendJ5GETDFMcAVZ8TV2F8XNU6cyjkdCgLqeFtsjGhATilkHIY9bu1ackDhNCFgOU1ALUKARARJRBB+alm5Kha7SpmOtaEeJZBynoBwmkU4XQg8XB/s11Vw9TPeV7FRqjda0qUfOl8KH+SuSk7T2/NorSZtlclMo9JU/eaSWBJ2W0A4qV7jAJLx5y0jzXJLKaQ6QqUWuXmkBX2iOnQheDarniwIc+YI7kbzWjOYxs/qg0cBQMdF7G2gto2NEH61I1RsleXWYoiKwYcqMnJS3+tCgzB3rrnRLawRaB2TwsciLNnUC2wO1mtD50HdOp/zeZ0/V+G1LwGc5wvMJXV3Rk5JW8lTCs1nUnpG1Ntt2r2R3wsQJ/C975GDzd9zSNIVMTRXUdQ9sQ/J2KpnT5EN3R/sDIL5nu5oCWCxCRLUs4N3VHJUCq0lmrl3xNRHYzE0FlNn6Tn0/CNaxST3yJQpE+cftT0rrcG2/XYtIhu0A6wIkWOObBp1AJrB7q/wPdVGNie/qsfIdXYUbWMZ9Nvk7ASrDCYyovvkp4Ww0HqGJeSlG9fwgTe4sczSfNZmO3T9EG6evWikjeM6hg9Tn7JYoKRE98VhS0ij999kX6U8NQLrvUwDQOsYk4AWOaMAKaJOpcDKfFKBXxx+uQJYTvi5ndqVmewr5dWjuOG4L5/R8s1NJ7V8Dd1wc8uO6N0t5+9s+QJbXo3Xlt/HDfic8up7jsUNI6r59JbbTmy5PgOZ/gSZkA2yofmQ7/bR8vuV/etGdjalFWQmzCSJXrqbSB61PkvSJcqjEirJdpbcsZt0k0NC4Mq6+4Ej5cBH2O3HONrs5bsdji+P46HF5R9t6Tyl2LVpU1fu5E1/jA0OxkLDg3/2tbX5pI421monOdugCCnZZk8tLv9gMTrrlMwpV27q7j5uw2A3XjsYiw32JmIb2mRfW0ujT5fBfxWfS05WucnA1gjg4S23WJus/4PurIjfe62KTf3Yih63Wj9Fd5o5jsree2025LSSowoUlv8PeyvLVO+K1bicYf2WKDIitMuTRLmn5gfj04G0X7KSh71l76f4BXL1zOn3xO7J7YrdGd0ZuyVxi7Lzyjtjd155S+yWL96p7MKZ8jU4o4roryyz91PWOljeegdk/8Eu5c5f7lRueQGyqY0QaAJPBFy8CvKfMqiK5H2ddecH9j8zfiRzHLMJ9ptTmQtnfi52aq39OpVeogNY8fNTJZTqoFX0YFpri8mJ8ueJLiZqp3vO5bF5MTDfP5DzPWVMAYP/QrRf4rq06te69kucYP3o11RLvz9G9PN1o46R6snv3DqPvga/s18/LvtP9BpLT45Wzlv3InpxB2s9iCZ6eYnWF0QltY28p/cok8HstqgPadRsuVXwBP/Vti8+mve6LYhK4VKAEzBVHdzvQrtl/Ra0UZg1WyawlQmYvf8JD3e0ALO8EEWZEj0XVoMgyrmsvH8sISoOlLfIesLaQY6wGq/40K+rbcnnz9j7ESuTX/n1Pg6xLGc3dnRyDoHr43iDkZthHJsgFZc/qTxCIwTrpFWqOqJ+bwSV+g02zsBxnZ2cxc71G1C5PoIr93FWI2s0dnQYLXYjPAvpeh+34tNh1wgzbUQjGFXO1OtH7aEHqa5KRd4an1qP5a7hrbNnbx1WXx/eMgyG3G+cOTwDBrVkiat+a4QkXEpTacpGYuHTZm/9IikJ1lDm8KNIHFhDB4ytvWs8pZ9CPIQ5lDmMWcusY05gtjPnMpcR7aP6caeXXO83PXpZp9YUQkjWnUyZ+oxiXQCRm1+I2E67AYb0SNWHbn6uejpU/Kh6fHPi/OhzF0VM5GIA98rIiZEDGvV2FFV/S6hr4mp3EFR9+KceceIA6qz6urX7pMs3QwHIjGeL7gs1zcOKdRFVSZwz5G50XTSL3k9wwZDJ7hLNNfcoegGekztXlk1w8Q92epevWSdpJGKvtlC4Ax8Hbjn4edo7NvDYyJr9poULjXaHxWAwbuAtnAWhA53N1fjrU52F/ekG3ms2mKAmjjNY7Q5ugwmhPZPP0066x3SE2cgcxZwC+8o5MKMun+GeOunouqghsUqVNeimJIN+o4FOItGtlWJ3pZlNuoPf7LFGdGW1mZKlswtQP7eYca8xmxXFaDDYHE6johAaQFEIZQF2w4bI7ZFJZhrNlsUuMUM1diuPcjW6M6JLfUEgNRqdDivHGSce4Abb/Csy7d4g1qn0OpCJ+5wdTBRwR+1U8YHOr0y+dbHuJsIqyMLM5j2bN+95dfUKcoplxerjV9y4YsWNDy2cT06wzF+4MhNsDoJxkoez1s17Xnl0M8n22uoVheKs5V//7o0rSLaHSf5bpWCwJRjcql37X5X5P1l3Z/PMoWwdPhE5yNHH8jhr2vv5hbGHY2AItE0R8pZqyVLyNp+okLeJ/FWj6rv0tKrGf/ipjgcUZ6iNQqTUPD0/TbVAw4htP8iLnWIOStisviFEhS8asdHuchpPmEaHYqeAXQGLeqcVWe/l3U4LNpq+rNOXB8b91szszYmc3j3D3ZleGCwinZD0HhSXUzeNjp4feyY2yaj/6Dca+zmbhecttmmanNr7IV5AEKCdVQsd0290GfsNLGcxnskLHK7wi3ZDHwSBAtxUoap1prISj5EhKZaIajLRqSRnhlhRkxGkEcE+9O02hYxJJUZVhw7y+YaoTlBjgIDoiUBH4O14iS01q2fYxBtcNpsruAi2nmarpREZ7bzg4rpMfpHfgbbxbje/D7M44EPnExq4fDWxYzGNtMVbgp0BRzAp/QYvgl336a7kl1J9Jtsd7lzeHWQb0Y+T3ewokCn/xbMmvmBixSh/i998gdmPUPOvzdI6r/3PhCr+M6GXO4N/1gj1P0vJoGNk0j3vlXtuZ7zayH9c/0bGDO6NpTfRtMzaM2uaHe8fQ+cO/UYdJhdvoyf0u18q94NPfrspcM8SRUAUciNctDDNnd5frF4LPO113a9qFwqTq4Nn6WfuqF7oT2Zy9mHKKyXrAnXyte1R/Fo0Wm6NRi+JRC6JopbIFyNgwL2ERJXvq6Tjn9DTjK/XfttEfYPgHTrt8qIuYySjXGJ6mfnaN3Imy/dgBz1AHNrvsJqU2/+bJJDvXXLmTKUfBUFB9X+Q7W4a0UMjHlFXol2ojfgvIdapxxyjfXrkbXpSzbEPyHW0IQRhmj3sDY3sY3mS7g2FSDg8ug+N1IfPr89OhkOk7f2BTrPUU7xHMquZzczxzOkzo2Dq9VmnDLB1qh7yQUJsJNLT5vO19UTKf6n46ig7dWsMuRRF/XNssrupIPqCPpFahSn8MyBg7iBw7JaJPbNBJGUDflH03yMSe7JXl1GTO38leg5pEHrycIaJV88c9aOcVMFM2bq7SagP9g6iVQhTppCDn0ysXEHhciXiU/gkTSkRf4HdVdn0R7XXXTGx75MrhcRl+fyyvK+70H0nauhPsNlV4dCqLPveVSt3BDVIEQySlgbxVyb8JEV9cenSt1avfiv13e+m3nrkkbe++c23Hkm+1foQzBe5Zg+MA40zcd/OMcxWZhtzHnM+cwVzzQHu3tFuhKqinkQyHdWUZyWCNRE40YFQlp65KGgTgMAMgCo18mvtGq147Xwq1J1pndm3DYiaXrIO+akNZGqRN3KV2QTLpoGQPEdTqgQwSbyEBt2NbgiU7z9I2tWVS9orLurfH7V9c9asjsiaaHRNJBf5UYSYiG6zVqjnaI1kusTqwogESf00sPfDg6U+Sio4vnrZ3XFVy6u+rtCvKBiJDnikecIwzKRvgdTqth/+b2i3c1NiQhN07sFB4scR1AAd934ENWu7u2avorj+dBerk/Y9R3uA0pay+pzWWain8p0EfA20swZ7rnx9im5F4OMVDdfXMRhNVaxOS//ssXPmzTtnbP78rrVdYOZvmF9aXwIzf76esKNyEg9fM3bOdeeMDXWtO2Vd15Du0KhPtNsIzTUwXNPB72XmwEpbWcHJaN9rX8fSWQh83YWv+gYdrQOidQGZ6JTKJbmULCX5kiIn+TCuDcmVz5Ft3Eig+cbn1NcpVK/5MFQFvGpmdGhI/WnQ7Q4Gmq1NxiZOsTafWB/EdwM+pu7SvkKGVgJOQLCIXZUPj610xwP28hXalwjIMGXLC1CHpChSkI85k0lnjA/WhSr6L49V78efSsI53e34tZwi14SEs+LZuobcVvPkYdptNYetm3vGnDlnXE2sOfmVhcLKTcSawZU1K+accQ0pBdZoftVxq/L5lZtX5pnabxEQGWczUJsz+iIdwSXjOi6ZTJIFQARu+5HdVw6h7MQngZJeIpDbb4kM7f0D60WEJ1g9C7IL/1U/U1Cis28V5WNtAoxg27/Ac5h0wEM6QNz+pwik3MR5cnnijLnpYHfzXEPQnMcIcvPQffdRh1j33X03WlAbuk7/jNtDBfIFtrawxvddqdOyu3S+70pKy+6KF0ph72aCb232hnvWnhz2biLVbCKBG2sDqKR90c2rOfoZ5l+xf2dT+plDel1kuKJlHdY+NUAYUtrHVzRql94JRn52qopP9GEwIbdwMlEcxMk0SuLDHKZ1nGR7zS6bectNZhOOY4svJP7A0mB9Ugz5LBA2CV+38GbZ/ppVMq4ztxqWiJ2h3Rd53CwKf9Nf9JtvD3N2F3/RI41pkY3wzqesdhzG7mDQcr3Zb3vFHnBh/igeDFDJ9ldsfvP1lmDQDVns1qc84uo7GhWu4Xx3vtG8e6kNWwxLdzcWPPz5DYawr8IDf4f9gG0B7OcIOl+2MmcxFzMMF0sqiWT1v0RuFq9840Xy0mPBCV4kbQZfzlsiBzDJ2s3J3hJducmCXpQe05S1+9hkLwtrt5jGxpLHCysYpgl4YC2TmVProTMIm+ISm8k0xwM+JzvbbEo2XX7EmtXHrTyk0+/C/tH28VQy6BU4TkCmptsM24JGk+AMDwCIcge8ja5Ot83b2j9/2aJFc7eEFKOx2+7xhqLNtwdTgMW1hnpCLSEwN8APhVLBuzU3tDTcEgy2BkMGY6M35g94jEedsH7V0nMDYbtzrGtpe87IXjOagrnNea0Bi6/dvmjMPSxAzXl3M4dZxJudnSehZHJ+Z69obfAdMzx/yeoVbtkTcMmoF5oeaoXfF4H2hmcEBz2hEDiziRMK3QwOPLtC1z+p8zZm+l0WyvrTlbU0ye7BOUTvC0Hh8cd1Tb9XIPCqMA1X4l1BeOIJcl7S5eRfEQQoU9ENJvgzkdoqNV89XAN45Y3MN5mHK++v0asHutNv5pc2szLRdCEbTyknSyEqxydHsmVeSepXNNJ5RrUpIYtXO3RKJie9308/W+qh4CZfmjglUwojkl/i9e+kFkp0+6q2P66Lms4kfLUj629+vs4o2BcHjHEOGb2c8SuRNOISRski2q2uqNfqTi1McwkOG0ySzSQarVYpZPU2f5CSQyF5GbFSnoaGFr//Sm42F+e4ZsMIcehQEBqTPLxCIGiny0afrrsu+gLu4gZHQ6vCcZxBEi22SzguFuU4URDsvMHECfaueFPEyFmMZsxZedbIGniTPRxoQr7A8UGfL3h8wNcW6YuASbDbtnDckxw+dRtxavj3Fcp6huesOGfOKUuKE4gecuLKSWgggHxAGPGEOCocHHX8eddr1/687wj4odMe2A5/06CLx6g59ELmevVva2LXI2FNrEtt6rsX9Z/Vx1T5rbfVwOrJN45MAa3NSEYsks0YHKt+otMVLLV6yZHOSR+/e6S9PH8heiCtjiMrcRZPB77L2/DudHk+mo8ehNzqp+iBdnUxpe0n5CW1d1MdxWxnvsBcwFzIXDUzCcoM7z91V3h6/1ZV00leprjJNKtzoGZcShPK7KBCGXB1htYOUgKsw7XrSaFeLTegrO2NOypV7yBoam3uynWmMDc8M+rvq5mbmG8wdzF3M7v/3/f9lJoFtTWh2s8oOf+DI6Tuqhw0QSsJ5q/RAR51p/86P5jf+Ef9YMZJd5bvJffjhfYQ858crxWV8WrWHoaYkPr7YBA1gkM+yFfROdT0Fzw131icKW1R913Aic5GWWyYlra4nvCbPozdrii3x2ZAURwd+zwG5nNdYZDbj2bv+TdodXlmFLnaXaHIX6AXy8MWRXY0jRRBf4Ydrm6HuoCQdN01hDcz+fsDFR7DwhneMFPHA6rjCdNrDqEgPcUYmuYTqh9H0DnQjIsiEXJ1XQTzVtMSo2DAhiUGq4WfBlSo+wjFfjYhWtWrl5isvMUK5bBBoDTdX9kXWcLlJndpDdS2KsmTowYEYUnWtY3eSFAi6uEHaCO7NFqKgvnJoD3lmP1cpBjFka4oXlne5Q2GpJ+7xJ4Bi934shQKqSaq9KO+HGNt0a6o2gwWGrCz4qxwPoJ+C6FDwpLaLIVt/f0WHJbQG96QqmoXzE7gX+FJfJ9TmXOZS5lrmPv1lvjRfwQB03At7bofj3ZJh363lYZteQEH1e/2KMkaJrX/pceQQnEtySPn4FVkiV6l049I7ty/gnp9pSnNGjoNiOWdomABJDq13GuxGDIGZDB5LWYjsqQija2vGiCP4ZFMZ+eGTCbjpicO7zb4Oc6PELKZOYPcZBMkg0HSP9XxMTIj036I1+ejzzTX/KlnBJsMBqPRZBKMZj4oB5vc5gaRM1g4E+JYCy+Y/HJjstfwdwOYnv7DensP68805hvBHGnoMMQMR/Iw85oM5DpL9wkQ7jBU7+J4FWj5ijxjUPtS1P4X6h04rubYjEafU04sSyhXom8EYCVXkfoVYMaeRqhlSobffeONuJt4HiNREFJ/yaIBjAcwf4OB5w03sBsggNBEGP8lLJUvpR/SO0MKj5TvxDdPjpAhuwH3syzbZDREDLyCWfUBGjeA9ThjE2Y1nspv2ZfZKOzhaco/Y8yoOltlRK/ERcV8nDLKyF2v9KSN9qUPRKbfAXhEOaomf4/6fHtGLZcWetxAuJcaO92ITZZ53u2xIVb0mFFR4HlBLZs9jR6z+rzA/0rpicV6RokVsxOwZPfFYuhZVEwuLKllKK8+n4S62MTJ+2weNyn7vFa2TCpCRbNHfFcvD9aIozHcaI91xvSx/QL+DFZtA9DbROPoMIZxT1BtifyEbi7Aq+qFStqp75r7lRL5OCIZNX9dwldONzqdNpiZpwuNHtxLbAEst7n8IrpOS+LVE3UP8tbEQSb1MxQiBdS3zQE3ug6FeKeTaGCo75DKtpwO1J/V6TKebnY3lt84XXA3QtWeRgGquZY3GGxOp1E9wah7PqqJg/xWFCZZoSZ3AF2LwrQqJ0/DjI773q5/d71WjreYyrUIH+vUuq8yTuZH1X1BSZ5hXD3qNPWl3xFyN81Gep3N+DheRb9+vp1+ofxC9TIEfUAiXqcRYfWPSNovoryJ4keoH7b7Z6ou+f75Rr3qvvEv1wZ2BqUN5Hlg9S7eqT8cknvH8VBI5QAF+ic4BAVCLaTmKh70fI0+Y+WrrtPKAglfMgo/pGs1sqnK5dLlv1TlbUSUR1gBVMlh+yiaM4LmaHcXsAtmIJwbreRVHyNqhpru99vsW6ynTr7cQ/Q36mTLdUoaztoROxDiIVPJXMzIS7qsSqYbHtk/Cvqul1zRhbPd3eUXuy7M7clm9+TIaVH8lXAuDEa9P5wPhfLhuxzycXYvlh3Hue2cs+L3iKyHoIKql5wtRX/IqXIuhz7K7WNqiqIlEDhmv5JGrUadD/7Tmjsq6ttbdzftedVLE14gUA/dRWAPOpfEkBRG511+wt5A7+5tP6Dek9YjNbK7XEVul8CWzY9t3vwYVV4iV/GeILouIF8kOt/d6L6ACKUucE++qPdnJLLRfX5NNl0u8xTeR9vkYXyTv5hcc2n7F5pg62/aW25CW17fmPtjfsPrV68wLJ8fb2qK44fLL1x5Jc6pu/72N32/vAFggqMer/+X7yWuOz1SaTFpSrGw8sgTVi7S7hxe9PAiTcVrkfr7iHZJceRtKs6LbH7slcc2k8y0A4bqMhNPWn2ZZLyNFCFF9Xf/BD9SN7frbzqJ132Ts663El1busCgZs1VQ01sbzy+90dNeH2Xel9XFzq06/Au1Qief3SpnwCKFGeY/w8acz5TAAAAeJxjYGRgYADifx656fH8Nl8ZuFkYQOCJfaQMgv6/gIWBOQHI5WBgAokCABA7CQsAeJxjYGRgYG7438AQw1LPAAQsDAyMDKhgHgBUCwOGAAB4nGNhYGBgwYYdcIgTwjB99gTUOCCpdcAijgtjMwNdHF2NPQ47bNDU2BBwHyE3GhPpB3si1GBzBwgb4PAXrvBFjwd7PHGDbFY9FrvtcahFdy8DA6Y/0dQBAAt/GYkAAAAAAAAAAHYBHgFAAdQCSAK2A6gEDAR0BN4FdAXyBjQGuAcoB4IH1AhGCF4IhAi0CP4JJAmKCg4KVAp8CuILYgviDKINcg4EDooPCg9kD5oP8BAgEIIQ4hEYEWQSZhOqE94UEhRsFLgVaBXUFqIXMheCF+oYSBicGQQZZhmwGlAaahq+GxIbuhxKHHQc6B1WHdweMB56HqQfCh+MH+YgiiDsIWYhliHEIfQiViJsIzAjdiRAJVwloCXkJm4mzic4J3gnnCf6KE4osCj0KVYp1CpaKworbiu2LAwsNCyMLTAtrC5SLqwvXC/YMJAw5jE0MYoyDDKcMu4zPDOONAY0rjUeNhI2hjbQN2Q3yDgQOLI5Ljn4Ok47PDueO/Q8rD2QPew+RD6yPw4/9kByQORBckIUQmxC6EMQQ1JDfEPaRBQAAHicY2BkYGCYx/CBQYoBBJiAmAsIGRj+g/kMADK6Ar8AeJxdkc1OwkAUhc/IjxESF5q4cDVuiImhBZbsDAnsWeC6lCk/aTvNdCBh5dP4BD6BT+AT6Ev4Ah7K1QTazJ3vnLn3zk0L4AbfUDg+t1xHVrikOvIF+V64Rn4QrpMfhRtoIxRu0h8Kt/CEZ+E2O6bsoOpXVB28Citc4034gvwuXCN/CNfJn8IN3OFLuEn/R7iFmVLCbXTUy8iZyJuFnu/1OrZ5YnOfxN0DTs1ym0ZOlGwz48q1zXU/6IkzMblxfy3K3XLgfaITZzM9Zi+TplYXzm5M7IOV98UwDBPxg9hmGMHBIIJnXEBjjj3jGjEsciRV9NxjdP/dKXOX2PJDRaw+PTtVM2Y6lNQHpdFHgN5ZzoQ5eZV3PkWJHe8Z0D1MoLkcKzLSWOYynCElaxTV2YZOTD/Aqqoq+JNDvslZflDdnf0CPF1o6QAAAHicbVSHlts2ELw5kRQlnc9xzum9Vyax7PTee+89ELGi4AMJGgClU3rvvVfnV7OgpOT8XvSeCAK7AGZnZ7i2vrb49df+/3cU6+ggQowEXaTooY8BNrAHm9iL47APx2ML+3ECTsRJOBmn4FSchtNxBs7EWTgb5+BcnIfzcQEuxEW4GJfgUlyGy5HhClyJq3AAQxzEIVyNa3AtrsP1uAE34ibcjFtwK27D7bgDd+Iu3I17cC/uw/14AA/iITyMR/AoHsPjeAJP4ik8jWfwLJ7D83gBL+IlvIxX8Cpeg8AIOSQIYxSYQOEwtqFRooJBjSOwcPBoMMUMO5jjdbyBN/EW3sY7eBfv4X18gA/xET7GJ/gUn+FzfIEv8RW+xjf4Ft/he/yAH/ETfsYv+BW/4Xf8gT/xF47i77W0FHZbmlk1kMKLzJGm3PcKq2SmVUVxbVXlo1z5eapNLrwyVXLE5kZSqqq68ZmSiRpbUVIsGqlMf2xsmZUc17FXXlPkVFF1hZSWnOs5z0c4r/LuSLSnxFMlySRiyrfbrmtcTZXszoStVFVEjieppTHvnQzXhermRjdldXA5HlqOw+V4INFibhrfc1SUVHmS3TAw5t4CrBdFx4vRRm6qsSoymnKUMVGdBdiJ0wzGJlIJbYqtww0DHc8zV4uchDVNJZOm1kbIKDf1vO9VSZkVVUGpF2474xr3H7NnRH5GVCWqrI31A75YU3vRwcESwEg4Ol5oZkh5Kl3mvCWfT3YvjTXtMAtxPqF8OxKNN2kuNK8IuyrD+bmmvcuJkFNR5SRXwdqa2m1yO8hTliubaxruOWaaLGb7pbLceyYrs2ZmmRvraEMqVzOpLYxIWlHsWa2MWA/bUVBNTFL5YRSeodEZN2NrlaWqIKM2d4VwytXxNoqC7DaPTezQnHr8z3JtHHVrhqFoNgi3ZxWjEnUyNpqbNGh1tiig14ZDMAqrvTYU2IsUXxmrUhS0b9WZkMsqtH5ztZIHpdi9/7Zu0YOY4WwP41JVjYtZRc0wKo2lKLymmrve8KmdWsikNCOlKa15npVih9Omq5mqUi4hCwpbr/MoLHaXck6skKpxAyemLAqlNcn0SEOudZjLrdE6DKr2XUfet27g1MRNBPOWToVVQU+dObmNxRpTyJmhI9QPj6U2uRta1I53zhTXxR4bBYIGXCYt/R5zSxo2sCbLXhdWpq3aRmaHteZyEUwxarw3Vb/9SrRKjgu2RN2VKjjYRoHXDUkLyFyDiya+1EkQhbFxa78oUMrMODczVsaBANNhrSWL3keWQccM19hkgSs67JiMqilHZOPWUv3/TLTLT8MoeDHijCr1tMPdJdH1xmiv6shp41PPXLgxWXZ/0ZvxPTZ896LAQdye02uFO1FaRvw27PBja5cLg1EDxn6b1qpu367wQkJra/8AhSEfTQ==) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-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{-webkit-text-fill-color:transparent;background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text}.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-delete-circle:before,.icon-delete2: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"}._fd-step-form .van-step{cursor:pointer;line-height:1.4;text-align:left}._fd-popup.van-popup{background:var(--fc-bg-color-1);margin:10px;overflow:auto;padding-top:50px;position:relative;width:calc(100% - 20px)}._fd-popup-content{display:flex;flex:1;height:calc(var(--fc-dialog-height) - 152px);margin-bottom:5px;overflow:auto;padding:1px}._fd-popup-content>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 105px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fd-popup-content ._fd-drag-box{outline:1px dashed var(--fc-line-color-3)}._fd-popup-title{color:#333;font-size:16px;left:0;position:absolute;text-align:center;top:16px;width:100%}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}.CodeMirror-hints{background:#fff;border:1px solid silver;border-radius:3px;box-shadow:2px 3px 5px #0003;font-family:monospace;font-size:90%;list-style:none;margin:0;max-height:20em;overflow:hidden;overflow-y:auto;padding:2px;position:absolute;z-index:1}.CodeMirror-hint{border-radius:2px;color:#000;cursor:pointer;margin:0;padding:0 4px;white-space:pre}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;height:100%;position:relative;width:100%}._fd-fn .el-button{bottom:3px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;position:absolute;right:5px}._fd-fn-editor{display:flex;flex:1;overflow:auto;width:100%}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{background:var(--fc-bg-color-2);color:var(--fc-text-color-1);direction:ltr;font-family:monospace}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;overflow-x:auto;white-space:nowrap}._fd-fn-tip .cm-keyword::-webkit-scrollbar{background-color:transparent;height:0;width:0}._fd-fn-ind{background-color:var(--fc-bg-color-3);border-right:1px solid var(--fc-line-color-2);display:inline-block;float:left;height:24px;margin-right:4px;width:29px}._fd-fn-arg{cursor:pointer;text-decoration:underline}._fd-fn-arg i{color:var(--fc-style-color-1);font-size:12px}._fd-cdi-input>div{width:100%}._fd-pattern-input{width:100%}._fd-pattern-input .el-input-group__append{padding:0 10px}._fd-pattern-input .fc-icon{cursor:pointer}._fd-pattern-popper .el-dropdown__list{height:350px;overflow:auto}.el-tree._fd-rule-select{min-width:200px}._fd-rule-select .el-tree-node:has(._fd-rule-select-node){border-bottom-style:solid;border-bottom:1px dashed var(--fc-line-color-3);padding-bottom:5px}._fd-rule-select .el-tree-node:has(._fd-rule-select-node)>.el-tree-node__content>.el-checkbox{display:none}._fd-rule-select .el-tree-node:has(._fd-rule-select-node)>.el-tree-node__content>.el-select-dropdown__item{padding-right:20px}._fd-rule-select-node{display:flex;justify-content:space-between}._fd-rule-select-node>div{color:#61affe}._fd-rule-select-node>span{font-size:12px}._fd-value-input .el-input__validateIcon{display:none}._fd-value-input .el-select,._fd-value-input .el-select__wrapper{height:100%}._fd-warning-pop{max-width:400px}._fd-warning-text{cursor:help;text-decoration:underline;text-decoration-style:dashed}._fd-variable-btn{align-items:center;background:var(--fc-style-bg-color-1);border-radius:5px;color:var(--fc-style-color-1);cursor:pointer;display:flex;font-size:12px;margin-left:6px;padding:2px 6px}._fd-variable-con .el-main{padding:0}._fd-variable-l,._fd-variable-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-variable-r{margin-left:10px}._fd-variable-l .el-header,._fd-variable-r .el-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;height:40px}._fd-variable-r .el-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:13px;margin-left:2px}._fd-variable-r .el-main{padding:10px}._fd-variable-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-bottom:6px;padding:8px 13px;position:relative}._fd-variable-node{align-items:center;color:var(--fc-text-color-1);display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-variable-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:40px;padding:0 20px}._fd-variable-top ._fd-variable-item-label{color:#fca130}._fd-variable-item-label{font-size:13px;margin-right:18px;width:198px}._fd-variable-item .el-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-variable-item.active,._fd-variable-item.active ._fd-variable-item-label,._fd-variable-item.active input{color:var(--fc-style-color-1)}._fd-variable-item.active .el-input{--el-input-icon-color:var(--fc-style-color-1)}._fd-variable-item input{text-align:center}._fd-variable-item .el-input .el-input__wrapper{box-shadow:none}._fd-variable-pop.el-popover.el-popper{height:400px;padding:0}._fd-variable-pop-header .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-variable-pop .el-header{align-items:center;background-color:var(--fc-bg-color-2);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 10px}._fd-variable-pop .el-main{padding:10px}._fd-variable-pop .el-tree-node__content>.el-tree-node__expand-icon{padding:3px}._fd-variable-pop .el-input-group__append{background:var(--fc-style-color-1);color:#fff;cursor:pointer;padding:0;width:60px}._fd-variable-pop .el-input-group__append div{text-align:center;width:100%}._fd-variable-pop-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-variable-pop-node>span{color:var(--fc-text-color-3);font-size:12px}._fd-cdg-input{display:flex;flex-direction:column}._fd-cdg-btns{margin-left:30px;margin-top:10px}._fd-cdg-btns .el-button{color:var(--fc-text-color-2)}._fd-cdg-item{display:flex}._fd-cdg-item .el-select{background-color:var(--fc-bg-color-2)}._fd-cdg-and{display:flex;flex-shrink:0;position:relative;width:100px}._fd-cdg-and>.el-select{left:-5px;margin-top:-16px;position:absolute;top:50%;width:80px;z-index:1}._fd-cdg-and:before{background-color:var(--fc-line-color-2);bottom:1px;content:"";left:30px;margin-bottom:16px;margin-top:14px;position:absolute;top:1px;width:1px}._fd-cdg-options{display:flex;flex-direction:column}._fd-cdg-option{align-items:center;display:flex;position:relative}._fd-cdg-field{width:208px}._fd-cdg-variable{height:32px;width:208px}._fd-cdg-term{width:104px}._fd-cdg-option>._fd-cfg-value{align-items:center;display:flex;width:208px}._fd-cdg-option>.fc-icon{color:var(--fc-text-color-2);cursor:pointer;margin-left:10px}._fd-cdg-option>.fc-icon.disabled{cursor:not-allowed}._fd-cdg-option>._fd-cfg-value>div{width:100%}._fd-cdg-option>.el-input+.el-select,._fd-cdg-option>.el-select+.el-input,._fd-cdg-option>.el-select+.el-select,._fd-cfg-value,._fd-cfg-value .el-checkbox{margin-left:10px}._fd-cdg-option:before{background-color:var(--fc-line-color-2);content:"";height:1px;left:-70px;margin-top:-1px;position:absolute;top:50%;width:105px}._fd-cdg-option.is-group{border:1px dashed #ccd3db;padding:14px}._fd-cdg-option.is-group>.fc-icon{font-size:18px;position:absolute;right:-10px;top:-10px;transform:rotate(45deg);z-index:1}._fd-cdg-option.is-group:before{margin-top:-17px}._fd-cdg-option+._fd-cdg-option{margin-top:16px}._fd-computed,._fd-computed .el-badge{width:100%}._fd-computed .el-button{font-weight:400;width:100%}._fd-comp-con,._fd-comp-condition{height:500px}._fd-comp-condition .el-main{padding:20px 5px}._fd-comp-con .el-tree>.el-tree-node{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin:1px;padding:14px}._fd-comp-con .el-tree>.el-tree-node+.el-tree-node{border-top:1px solid var(--fc-line-color-3)}._fd-comp-con .el-tree-node{font-weight:400}._fd-comp-con .el-tree-node__content{margin-top:5px}._fd-comp-dialog .el-dialog__body{padding:0 10px}._fd-comp-dialog .el-tabs__header{margin-bottom:0}._fd-comp-con .el-main{padding:0}._fd-comp-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-comp-head{align-items:center;border-bottom:1px solid var(--fc-line-color-3);color:var(--fc-text-color-1);display:flex;font-size:13px;font-weight:500;height:38px;padding:5px 15px}._fd-comp-r>.el-main,._fd-comp-script{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-comp-script{width:100%}._fd-comp-r>.el-main{flex-direction:column}._fd-comp-info{background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);height:90px;line-height:20px;margin:10px;padding:15px}._fd-comp-con .CodeMirror{height:100%;width:100%}._fd-comp-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-comp-node{align-items:center;display:flex;font-size:13px;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fd-comp-node ._group{color:#61affe;font-weight:700;margin-right:5px}._fd-comp-node ._subform{color:#fca130;font-weight:700;margin-right:5px}._fd-comp-node.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-comp-node.disabled ._fd-comp-id{background-color:#999}._fd-comp-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;font-weight:500;height:20px;line-height:20px;text-align:center;width:20px}._fd-comp-dialog .el-aside{border:1px solid var(--fc-line-color-3);border-right:0;width:300px}._fd-comp-title{color:var(--fc-text-color-1);font-weight:500;margin-bottom:15px;padding-left:5px;position:relative}._fd-comp-title:before{background-color:var(--fc-style-color-1);content:" ";display:inline-block;height:1em;left:-5px;position:absolute;top:3px;width:3px}._fd-comp-script .CodeMirror pre.CodeMirror-line{line-height:26px}._fd-comp-linkage{align-items:center;display:flex;font-size:12px}._fd-comp-linkage>._fd-rule-select{display:inline-block;margin:0 6px;width:120px}._fd-event .el-button{font-weight:400;width:100%}._fd-event .el-badge,._fd-menu{width:100%}._fd-menu{box-sizing:border-box;display:flex;flex-direction:column}._fd-menu-item{border:1px solid transparent;border-bottom:1px dashed var(--fc-line-color-3);padding:0 15px}._fd-menu-item.is-active{border:1px solid var(--fc-style-color-1)}._fd-menu-item.is-active ._fd-event-title i{color:var(--fc-style-color-1)}._fd-event-dialog .el-tabs__header{margin:0}._fd-event-select{align-items:center;display:flex;margin-left:15px;margin-top:15px}._fd-event-select .el-select{width:240px}._fd-event-con .el-main{padding:0}._fd-event-l,._fd-event-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-event-dropdown .el-dropdown-menu{max-height:500px;overflow:auto}._fd-event-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-event-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-event-r{border-left:0}._fd-event-r ._fd-event-head{justify-content:flex-end}._fd-event-l>.el-main,._fd-event-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-event-r>.el-main{flex-direction:column}._fd-event-r>.el-main.is-behavior{flex-direction:unset}._fd-event-item{display:flex;flex-direction:column;font-size:14px;justify-content:center;max-width:250px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-event-l .el-menu-item.is-active ._fd-event-title i{color:var(--fc-style-color-1)}._fd-event-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-event-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._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:var(--fc-text-color-1);margin-left:10px}._fd-event-title{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:12px 0;width:100%}._fd-event-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-event-title .el-input{width:200px}._fd-event-title .el-input__wrapper{box-shadow:none}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-event-behaviors{width:100%}._fd-event-behavior{background:var(--fc-bg-color-3);border-radius:5px;box-sizing:border-box;cursor:pointer;font-size:12px;margin-bottom:12px;padding:12px;width:100%}._fd-event-behavior.is-active{background:var(--fc-style-color-1)}._fd-event-behavior.is-active ._fd-event-behavior-info,._fd-event-behavior.is-active ._fd-event-behavior-label{color:#fff}._fd-event-behavior-label{color:var(--fc-text-color-2);display:flex;justify-content:space-between}._fd-event-behavior-label>div{display:flex}._fd-event-behavior-info{color:var(--fc-text-color-3);margin-left:16px}._fd-event-behavior-list{border-right:1px solid var(--fc-line-color-3);height:100%;padding:15px}._fd-event-behavior-list .el-menu-item,._fd-event-behavior-list .el-sub-menu__title{height:30px}._fd-event-behavior-list .el-menu{border-right:0}._fd-event-behavior-list .el-menu-item.is-active{background:var(--fc-style-color-1);color:#fff}._fd-event-behavior-list .el-menu-item,._fd-event-behavior-list .el-sub-menu__title{border-radius:6px!important;margin-bottom:4px}._fd-event-con ._fd-event-behavior-con{padding:15px}._fd-event-con .form-create .form-create .el-form-item{margin-bottom:18px}._fd-event-con .el-form ._fd-form-item-warning{color:var(--fc-text-color-3);font-size:12px;font-weight:400;line-height:17px;margin-top:6px}._fd-event-behavior-title{color:var(--fc-text-color-1);font-size:13px;font-weight:500;margin-bottom:12px}._fd-event-behavior-title>div{color:var(--fc-text-color-3);font-size:12px;font-weight:400}._fd-config-item{color:var(--fc-text-color-2);display:flex;flex-direction:column;font-size:12px;margin-bottom:10px;width:100%}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{align-items:center;display:flex}._fd-ci-label{color:var(--fc-text-color-1);font-size:12px}._fd-ci-con{align-items:center;display:flex;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{background:var(--fc-bg-color-2);display:flex;flex-direction:column;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-page-item{align-items:center;border-bottom:1px solid var(--fc-line-color-3);box-sizing:content-box;cursor:pointer;display:flex;flex-direction:row;font-size:12px;height:30px;justify-content:space-between;margin:0 12px;padding:12px 0}._fd-page-item.active ._fd-page-label{color:var(--fc-style-color-1)}._fd-page-btns{display:flex}._fd-page-label{color:var(--fc-text-color-1);font-weight:600}._fd-page-label .fc-icon{font-size:12px;margin-left:5px}._fd-page-id{align-items:center;color:var(--fc-text-color-3);display:flex;font-weight:400}._fd-page-id .fc-icon{margin-left:5px}._fd-page-id .fc-icon:hover,._fd-page-input .el-button{color:var(--fc-style-color-1)}._fd-page-input .el-button{font-size:12px;font-weight:400;margin-left:12px;margin-top:12px}._fd-page-input .el-button .fc-icon{font-size:12px;margin-left:5px}._fd-page-del{align-items:center;background-color:var(--fc-style-bg-color-3);border-radius:25px;display:flex;height:24px;justify-content:center;margin-left:4px;width:24px}._fd-page-del .fc-icon{color:var(--fc-style-color-3);font-size:14px}._fd-page-copy{align-items:center;background-color:var(--fc-style-bg-color-1);border-radius:25px;display:flex;height:24px;justify-content:center;width:24px}._fd-page-copy .fc-icon{color:var(--fc-style-color-1);font-size:14px}._fc-sublist ._fc-r-title{align-items:center;display:flex;justify-content:space-between}._fc-sublist .fc-icon{cursor:pointer}._fc-sublist ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-tools-bar{height:30px}._fc-r-tools-close{color:var(--fc-text-color-2);position:absolute;right:5px;transform:rotate(45deg)}._fc-r-tools{border-top:1px solid var(--fc-line-color-3);left:0;padding:0 10px;position:absolute;right:0}._fc-r-tool,._fc-r-tools{align-items:center;display:flex}._fc-r-tool{cursor:pointer;height:28px;justify-content:center;width:28px}._fc-r-tool:hover{color:var(--fc-style-color-1)}._fc-r-tool .fc-icon{font-size:22px}._fc-r-tools-close .fc-icon{font-size:18px}._fd-config-title{align-items:center;display:flex;font-size:14px;margin:26px 0 16px;padding-left:10px;position:relative}._fd-config-title:before{background-color:var(--fc-style-color-1);content:" ";display:block;height:20px;left:0;position:absolute;width:2px}._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}._fc-field-tree .el-tree-node__content{color:var(--fc-text-color-1);display:flex;flex:1}._fc-field-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fc-field-tree ._fc-field-drag{display:flex;flex:1;flex-direction:column}._fc-field-tree .fc-icon{font-size:18px;margin-right:5px}._fc-field-tree .icon-folder{color:var(--fc-style-color-1)}._fc-field-node-label{align-items:center;display:flex;user-select:none}._fc-l ._fc-form-tree .el-tree-node__content{color:var(--fc-text-color-1);display:flex;flex:1;height:auto;padding:5px 0}._fc-form-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fc-form-tree .fc-icon{color:var(--fc-style-color-1);font-size:18px;margin-right:5px}._fc-form-tree .icon-folder{color:#ffba00}._fc-form-node{display:flex;flex-direction:row;justify-content:space-between;padding-right:12px;width:100%}._fc-form-node-label{align-items:flex-start;display:flex;user-select:none;white-space:normal}._fc-form-node-info{color:var(--fc-text-color-2);font-size:12px}._fd-gec,._fd-gec .el-badge{width:100%}._fd-gec .el-button{font-weight:400;width:100%}._fd-gec-con .el-main{padding:0}._fd-gec-l,._fd-gec-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gec-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gec-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gec-r{border-left:0}._fd-gec-r ._fd-gec-head{justify-content:flex-end}._fd-gec-l>.el-main,._fd-gec-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gec-r>.el-main{flex-direction:column}._fd-gec-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gec-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gec-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gec-method{color:#9d238c;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:225px}._fd-gec-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gec-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gec-title .el-input{width:200px}._fd-gec-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gec-title .el-input__wrapper{box-shadow:none}._fd-gec-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gec-con .CodeMirror{height:100%;width:100%}._fd-gec-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fd-gfc,._fd-gfc .el-badge{width:100%}._fd-gfc .el-button{font-weight:400;width:100%}._fd-gfc-dialog .el-tabs__header{margin-bottom:0}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-dialog ._fc-tabs{display:flex;height:100%}._fd-gfc-dialog ._fc-tabs .el-tabs__content{display:flex;flex:1;overflow:auto}._fd-gfc-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-gfc-con .el-main{padding:0}._fd-gfc-l,._fd-gfc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gfc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gfc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gfc-r{border-left:0}._fd-gfc-r ._fd-gfc-head{justify-content:flex-end}._fd-gfc-l>.el-main,._fd-gfc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gfc-r>.el-main{flex-direction:column}._fd-gfc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gfc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gfc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gfc-method{color:#702c71;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:100%}._fd-gfc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gfc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gfc-title .el-input{width:200px}._fd-gfc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gfc-title .el-input__wrapper{box-shadow:none}._fd-gfc-title .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-size-input{align-items:center;display:flex}._fd-size-input .el-input-number--small{width:122px}._fd-size-input .el-button{font-size:12px;margin-left:3px;padding:5px;width:25px}._fd-box-size-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-box-size-input .el-radio-group{width:100%}._fd-box-size-input .el-radio-button__inner{padding:4px;width:100%}._fd-box-size-input .el-radio-button{flex:1}._fd-box-size-input ._fd-size-input .el-input-number--small{width:100%}._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-border-input{display:flex;height:110px;justify-content:center;width:100%}._fd-border-input ._fd-bi-left{align-items:center;display:flex;flex-direction:column;height:115px;justify-content:center;width:115px}._fd-border-input ._fd-bi-right{display:flex;flex-direction:column;justify-content:space-around;padding:5px;width:140px}._fd-border-input ._fd-bi-right ._fd-color-input{width:140px}._fd-bi-opt{align-items:center;display:flex;height:100%;width:100%}._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{display:flex;height:38px;justify-content:center}._fd-border-input ._fd-bil-col{align-items:center;cursor:pointer;display:flex;font-size:16px;height:22px;justify-content:center;margin:8px;width:22px}._fd-border-input ._fd-bil-col.active{color:var(--fc-style-color-1);outline:1px dashed var(--fc-style-color-1)}.line-box{box-sizing:border-box;height:20px;padding:1px;width:150px}.line-box-con{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);height:100%;opacity:.3;width:100%}._fd-radius-input{display:flex;flex-direction:column;width:100%}._fd-radius-con{display:flex;flex-wrap:wrap}._fd-radius-item{box-sizing:border-box;padding:5px 0;width:50%}._fd-radius-item,._fd-radius-item ._fd-radius-icon{align-items:center;display:flex;justify-content:center}._fd-radius-item ._fd-radius-icon{height:24px;width: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{overflow:hidden;width:150px}._fd-font-input .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._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-display-input{display:flex;flex-direction:column}._fd-display-input .el-radio-button__inner{padding:4px;width:100%}._fd-display-input .el-radio-button{flex:1}._fd-display-input .is-active i{color:#fff}._fd-display-input .el-radio-button__inner{color:var(--fc-text-color-1)}._fd-display-con{display:flex;flex-wrap:wrap}._fd-display-con.rotate-flag .rotate{display:inline-block;transform:rotate(-90deg)}._fd-display-con.column .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.row-reverse .icon-justify-flexstart:before{display:inline-block;transform:rotate(180deg)}._fd-display-con.column-reverse .icon-justify-flexstart:before,._fd-display-con.row-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(0)}._fd-display-con.column-reverse .icon-justify-flexend:before{display:inline-block;transform:rotate(180deg)}._fd-display-raw{display:flex;flex-direction:column;margin-bottom:5px;width:100%}._fd-shadow-content{align-items:center;display:flex;flex-direction:column;justify-content:space-between;padding:0 5px}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .el-form{grid-column-gap:10px;display:grid;grid-template-columns:repeat(2,1fr);width:100%}._fd-shadow-content .el-form-item{display:grid!important;margin:0!important}._fd-shadow-content .el-input__wrapper{flex:1}._fd-shadow-content ._fd-sc-box{border:1px solid #ccc;border-radius:5px;cursor:pointer;height:250px;overflow:hidden;position:relative;width:250px}._fd-shadow-content ._fd-sc-box .spot{border-radius:100%;height:0;position:absolute;width:0}._fd-shadow-content ._fd-sc-box .spot-id{background:#1989fa;border-radius:100%;height:10px;left:-5px;position:absolute;top:-5px;width:10px;z-index:1}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{background:#1989fa;border-radius:100%;height:0;left:125px;position:absolute;top:125px;width:0}._fd-shadow-content ._fd-sc-box .x-hr{background:#ccc;height:1px;position:absolute;top:125px;width:100%}._fd-shadow-content ._fd-sc-box .y-hr{background:#ccc;height:100%;left:125px;position:absolute;width:1px}._fd-shadow-content .el-select__placeholder{text-align:center}._fd-shadow-content .el-input-group__append{padding:0;width:55px}._fd-shadow-content ._fd-color-input,._fd-shadow-content .el-input{width:100%}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{width:100%}._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;padding:0;width:24px}._fd-si-input .el-input__wrapper{flex:1}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._td-table-opt{width:100%}._td-table-opt .icon-delete{cursor:pointer}._td-table-opt .el-table{z-index:1}._td-table-opt-handle{align-items:center;display:flex;justify-content:space-between;padding-right:5px}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{background-color:#f2cea5;box-sizing:border-box;height:180px;padding:40px 55px;position:relative;width:100%}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{background-color:#c6cf92;height:100px;width:100%}._fd-box-space-input ._fd-input{background-color:unset;border:0;display:inline-block;font-size:12px;height:20px;margin:0;max-width:40px;outline:0 none;padding:0;text-align:center;text-decoration:underline;width:30%}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:var(--fc-bg-color-3);color:var(--fc-text-color-1);opacity:.9}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{left:7px;margin-top:-10px;position:absolute;top:50%}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{left:50%;margin-left:-20px;position:absolute;top:5px}._fd-box-space-input ._fd-bottom{bottom:15px;top:unset}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{align-items:center;background-color:#94b5c0;display:flex;height:100%;justify-content:center;width:100%}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{left:4px;position:absolute;top:2px}._fd-box-space-input ._fd-help{align-items:center;color:var(--fc-text-color-3);display:flex;position:absolute;right:5px;top:5px}._fd-box-space-input ._padding .fc-icon{color:var(--fc-text-color-1);cursor:pointer;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:var(--fc-style-color-1)}._fd-box-space-input ._fd-x{margin:0 5px}._fd-style-config{display:flex;flex-direction:column;width:100%}._fd-opacity-input ._fd-ci-con{align-items:center;display:flex;justify-content:space-between;width:150px}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .el-slider{flex:1;margin-right:15px}._fd-style-editor{flex:1;width:100%}._fd-style-editor .CodeMirror,._fd-style-editor>div{height:100%}._fd-gcc,._fd-gcc .el-badge{width:100%}._fd-gcc .el-button{font-weight:400;width:100%}._fd-gcc-con .el-main{padding:0}._fd-gcc-l,._fd-gcc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gcc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gcc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gcc-r{border-left:0}._fd-gcc-r ._fd-gcc-head{justify-content:flex-end}._fd-gcc-l>.el-main,._fd-gcc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gcc-r>.el-main{flex-direction:column;padding:20px}._fd-gcc-r>.el-main._fd-gcc-style{padding:0}._fd-gcc-r .el-form-item{margin-bottom:10px!important}._fd-gcc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gcc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-style-color-1)}._fd-gcc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gcc-default.is-active ._fd-label{color:var(--fc-style-color-1);margin-top:0}._fd-gcc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gcc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px}._fd-gcc-method span+._fd-label{margin-top:4px}._fd-gcc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gcc-title .el-input{width:160px}._fd-gcc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gcc-title .el-input__wrapper{box-shadow:none}._fd-gcc-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fd-gvc,._fd-gvc .el-badge{width:100%}._fd-gvc .el-button{font-weight:400;width:100%}._fd-gvc-con .el-main{padding:0}._fd-gvc-l,._fd-gvc-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-gvc-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-gvc-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-gvc-r{border-left:0}._fd-gvc-r ._fd-gvc-head{justify-content:flex-end}._fd-gvc-l>.el-main,._fd-gvc-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-gvc-r>.el-main{flex-direction:column;padding:0}._fd-gvc-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-gvc-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-gvc-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-gvc-method{color:#923b76;display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;overflow:hidden;white-space:pre-wrap;width:175px}._fd-gvc-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-gvc-title{align-items:center;display:flex;justify-content:space-between;padding:10px 0;width:100%}._fd-gvc-title .el-input{width:160px}._fd-gvc-title .fc-icon{color:var(--fc-text-color-2);font-size:18px;margin-right:6px}._fd-gvc-title .el-input__wrapper{box-shadow:none}._fd-gvc-con .el-menu-item.is-active i{color:var(--fc-text-color-2)}._fc-json-preview{color:var(--fc-text-color-1);display:flex;width:100%}._fc-json-preview .CodeMirror{font-size:12px;height:100%}._fd-struct,._fd-struct .el-badge{width:100%}._fd-struct .el-button{font-weight:400;width:100%}._fd-struct-dialog .CodeMirror{height:500px}._fd-struct-dialog .el-dialog__body{padding:0}._fd-props-input{flex:1;text-align:right}._fd-props-input .fc-icon{cursor:pointer}._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-lc-handle{align-items:center;cursor:pointer;display:flex;justify-content:space-between}._fd-slots-config .el-input{margin-left:5px;min-width:170px;width:170px}._fd-slots-config .el-select{width:60px}._fd-slots-config .el-select input,._fd-slots-config .fc-icon{cursor:pointer}._fd-slots-config .el-input-group__append{padding:0 5px}._fd-slots-icons{grid-gap:10px;display:grid;grid-template-columns:repeat(13,1fr);width:100%}._fd-slots-icon{color:var(--fc-text-color-1);cursor:pointer;text-align:center}._fd-slots-config-pop{max-height:320px;overflow:auto}._fd-quick-layout-content{grid-column-gap:10px;display:grid;grid-template-columns:repeat(4,1fr);width:100%}._fd-quick-layout-content>div{cursor:pointer;display:flex;flex-direction:column;font-size:12px;text-align:center}._fd-quick-layout-content>div:hover{color:var(--fc-style-color-1)}._fd-quick-layout-content i{font-size:24px}._fd-print .el-button{font-weight:400;width:100%}._fd-print-con .el-main{padding:0}._fd-print-l,._fd-print-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-print-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-print-head .el-button.is-link{color:var(--fc-style-color-1)}._fd-print-r{border-left:0}._fd-print-r ._fd-print-head{justify-content:flex-end}._fd-print-l>.el-main,._fd-print-r>.el-main{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:column;min-width:0;padding:10px;width:100%}._fd-print-l .el-form .el-radio-button__inner,._fd-print-l .el-form .el-radio-group{width:100%}._fd-print-l .el-form .el-radio-button{flex:1}._fd-print-r>.el-main{flex-direction:column;padding:20px;position:relative}._fd-print-form{box-sizing:border-box;padding:2px}._fd-print-form .el-input__wrapper,._fd-print-form .el-select__wrapper,._fd-print-form .el-textarea__inner{border:1px solid var(--el-input-border-color,var(--el-border-color));box-shadow:none!important}._fd-print-form .el-select__placeholder{position:unset!important;top:unset!important;transform:unset!important}._fd-print-form .is-disabled .el-input__wrapper{background-color:unset!important}._fd-print-form .is-disabled .el-input__inner{color:unset!important}._fd-print-form-word .el-input__wrapper,._fd-print-form-word .el-select__wrapper,._fd-print-form-word .el-textarea__inner{border:none!important;border-color:inherit!important;border-radius:0!important}._fd-print-form-word .el-input-number__decrease,._fd-print-form-word .el-input-number__increase{display:none!important}._fd-print-form-word ._fc-read-view{border-bottom:1px solid var(--el-input-border-color,var(--el-border-color))!important;border-color:inherit!important;display:block;height:1.5em;line-height:1.5em;padding:0 4px;width:100%}._fd-print-page-line{border-bottom:1px dashed var(--fc-line-color-3);box-sizing:border-box;color:var(--fc-text-color-3);font-size:12px;height:1px;left:0;line-height:2em;padding-left:4px;position:absolute;right:0;z-index:1}._fd-ai-chat{box-sizing:border-box;display:flex;flex-direction:column;font-size:12px;height:100%;padding:12px}._fd-ai-chat-header{border:1px solid var(--fc-line-color-3);border-radius:6px}._fd-ai-chat-prompt{display:flex;justify-content:space-between;padding:8px 12px 10px}._fd-ai-chat-prompt .fc-icon{font-size:12px;margin-right:2px}._fd-ai-chat-refresh{color:var(--fc-style-color-1);cursor:pointer}._fd-ai-chat-question{align-items:center;background:var(--fc-bg-color-2);border-radius:6px;color:var(--fc-text-color-2);cursor:pointer;display:flex;justify-content:space-between;margin:0 12px 12px;padding:7px 10px}._fd-ai-chat-question+._fd-ai-chat-question{margin-top:6px}._fd-ai-chat-question .fc-icon{margin-left:12px}._fd-ai-chat-question .icon-down:before{display:inline-block;transform:rotate(-90deg)}._fd-ai-chat-history{display:flex;flex:1;flex-direction:column;margin-top:12px;overflow:auto}._fd-ai-chat-history-chat{align-items:flex-end;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-chat>div{background:var(--fc-style-bg-color-1);border-radius:6px 0 6px 6px;color:var(--fc-style-color-1);max-width:70%;padding:10px;white-space:pre-wrap}._fd-ai-chat-history-status{align-items:flex-start;display:flex;flex-direction:column;margin-bottom:10px}._fd-ai-chat-history-status>div{background:var(--fc-bg-color-2);border-radius:0 6px 6px;color:var(--fc-text-color-2);max-width:70%;overflow:hidden;padding:10px;position:relative}._fd-ai-chat-history-status>div>div{align-items:center;display:flex;position:relative;z-index:1}._fd-ai-chat-history-status.loading>div:after{animation:b 3s linear infinite;background:linear-gradient(0deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%);bottom:-2px;content:"";filter:blur(5px);left:-2px;padding:1px;position:absolute;right:-2px;top:-2px}._fd-ai-chat-history-status.loading>div{border-radius:0 6px 6px;padding:1px}._fd-ai-chat-history-status.loading>div>div{background-color:var(--fc-bg-color-1);border-radius:0 6px 6px;padding:7px 10px}._fd-ai-chat-history-status.success>div{background:var(--fc-style-bg-color-2);color:var(--fc-style-color-2)}._fd-ai-chat-history-status .fc-icon{background:var(--fc-style-color-2);border-radius:15px;color:#fff;font-size:14px;height:15px;margin-right:5px;text-align:center;width:15px}._fd-ai-chat-history-status.fail>div{background:var(--fc-style-bg-color-3);color:var(--fc-style-color-3)}._fd-ai-chat-history-status.fail .fc-icon{background:var(--fc-style-color-3)}._fd-ai-chat-input{border-radius:6px;margin-top:12px;position:relative;width:100%}._fd-ai-chat-clear{margin-bottom:6px;text-align:right}._fd-ai-chat-clear .el-button{margin-right:2px;padding:0}._fd-ai-chat-clear .fc-icon{font-size:13px}._fd-ai-chat-input .el-textarea{box-sizing:border-box;height:120px;padding:1px;position:relative}._fd-ai-chat-input .el-textarea:before{background:linear-gradient(135deg,var(--fc-style-color-1),var(--fc-style-color-4));border-radius:6px;bottom:0;content:"";left:0;position:absolute;right:0;top:0}._fd-ai-chat-input .el-textarea__inner{background:var(--fc-bg-color-1);border-radius:6px;box-shadow:none;height:100%;resize:none}._fd-ai-chat-input>.fc-icon{align-items:center;background:var(--fc-style-color-1);border-radius:15px;bottom:12px;color:#fff;cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;position:absolute;right:12px;text-align:center;width:20px}._fd-ai-chat-input .icon-suspend{background:linear-gradient(90deg,var(--fc-style-color-1) 0,var(--fc-style-color-4) 100%)}._fd-ai-chat-input .disabled{background:var(--fc-text-color-3)}@keyframes b{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.m-title{align-items:center;color:#1f2329;flex-direction:row;font-weight:500;height:28px;justify-content:space-between;padding-top:8px;width:100%}.m-title,.tree-row-item{display:flex;font-size:12px;font-style:normal;line-height:20px}.tree-row-item{font-weight:400;overflow-x:hidden;padding-right:11px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}._fd-drag-tool{word-wrap:break-word;box-sizing:border-box;display:block;min-height:20px;min-width:0;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;padding:2px;position:relative;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{margin:2px;max-height:calc(100% - 7px);max-width:calc(100% - 4px)}._fd-drag-tool.is-inline{display:inline-block}._fd-drag-tool.is-inside{height:inherit;width:inherit}._fd-drag-tool:hover{outline-color:var(--fc-style-color-1);outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:hover){outline-style:dashed}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-drag-tool:has(._fd-drag-tool){padding:2px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{min-height:36px;min-width:80px;outline:2px solid var(--fc-style-color-1)!important;z-index:2}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-bottom:15px!important;padding-top:15px!important}._fd-drag-tool._fd-drop-hover:hover{outline:1px dashed var(--fc-tool-border-color)}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{padding:0 2px 2px 0;right:0;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:4}._fd-drag-l{left:0;top:0}._fd-drag-btn{align-items:center;background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;width:18px}._fd-drag-btn .el-dropdown{color:#fff}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:var(--fc-style-color-3)}._fd-drag-btn i{font-size:14px}._fd-drag-hidden,._fd-drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:3}._fd-drag-hidden{align-items:center;background:rgba(51,51,51,.7);color:#fff;display:flex;font-size:14px;justify-content:center}._fd-drag-tool.active ._fd-drag-hidden,._fd-drag-tool:has(._fd-drag-tool.active) ._fd-drag-hidden,._fd-drag-tool:hover ._fd-drag-hidden{display:none}._fd-drag-hidden .fc-icon{margin-right:5px}._fd-html-editor{width:100%}._fd-html-editor>.el-button{font-weight:400;width:100%}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{font-size:13px!important;line-height:16px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:1!important}._fd-html-editor-con .el-dialog__body{padding:0 20px}._fd-field-input{position:relative;width:100%}._fd-field-input>.fc-icon{color:#a8abb2;cursor:pointer;height:24px;position:absolute;right:28px;text-align:center;top:1px;width:24px;z-index:1}._fd-field-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-field-popper .el-tree-node__content{color:#333;padding:2px 0}._fd-field-popper .el-select-dropdown__list>.el-select-dropdown__item{border-bottom:1px solid var(--fc-line-color-3);box-sizing:border-box;height:26px;padding-left:15px}._fd-list-input{width:100%}._fd-list-input .el-input-group__append{padding:0 10px}._fd-list-input .fc-icon{cursor:pointer}._fd-fetch-config,._fd-fetch-config .el-badge{width:100%}._fd-fetch-config .el-button{font-weight:400;width:100%}._fd-fetch-dialog .el-tabs__header{margin-bottom:0}._fd-fetch-dialog .form-create{margin-top:15px}._fd-fetch-dialog ._fc-tabs{display:flex}._fd-fetch-dialog ._fc-tabs .el-tabs__content{display:flex;flex:1;overflow:auto}._fd-fetch-info{background:hsla(0,0%,67%,.1);border-radius:6px;color:var(--fc-text-color-2);display:flex;font-size:12px;line-height:18px;margin-left:15px;margin-top:8px;padding:8px 13px;position:relative}._fd-fetch-con .el-main{padding:0}._fd-fetch-con .CodeMirror{height:100%;width:100%}._fd-fetch-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-column-config,._fd-table-column-config .el-badge{width:100%}._fd-table-column-config .el-button{font-weight:400;width:100%}._fd-tcc-dialog .flex{display:flex;width:100%}._fd-tcc-dialog .el-dialog__body{height:500px;overflow:auto}._fd-tcc-dialog ._fd-fn{height:100%}._fd-tcc-table .fc-icon{cursor:pointer}._fd-tcc-table .fc-icon+.fc-icon{margin-left:4px}._fd-tcc-table .cell{align-items:center;display:flex;flex-direction:row}._fd-tcc-table .el-table__indent{padding-left:8px!important}._fd-table-button-config,._fd-table-button-config .el-badge{width:100%}._fd-table-button-config .el-button{font-weight:400;width:100%}._fd-tcb-dialog .el-dialog__body{height:500px;overflow:auto}._fd-tcb-btn{cursor:pointer;display:flex}._fd-fn-list,._fd-fn-list .el-badge{width:100%}._fd-fn-list .el-button{font-weight:400;width:100%}._fd-fn-list-con .el-main{padding:0}._fd-fn-list-l,._fd-fn-list-r{border:1px solid var(--fc-line-color-3);display:flex;flex:1;flex-direction:column;height:100%}._fd-fn-list-head{align-items:center;background:var(--fc-bg-color-3);border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:5px 15px}._fd-fn-list-head .el-button.is-link{color:var(--fc-style-color-1)}._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{box-sizing:border-box;display:flex;flex:1;flex-basis:auto;flex-direction:row;min-width:0;width:100%}._fd-fn-list-r>.el-main{flex-direction:column}._fd-fn-list-l .el-menu{border-right:0;border-top:0;overflow:auto;padding:0 10px 5px;width:100%}._fd-fn-list-l .el-menu-item.is-active{background:var(--fc-bg-color-3);color:var(--fc-text-color-2)}._fd-fn-list-l .el-menu-item{border:1px solid var(--fc-line-color-3);border-radius:5px;height:auto;line-height:1em;margin-top:5px;padding:0}._fd-fn-list-method{display:flex;flex-direction:column;font-family:monospace;font-size:14px;justify-content:center;line-height:1em;overflow:hidden;padding:10px 20px 10px 0;position:relative;white-space:pre-wrap;width:100%}._fd-fn-list-method ._fd-label{color:var(--fc-text-color-3);font-size:12px;margin-top:4px}._fd-fn-list-method ._fd-dot{background:#00c050;border-radius:15px;display:block;height:6px;margin-top:-3px;position:absolute;right:16px;top:50%;width:6px}._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:var(--fc-text-color-1);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-fn-input,._fd-fn-input .el-badge{width:100%}._fd-fn-input .el-button{font-weight:400;width:100%}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:1!important}._fd-fn-input-dialog .el-dialog__body{height:500px;padding:0}._fd-gfs{align-items:center;display:flex;width:100%}._fd-gfs .el-select{width:190px}._fd-gfs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gfs-handle .fc-icon{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fd-gfs-handle .icon-refresh.disabled{color:#a9abb2;cursor:not-allowed}._fd-gfs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-gcs{align-items:center;display:flex;width:100%}._fd-gcs .el-select{width:190px}._fd-gcs-handle{display:inline-flex;height:14px;line-height:14px}._fd-gcs-handle ._fc-manage-text{border-left:1px solid var(--fc-line-color-3);padding-left:4px}._fd-fetch-table{width:100%}._fd-fetch-table .el-button>span{font-size:12px;font-weight:400}._fd-fetch-table-con{border:1px solid var(--fc-line-color-3);border-bottom:0;display:flex;flex:1;flex-direction:column;height:100%}._fd-fetch-table-con .el-header{align-items:center;background:var(--fc-bg-color-3);color:var(--fc-text-color-1);display:flex;height:30px;padding-left:12px}._fd-fetch-table-row{align-items:center;border-bottom:1px solid var(--fc-line-color-3);display:flex;min-height:34px;padding:0 10px 4px}._fd-fetch-table-row>.fc-icon{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;margin-left:12px;margin-top:4px;width:24px}._fd-fetch-table-row .el-input{display:flex;flex:1;font-size:13px;margin-top:4px}._fd-fetch-table-key{margin-right:15px;width:calc(40% - 20px)}._fd-table-view{overflow:auto}._fd-table-view-cell{background:var(--fc-bg-color-1);border:1px inset rgba(0,0,0,.1);height:100%;min-height:50px}._fd-table-view-cell>._fd-drag-tool{border:0;height:100%;margin:0;max-height:100%;max-width:100%;min-width:unset;width:100%}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{color:#fff;font-size:16px;width:18px}._fd-table-view-icon{color:#fff;display:flex;height:100%;justify-content:center;margin-top:1px;width:100%}._fd-table-view>table{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;height:100%;overflow:hidden;table-layout:fixed;width:100%}._fd-table-view tr{min-height:50px}._fd-table-view td{border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0;box-sizing:border-box;min-height:50px;min-width:80px;overflow-wrap:break-word;padding:0;position:relative;white-space:nowrap}._fd-tableCell-drag{height:100%}._fd-table-view.is-mini td{min-height:12px;padding:0}._fd-table-view.is-mini .el-form-item{margin:0;padding:0}._fd-value{color:var(--fc-text-color-3);white-space:nowrap}._fd-json-container{--fc-json-mask:" ";display:flex;flex:1;flex-direction:column;flex-wrap:wrap;justify-content:center;min-height:20px;position:relative}._fd-json-container ._fd-dialog,._fd-json-container ._fd-drawer,._fd-json-container ._fd-popup{display:none}._fd-language-list{max-height:320px;overflow:auto;padding-top:70px}._fd-language-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fd-language-input.is-variable input{color:var(--fc-style-color-1)}._fd-language-header,._fd-language-item{border-bottom:1px solid var(--fc-line-color-3);display:flex;padding:0 12px}._fd-language-header{background-color:var(--fc-bg-color-1);color:var(--fc-text-color-1);flex-direction:column;font-weight:500;left:0;overflow:auto;padding-top:10px;position:absolute;right:0;top:0}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;min-width:70px;padding:5px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:var(--fc-style-color-1);cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{color:var(--fc-text-color-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._fd-language-item{cursor:pointer}._fd-language-item:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-language-popover{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{font-weight:400;width:100%}._fd-validate-pop .el-dropdown-menu__item{width:248px}._fd-validate-item{border-bottom:1px dashed var(--fc-line-color-3);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{align-items:center;display:flex}._fd-validate-title>div>span{background:var(--fc-bg-color-3);border-radius:15px;font-size:12px;height:16px;line-height:16px;margin-right:5px;text-align:center;width:16px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:var(--fc-style-color-3)}._fd-validate .append-msg{cursor:pointer}._fd-validate .el-input-group__append{padding:0 10px}._fd-required{align-items:center;display:flex;width:100%}._fd-required .el-input{margin-left:15px}._fd-required .el-switch{height:28px}._fd-tree-opt ._fd-tree-opt-btn{background-color:var(--fc-style-color-1);color:#fff;cursor:pointer;float:left;height:19px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}._fd-tree-opt-node{align-items:center;display:flex}._fd-tree-opt-first{margin-right:5px;width:60px}._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:var(--fc-style-color-3);border-radius:0 2px 2px 0}._fd-tree-opt .el-tree-node__content{height:28px;margin-bottom:3px}._fd-tree-opt .el-input__inner{border-right:0}._fd-tree-opt .el-input-group__append{background:var(--fc-bg-color-1);padding-left:1px;padding-right:2px;width:90px}._fc-step-form{width:100%}._fc-step-form>.el-steps{margin-bottom:20px}._fc-step-form .el-step .el-step__head{line-height:1.4}._fd-step-form{width:100%}._fd-step-form .el-step{cursor:pointer}._fd-step-form>.el-steps{margin-bottom:20px}._fd-step-form .el-step .el-step__head{line-height:1.4}._fd-table-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);width:100%}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px;overflow:auto}._fd-ntable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-ntable-sub .el-form-item__label,._fd-ntable-sub .van-field__label{display:none}._fd-ntable-form ._fc-child-empty{min-height:130px}._fd-ntf-wrap{display:flex;overflow:auto}._fd-ntf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-ntable-sub ._title{background-color:var(--fc-bg-color-3);border-radius:8px 8px 0 0;color:#65676b;display:inline-block;font-size:12px;height:20px;line-height:1em;margin-left:2px;padding:6px 8px 0;text-align:center}._fd-ntable-sub>._fd-drag-tool{margin-top:0}._fd-itable-form{background:var(--fc-bg-color-1);border:1px solid var(--fc-line-color-3);min-height:130px;width:100%}._fd-itable-form ._fc-child-empty{min-height:130px}._fd-itf-wrap{display:flex;overflow:auto}._fd-itf-wrap>._fd-drag-tool{display:flex;flex-shrink:0;height:auto;margin:2px}._fd-tf-col ._fd-tf-con .el-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-direction:column;flex-shrink:0;flex-wrap:wrap;width:180px}._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{align-items:center;border-bottom:1px solid #ebeef5;display:flex;height:40px;margin-bottom:0;padding-left:5px}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item{display:flex;flex-shrink:0;margin-top:4px;width:100%}._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-tf-con>._fd-tableFormColumn2-drag:has(._fd-tf-col){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important}._fd-tf-con>._fd-tableFormColumn2-drag:has(._fd-tf-col)>._fd-drag-item{flex:unset}._fd-step-form-item>._fd-drag-tool{min-height:200px}._fd-dialog.el-dialog{margin:10px;width:calc(100% - 20px)}._fd-dialog .el-dialog__headerbtn{align-items:center;color:var(--el-color-info);display:flex;justify-content:center}._fd-dialog .el-dialog__headerbtn:hover .fc-icon{color:var(--el-color-primary)}._fd-dialog .el-dialog__body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-dialog-height) - 125px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fd-drawer.el-drawer{box-shadow:unset;width:100%}._fd-drawer .el-drawer__header{border-bottom:1px solid var(--fc-line-color-3);color:#333;font-size:15px;font-weight:600;margin-bottom:0;padding:14px 24px 14px 20px}._fd-drawer .el-drawer__body{padding:12px}._fd-drawer .el-drawer__close-btn{color:#909399;font-size:14px}._fd-drawer .el-drawer__footer{box-shadow:0 -2px 4px #0000000d;padding:10px 0;text-align:center}._fd-drawer .el-drawer__body>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;height:calc(var(--fc-drawer-height) - 105px);justify-content:flex-start;outline:1px dashed var(--fc-tool-border-color);overflow:auto;position:relative}._fc-drawer .el-drawer__header{border-bottom:1px solid var(--fc-line-color-3);color:#333;font-size:15px;font-weight:600;margin-bottom:0;padding:14px 24px 14px 20px}._fc-drawer .el-drawer__body{padding:10px 24px 50px}._fc-drawer .el-drawer__close-btn{color:#909399;font-size:14px}._fc-drawer .el-drawer__footer{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 -2px 4px #0000000d;left:0;padding:10px 0;position:absolute;right:0;text-align:center;width:100%;z-index:1}._fd-cell{display:inline-block}._fd-cell.is-new{width:100%!important}._fd-cell>div{box-sizing:border-box}._fd-cell>div>._fd-drag-tool.is-inline,._fd-cell>div>._fd-drag-tool>._fd-drag-box{align-content:var(--fc-cell-alignContent)!important;align-items:var(--fc-cell-alignItems)!important;display:var(--fc-cell-display)!important;flex-direction:var(--fc-cell-flexDirection)!important;flex-wrap:var(--fc-cell-flexWrap)!important;justify-content:var(--fc-cell-justifyContent)!important}._fd-cell>div>._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24),._fd-cell>div>._fd-drag-tool>._fd-drag-box>._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24){flex:none}._fd-cell .el-cascader,._fd-cell .el-date-editor,._fd-cell .el-input-number,._fd-cell .el-select,._fd-cell .el-slider,._fd-row{width:100%}._fd-hide-config{align-items:center;color:var(--fc-text-color-2);cursor:pointer;display:flex}._fd-hide-config .fc-icon{margin-right:3px}._fd-hide-config.active{color:var(--fc-style-color-1)}._fd-hide-config.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fd-span-input{width:100%}._fd-span-input .el-radio-button__inner{line-height:16px;padding:4px;width:100%}._fd-span-input .el-radio-button{flex:1}._fc-city .el-select{width:150px}.form-create-m ._fc-city,.form-create-m ._fc-city .el-select{width:100%}.form-create ._fc-city .el-select+.el-select{margin-left:12px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{background:#fff;border:1px dashed #d4d7e0;border-radius:4px;box-sizing:border-box;color:#c9ccd8;font-size:14px;height:88px;line-height:88px;min-width:160px;position:relative;text-align:center;width:100%}._fc-signature-btn{cursor:pointer}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{cursor:pointer;display:inline-block;font-size:14px;line-height:14px;position:absolute;right:9px;top:9px}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px;border:1px dashed #d4d7e0;border-radius:4px}._fd-data-select{width:100%}._fd-data-select>.el-dialog{margin:10px;width:calc(100% - 20px)}:root{--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-text-color-1:#262626;--fc-text-color-2:#666;--fc-text-color-3:#aaa;--fc-bg-color-1:#fff;--fc-bg-color-2:#f5f5f5;--fc-bg-color-3:#ececec;--fc-line-color-1:#ddd;--fc-line-color-2:#d9d9d9;--fc-line-color-3:#ececec;--fc-style-color-1:#2e73ff;--fc-style-bg-color-1:rgba(46,115,255,.05);--fc-style-color-2:#00c050;--fc-style-bg-color-2:rgba(0,192,80,.05);--fc-style-color-3:#ff2e2e;--fc-style-bg-color-3:rgba(255,46,46,.05);--fc-style-color-4:#4efdb7;--fc-style-bg-color-4:rgba(78,253,183,.05);--fc-grid-line-color:rgba(0,0,0,.05)}html.dark{--fc-text-color-1:#e5eaf3;--fc-text-color-2:#cfd3dc;--fc-text-color-3:#6c6e72;--fc-bg-color-1:#0a0a0a;--fc-bg-color-2:#191919;--fc-bg-color-3:#2b2b2c;--fc-line-color-1:#393a3c;--fc-line-color-2:#636466;--fc-line-color-3:#2b2b2c;--fc-grid-line-color:hsla(0,0%,100%,.15)}._fc-designer,._fd-config-dialog{--el-color-primary:#2e73ff;--el-color-primary-light-3:#69f;--el-color-primary-light-5:#9bf;--el-color-primary-light-7:#ccdfff;--el-color-primary-light-8:#e0ebff;--el-color-primary-light-9:#ccdfff;--el-color-primary-dark-2:#265fcc;--el-color-success:#00c050;--el-color-success-light-3:#4ddb82;--el-color-success-light-5:#80e6a3;--el-color-success-light-7:#b3f1c5;--el-color-success-light-8:#ccf6d5;--el-color-success-light-9:#e6fae6;--el-color-success-dark-2:#00a046;--el-color-danger:#ff2e2e;--el-color-danger-light-3:#f66;--el-color-danger-light-5:#f99;--el-color-danger-light-7:#fcc;--el-color-danger-light-8:#ffd9d9;--el-color-danger-light-9:#ffe6e6;--el-color-danger-dark-2:#cc2626;--el-menu-hover-bg-color:var(--el-color-primary-light-9)}._fc-designer .el-button--primary,._fd-config-dialog .el-button--primary{--el-button-bg-color:var(--el-color-primary);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--primary.is-plain,._fd-config-dialog .el-button--primary.is-plain{--el-button-bg-color:var(--el-color-primary-light-8);--el-button-text-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--primary.is-link,._fd-config-dialog .el-button--primary.is-link{--el-button-text-color:var(--el-color-primary)}._fc-designer .el-button--success,._fd-config-dialog .el-button--success{--el-button-bg-color:var(--el-color-success);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-success);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2)}._fc-designer .el-button--success.is-plain,._fd-config-dialog .el-button--success.is-plain{--el-button-bg-color:var(--el-color-success-light-8);--el-button-text-color:var(--el-color-success);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--success.is-link,._fd-config-dialog .el-button--success.is-link{--el-button-text-color:var(--el-color-success)}._fc-designer .el-button--danger,._fd-config-dialog .el-button--danger{--el-button-bg-color:var(--el-color-danger);--el-button-text-color:var(--el-color-white);--el-button-border-color:var(--el-color-danger);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2)}._fc-designer .el-button--danger.is-plain,._fd-config-dialog .el-button--danger.is-plain{--el-button-bg-color:var(--el-color-danger-light-8);--el-button-text-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:var(--el-color-primary-dark-2)}._fc-designer .el-button--danger.is-link,._fd-config-dialog .el-button--danger.is-link{--el-button-text-color:var(--el-color-danger)}._fd-plain-button{border-color:var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-designer .CodeMirror-gutters,._fd-config-dialog .CodeMirror-gutters{background-color:var(--fc-bg-color-3);border-right-color:var(--fc-line-color-2)}._fc-designer .CodeMirror-scroll,._fd-config-dialog .CodeMirror-scroll{background-color:var(--fc-bg-color-2);caret-color:var(--fc-text-color-1);color:var(--fc-text-color-1)}._fd-config-dialog .CodeMirror-scroll{background-color:var(--el-bg-color)}._fc-designer{--fc-tool-border-color:var(--fc-line-color-1);background-color:var(--fc-bg-color-1);cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.el-main{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-l-menu{border-right:1px solid var(--fc-line-color-3);border-top:1px solid var(--fc-line-color-3);flex-direction:column}._fc-l-menu,._fc-l-menu-item{align-items:center;display:flex}._fc-l-menu-item{box-sizing:border-box;cursor:pointer;height:40px;justify-content:center;width:100%}._fc-l-menu-item.active{color:var(--fc-style-color-1)}._fc-l-menu-form{border-bottom:1px solid var(--fc-line-color-3)}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item i:hover{color:var(--fc-style-color-1)}._fc-l-menu-item .el-badge__content{--el-badge-size:15px;--el-badge-padding:4px;background-color:var(--fc-style-color-1)}._fc-l-label{color:var(--fc-text-color-1);font-size:14px;font-weight:500;line-height:17px;margin-top:5px;padding:10px 12px}._fc-l-info{color:var(--fc-text-color-3);font-size:12px;font-style:normal;font-weight:400;line-height:17px;text-align:left}._fc-l-global,._fc-l-info{padding:0 12px}._fc-l-global ._fc-l-label{font-size:12px;font-weight:400;margin-bottom:8px;margin-top:14px;padding:0}._fc-m .form-create>.el-row>._fd-drag-box{align-content:flex-start;align-items:flex-start;box-sizing:border-box;display:flex;flex-wrap:wrap;justify-content:flex-start;position:relative;width:100%}._fc-m .form-create .el-col-24._fd-drag-box{align-content:flex-start;display:flex;flex-direction:row;flex-wrap:wrap}._fc-m .form-create ._fc-field-node,._fc-m .form-create ._fc-l-item,._fc-m .form-create-m ._fc-field-node,._fc-m .form-create-m ._fc-l-item{align-items:center;background:var(--fc-bg-color-2);border:1px dashed #000;border-radius:4px;color:var(--fc-text-color-1);display:flex!important;height:30px;justify-content:center;margin:5px 0;overflow:hidden;padding-bottom:0;transition:all .3s ease;width:calc(100% - 2px)}._fc-m .form-create ._fc-l-item.is-inline,._fc-m .form-create-m ._fc-l-item.is-inline{box-sizing:border-box;display:inline-flex!important;vertical-align:top;width:100px}._fc-m .form-create ._fc-field-node .fc-icon,._fc-m .form-create ._fc-l-item ._fc-l-icon,._fc-m .form-create-m ._fc-field-node .fc-icon,._fc-m .form-create-m ._fc-l-item ._fc-l-icon{display:inline-block!important;font-size:21px;padding:0 4px}._fc-m .form-create ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create ._fc-l-item ._fc-l-name,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label>span,._fc-m .form-create-m ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-m .form-create ._fc-field-node ._fc-field-node-label,._fc-m .form-create-m ._fc-field-node ._fc-field-node-label{align-items:center;display:flex!important}._fc-l,._fc-m,._fc-r{border-top:1px solid var(--fc-line-color-3);box-sizing:border-box;overflow:unset;position:relative}._fc-l-close,._fc-l-open,._fc-r-close,._fc-r-open{align-items:center;background:var(--fc-bg-color-1);border-radius:0 5px 5px 0;cursor:pointer;display:flex;height:46px;justify-content:center;position:absolute;right:-12px;top:50%;width:12px;z-index:1}._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;font-size:9px;transform:rotate(-90deg)}._fc-l-open>i,._fc-r-close>i{display:block;font-size:9px;transform:rotate(90deg)}._fc-r-tab-props{padding:0 20px}._fc-r-title{color:var(--fc-text-color-1);font-size:12px;margin:15px 0 5px}._fc-r-config{display:grid;grid-template-areas:"a" "b" "c" "d" "e" "f" "g";grid-template-columns:280px}._fc-r-name-input .el-input-group__append{color:var(--fc-text-color-3);cursor:pointer;margin:0;padding:0;width:25px}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:var(--fc-style-color-1)}._fc-r .el-main{padding-bottom:100px}._fc-l>.el-container{height:100%}._fc-l .el-main{padding:0}._fc-l .el-tree-node__label{color:#333;font-weight:400;padding:3px}._fc-l .el-tree-node__content{height:30px;margin:5px 5px 0}._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 a{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:a 2s linear infinite}._fc-struct-tree{color:var(--fc-text-color-1)}._fc-tree-node{align-items:center;display:flex;height:26px;justify-content:space-between;line-height:26px;padding-right:5px;width:100%}._fc-struct-tree .el-tree-node__content:hover{background-color:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)!important}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:var(--fc-style-color-1)}._fc-tree-label{align-items:center;display:flex}._fc-tree-label>i{font-weight:400;margin-right:2px}._fc-tree-more{align-items:center;display:flex;padding:0 15px}._fc-tree-more .icon-more{font-weight:700}._fc-l-tabs,._fc-r-tabs{border-bottom:1px solid var(--fc-line-color-3);padding:0 10px;position:relative;width:100%}._fc-l-tab,._fc-r-tab{box-sizing:border-box;color:var(--fc-text-color-1);cursor:pointer;display:inline-block;font-size:14px;font-weight:400;height:40px;line-height:40px;list-style:none;margin:0 10px;position:relative;text-align:center}._fc-l ._fc-l-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-l-group{border:1px solid var(--fc-line-color-2);margin:12px;padding:0;user-select:none}._fc-l-group ._fc-l-list{align-items:stretch;display:grid;grid-template-columns:repeat(3,1fr)}._fc-l-group.is-template ._fc-l-list{grid-column-gap:5px;align-items:stretch;display:grid;grid-template-columns:repeat(2,1fr);padding:0 7px}._fc-l-group.is-template ._fc-l-item{background:var(--fc-bg-color-2);height:30px;line-height:28px;margin-bottom:5px;overflow:hidden;padding-bottom:0;text-overflow:ellipsis;white-space:nowrap}._fc-l-group.is-template ._fc-l-item:hover{background:var(--fc-style-color-1)}._fc-l-title{align-items:center;cursor:pointer;display:flex;font-weight:600;justify-content:space-between;margin:0;padding:12px}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{background:var(--fc-bg-color-1);color:var(--fc-text-color-1);cursor:pointer;display:inline-block;line-height:1;padding-bottom:10px;text-align:center;transition:all .2s ease}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:var(--fc-style-color-1);color:#fff}._fc-m-tools{border:1px solid var(--fc-line-color-3);border-top:0;height:40px;justify-content:space-between;padding:0 10px;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-menus{display:flex;flex-direction:row}._fc-m-menus .fc-icon{cursor:pointer;width:18px}._fc-m-menus .fc-icon.active{color:var(--fc-style-color-1)}._fc-m-menus>*+*{margin-left:5px}._fc-m-tools .line{background:var(--fc-line-color-3);height:24px;margin:0 10px;width:1px}._fc-m-tools .el-button{align-items:center;border-radius:5px;display:flex;padding:5px 10px}._fc-m-tools .el-button>span{align-items:center;display:inline-flex;justify-content:center}._fc-m-tools .el-button+.el-button,._fc-m-tools .el-dropdown{margin-left:10px}._fc-m-tools ._fd-m-extend{background-color:var(--fc-bg-color-3);border-color:var(--fc-line-color-1);border-radius:5px;color:#666;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{align-items:center;display:flex;font-size:12px;justify-content:space-between}._fc-m-tools ._fd-input-btn .icon-check{color:#67c23a;font-size:18px}._fc-m-tools-r .fc-icon{font-size:14px;margin-right:2px}._fc-m-tools-l .fc-icon{cursor:pointer;font-size:18px}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:var(--fc-text-color-3);cursor:not-allowed}._fc-r .el-tabs__nav-wrap:after{background-color:var(--fc-bg-color-3);height:1px}._fc-r .el-button,._fc-r .el-checkbox,._fc-r .el-radio-button__inner,._fc-r .el-table__cell .cell{font-weight:400}._fc-r ._fc-r-tab.active{border-bottom:2px solid var(--fc-style-color-1);color:var(--fc-style-color-1)}._fc-m-con{background:var(--fc-bg-color-2);padding:20px;position:relative}._fc-m-drag.mobile,._fc-m-drag.pad{border:10px solid #000;border-radius:25px}._fc-m-drag{box-sizing:border-box;margin:0 auto;overflow:auto;padding:2px}._fc-m-drag._fc-grid-line{--van-cell-background:transparent;background-image:linear-gradient(to right,var(--fc-grid-line-color) 1px,transparent 1px),linear-gradient(to bottom,var(--fc-grid-line-color) 1px,transparent 1px);background-repeat:repeat;background-size:16px 16px}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{background:var(--fc-bg-color-1);bottom:0;box-shadow:0 2px 10px #0000000d;left:0;margin:20px;padding:12px;position:absolute;right:0;text-align:center;z-index:3}._fc-m-input-handle>.el-button{font-size:13px}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background-color:var(--fc-bg-color-1);height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row,._fc-m-drag>form>.van-row{height:100%}._fc-m-drag>form>.el-row>._fd-drag-tool,._fc-m-drag>form>.van-row>._fd-drag-tool{width:100%}._fd-fcDialog-drag,._fd-fcDrawer-drag{padding:3px}._fc-m-drag>form>.van-row{flex-direction:column}._fc-m-drag .el-tree{width:100%}._fd-drag-box{height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease;width:100%}._fd-drag-box ._fd-drag-box{outline:1px dashed var(--fc-line-color-1)}._fd-drag-tool>._fd-drag-box{outline:none}._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:var(--fc-text-color-1)}.cm-fc-field,.cm-fc-id{background-color:var(--fc-style-color-1);border-radius:5px;color:#fff;display:inline-block;line-height:1.5em;padding:0 8px}.cm-fc-id{background-color:#df2121}.CodeMirror-widget+.CodeMirror-widget{margin-left:5px}._fc-tabs .el-tabs__item{font-weight:400}._fc-tabs .el-tabs__nav-scroll{padding:0 15px}._fc-tabs .el-tab-pane{width:100%}._fc-tabs .el-tabs__nav-wrap:after{height:1px}.form-create .fc-none{display:none}._fc-child-empty,._fd-draggable-drag.drag-holder,._fd-elCard-drag.drag-holder,._fd-elCollapseItem-drag.drag-holder,._fd-elTabPane-drag.drag-holder,._fd-elTooltip-drag.drag-holder,._fd-fcDialog-drag.drag-holder,._fd-fcDrawer-drag.drag-holder,._fd-fcInlineForm-drag.drag-holder,._fd-group-drag.drag-holder,._fd-stepFormItem-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder,._fd-tableFormColumn2-drag.drag-holder{background:var(--fc-bg-color-2) url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAAMCAMAAABBazFtAAAA1VBMVEX///8uLi5wcHBDQ0P7+/v4+PhaWlpNTU3x8fHR0dH9/f1dXV0jIyPb29ucnJxSUlJLS0s7Ozvm5ubOzs5hYWH19fXIyMh9fX0+Pj5WVlbu7u6vr69ra2s1NTXj4+O8vLx0dHTX19fDw8OOjo6Hh4d5eXlISEg4ODi5ubkyMjLU1NSjo6Ofn5/r6+u0tLSLi4sWFharq6uEhITFxcXAwMCnp6eBgYGxsbFmZmbz8/OXl5eTk5MAAAANDQ23t7ccHBzd3d3Hx8cqKiro6OjKysrf39+QkJAsSMNaAAAFiElEQVRIx+WV17aaUBRFF016BymiiFLECrZrN5ry/58UjrnGkfKSPOQl0+E+e6Asz9SN4Gc+sCCEZOlx+AmX+7WTAFYAuOaJ8JmC38HiRyT2cVQCrNdBTiLl15TZ7HUW+8r7NRXhHr+hI7/TYQVB0DtNkcDbEMZFPJZEXe/Uuq7TIGgaqa9O3fJVfGHHDjBKAZgcCOP82zZ1vfUlCAIPwN4E1yUGu9aDISCrjrVwyvMNoBB/+fLlCMROFc/pbmW9UhrcdrvtBU1JAKzoj48XvI9d9hj51RHDGqzO8xcgXQBYvgGIed5LeF7Hk4+2vTsMI9u27Ip5UInCiSonueddOVfVFmknDH1gEUW+GUVbsBRFVVVTZupUsZDlbQcfD7Td71d0fxVT1PlKNUxs+Va04mRcADikjeGcbF4kjHSgVJ04mH+QwO7v+9rcbCqg25nBr20WrxQAn6PdKYrMIjqAw4C2DLBA8LnrUvW46WZlHJrq4gC4+fRdczr9yNwysu0ndts5LqL2J9g77AMJcMSOA9Q+TVccO1gsUkaWKUBcrfr91coG3CH5NSMO4Zj6FGKoOdiUyjCO75fYAkSF+xZMT7UWwxsFwFGz5rjJIvEIy54O3AfBfIgG7XpSViYsHSjqWmXQ8EohWKpyU/1a5VCwD81jjeBGWfxzTCd9TFIAXPjUVHzmdvXPL03F68qB712hThJPTpJkqg5LPqvp0Yji1G7a/vRGTS4cGenjsSksYNw0bS0Dq+Zb7vjq+9CqajlWJbil0kxld9xo+mFr/UEtgN0SlxnonTRbE1ZEs5Ll41nhKxX1KYHpbr4A3aNzKAyGObxSCAYd5RGTlTbo20PTsBDo8uZ85u+TgSF/yAWo/HZgGAnDXO9MwKqiuKtFZj3DEwp5Mk+bZZAFVZZRfDaQBJ8dp90oZdd0L+wOla0vrmTZP518WR7caJ73/TtPt5GdWnuxuDlApzjw3ax/Zmemo8/nc15sNJ1Ri7nyETayZN05SLKGqR4EMoimovZG29z1wRXnPDkeCwtgMD8w6AzxSiEYg2aamSNtI86IZmgC/EAV+FzgLaALOjcMw22692uzl9EnJzO72eSluZKlgblRACnX0KNcIA7OLY+/Mv4n0XP6ZkzVugi4/Hab74F9r+eUjNPr7Ve6efHC9lCZLMtICq+Wt8Hmra13Oh2DaM6Y1of0zRE5DrsaW5Z10W8DXaLpVrQ5meyyA4ZTqvfRvfYB7qwzE59ovlLkqhIMuk/TO4e3wZVEczgFCrpKnEnWAsnbM9a6hZemtaXqGdfzjBpP7jsB0upCNNcRUz78XQZ0QovpGhh48839YAiw+JGmxXkP4LaZpi09DlvLdNeBt+RDMrS4lAEa2mTclEazlfqtD7PTHE2KIUEbAuhHi4VCNNUWZy7X8ak5laWAN8UXsHIAmETzlUIwBNmetVTaBrRRo7lxAQrmaCmcLkRuE4o+FZJu/vmhOUuZbTE3tsrgdW2OHigA+3lIpSXdiHxUZDmhJ3kbGA4FtThW1lpZQdOaT18PqC+km5YrwHQBjMnQphi39GIjAe0MAN1oRp+44Is+NS3Y58kkjU4keTweJxB1aAvONFdUEOzJlg/FbNMN0w7wmSeaz5Sn5jI3mN7Obm4th2BeNLeWxIAZ1XxQfsD+5IxpqnvgwJ1l96GJQaYy86Vq4jvl4gEFUQmOAthJGSLxenHY71xYrjBtxtlOl9OeRf6mgd5soDadBiSfAIZoJjtcyvUotyFkW+CTB4lnBNg0sBuqGC0Q01stTkYevsHfp5h+5vwsF6GlQGHpjewm3QrAm0Y0XymElvCoSvi5/44mviGP6A3aAdxJbL6x7iIHOwXeNf1+MWf6Cv4M6W/eIuGfIr0vz/Xx+J/4CrqNrFdzXxZoAAAAAElFTkSuQmCC);background-size:0;min-height:90px;position:relative}._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-elTooltip-drag.drag-holder:after,._fd-fcDialog-drag.drag-holder:after,._fd-fcDrawer-drag.drag-holder:after,._fd-fcInlineForm-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-stepFormItem-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after,._fd-tableFormColumn2-drag.drag-holder:after{align-items:center;bottom:0;color:var(--fc-text-color-3);content:var(--fc-drag-empty);display:flex;font-size:12px;justify-content:center;left:0;position:absolute;right:0;top:0}._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:var(--fc-bg-color-1)}._fd-draggable-drag.drag-holder:after{font-size:16px}._fd-drag-item{width:100%}._fd-drag-item.is-inline{display:inline;vertical-align:top;width:auto}._fd-drag-item.is-inline>div{vertical-align:top}._fc-child-empty:after{content:var(--fc-child-empty);font-family:fc-icon!important}.fc-configured{color:var(--fc-text-color-3);margin-left:5px}._fc-manage-text{color:var(--fc-style-color-1);cursor:pointer;margin-left:4px}._fc-message-tip{background-color:var(--fc-bg-color-1);border-color:#fff;border-radius:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d;padding:9px 13px;top:16px;z-index:4}._fc-message-tip>.el-icon{font-size:18px}._fc-message-tip .el-message__content{color:var(--fc-text-color-1);font-size:14px}._fd-preview-copy{align-items:center;background:var(--fc-style-bg-color-1);border-radius:10px;color:var(--fc-style-color-1);cursor:pointer;display:flex;height:28px;justify-content:center;position:absolute;right:35px;top:65px;width:28px}._fd-preview-dialog{border-radius:6px;min-height:40%;padding-top:0}._fd-preview-dialog>.el-dialog__header{float:right;position:absolute;right:0;top:0;z-index:2}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-tabs .el-tabs__nav-wrap:after{background-color:var(--fc-line-color-3);height:1px}._fd-preview-tabs .el-tabs__item{height:46px}._fd-preview-code>code{white-space:pre-wrap}._fd-preview-device{align-items:center;display:flex;position:absolute;right:50px;top:9px}._fd-preview-device>div{align-items:center;border-radius:3px;cursor:pointer;height:28px;margin-right:10px;width:76px}._fd-preview-device>div,._fd-preview-mobile{display:flex;justify-content:center}._fd-preview-mobile>div{border:6px solid #000;border-radius:24px;box-sizing:border-box;height:70vh;overflow:auto;width:350px}._fd-preview-device>div.active{background:var(--fc-style-bg-color-1);color:var(--fc-style-color-1)}._fd-row-line{background:var(--fc-line-color-3);height:1px;margin:10px 0;width:100%}.CodeMirror-hints{z-index:5}.fc-wrap-right .el-form-item__label{justify-content:flex-end}.fc-wrap-left .el-form-item__label{justify-content:flex-start}.fc-wrap-top.el-form-item{display:block}.fc-wrap-top.el-form-item .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;text-align:left}.el-form--large .fc-wrap-top.el-form-item .el-form-item__label{line-height:22px;margin-bottom:12px}.el-form--default .fc-wrap-top.el-form-item .el-form-item__label{line-height:22px;margin-bottom:8px}.el-form--small .fc-wrap-top.el-form-item .el-form-item__label{line-height:20px;margin-bottom:4px}._fd-slot-empty{align-items:center;background:var(--fc-bg-color-2);color:var(--fc-text-color-3);display:flex;flex-direction:row;font-size:12px;justify-content:center;min-height:90px;position:relative;width:100%}.form-create-m ._fd-slot-empty{flex-direction:column}._fd-slot-empty>span{color:var(--fc-text-color-2)}._fd-drag-item:has(>._fd-drag-tool>.el-col,>.el-col){transition:all .3s}._fd-drag-item:has(>._fd-drag-tool>.el-col-1,>.el-col-1){flex:0 0 4.1666666667%;max-width:4.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-2,>.el-col-2){flex:0 0 8.3333333333%;max-width:8.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-3,>.el-col-3){flex:0 0 12.5%;max-width:12.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-4,>.el-col-4){flex:0 0 16.6666666667%;max-width:16.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-5,>.el-col-5){flex:0 0 20.8333333333%;max-width:20.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-6,>.el-col-6){flex:0 0 25%;max-width:25%}._fd-drag-item:has(>._fd-drag-tool>.el-col-7,>.el-col-7){flex:0 0 29.1666666667%;max-width:29.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-8,>.el-col-8){flex:0 0 33.3333333333%;max-width:33.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-9,>.el-col-9){flex:0 0 37.5%;max-width:37.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-10,>.el-col-10){flex:0 0 41.6666666667%;max-width:41.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-11,>.el-col-11){flex:0 0 45.8333333333%;max-width:45.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-12,>.el-col-12){flex:0 0 50%;max-width:50%}._fd-drag-item:has(>._fd-drag-tool>.el-col-13,>.el-col-13){flex:0 0 54.1666666667%;max-width:54.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-14,>.el-col-14){flex:0 0 58.3333333333%;max-width:58.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-15,>.el-col-15){flex:0 0 62.5%;max-width:62.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-16,>.el-col-16){flex:0 0 66.6666666667%;max-width:66.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-17,>.el-col-17){flex:0 0 70.8333333333%;max-width:70.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-18,>.el-col-18){flex:0 0 75%;max-width:75%}._fd-drag-item:has(>._fd-drag-tool>.el-col-19,>.el-col-19){flex:0 0 79.1666666667%;max-width:79.1666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-20,>.el-col-20){flex:0 0 83.3333333333%;max-width:83.3333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-21,>.el-col-21){flex:0 0 87.5%;max-width:87.5%}._fd-drag-item:has(>._fd-drag-tool>.el-col-22,>.el-col-22){flex:0 0 91.6666666667%;max-width:91.6666666667%}._fd-drag-item:has(>._fd-drag-tool>.el-col-23,>.el-col-23){flex:0 0 95.8333333333%;max-width:95.8333333333%}._fd-drag-item:has(>._fd-drag-tool>.el-col-24,>.el-col-24){flex:0 0 100%;max-width:100%}._fd-drag-item>._fd-drag-tool>.el-col,._fd-drag-item>.el-col{flex:0 0 100%;max-width:100%}.fc-icon[class*=icon-chart-]{background-color:var(--fc-bg-color-2);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXAAAABsCAYAAAEEfdn9AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABcKADAAQAAAABAAAAbAAAAACUwJ3TAAA5qklEQVR4Ae1dB5wURdavnpkNwLLkICAZFpaogpKUoBgQUBARRMCACUVPBfXUO/XzPM/Tk/PEjApyEhRFEeEIShZUQFhWYBElSFxQCcKmmenv/3qmmu6e7p7pCTu7ULW/2a7w6lXVv1+/elVdVc1YOXUS1bvDg3JLJ/Xf9JK0Pdl5XGYV9jM2ThsvSyyPfto4o98s3ciH8nBe/Grks2ng4M3GOJ5v08BBah08nIgYSTLL4mHtdXO/G/Jq/HLpQ/Vz7tBGK5XALftQZmyoNq9ZhXlG4sX9Lr/7aNsF05VgztU3zEn7o97MDnM/abdpwODcdotmtud0WlCo8h3mzslSK05EPJJn4Nf2X8wayP3aK1U2Z8CQVe0/n52lzStJ7F4msVNMZhX9aBXCW5FvO+W14iW7i7Ozlk+cRZVs/8UnXXL6D9rKngMXjWv/+RyKmEVRpqKioVW8hCD/adN+vvBv3VHpHjs7P9+JUNCmUaUprDSCsZHaNDNePD+BIfnZ7zys8NBKgsz+SnEq4pQBxAp/tOYVxRP8ZwzztKbfPrGa/E2+e2Qdj6OrVmy08dxvxY+nm12NPNWKmxFHE0caxyqfXZrTPBGJihVTbbz2AdLGJ8qvIk5yh0Iy8PtDcrFCyNnb2kJRsddxu+42xKkawngrtXSJ8OsQx4N0Mz1Msp+lmxTWB49yG208VZb/gg3XJifUr6u4WUl5PR+6juJRwedlmb2hpSHx0HYK2rRE+1VRoScdaC+hAlFB0ruKy1r+r4+D3ndR+XeD/sBFYg9XPtzxdwpAvy7WpYnAGYaAZGXllQUL0AprqlvIw2nUDvQA8p+REeJ/MMbZhUF/AedFVyNt7lUjX87rfZ/OPCAav8SG0lWrCJSHk5iQWqNEo+PWXIhx5GKroevbmOZ1sXv8/oAdRA8954ky1sMKVCsMnjxJZ+BpDTYiwIP/DC4fqsTwqFqFIilDu7lzJmkJQirME/2sOy8A1y2wc7J5EvqBK6GhWqJAH1mH2spb8dMaVZUPdbqZ8+JXAoisQ+50FeeR2qtRdHglTtXYUpEK45XX5gFEyogKdXZThwZLUUVdy4/z0uVFoOk3j68xxlFYKxVKxXmEttU8oxXzir9mnyIaszycH+ehvVrx09IY/Wb8wiJuZBIuHE8L0K4sABAfB7GoHh9OkXFREVdkz8UqMT87aXY7XR6W6fey4xq2f0GeFaBdHkz7TZOWcK+COFWaHiLI0i1UIsza1rzknP5DVtITbag0JT9Dlfb4WYbXy0Zz+tK6KhXHv1fw5H/GC4U6U40s2eWrDaNLpyKJjhpD1/XXDlpP19J2qqi4XOw9FP4eKunTVsJMawTTb6drhWPNH3Z72EbZq80l/JYIoHMrn1NwVi0q68ahKuJWDYgkHs/pXCMdFJTp5JeR7mwLRwQ4N4sUpWmCUDTgyi72vTpJRwa1xEai733C7WedYX1ruzldiUh3l7jY2GDketTpax2BIcCVtiFaCZpZQJSQM+C6b2TJX9WYJ3N/l5FN1j3yrTGewsDoO/SEmeQnvmR6kp+cVi/rAOeVs6pIIHvofy3zlKKa72QvfPufoVT6GIxAzuMxKHctyuwC/TZtx0V/684nJHk6XflN9wNhNIwmfcZQr4j4CygdcVvBQ5mioDB3OQMGca/u2mDjfV1q7Omti6MAtUXypeW0mz+zq0umYgPOJ7FGuQMGLUK6DkCezsGmsORhjc77bE5nngYBUp0OcDUWHg6i9u5o07X+9vPmPKUNQ3qH8zCAncH92ivxr7H3ssG/NljySc3dVww40mhhHiTe2+HzObqZMp4HDbqX+/k1GLcdT0dD5N2I+BDAqf78ZvF8dMV9U+aCtHHk17YX7ZgP06cWaDu7ZbZbm2bMpw37fWxRYNAakHZtmg5w3IhRkLa6qDzLzO80qiTtaF0ihqE4B/ea5kJNnRWopsTBSF75BhvuUcbn9TfdZTpO5zxsnzrU184BMHXUaEdnTEO7+mmE05isC9vWT0cpAqWKgHIDrebfrGpSmqaXVR3KazyetlAHFdKP6z26QpdVC6WKPYZ30pwThb0eFmId8PQz4RoCuOxjEqb5JlKHRADgeg/00/V2jeU3R0uTM2Do/3jHq40nPwea9B78WygMiyATN/oVl1f/DteYt7yHdZ0m+p5zZTe71tBR0A1IQ0PHmXU+HNSUU7U8rZe8NRt5fyEA2837UDc1aQSKaAhw/JS5XTKd0LsbijbmKv9hHeAKWNQmL2sF4FUzjICGWrn9tFV6uuHc2jgdE2oKadOMfn7DzPgYac+EsA5wapAixW6AZjClYCLpXovH0niSbJ5fC7TZE8TpxFUgEBUCis4sy2bhmVY3PMXClSYCITrcaeGwLsgySdXl82MySmJ/18WJgIJARIBzO9usUwPY7UKwdKFTlMMDzk1Dnh/hFfDX0XaqPE17pfqY1UVLQ37ib4zThu3KOdRidr1DWbOmSX7P4XbzZwzT5rPy8/L4DKXbW2FV2/nTb9PSRwS4NoPRb1dpI602zCuH6xTwuJmHw/HjNz9S0LVlav14AgfTJJ2Z46YqpckubwMe1lpUxny8/tp4n6eghzZMfh3gPFO4RmuZYJXMbIRVlWK1+ESbh8rBk3ExGpxP/mB4IsK6tYDaPBxoY5ydpFM7UL+Qt1HEA/U0XcqkA1diF2H80UrysakUTz8z0Dlu2rpxf07/ofPbz/uwHw/rAOeRTq5Y4x2qUsIw4De0oOr2ChWOtlRtcspWmLkzPf14k0I7FjTtgNHv67hpPn4jrIBH/XT87fgGhef0nLjMvgHY31AeAprfDDselGZ4+aB7e2UJOGdudke1BYZL19Jq/Tn9r1+Kx7Uezy97iqScfsO2uYsqf9524fvjtbTkD4I82SWxMRTG9W6zdRCUpnWcvzbOys+FB5pmMW5mX6KDUeCiNz+QYqXc3KuHT2v7xYyQRXlanj4X+46HuXDxsCXgnCDcFRUaCjAwNg11WHvxNdZP7Dam0GNOYFc61nI83Vh3caVFvtSTl4cDh4PN+dFNgH8yfmOgjixfMvCngOezehqM5ZOqANjKEwLgJiOdygpxBKqFWvnRSBwz4GhoHUiaqUNDO0JSQgCnx5w3btOAQf+IBGzTAgKRiuTZpEedZJROO0YAvBvo1RfaCOe4/KGzrHrAse4bS0j3kLjSCp/UE+fsoUIA2mKAesxsLs9KWpTKAXEzx8GmNKt3mMZ8ThpvzGtbRyNxlGGA+yuyqv0F6mvqdIBjguozrhtaLn9BXUMGwLfh8RVOIFD+EFDktixPEJU/SO1rDPUmXGkiYAk4RljX4HdlaVYGbz/etTCvSrUaiSzMFHCyW9FwN1YdtTDasPGqDPjPw+91zg+d+lRYQt1jsUY4r7J81QGOBtfhAMNieY5XnMfxcLgrwBtOI0crOpJi0NRBeh8aycHcnIZflzMdbMJDBzhMv0P4rQuO4JThtELkYUvpauawGt8N1dNAmwakZ9AwfVvve00HJS4fOw8juM4EMGi3AvwLya/cWGwn0/I60/w6wIOSPEXbSAIfG056W0n5piuGTznUaqZEQ3ySXMqLp6MWDW5aLZ00GZNM3bX8yI8bpGzKIj/Sh2klm+/do7Qz0ekAVxoo6xfXQ/poBGXqTtbaVMnnLrzwUPNZSyCxWIjCniVCv5ut4uBj/kM5C0HLQFEpwZuDgdb32rQz3R8COADeg0YX8IaDYAT5sRD+HR7Hr5UOdzippHnTldkxdLJVKAwem91upq6P5vRmV5q84jOTZulnWpxuaO+B1YBH3Iuf6rD8rCJAL9KqATURHu28COiUGTtI+xCoIeFMENABTmADtAoAeYmWFtbLW9pwzH5MkuExyCc+NEnmKayq+NGBLkaU8tTEXEYZZaADnOqIzrEA/9QNj4moN02Scb7GSTIeL64CAYGAQEAgEA4BdfTtdIY2HGNjOj+vQZRjRMY+LHCzx8cqleMGG1A4gcCZi0CIER5tU2nK0F+sbASi+ccirITRHQJix5dPutjR8DTtLBePi/aKOtbDfMV+u/yYuRuLtV1zMCF0wI4u0jSaVsUgZG+k9FZ0wGw60pQ971Y0dvHxxNGunHik8TOGtPM/Nff0HVh/41jblbpUdtwEvMSL0x2C/QFJNryWq6Di0ehYeEA4cpA/DfM9tJy5GDdbtzaSAPX5AkvVaEoJQk578mdEWyZtw1Q3qGEYD34lmNawXLQaSTmo841OFIOB5ypDOKJgXq8Hh2DdpzIbbJVBkj2H2ix4r7fbmxGxgjPywjT/OtjOlXk87gUth1LX+1D8kYaL5+LHUgqrv5e96J1/cFrj1VrAJXY1bkJdygAgdwNQ3VyWkVEs4dLSJpAt9TiT4Nu8+hDgj0lQIHTjMLM8HvGNgoAeQPt7OW0X5v668+l/aOtU8LzTuOgSNCngOy7Fx972uZntImG78ksLN6xE/AG46GQlpaDWa9X39v64+r4e+ftafdDhRK0NT8rukhay5K2T22/kFqq33dEyZu3CPbgK9+jf6sDQjMgQV5L+2y15fe49kPXVpKmGJCWoq7SWADf+JXpsNE73BGniY/Zqux4js0iPujHmMwsDwEy06VLFRCDVjNNSSDNAwNdi8vkVaq+/hHWHuXXELH9EcRI7HzfpfIUWHqNDWVUgmMcovsSNbcaM5aO3m+Xzspqu1MBJeqjfSmM+q7AddmZ5Uk7WfjX7yzf/Y5ZmjCuqtDdt26XjqLdTXOaBLiPo/HI8uPNQx5fpCB6siy5u9M2jqSk4Hccr4UUpdvLyB+J4vbXTcMr8ARzY3ivIwvZCwm1HUDdveB/TdD/1xebOUsDNyU8fEcTTta96eFxcr/7Ibflw5SoaLwgFDrRajQOtalL9Ed+F54Vwqy63341TsEGnK0XE1E4JSxMYu4j4KDoD//BA8dMUa+PGjoOwMGh7Ml8cvYSgnQu+tBMDiHckLlLhJl5a4ab200OIvqcthLg/pfNF/5KbNcM4ZTVwfBvw/pOWQmOnxQIs/m8qS75z8nrfPzxr6ctRm3hKWehla29XTiCmoOqgMAqxZLmDGmHwaG6nIaUUgzEJj8N6YnPTQtlV0phnIw2YUljt/exF7yq25a6OL3U41nDlhzy9xu7Lrm2w6Z6IhQ4CSrsxwjqig5wfg7kyjRNDONyIuwLhiM3B4Lac8TR45XysrhDMvVZppvF41aqNV3o2+XTvRqYdpYOv2ruj/g9TXPM1T1/3Y7fHlUUFhZX2PoCo8AIu46xuSf9VAOJl51xu1snssA2ep0wIOGkwXiEnV7zj3gNw1deidnk39x/2od9VpDzpmfu6D2+yfvwGosfeqOkl6b+PgqCP4vmxj3UZ9rHeycOJukKgq2gfCAgHubWBi7P/0P6DwuUAf0cDf7tNKeDVXOkM/eyqQLekL50O3rbLr6cOhMBzMHq2VuAX/p7iqF7QZ2O4buvKhIDb1tAmEV0ino3IXLt5M0P7N2TFxr8biQMEfGu7hbPauIpSI+ZpVrJiBpklJDgOqv/LcEVAeOLmwGqH0lZIWTwd2G3D4F7pEbDYsRlmtB5HL9cBZf0Kwf8C15edlGcp4FY3ysqciGVaMOq8cbxhaJd6VLoTAMsKLYRXmbkoK/WJRz2wufcnqLBbIR8BF8X9VvNyHuIqEBAICAQEAuUEAdWCEougnN0xvpjHWS5BXdoICBMlDOKYCnuHT4eFIRXJZRABRwKOgYyyURa70gZTW2h6D/Ovd5fBdoWtEure044IQj0lKNg9MHpXXwTZ5RFpZQ8By1kUbVWxUGgsFgy5zeY7Mf/qweA2MI/tUk4ZWq7NG0d/fwhlE9ThVbyYjWoqT3kdnhLYJkq2WXBQfiNmjNbzeiKOdp1fSGE8/RfioT7GCTmNuJYfBCwFHNqrK25uJ6UpwXVheClxBcItSLyQ/hyE5Cho/qs218/aI6k9hV0pWC1XEm4aPpATi5M8XnyQGzzn0tdxVH7wkBZFOXSE5DzqbvJ6/2lEYcbuvxJNvc139Ki186rD5Ld1EpsJwT0PdSKppsU8ryv0OEIB8dNRBhawsfXwK1t3aQsvfU0RYeHKOQKmAk7nZ0CYW0CgluImp6GNtPbYzFXlb+Jo3tztY+kQlpZYIdcSL3lvQYaIds9iIp9239KXMFUH7xZoUjrg7A3EK7tkKfHcTXfM+bH74xBwqZgLN8ykG/FG06qOJNTDIMChTsbXPOgjEx62DeV1BhidfDI7QVum8aDq3q4q9QvlIGLKOAKmAk4mAASV9tf3pvpDiOmFKOk/S0cCAds84CAtEKiIXgsbV8O1Xvafdml/nFsTPQPnRq/MJ6I+L+A6sMJv2Qxfn9at4bYVbl6l4LqJYFD92goWCsn4U96cRb2AmTMV1zKHgKmAUy1JaCCnihaDsL3JNbVZC0D3tTYeJsd2CE1Ubl/Lme2arJuwHrZ9PxjB/TweNjV4CEVfDcNUjT8mr/EBs3pTG1MhInPSELAUcKoRhHoThLsDXZVX9x7WFsKmaPVgugeatQ6WKz4KDd4NcYEtVDJbSOl2DvmeQnpLK4GC2XEMD0oBzKUC4oPyO9JVOIGAEwTsBVxmKyDctPgln6YDsf5XRw/h9yJtn2KvBmY3vobibhVJBSCwT9nRwT45At6TIxum2nESaWczAjqBNQUiOMCDyULfVrB2QZMENNusiZKXovRAJsVb9SBiUGkCVjmMwn0UTiAgEBAICAQEAgIBgYBAQCAgEChFBNRxo1gu6wx1vlxW4Fa2cRODTGf3R1CXMwSEgJezGyaq6wwBIeDO8BLU5QyB8C96EtwgvAXtibelD0VSDF7WDIyETtAIBDgCcRNwvOmsyJnitf4p7g93xdEAo/HKX1nNF46WNizEdG6gtgBa2x5mzYyybJixVXiwaJ1NzA4HFbXGIrKIT8myKxBrecIeHWyZX2YbMLsw3DK9jCXQ6bz52R/WO5g14yuqmttbcUXb+R/cHkk14yLgtP7E72KnV/u52GdYgLUnkgokhUZifVDn/0DgPsLC7yfM6gABugBCEFhjLrE/42F4zowu0jjgQ0eMdcUBPY3xQC+INF8i6NC2l/DQRu3yet83srjC4av9nqI2kt+d7/Kl59bacc3zdX4csj9qppqMOLPd7fWw5cC8FkW7XfpvyPk8py6hVaDN1vylU8bh809osoZ4k26D42ZHvAxbTteflRfSmggicHO74t4qO3pQ9vUAoJ0xG2goPSDcjBXHQbh7knBTOdhQ0Rw3r6qxTMdhCQIQpcN6f+XMQCfZfZ4/3DkDrl9BglVY+Zcn/J7C87CTJBUHbDbwpfxx5cHWHyylNDpD3AlfE9oeXjc2uwSF2yRdjfqp6zPr1ICFJ+kCDk1yO350wmvYn8fLjlq0I6JoPEm4KWxKkFg5WBIH3M0mjcEZQPhz4e8TDC9BvUIeAE4byRUPy1UQbmUbH6d3ebGTKEYHk/DFGFlEnH1np+cvpDO/6ezvcJnogHyc3PtNODqzdNyLRsDrHbM0q7jcfiPetkqjeFMThWxPPOW3aDI6KlSTr8x4IbitsL58plIhif0IAekPMDcjnBrUGNdgG5J66CN2Mw2D1H/vpAHYnN0FvcKPMM9+pXzK6QM+Vt+UhwR8ZfaeaVpkkdtJKURGGj0VCTed863lIPlSfqx8+Pyn628bsem3+qtq/9Zg6XUlFQ6P5TQ4lroqnRHu9PBNaNtFnEekVzJX7GhNBRyzGgMgEA/zjBgYbYNwrObheF5/7vZkzz+qbTOdRXHJruNt58+4KdbyIHR1sDtIEV7Y1buhUZXzrUk7Q8gDg7XTwu2DIdQGG48BgUPnZxnIdSNmhmizSAGMrwpWHPAAZWCA3QZ1+cGKJlx87lU3vu93+RyZO+2/mBXxTJQ/rdilE25ZKunw+SdtqV5QgkPJ1Kl3dHj1uluHv4yol/N6PnBDYZVd/6fUGztdc66+YQ7KG6SEw/0jLJwjHo6ruQYPmyuOBKeqbR8tu4tNNRFMirg4CNshPKRTIeQ0c3K5linie2GwuUyJk9laPACjTxssWkpnfjxUocIt4ZMwMjvIOeH01D6kPGhfKB62lhiItoG59DFPD3d1FVX+zpeRf284umjTcy+/UZm1UPJjcwsJN2TwbvRQU4HRTorHVx0Ok52LmbP5Wcsn9tvZ+fmfjp+z9gNKw33Npq9EpJ1sUERhOwccHqWNvFau5i+XEm7cdLQiC4mnup0VDkL+dwhRT97Y/e0mNyc/eqYDAPZFpN2mCDcnCF5zrxo+1RAVVRDlDAD/IaiHTqPh4RoLob8HgtMXZlM9J8zrbL9JZzo4yRsJLX2dgdORuUGfLEEbXqdpYD5QVfADEerej0xb+sSJ5EtTP3uS1+shRdg5H8urZD3WwSkNL6acrFHpnG1DTxh/tbcMtZ25cSTgO3o+MoBGyvz3c+dnYp8fll3xUtSW2BkTDrR6r8nhJl98QdNdlIabQwOVVVq6I02/rEHt9KUUdsnr+dB12jQbf4pJmoQHiAS4UTCtPoREOVjIhNZRVI29FzsadLtLMr6ItAD67Ainlfyen8nv94V+vQJCrZxyptCSyedi1dp/MfN6nhdaPLJBumTzOUcoJnzy8Tuzn3IqAi/M5Gpqg5vQKVF+hk5U6yTooxhdpBP2MRajZj/UYna9/JZz/0cRNN11uNGiBbV2X35EJYBnW5977ijK2K+OCxpuunW+Nt3GPwyIdIFAF0KgV8C+LkD4mhB6nJwF4PbCjLHVPiH5TCKsttyZkDqKKqmY349nyDjc8f8wVhkL8+kZCLTqIMyj0MZxiPiEIiEctEn9S3gvpbATB7afAbMHneSJhNaRgEfCsCzTQJhr0nytto77O7y+GgKujgHw8aSlmNtVTAVorj3t533UV0sfkV9m6bhhl9vZlOAzGEIzGaZRIeeJhyE7moEWBK0B52F1RS+11yrNLN4nlbRCXZSp1Lo7BtGpCmu0wo223Yv0cdCgf9e+yQBdQLiDec14m8b52Zvg6UzAYf+HwyvpAk52HQZbjk0daAof7MAPTcEyiTzR8OsqJMyBJOl4h7mfdCYThMKbBg7e2GzNExdrXxykn2rwbNaSV943YRW3KGi8MdBak3BjL8ID0Tlaxhig6ex6Mz7g/4pZvFVch3mzbeuDepPmpi/DTQPvEOd0ilBhIOHziTKO6YvQ4b0ImS62LukCDuHuCJBq2tYyxsSTtTZV+rnjC98G2LgKOsz9WLl5bZa90+aHXrf9gNtUQSvcTTdOuLDynm7HYiw2ouzQ2gmbBYmoAtESyYGlGJAvmhWNi0MvMwa90fcQ8orhGNKkAIQ77PgtjPyHK6Z8pFc63OGk25cOAZeKIdwdea09x6t7M/d3u5GHaV0F2bSlJdy83PJ4hdbuS7941x1Cfh56tJV2fPFE0VTvKjsanpZ0DY4nEe88Eu/wNTVlxsRYEh0Tl3vlqM89voq7Wi1+Y5Ix3UkYbRnthD5etO5S/sJavOptxYc0uZLmYndCNq6BRq+H32ZMqf6DXoy5rTKaxJsKOAr4DF2F6vhbzJbLX/hse88JanzTb59QbFo8ybrDfpB/j0oUziOzzzVFhaNOSHrb/70/PiGMS4kpxiNbSqmo0i0GA0/I1ptqoVEYQ6YCTgxJyFXGGg8JuSaoeo1CriYIj0AgiQgkW3kmsemi6LMBASHgZ8NdFm0UCAgEBAICAYFAuUMAY8OAEyc0cSQiu/KTrSKjFlTJQkDY4MlCXpRbKggIAQ8Ds3a/ZhhSkVwGERACbnNT8Io1jfZr4qXX7TZkIqkMI+BYwPEyqQO1Bxkr4ManluG2xVQ1Em68Gg7sTBEnasWEZTIzOxJwCPQoVPYSXmGsArxTWcPMI8rTlTa5Wjj6oK0q3Pi4MtaYDLAgFdFlHIGIBJy0GTT3OAh0FWN7cJDNpRB8dUWeMb0MhlvSTnqs3/iEjgQz1o96JhzMsykYvw3CHfEudCMvEU4+AmEFHALcEWJwh11VIfg16AFI5IBMecDwKUO7eoRLg2C/jd/nKp1bf2QDCTcOn9lI6VjFtgXCHbrdTM0sPOUBAVsBx0E2o2GC6HZYIDyINCCWLIbkLaEd4hJrEq+GYzX7hVQH4geTYQ/OEVH2RtIGBidlUA9EdUYexbzCTqAH4JdRVzda8S7x0go3Un4AzSCKF658I2C5mpA0pm6/hAuDLhyzxptbLLENEIQPEP6dx9EVwtQf0rIXZ2fM0cbb+aEtb8bevgyUp1uPjUMXH0Lv0Bp5pypLeFEpvs0MIq9sO7Pjy9NUexrb3CDodLaH3+NjC5UZEpl1h6BfhofpVYUewg275fROcc5EXMslApYCDo0W2MMnsdoQiOcgzD2MLYQ2HwHhWAMhXA+N/hP2V67Cp76PO97E5EIOGX9G52c3hBjJKo2cqXrDeGBv/xXtOQ9kj+IhVRxtdwLvUQi+jwhFuOHfDLohOA6pPtqhCjna9YHkZb8Fcor/5QkB3E8TB5sbGrUvDomoAeH4ChQhwq3mkllXCPoFEI75EPQMaO/e+N1Jh8CoNGE80M7vQ8QDGhS0NGglkyJoVuhyu70VVlFE+omGTysJmA1BPRvqiAwBVGQWoh41RJOR8g0eUGV7FMrKgVkyhGjwyfLKWlqlXdoI4S83CJhrcJxD6PMpx2S1gvDuh/A2CtOidMWkwT/uIFSaEI8NvdKhOoWZux7zFFde2GbhlMcUCpk9ySkheA9A606kMBj2bLt4+l34fn0JT4eQHvb4WaHuSAM1MbwHD9cYlDEdJlV5mgkK3zBBoSBgrmU1B0JCuMMe1g7BU45fUDGl8yoicHl97h9VWOXnv2P7UIY37dh1OQOGLKdsEDj1rBDMSX8ZjMvDw/YWtGsuhLKFyl5m+RDu42rYxIMe4RrwVHoEumKc0F1LhgdICLcWkDPIby7gmgbCRFEOf9FEhXghILqToaBqFUENITREFGbsCWjsYDzOwqtLXmjTDtDMT2EvaH+YHzn46WY0MLPyloGVCAoETBEwN1FACuHaBU3XmHJBi+dITH+IO8VbOeQ9YJWmjXd50zcGvhSgjQ34MfORiZmNi/AE/oiYFQaKRYZwVEE6uvlEzRz1Yamxt/fgBhvu+yEqZiJTmUTAUoNDoE8LlYvNQO23W7UApkMBT3M5OFe73fwZwzDdd4rnbbDhwYvI75VZVRwIlIqeoBqFodF/RS9xF7yYncRpVjF+L4d4kvOmnNKdrV3sOa4LB6jE//KMgKUGh2lyjDcM57/S4YqfwNZWjuvi8RDsGnhCNoL2U2j5QJoU2fdfyBaG0GbhCDWavtM5j8SOIv0AhPkEdR9BtxT07XhAXAUCkSBgqcEpMwTYh5ctS8iPgZw6L0xhchDsX/Eq/1zye2Qcig6HI3Yj+sARCTfRWzmkz4ZwL7RKF/ECgUgQsBVwmAlfYw54KwS9CoStvhVDKNnraSYDJyxtxlxyRNODVrxEvEAgnghYmihUCARWWXiElyH14Fc0uVXh/hJQudkyq/RkxuMU0nlYIag6DIJXU6DZ6ifn/dT9aTWen9QF84g+8KQ6TEvuUQPCU64Q0Nx263qTFrdODaTgzWeZdcpreZOTutzeDJ/ZSV3BXmhbmW2QqFjECNiaKBFzEYQCgTKKgBDwMnpjRLUEAgIBgYBAQCAgEBAICAQEAgIBgYBAQCAgEBAICAQEAqWFAFYz6V2iz5jVlxb/kPHMV9Ge+GMcC0dxf2JBL/F5xf1JPMaxlGC8P+ItTyxoirwCAYGAQCCJCAgFnkTwRdECAYGAQCAWBIQCjwU9kVcgIBAQCCQRgYi2OiSxfqVSNPbuvI2CLol3YT43uwj7iI7Gm29Z44czxTK8LvZHWatXWawPtogNxAk/KcmoG86lKMFLr7nJKPtsKvNQi9n1DraePlfye/Jdfs/+lMLqK6sc7PFV3S3Dfok3DmVKgeNstWoQsKHKYSiGluIEoAKcrP8BtjKrh68YSKIOYje1G0cDxN1JhTigtkwhjCb62RXAeSK2zm7Fbzg2mhZH03DAVR35X0DeHiXYp4j79j2GczfhlKiwR6BFU57TPNhw2x6K8hLI0skUL5uBzlQ9B9Apr3jSA7dG2At5bzx5RsoLZb8asmoh0syC7jQCKSxFLmZdoJP6Qm90wfNUB5u306GfOivnR7rwn8mVZVdJZZ+rpJkvY9/Fhc1nPXaoOR3+y/xQ6FOzvnr5Bdore5ppdL6ypV78rA4UtOkX27DhuQKsvFqwIvZE19SzOxcE7WJo2ddx4gG3/triCJDNeKifgLR9FAk6yreMPOw25HsQvHTby8HnPEjj8xjNTEjmkSGQn25oywXoSFjwww0Z6GBux1dBvkLnlfTj+HCY1es4kP5WYFgxEszjSFPgSsH9L4kjxzCsCjN3pu+64MURxRWP9JfdxdlhyHXJki91S+qpmvMarx//QfrxJsnvfPHFGogUfSuhhWKiwFohESPLRXvyhq4R5gFXSfpvt+T2G3kLHQHfetFbd8SiyMuWAjdvcMJjYaVNxY3IxL0w7TyiqoCfrXV7DIftRsUotkywQjtBwCajfRVMOUnsb4gfC8U7GNa47is0nB6y2g5K52X64IUSB6A07heMYO7nylGfpKFKoBf2Dgxu1gedFH3lxtThHvdBQlsYArNxSFvMlo9pIRFEKiMUGVhK7M8RkMeTZJLuOP14ctbwOth6RoP8pp9OgsK2vBcacksvKfyiyvuz83o9+DARQaFvrf3ztffW3Tp8r2WmBCTguegKTf0OWOsMlngU5fMU9IAiz625p++19TeO1Z88H2EBQoEDKCio5bhJyyPELDKyZGgybc3wiS1Yo1OgvPUfYZHZVnQs98OangILoh5lUa4yW4vr26j2ixRH89olHvYsEq800XZeKPsXoYTeI1pikAwHrY1qsqtQfuMIq1DbncLuhqL/FPUvVUWgw8eHT6mlsC2od6lJCXD6LpGFbe854ZqCzB34hEViJg2pQzjU4sMvDzX/0FvhePPHzI7p0mEchwCMn4/w/LRP8F1yHWm4eK67uPpl0cyRO1XgPdAjUW9k6vBAXRvJ2W6mmUVkXBCAYmrhd7NpYEbvE7RuJw6NvIlGBfj2C7neEEz60tazSoj+Sex23N8RUCxuTDuk4Wp0KzCXPEF5MWtgbiSMRxh1uYxb1SjuCJTQNphB2/EtGx86l4GwZus4LQdHHlPNB6HT/gnNUz626pRHrPQ425DOpf02Vj5O8qO9CXGKxd3849n4JItygL9ZIS5/6saMQ+e/0OS7R9aZpRvjdnZ+vtMfdTZM8LuKOxrTcPc8BVV2/BPfOPpz7R3XDUmURQ7ZWATl3Sik/ARFHGk890ko8DFO2TtS4Jisr2HyUKtl4mts1WksW95cbr8Rb/s8py6Jpt4pBTXfyl789r+iyRvvPDRHLXuggKG8Nbz3oVMdgftyAMpb5yCgs3FP50JJTsdtC3xQwDg3i4+IYfrhQShOReFAeSfF4YGqiTr2gBLvgQ4qZqsfo4pmwOQufAB4ZrJWCuX2u3EyhtEXJxJQzLOubDt/umPFEEmdtl8yfnBB1Z+eM6OVZNfRyge6jG2ybsJ6bTo633RgvgFxm3A/h1Ma7ukkTMP1Rfhi6Jf8oKK/gdJ2dnrhghPnrH1Nlvy6L65Qh0EW+fFa6//ccsWL9FGOuDkYDveDWakpb6q4z1MY2llF0CLDIx1BjjORRFJUQnQtc8V/biy6isCAJssOH6RD/qdgqdyF8AJY27vxcFg6WOz0qaMhENquIKLRFalH6Gz2BuJfwUvjGMCxLDbhCaj7ecCA2nQclvpshENehCE+xeVlI9HAfZgVTwFO9K1jar/qELcVHZ3tcfgqsUNPxd+z3j9Ra2NCFXjFoy2mOaxWROR5ve+9ubDyvj+bEacfb/Rk1rJ/z+RpkKUH0VkOALADMYI7gXuhe6GJ0cG93DAE3lVAT0bFx4j/T7ADuCiv15+GFWbufprz5FfqQFCXzKylk6bwuJivMrtaGac5ZCSnwHDCx93r5A3dh5/tR2scsrYkT6gCP9xkQa0D2VPfxIA8ZKgr+VL2NFv719sq/pqtflfNspYiwTkCMnsjOFWiy7u/3eTmRxotmOYqqbS67cL3x/NEKKk18GfD0q2OB+w3nRbjRJqrP63Yta37uHtKMvLHItrlKc78pM3/ppo+0JpsCfXi4ac5/Svwq6QpqCqUxxi0Kw9KYrEm/rTXF3g5C6VRqq7pmidX5PS/frfs8ibE2oNd8kvTr59eHu9G5Tf+rA6U96NmfDP3dxnZZN0j3wYNgim4Jy/BCHgJ2L+EUY+lw4vouli9dBD34Bjkryd+9HLqHoTvQ0c7kjqEnZ2e//l4vbUhHRLVBXVaUHvXNYcsC3CQgLrXUMp3kIdIMT23KBrF73Zj+SEUv8PiFPKEKvDfG37VTXYXtTGrGOJrHmz2yXlNf81WPpBjRlNacRV/bzn1j2rbMlGeo1UoLtl1vMqBznNKq56xlHOw1fSG+S3m/FeWvEpn6ks7MWDTgEFXZe7vPrLJ+vE0pFUcBPc37je77rzwH51P1Fk3EUPYWtp0b+rxwTlXD81qu+S/Q1xFqTCi4uJugvJtgYd7F6aBdqNTOQjGejUrsYqo8+UorYFdiaDJwsOVhY5qMXjk2dGWZlr6icav4hPftyWizPQT505JBN/8Vh9PAN8QHUfTiaS8qcygQZBluFuh1ZHZMEzjPYWPfg2Csj6oI/Ar69Zf5cYE8d7S9/a3SiocuUNHh+KoTlDgqkFiSHcUhMxtQl26O8oULbHMdkervKnIhCrwaNtU2vmCVsry0i63NMrLbzq37sHs9/8ru3znhpSHF0LH66+ekVt3/frWSyeNdJ+qYWoknWj4dZXdbV59wZdyqmcID8aK0o81fjZr+cRZJmmxRkEPYO5bxk9inUhzc60BPwwlNRhxOcjUF7wupuWEyJT0XbLB1RSfRdyAMkDodxe0N6tGtf09PqZ44DsWneRgbGwZjM7X1LKE0r4dyn28cgdl9iUU5lYznrjPtGGM+H4AOZhMZeQ3+9SowJnfUxh4h2PGxGEc3iX9Ddb/AofZoiOX2TPOpfh0UUKBn8bijPIdabys+v62r0FxlzTTNoxeLlU83vxvJ6v8+Ax0YAVK87kLL8i9bMyWSr+3HN985fOfc/q8PveOLqy072EIWIicuL2VFjbZ8MBjlQ5ekJQt9NEob94uKI50KJmboBwOQHF8Cl7ajisFSr4N5l/PAz1NxazFLyFz4Gp9gh4ovXHGuGjCqDttOEmYa//FRzTisXTA9DVg+hqUd4gDtmMQOUFrmWOT1SvoUE0dWPwG2t488ZwfRu/CL6Hzy5CNn/ES6FbstHyXl5uIK+TvL7D2V8bCO+TBjIVZuc2LFyyYZ2tcmvXHjdsFwVSVZbzKPlHn28ydnV6cIrtL9FNXsuuP6vsuvuXcDX/KCZb1+ZbLb328JP33Ubzsk9W2v5jTfwjewEsy5mUb8nh+xdkO+6vt736/hgdPKpdXKIdz8LDejQ5qL+5FXTRCeR4QL1ziEKAXy6edjfV9mqj0fXg+V6MD6oZ5+dlQtMp+iXjVAvxOoJO9HiOKnbHyFAocCMIqcGktglhBjSQ/lYkbGFd3su76jF3nT3xLr7ylwsxDnW5v8s1jytyktsDsRe8+ixfNbx1o+84cPqcdMtWChLSCuhOzlk2cLHnT4lxjbW2S6Jft58+TWLMzrmjI/G203BUrf2rgTcnvviTuig0HLl6+/goasv5boaN/HcIfkyLHyOQ4+NyHToEWDMTFCQUeFxjLBhOazmg3f8awgqrbK/zU9emX8XJ2etO1Ty6zq12tnVcdxq9HXp/7R+Fl2uOc1u2r8HXdrbeNr/nzpSTEyXEyjiKQlIcoOeVTqVQH4eKKAC13xYvJI1De5cJhRLYNctCbRmYYqXeHEn4Icqkf4Vq1BC8pYc1PhPJeoIzs4mwCOVLg6D0P2pWPN8mHtOkpRVUPFlg1DPHpBXX1y37oSFKLuTBigzkp23SbomyTMAe30SezNNwYyFXiHW6mj8q0mveLtQYVjrYsaLvgg5AXPXZ8cTra+1D8Hx1s+UnbJt8++p0dbWmlQeAfKu2RUWm1zaycRM9dm5Up4pwhQFMryLHaiVzieU+Yc6TAUelv8FBZvkAw1rPJ2se/Qc0t6Y2tovMpwN/6BUyCdgHSZhc8PLud3BRj3Z2EqSc2W6PthEciaEnxlxXlnYj2CZ4CgTMNgXIyiDnTYBftEQgIBAQCsSMgFHjsGAoOAgGBgEAgKQgIBZ4U2EWhAgGBgEBAICAQEAgIBAQCAgGBgEBAICAQEAiULwRoQYTOdXhQbqmLKGeBTS9J27VVFu3RopF8v/H+JL9GogYCgfKLgJgDL7/3TtRcICAQOMsREAr8LBeAWJuPnWlpOBbgHexMc7RxKNZyRX6BgEBA+Z5v6cCATToVeUl0FgL3i2v5RIAUN06QeRe7Y+lwrB7YxPUQFHkerteVzxaJWgsEyh8CznZiOmwfPeT42sSlPj9rxlLYPpePfUIsEJeOTZVjXG521FfEFtCHdh2yFuRJQoC+aejzsNdx7EA3wxbhPHTLo3Hcwu9JqpooViBw1iGQEAWOc0U6ujysG05ZdkN5Wzp8gqiq5GHDiQQKYSsOIlkGpZ+gDfOW1TgrEqgzhbVMX1IZid8+dKLXOvkSiPIxWg97w+tRvjOpxWwbvnM4WvkwsPEsBS2V8AsEBAJxRyBuChzWWB2cpnwlpkcyoYwZro4c8reG5m6NQ57oI7tf4aCnHx0xKCPEfpfyPb3LYYlWxJTCKkwdJffzXRIbCb06AfckTQNRfZ+PfQeL+QXUc7ImPsSLlyQVfBJ7E4r7Im0i7tdWv4fdTIo7WV+q19ZH+AUCZyMCMSlwsuqgcC/Dtakyq22ntGV2MQ5I9+Ms3E/tgMaXMFKRfmXwl+/BMYxWn2Wy45OsNCjEC6HcapIxCuXXEx3Zdjo+szTrgxFNTyjs51BmDZNyixFHGJObgE5mFGp3LTpN3bcwFcXN2FtQ3hcGSAP/0ZAtGCndjOsxfNFdOIGAQCCJCESlwGmKxBOcIoHytnYu1hIKrRcIUoMqrB8UxvN47tcgnIv4IuvMSkptL+ZVMVcuY7j/PTTiGnQANpMyYbiFSaYXrbKHNYHSPQIFqD/q1iyvxJai+coh7zhmsj+NGtDewLm/RE/YpBVJ23o9cHdRxYO3IaKy5Evdji93/6Xx9w9sNGMZQ1xLYPsS8rcIeUMss3UYGUzANwr3E38A+CDad2ewrDrofNfA/wrqO4kUNzrMt9EXdw6mBy4y+wHvKm6maRe7W67LIwICAYFAQhGISoHjuyw7MLddDKV1LpTGuVBcyrcVlZpKrAGU2GVQChlBpR3SACiYrkjvirzFUJqLoBB2hRAFIzBvewxz6b+A10Go+xR0BeGUvhUr23jUoxYOmB+mdA+kAXFeN+JW2mWCpX0dPs7azy2zDVZTPpuvGP2x7C5SD3+X3cUtj527YlZe1V1PZS19eYYdf0dpEisBfQM1j8z2ANfxUMibKA7KW3WIe0nysWnorD6l0QIlgHYc7sk4k0FULvLeQqMgKG/mKmEVij266RiFL3gWQB4Scm/UiguPQEAgoEMgYgUO68vtL8aaXxc75aUPK8hsCzhtgbImZZeF8L/ga6FwDzEBldiQf8ibCqXRXyGX2VoogL9Cgfyis7KDigdTNfQZDwlpmVIKO+nz6j5EG8LbaQTadTjFB8vTzRrCWv0VytvqSzQtUede+KVguudrKLf/EgRWzlOS8V2JRoEH6XwZv2dtsMoTVTy+rwccO0LRdgZGygcZ7G4DtRedVXe0YyzKw3cw9Q5t2uzBh10VxR1khLhW3hTWF7fC1AG3z/AZqj2miSJSICAQiDsCEStwUphQoD1hsTXX1sLtYi5Mo9yFZ9zqudaSW/sl1gV8JkKJvwelURMdQkYIMSZfoeB/lLzsfyFpcYiA8i4Em+1QQiEOyqkhlPp8UtxKIrQZ6nofKW+MJEYgz7qQTIjIXjT5OVye29vh1dbFFY7UqXyga26t3Zfrlk2Cx3X41UMnlQulutSMT6RxXHlHSo9O9DUo8xm4zkEdzsF93ASYb8M02QncB+EEAgKBMoxAxAqc2gALdWWxS6/AMZVC6m4JFNvlsbYT87L7ocQbW/GhuXCphK2AwomLkz1F0g+XjXnFl/pH31CG0okqe3vc3njDg99TGpR3Z1V5G4jRqXVHlKLAQUfz6I8h7noN2cF6G+95DAp/mSZO9UJPfqzoSpOOQyWKwAMFfC4w/Ds6lGpGcijow4h/EPULWacdjOuF3pE+Kud0AZGxKBEWCAgESgkBR6qQpk6QQVFohvpth3KIabkclI8fVt8OA19dEDTroLxP6SJjCGy+4qaF5sqbmMqVjzVYOXPHxY/0oxApWfx7GF7tPC+pvBcxB/5ykKY5vrb9vUF5U1JdzOW/C4z+Q4GEORc7HxhdiNFLC+MP8d2gmbPtyi7t1TJ2dRFpAgGBQHgEHFngxA5zvmtgpbWFpRyYSgiWgSmEJVBQDRE8/UIzmBbJBRYiKW+Td2iB3FCAhXhR+K1iqUbCMAyNN/M3j+z2nROGjHnTTjTiNLBUP4P/M3ofgJpWpGkGKErVYcqhsRow9zQxj05e7N7zJmUXpxwNsdjTCmvn18+5o1yuxU8emqJkgUDpIuBYgWOlhg9b4r/GnHBPbVUx+pfxNw9DeO3UgZbE1g/lb/+lZ6wIgfUf4yTD6Sp4jlf3Zu7rNvp4/dUfINZ0JOL2pa9uteS113kuUtyYMhpT4lXXUeOtKtsTVOwMndASjBCeBg5P8jya615MQQ3HKKbMuO09J1xTUGXHP80qdAKRRen5tzb99onVZukiTiAgEEg+Ao4VOFUZyjsH89EdaCs8bwJewPl9xezf2EL/BMVhuC7JKWwErOZsvBTLhKFaBdMNmZheqAIrmvwVeV5cj+Hl2z/oRSHmiQeCr9HQzkfENg19LN4e6CyegJKd2mT9+Bls/fjWh7I+rH+03srLvanHW0uy+1TaH/VXNv72kWVub4ZuRFDiwxy8rEyh8I0wVNECbWWgzKcjTD8Gi9yFdqmdTllS3to6C79AQCBQPhGISoFTU2Fpr8BlYNBf4C9k09zBNdpQ4plQXjdCeadAwR2ABjtAdFCapy9BP0VAaf+sXLEEDfleQx5alVFXIaZ/MspCZDwcRhA/Q8kuwuqZjaif4urkDd2H33vh+AeV8RRdVVT1HJpbq7xDU0WMQEAgIBCIDYGoFbjsZbtp+gD2ZSqOn5rtCu61hD7rgA0flzipFubTm0KJ01LEGVB6x5D3Iyjw5rhehXj6wk6gA3DC1IIWc/j7kfQSV94WZCJaICAQEAiUeQSiVuDUMijqebBkceZgYMoE18GIVraWO2158KXoKMwhfwMl+y2mindgzvm1khLmgRIXLgIEgNMp4GjpMHWkW8Hj9qXqwsaMLm9FXTo6vRLztwXBnD6ki3tlhFGEBQIJQyAmBa4o72DVgkvQAuuZY6muZkqCNg9BKenmoWNhfabnxXuHxdCfWVbtRD+rc81WPbsYEZb0OmIE8J7jJ1xeMcarYaG8VSiERyBQGgiUoTURpdFcUYZAQCAgEDhzEBAK/My5l6IlAgGBwFmGgFDgZ9kNF80VCAgEBAICAYGAQEAgIBAQCAgEBAICAYGAQCAaBP4f7gEVmIzBYlQAAAAASUVORK5CYII=);background-repeat:no-repeat;background-size:164px;border-radius:3px;display:inline-block;height:21px;width:21px}.fc-icon.icon-chart-bar{background-position:-2px -2px}.fc-icon.icon-chart-stripe{background-position:-25px -2px}.fc-icon.icon-chart-line{background-position:-48px -2px}.fc-icon.icon-chart-area{background-position:-71px -2px}.fc-icon.icon-chart-funnel{background-position:-95px -2px}.fc-icon.icon-chart-gauge{background-position:-118px -2px}.fc-icon.icon-chart-pie{background-position:-141px -2px}.fc-icon.icon-chart-radar{background-position:-2px -25px}.fc-icon.icon-chart-scatter{background-position:-25px -25px}.fc-icon.icon-chart-custom{background-position:-48px -25px}.fd-theme-purple,.fd-theme-purple ._fc-designer,.fd-theme-purple ._fd-config-dialog{--fc-style-color-1:#884cff;--fc-style-bg-color-1:rgba(136,76,255,.05);--el-color-primary:#884cff;--el-color-primary-light-3:#a47fff;--el-color-primary-light-5:#b599ff;--el-color-primary-light-7:#c6b3ff;--el-color-primary-light-8:#d1c2ff;--el-color-primary-light-9:#e1d6ff;--el-color-primary-dark-2:#6e3acc;--fc-style-color-4:#e000ff;--fc-style-bg-color-4:rgba(224,0,255,.05)}.fd-theme-orange,.fd-theme-orange ._fc-designer,.fd-theme-orange ._fd-config-dialog{--fc-style-color-1:#f27024;--fc-style-bg-color-1:rgba(242,112,36,.05);--el-color-primary:#f27024;--el-color-primary-light-3:#ff9a59;--el-color-primary-light-5:#ffb380;--el-color-primary-light-7:#fc9;--el-color-primary-light-8:#ffd6b3;--el-color-primary-light-9:#ffe6cc;--el-color-primary-dark-2:#c25a1d;--fc-style-color-4:#ffb600;--fc-style-bg-color-4:rgba(255,182,0,.05)}.fd-theme-pink,.fd-theme-pink ._fc-designer,.fd-theme-pink ._fd-config-dialog{--fc-style-color-1:#fe679a;--fc-style-bg-color-1:rgba(254,103,154,.05);--el-color-primary:#fe679a;--el-color-primary-light-3:#ff96b3;--el-color-primary-light-5:#ffb3c8;--el-color-primary-light-7:#ffd1dc;--el-color-primary-light-8:#ffdce5;--el-color-primary-light-9:#ffe6ed;--el-color-primary-dark-2:#cb517a;--fc-style-color-4:#bd2bff;--fc-style-bg-color-4:rgba(189,43,255,.05)}.fd-theme-green,.fd-theme-green ._fc-designer,.fd-theme-green ._fd-config-dialog{--fc-style-color-1:#18bf82;--fc-style-bg-color-1:rgba(24,191,130,.05);--el-color-primary:#18bf82;--el-color-primary-light-3:#4fd8a1;--el-color-primary-light-5:#80e6bb;--el-color-primary-light-7:#b3f1d6;--el-color-primary-light-8:#c6f5e0;--el-color-primary-light-9:#d9f9eb;--el-color-primary-dark-2:#149566;--fc-style-color-4:#e2ff00;--fc-style-bg-color-4:rgba(226,255,0,.05)}.fd-theme-green ._fc-designer .el-button--success.is-plain,.fd-theme-green ._fd-config-dialog .el-button--success.is-plain{--el-button-bg-color:#fef1e9;--el-button-text-color:#f27024;--el-button-border-color:#f9b892;--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:#f27024;--el-button-hover-border-color:#f27024;--el-button-active-bg-color:#c65e21;--el-button-active-text-color:var(--el-color-white);--el-button-active-border-color:#c65e21}._fc-upload-preview{border-radius:5px;display:inline-block;height:120px;overflow:hidden;width:120px}.form-create.is-preview ._fc-upload .el-icon--close,.form-create.is-preview ._fc-upload .el-icon--close-tip,.form-create.is-preview ._fc-upload .el-upload{display:none!important}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#fff;color:#000}.hljs-subst,.hljs-title{color:#000;font-weight:400}.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{color:#006dcc;text-decoration:underline}.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(gt,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("element-plus"),require("@form-create/element-ui"),require("@form-create/vant"),require("vant")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@form-create/element-ui","@form-create/vant","vant"],n):(gt=typeof globalThis<"u"?globalThis:gt||self,n(gt.FcDesigner={},gt.Vue,gt.ElementPlus,gt.formCreate,gt.formCreateMobile,gt.vant))})(this,function(gt,n,ai,Ab,xb,kb){"use strict";var L5=Object.defineProperty;var j5=(gt,n,ai)=>n in gt?L5(gt,n,{enumerable:!0,configurable:!0,writable:!0,value:ai}):gt[n]=ai;var Dt=(gt,n,ai)=>(j5(gt,typeof n!="symbol"?n+"":n,ai),ai);const mp=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},Ua=mp(Ab),At=mp(xb),dt={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!dt.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{dt[e]=function(t){return dt.type(t,e)}});function li(e,t){return{}.hasOwnProperty.call(e,t)}function Tr(e,t,r){e[t]=r}function td(e,t={},r){let o=!1;for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)){let l=t[i];if((o=Array.isArray(l))||dt.Object(l)){let d=e[i]===void 0;if(o)o=!1,d&&Tr(e,i,[]);else if(l._clone&&r!==void 0)if(r)l=l.getRule(),d&&Tr(e,i,{});else{Tr(e,i,l._clone());continue}else d&&Tr(e,i,{});e[i]=td(e[i],l,r)}else Tr(e,i,l),dt.Undef(l)||(dt.Undef(l.__json)||(e[i].__json=l.__json),dt.Undef(l.__origin)||(e[i].__origin=l.__origin))}return r!==void 0&&Array.isArray(e)?e.filter(i=>!i||!i.__ctrl):e}function rt(e){return td({},{value:e}).value}function Nb(e,t,r){return`[form-create ${e}]: ${t}`+(r?`
|
||
|
||
rule: `+JSON.stringify(r.getRule?r.getRule():r):"")}function Tb(e,t){console.error(Nb("err",e,t))}const gp="[[FORM-CREATE-PREFIX-",vp="-FORM-CREATE-SUFFIX]]";function nd(e){return new Function("return "+e)()}function Dr(e,t){if(e&&dt.String(e)&&e.length>4){let r=e.trim(),o=!1;try{if(r.indexOf(vp)>0&&r.indexOf(gp)===0)r=r.replace(vp,"").replace(gp,""),o=!0;else if(r.indexOf("$FN:")===0)r=r.substring(4),o=!0;else if(r.indexOf("$EXEC:")===0)r=r.substring(6),o=!0;else if(r.indexOf("$GLOBAL:")===0){const l=r.substring(8);return r=function(...d){const c=d[0].api.getGlobalEvent(l);if(c)return c.call(this,...d)},r.__json=e,r.__inject=!0,r}else{if(r.indexOf("$FNX:")===0)return r=nd("function($inject){"+r.substring(5)+"}"),r.__json=e,r.__inject=!0,r;(!t&&r.indexOf("function ")===0&&r!=="function "||!t&&r.indexOf("function(")===0&&r!=="function(")&&(o=!0)}if(!o)return e;let i;try{i=nd(r)}catch{i=nd("function "+r)}return i.__json=e,i}catch(i){Tb(`\u89E3\u6790\u5931\u8D25:${r}
|
||
|
||
err: ${i}`);return}}return e}function id(e){const t=e.replace(/(-[a-z])/g,function(r){return r.replace("-","").toLocaleUpperCase()});return Ha(t)}function Ha(e){return e.replace(e[0],e[0].toLowerCase())}const yp={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",iskey:"\u662F\u5426\u4E3B\u952E",fieldtype:"\u5B57\u6BB5\u7C7B\u578B",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u7EC4\u4EF6\u8054\u52A8",labelShow:"\u662F\u5426\u663E\u793A",labelPosition:"\u6807\u7B7E\u7684\u4F4D\u7F6E",tableName:"\u81EA\u5B9A\u4E49\u540D\u79F0",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",labelSuffix:"\u6807\u7B7E\u7684\u540E\u7F00",formItem:"\u914D\u7F6E\u8868\u5355\u9879",formItemSpan:"\u7EC4\u4EF6\u5BBD\u5EA6",row:"\u6574\u884C",globalEvent:"\u5168\u5C40\u4E8B\u4EF6",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90",globalClass:"\u5168\u5C40\u6837\u5F0F",globalConfig:"\u5168\u5C40\u914D\u7F6E",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",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",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",ignoreHiddenFields:"\u63D0\u4EA4\u8868\u5355\u65F6\u5FFD\u7565\u88AB\u9690\u85CF\u7684\u5B57\u6BB5",previewMode:"\u9605\u8BFB\u6A21\u5F0F",componentMode:"\u751F\u6210\u7EC4\u4EF6",sfcMode:"\u751F\u6210SFC",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"},ai:{name:"\u667A\u80FD\u8868\u5355\u52A9\u7406",info:"\u60A8\u597D\uFF0C\u6211\u662F\u60A8\u7684\u667A\u80FD\u8868\u5355\u52A9\u624B\uFF01\u6211\u53EF\u4EE5\u5E2E\u52A9\u60A8\u5FEB\u901F\u751F\u6210\u548C\u4FEE\u6539\u8868\u5355\uFF0C\u5E2E\u52A9\u60A8\u8F7B\u677E\u9AD8\u6548\u5730\u5B8C\u6210\u8868\u5355\u8BBE\u8BA1\u3002",try:"\u4F60\u53EF\u4EE5\u8BD5\u7740\u95EE\u6211",change:"\u6362\u4E00\u6362",loading:"\u6B63\u5728\u6839\u636E\u60A8\u7684\u9700\u6C42\u5236\u4F5C\u8868\u5355\uFF0C\u8BF7\u7A0D\u5019...",fail:"\u5236\u4F5C\u8868\u5355\u65F6\u9047\u5230\u95EE\u9898\uFF0C\u8BF7\u5C1D\u8BD5\u8C03\u6574\u5185\u5BB9\u3002",success:"\u5DF2\u5904\u7406\u5B8C\u6BD5\uFF01",placeholder:"\u8BF7\u63CF\u8FF0\u60A8\u7684\u9700\u6C42"},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",formList:"\u7528\u4E8E\u7BA1\u7406\u548C\u5207\u6362\u8868\u5355\u6A21\u677F\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u4E1A\u52A1\u573A\u666F\u4E2D\u5FEB\u901F\u5207\u6362\u548C\u914D\u7F6E\u8868\u5355\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",variable:"\u4ECE\u53D8\u91CF\u8BFB\u53D6\u914D\u7F6E\u9879\u7684\u503C\uFF0C\u652F\u6301\u901A\u8FC7\u53D8\u91CF\uFF08\u5982 Cookie\u3001localStorage\u3001\u5168\u5C40\u53D8\u91CF\u548C\u5916\u90E8\u6570\u636E\u6E90\u7B49\uFF09\u8BBE\u7F6E\u914D\u7F6E\u9879\u3002\u5F53\u5173\u8054\u7684\u53D8\u91CF\u53D8\u5316\u65F6\uFF0C\u914D\u7F6E\u9879\u4F1A\u540C\u6B65\u66F4\u65B0\u3002",variableInfo:"\u8BF7\u5728\u53D8\u91CF\u5217\u8868\u4E2D\u9009\u62E9\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u60A8\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u683C\u5F0F\u8BBF\u95EE\u5BF9\u8C61\u4E2D\u7684\u5C5E\u6027\u503C\u3002",pageManage:"\u8BBE\u8BA1\u8868\u5355\u4E2D\u7684\u5B50\u5F39\u7A97\uFF0C\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u5F39\u7A97\u663E\u793A\uFF0C\u4FBF\u4E8E\u5728\u8868\u5355\u4E2D\u52A8\u6001\u5C55\u793A\u4FE1\u606F\u6216\u8FDB\u884C\u4EA4\u4E92\u64CD\u4F5C\u3002",globalConfig:"\u7BA1\u7406\u5168\u5C40\u4E8B\u4EF6\u3001\u6837\u5F0F\u3001\u6570\u636E\u548C\u53D8\u91CF\uFF0C\u7528\u4E8E\u5728\u4E0D\u540C\u7EC4\u4EF6\u95F4\u8FDB\u884C\u6570\u636E\u5171\u4EAB\u548C\u4E8B\u4EF6\u5904\u7406\u3002",globalClass:"\u63D0\u4F9B\u5B9A\u4E49\u5168\u5C40\u6837\u5F0F\u548C Class \u7684\u529F\u80FD\uFF0C\u7528\u6237\u53EF\u4EE5\u5728\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u9009\u62E9\u5E76\u5E94\u7528\u8FD9\u4E9B\u9884\u5B9A\u4E49\u7684 Class\uFF0C\u4EE5\u5B9E\u73B0\u7EDF\u4E00\u7684\u6837\u5F0F\u7BA1\u7406\u3002",globalEvent:"\u5168\u5C40\u4E8B\u4EF6\u7528\u4E8E\u5B9A\u4E49\u7EC4\u4EF6\u4E8B\u4EF6\uFF0C\u4F9B\u7EC4\u4EF6\u8FDB\u884C\u914D\u7F6E\u548C\u9009\u62E9\uFF0C\u65B9\u4FBF\u5728\u4E0D\u540C\u7EC4\u4EF6\u4E2D\u7EDF\u4E00\u4F7F\u7528\u9884\u8BBE\u4E8B\u4EF6\uFF0C\u7B80\u5316\u4E8B\u4EF6\u7684\u7BA1\u7406\u548C\u5206\u53D1\u3002",globalFetch:"\u5168\u5C40\u6570\u636E\u6E90\u7528\u4E8E\u5B9A\u4E49\u5E38\u7528\u7684\u6570\u636E\u6E90\uFF0C\u652F\u6301\u9759\u6001\u6570\u636E\u548C\u8FDC\u7A0B\u6570\u636E\u3002\u8BE5\u6570\u636E\u6E90\u53EF\u5728\u5404\u79CD\u7EC4\u4EF6\u914D\u7F6E\u4E2D\u4F7F\u7528\uFF0C\u65B9\u4FBF\u7EDF\u4E00\u7BA1\u7406\u548C\u8C03\u7528\u6570\u636E\u3002",globalVariable:"\u5168\u5C40\u53D8\u91CF\u4E2D\u53EF\u4EE5\u5B9A\u4E49\u8BA1\u7B97\u5C5E\u6027\uFF0C\u901A\u8FC7\u8868\u5355\u6570\u636E\u548C\u5916\u90E8\u6570\u636E\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u3002\u5173\u8054\u6570\u636E\u53D8\u5316\u65F6\uFF0C\u8BA1\u7B97\u5C5E\u6027\u4F1A\u81EA\u52A8\u66F4\u65B0\uFF0C\u53EF\u4EE5\u5728\u7ED1\u5B9A\u53D8\u91CF\u6A21\u5757\u548C\u4E8B\u4EF6\u4E2D\u4F7F\u7528\u3002",ignore:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u6392\u9664\u8BE5\u7EC4\u4EF6\u7684\u5B57\u6BB5\uFF0C\u4E0D\u4F1A\u5C06\u5176\u5305\u542B\u5728\u63D0\u4EA4\u7684\u6570\u636E\u4E2D\u3002",ignoreHiddenFields:"\u5F00\u542F\u540E\uFF0C\u8868\u5355\u63D0\u4EA4\u65F6\u4F1A\u81EA\u52A8\u8FC7\u6EE4\u6389\u88AB\u9690\u85CF\u7684\u7EC4\u4EF6\u5B57\u6BB5\uFF0C\u786E\u4FDD\u4EC5\u63D0\u4EA4\u53EF\u89C1\u7684\u5B57\u6BB5\u6570\u636E\u3002",behaviorIgnoreError:"\u5982\u679C\u52A8\u4F5C\u6267\u884C\u8FC7\u7A0B\u4E2D\u53D1\u751F\u9519\u8BEF\uFF0C\u662F\u5426\u7EE7\u7EED\u6267\u884C\u540E\u7EED\u7684\u52A8\u4F5C\u3002",behaviorExpression:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u52A8\u4F5C\u624D\u4F1A\u88AB\u6267\u884C\u3002",behaviorStopPropagation:"\u5F53\u6761\u4EF6\u8FBE\u6210\u65F6\uFF0C\u4F1A\u963B\u6B62\u540E\u7EED\u52A8\u4F5C\u7684\u6267\u884C\u3002",computedCondition:"\u901A\u8FC7\u5B9A\u4E49\u6761\u4EF6\uFF0C\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u4F1A\u6839\u636E\u6761\u4EF6\u662F\u5426\u6210\u7ACB\u81EA\u52A8\u8C03\u6574\u3002",computedFormula:"\u901A\u8FC7\u516C\u5F0F\u548C\u8868\u5355\u6570\u636E\uFF0C\u52A8\u6001\u8BA1\u7B97\u7EC4\u4EF6\u7684\u72B6\u6001\u548C\u6570\u636E\u503C\u3002"},computed:{value:{title:"\u6570\u636E\u8054\u52A8",btn:"\u8BBE\u7F6E\u6570\u636E\u8054\u52A8",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u503C"},hidden:{title:"\u9690\u85CF\u6761\u4EF6",btn:"\u8BBE\u7F6E\u9690\u85CF\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u9690\u85CF\u6761\u4EF6"},required:{title:"\u5FC5\u586B\u6761\u4EF6",btn:"\u8BBE\u7F6E\u5FC5\u586B\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u5FC5\u586B\u6761\u4EF6"},disabled:{title:"\u7981\u7528\u6761\u4EF6",btn:"\u8BBE\u7F6E\u7981\u7528\u6761\u4EF6",name:"\u8BBE\u7F6E\u7EC4\u4EF6\u7684\u7981\u7528\u6761\u4EF6"},formulas:{"==":"\u7B49\u4E8E","!=":"\u4E0D\u7B49\u4E8E",on:"\u5305\u542B",notOn:"\u4E0D\u5305\u542B",empty:"\u4E3A\u7A7A",notEmpty:"\u4E0D\u4E3A\u7A7A",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",">":"\u5927\u4E8E",">=":"\u5927\u4E8E\u7B49\u4E8E","<":"\u5C0F\u4E8E","<=":"\u5C0F\u4E8E\u7B49\u4E8E"},variable:{attr:"\u5C5E\u6027\u5217\u8868",bind:"\u7ED1\u5B9A\u53D8\u91CF",list:"\u53D8\u91CF\u5217\u8868",btn:"\u8BBE\u7F6E\u53D8\u91CF",title:"\u5168\u5C40\u53D8\u91CF",create:"\u521B\u5EFA\u53D8\u91CF",placeholder:"\u8BF7\u8F93\u5165\u53D8\u91CF\u7684\u63CF\u8FF0\u4FE1\u606F"},linkage:{trigger:"\u89E6\u53D1\u4EE5\u4E0B\u8054\u52A8",info:["\u5F53\u524D\u7EC4\u4EF6\u8054\u52A8\u663E\u793A","\u7684\u503C"]},name:"\u8BA1\u7B97\u516C\u5F0F",setting:"\u8BBE\u7F6E\u6761\u4EF6",invert:"\u6761\u4EF6\u6210\u7ACB\u540E\u7EC4\u4EF6\u72B6\u6001",condition:"\u903B\u8F91\u6761\u4EF6",addCondition:"\u6DFB\u52A0\u6761\u4EF6",addGroup:"\u6DFB\u52A0\u6761\u4EF6\u7EC4",form:"\u5F53\u524D\u8868\u5355",subform:"\u5B50\u8868\u5355",formula:"\u51FD\u6570\u516C\u5F0F",formulaInfo:"\u51FD\u6570\u8BF4\u660E",formulaExample:"\u51FD\u6570\u793A\u4F8B",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",notRequired:"\u975E\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",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",configuredData:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6570\u636E\u6E90",configuredEvent:"\u5DF2\u914D\u7F6E {num} \u4E2A\u4E8B\u4EF6"},class:{title:"\u8BBE\u7F6E\u6837\u5F0F",create:"\u521B\u5EFA\u6837\u5F0F",placeholder:"\u8BF7\u8F93\u5165\u6837\u5F0F\u7684\u63CF\u8FF0\u4FE1\u606F",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u6837\u5F0F",configured:"\u5DF2\u914D\u7F6E {num} \u4E2A\u6837\u5F0F"},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",action:"\u7F16\u8F91\u884C\u4E3A",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",remove:"\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",beforeLoad:"\u521D\u59CB\u5316\u4E4B\u524D\u89E6\u53D1",loaded:"\u521D\u59CB\u5316\u5B8C\u6210\u4E4B\u540E\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:{info:"\u5B9A\u4E49\u8BF7\u6C42\u65F6\uFF0C\u652F\u6301\u901A\u8FC7\u53CC\u5927\u62EC\u53F7\u8BED\u6CD5\uFF08\u5982 {{token}}\uFF09\u4F7F\u7528\u53D8\u91CF\u3002\u5728\u63A5\u53E3\u8BF7\u6C42\u65F6\u4F1A\u81EA\u52A8\u8BFB\u53D6\u8FD9\u4E9B\u53D8\u91CF\u3002\u5982\u679C\u53D8\u91CF\u7684\u503C\u662F\u5BF9\u8C61\uFF0C\u53EF\u4EE5\u901A\u8FC7 {{variableName.attributeName}} \u8BBF\u95EE\u5BF9\u8C61\u7684\u5C5E\u6027\u503C\u3002",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\u63CF\u8FF0\u4FE1\u606F",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",global:"\u5168\u5C40\u6570\u636E\u6E90",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",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",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"},display:{name:"\u5E03\u5C40",block:"\u533A\u5757","inline-block":"\u884C\u5185\u533A\u5757",inline:"\u884C\u5185\u6587\u672C",flex:"\u5F39\u6027\u76D2\u5B50"},flexDirection:{name:"\u4E3B\u8F74\u7684\u65B9\u5411",row:"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u5DE6\u7AEF","row-reverse":"\u4E3B\u8F74\u4E3A\u6C34\u5E73\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u53F3\u7AEF",column:"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0A\u6CBF","column-reverse":"\u4E3B\u8F74\u4E3A\u5782\u76F4\u65B9\u5411\uFF0C\u8D77\u70B9\u5728\u4E0B\u6CBF"},flexWrap:{name:"\u662F\u5426\u6362\u884C",nowrap:"\u4E0D\u6362\u884C",wrap:"\u6362\u884C"},justifyContent:{name:"\u4E3B\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u5DE6\u5BF9\u9F50","flex-end":"\u53F3\u5BF9\u9F50",center:"\u5C45\u4E2D","space-between":"\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u5B50\u5143\u7D20\u4E24\u4FA7\u7684\u95F4\u9694\u76F8\u7B49","space-evenly":"\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4E3B\u8F74\u4E0A"},alignItems:{name:"\u5B50\u5143\u7D20\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50",baseline:"\u6CBF\u7B2C\u4E00\u884C\u6587\u5B57\u7684\u57FA\u7EBF\u5BF9\u9F50",stretch:"\u6EE1\u6574\u4E2A\u5BB9\u5668\u7684\u9AD8\u5EA6"},alignContent:{name:"\u591A\u884C\u5B50\u5143\u7D20\u5728\u4EA4\u53C9\u8F74\u4E0A\u7684\u5BF9\u9F50\u65B9\u5F0F","flex-start":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u8D77\u70B9\u5BF9\u9F50","flex-end":"\u4E0E\u4EA4\u53C9\u8F74\u7684\u7EC8\u70B9\u5BF9\u9F50",center:"\u4E0E\u4EA4\u53C9\u8F74\u7684\u4E2D\u70B9\u5BF9\u9F50","space-between":"\u4E0E\u4EA4\u53C9\u8F74\u4E24\u7AEF\u5BF9\u9F50","space-around":"\u591A\u884C\u5B50\u5143\u7D20\u5E73\u5747\u5206\u5E03\u5728\u4EA4\u53C9\u8F74",stretch:"\u8F74\u7EBF\u5360\u6EE1\u6574\u4E2A\u4EA4\u53C9\u8F74"},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:"\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",slots:"\u63D2\u69FD\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?",sublist:"\u5B50\u8282\u70B9\u5217\u8868",formList:"\u8868\u5355\u5217\u8868",comList:"\u7EC4\u4EF6\u5217\u8868",addPage:"\u6DFB\u52A0\u6A21\u5757",pageManage:"\u6A21\u5757\u7BA1\u7406",gridLine:"\u8F85\u52A9\u7EBF",main:"\u4E3B\u4F53",layout:"\u5FEB\u901F\u5E03\u5C40",col1:"\u4E00\u5217",col2:"\u4E24\u5217",col3:"\u4E09\u5217",col4:"\u56DB\u5217",print:{title:"\u6253\u5370\u8868\u5355",config:"\u8BBE\u7F6E\u6253\u5370",left:"\u5DE6\u8FB9\u8DDD",right:"\u53F3\u8FB9\u8DDD",top:"\u4E0A\u8FB9\u8DDD",bottom:"\u4E0B\u8FB9\u8DDD",defaultStyle:"\u9ED8\u8BA4\u6837\u5F0F",wordStyle:"\u6587\u6863\u6837\u5F0F",export:"\u5BFC\u51FA PDF"}},menu:{template:"\u6A21\u677F",main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",container:"\u5BB9\u5668\u7EC4\u4EF6",chart:"\u56FE\u8868\u7EC4\u4EF6",tree:"\u5927\u7EB2"},formula:{math:"\u6570\u5B57\u5904\u7406",string:"\u6587\u672C\u5904\u7406",date:"\u65F6\u95F4\u5904\u7406",collection:"\u5408\u96C6\u5904\u7406",condition:"\u903B\u8F91\u5904\u7406",ADD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u52A0\u7684\u503C",SUB:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u51CF\u7684\u503C",MUL:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u4E58\u7684\u503C",DIV:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u76F8\u9664\u7684\u503C",SUM:"\u83B7\u53D6\u5408\u96C6\u4E2D\u6570\u503C\u7684\u603B\u548C",MAX:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5927\u503C",MIN:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u4E2D\u7684\u6700\u5C0F\u503C",ABS:"\u83B7\u53D6\u6570\u5B57\u7684\u7EDD\u5BF9\u503C",AVG:"\u83B7\u53D6\u53C2\u6570\u5217\u8868\u7684\u5E73\u5747\u503C",POWER:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E58\u5E42",RAND:"\u83B7\u53D6\u4E00\u4E2A\u5927\u4E8E\u7B49\u4E8E0\u4E14\u5C0F\u4E8E1\u7684\u968F\u673A\u6570",PI:"\u83B7\u53D6\u5706\u5468\u7387",ROUND:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u56DB\u820D\u4E94\u5165\u5230\u6307\u5B9A\u7684\u4F4D\u6570",SQRT:"\u83B7\u53D6\u4E00\u4E2A\u6570\u5B57\u7684\u6B63\u5E73\u65B9\u6839",NOW:"\u83B7\u53D6\u5F53\u524D\u7684\u65F6\u95F4",TODAY:"\u83B7\u53D6\u4ECA\u5929\u7684\u65E5\u671F",YEAR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",MONTH:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",DAY:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",HOUR:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5C0F\u65F6\u6570",MINUTE:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u5206\u949F\u6570",SECOND:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u79D2\u6570",DIFFDAYS:"\u83B7\u53D6\u4E24\u4E2A\u65E5\u671F\u4E4B\u95F4\u7684\u5929\u6570",DIFFHOURS:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5C0F\u65F6\u6570,\u4FDD\u7559\u4E24\u4F4D\u5C0F\u6570",DIFFMINUTES:"\u83B7\u53D6\u4E24\u4E2A\u65F6\u95F4\u4E4B\u95F4\u7684\u5206\u949F\u6570",ADDYEAR:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",ADDMONTH:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",ADDDAY:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",ADDWEEK:"\u589E\u52A0\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",ADDHOUR:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",ADDMINUTE:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",ADDSECOND:"\u589E\u52A0\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",SUBYEAR:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5E74\u4EFD",SUBMONTH:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u6708\u4EFD",SUBDAY:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5929\u6570",SUBWEEK:"\u51CF\u5C11\u6307\u5B9A\u65E5\u671F\u7684\u5468\u6570",SUBHOUR:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5C0F\u65F6\u6570",SUBMINUTE:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u5206\u949F\u6570",SUBSECOND:"\u51CF\u5C11\u6307\u5B9A\u65F6\u95F4\u7684\u79D2\u6570",TIMESTAMP:"\u83B7\u53D6\u6307\u5B9A\u65E5\u671F\u7684\u65F6\u95F4\u6233",STARTSWITH:"\u68C0\u67E5\u5B57\u7B26\u4E32\u662F\u5426\u4EE5\u6307\u5B9A\u5B57\u7B26\u4E32\u5F00\u5934",EMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u7A7A",NOTEMPTY:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E0D\u4E3A\u7A7A",LEN:"\u83B7\u53D6\u6307\u5B9A\u5408\u96C6\u7684\u957F\u5EA6",MOD:"\u83B7\u53D6\u4E24\u4E2A\u6570\u5B57\u7684\u4F59\u6570",FLOOR:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0B\u53D6\u6574\u7684\u503C",CEIL:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u5411\u4E0A\u53D6\u6574\u7684\u503C",FIXED:"\u5C06\u4E00\u4E2A\u5C0F\u6570\u4FDD\u7559\u6307\u5B9A\u4F4D\u6570\u7684\u5C0F\u6570",ISNUMBER:"\u68C0\u67E5\u53C2\u6570\u662F\u5426\u4E3A\u6570\u5B57",TONUMBER:"\u5C06\u53C2\u6570\u8F6C\u6362\u4E3A\u6570\u5B57",SLICELEFT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u5F00\u5934\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",SLICERIGHT:"\u83B7\u53D6\u4E00\u4E2A\u5B57\u7B26\u4E32\u4ECE\u7ED3\u5C3E\u5F00\u59CB\u6307\u5B9A\u957F\u5EA6\u7684\u5B57\u7B26\u4E32",TOLOWER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5927\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5C0F\u5199\u5B57\u6BCD",TOUPPER:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u6240\u6709\u5C0F\u5199\u5B57\u6BCD\u8F6C\u6362\u4E3A\u5927\u5199\u5B57\u6BCD",INCLUDES:"\u68C0\u67E5\u5B57\u7B26\u4E32\u4E2D\u662F\u5426\u5305\u542B\u6307\u5B9A\u5B57\u7B26\u4E32",REPLACE:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u53EA\u66FF\u6362\u5339\u914D\u5230\u7684\u7B2C\u4E00\u4E2A",REPLACEALL:"\u5C06\u5B57\u7B26\u4E32\u4E2D\u7684\u90E8\u5206\u6587\u672C\u66FF\u6362\u4E3A\u4E0D\u540C\u7684\u6587\u672C,\u66FF\u6362\u6240\u6709\u5339\u914D\u5230\u7684",TRIM:"\u5C06\u5B57\u7B26\u4E32\u524D\u540E\u7684\u7A7A\u683C\u5220\u9664",TOCHINSESAMOUNT:"\u83B7\u53D6\u6307\u5B9A\u6570\u5B57\u7684\u4E2D\u6587\u5927\u5199\u91D1\u989D",UNION:"\u5C06\u5408\u96C6/\u53C2\u6570\u4E2D\u7684\u503C\u53BB\u91CD,\u8FD4\u56DE\u53BB\u91CD\u540E\u7684\u5408\u96C6",INTERSECTIONSET:"\u83B7\u53D6\u4E24\u4E2A\u96C6\u5408\u7684\u4EA4\u96C6",LIST:"\u83B7\u53D6\u6240\u6709\u53C2\u6570\u7EC4\u6210\u7684\u96C6\u5408",AND:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u5E76\u4E14"\u94FE\u63A5,\u5F53\u6240\u6709\u8868\u8FBE\u5F0F\u5747\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',OR:'\u5C06\u8868\u8FBE\u5F0F\u7528"\u6216"\u94FE\u63A5,\u5F53\u6709\u4E00\u4E2A\u8868\u8FBE\u5F0F\u4E3Atrue\u65F6\u8FD4\u56DEtrue\uFF0C\u5426\u5219\u8FD4\u56DEfalse',IF:"\u68C0\u67E5\u4E00\u4E2A\u6761\u4EF6\u80FD\u5426\u6EE1\u8DB3,\u5982\u679C\u6EE1\u8DB3\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570\uFF0C\u5426\u5219\u8FD4\u56DE\u7B2C\u4E09\u4E2A\u53C2\u6570",IN:"\u68C0\u67E5\u7B2C\u4E8C\u4E2A\u53C2\u6570\u662F\u5426\u5728\u5408\u96C6\u4E2D",DEFAULT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u53C2\u6570,\u5982\u679C\u4E3A\u7A7A\u8FD4\u56DE\u7B2C\u4E8C\u4E2A\u53C2\u6570,\u5426\u5219\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u53C2\u6570",CASE:"\u68C0\u67E5\u662F\u5426\u6EE1\u8DB3\u4E00\u4E2A\u6216\u591A\u4E2A\u6761\u4EF6\uFF0C\u8FD4\u56DE\u7B2C\u4E00\u4E2A\u6EE1\u8DB3\u6761\u4EF6\u7684\u503C",COLUMN:"\u83B7\u53D6\u5B50\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5\u5E76\u8FD4\u56DE\u5408\u96C6",VALUE:"\u83B7\u53D6\u5206\u7EC4\u8868\u5355\u4E2D\u6307\u5B9A\u5B57\u6BB5",CONCAT:"\u5C06\u6240\u6709\u53C2\u6570\u62FC\u63A5,\u8FD4\u56DE\u62FC\u63A5\u540E\u7684\u5B57\u7B26\u4E32",FALSE:"\u8FD4\u56DE\u903B\u8F91\u503C false",TRUE:"\u8FD4\u56DE\u903B\u8F91\u503C true",NOT:"\u83B7\u53D6\u67D0\u4E2A\u903B\u8F91\u503C\u7684\u76F8\u53CD\u503C",EQ:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u76F8\u7B49",NE:"\u68C0\u67E5\u4E24\u4E2A\u503C\u662F\u5426\u4E0D\u76F8\u7B49",GE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",GT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5927\u4E8E\u53E6\u4E00\u4E2A\u503C",LE:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u7B49\u4E8E\u53E6\u4E00\u4E2A\u503C",LT:"\u68C0\u67E5\u7B2C\u4E00\u4E2A\u503C\u662F\u5426\u5C0F\u4E8E\u53E6\u4E00\u4E2A\u503C"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},props:{circle:"\u5706\u5F62",square:"\u6B63\u65B9\u5F62",image:"\u56FE\u7247",video:"\u89C6\u9891",audio:"\u97F3\u9891",document:"\u6587\u6863",size:"\u5C3A\u5BF8",info:"\u63D0\u793A",success:"\u6210\u529F",error:"\u5931\u8D25",warning:"\u8B66\u544A",primary:"\u91CD\u8981",danger:"\u5371\u9669",form:"\u8868\u5355",subform:"\u5B50\u8868\u5355",other:"\u5176\u4ED6",model:"\u5F39\u7A97",field:"\u6570\u636E\u96C6",variable:"\u53D8\u91CF",disabled:"\u7981\u7528",enable:"\u542F\u7528",time:"\u65F6\u95F4",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",bottom:"\u5E95\u90E8",text:"\u6587\u5B57",icon:"\u56FE\u6807",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",mode:"\u6A21\u5F0F",style:"\u6837\u5F0F",print:"\u6253\u5370",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},slots:{prefix:"\u5934\u90E8\u5185\u5BB9",suffix:"\u5C3E\u90E8\u5185\u5BB9",prepend:"\u524D\u7F6E\u5185\u5BB9",append:"\u540E\u7F6E\u5185\u5BB9"},behavior:{add:"\u6DFB\u52A0\u52A8\u4F5C",props:{id:"\u9009\u62E9\u7EC4\u4EF6",status:"\u72B6\u6001",compute:"\u6761\u4EF6",static:"\u9759\u6001",formula:"\u8868\u8FBE\u5F0F",setFormula:"\u914D\u7F6E\u8868\u8FBE\u5F0F",continue:"\u7EE7\u7EED\u6267\u884C\u52A8\u4F5C",stop:"\u4E2D\u65AD\u6267\u884C\u52A8\u4F5C",break:"\u8DF3\u8FC7\u5F53\u524D\u52A8\u4F5C",model:"\u9009\u62E9\u5F39\u7A97",fetch:"\u914D\u7F6E\u8BF7\u6C42",response:"\u8BF7\u6C42\u7ED3\u679C",callback:"\u81EA\u5B9A\u4E49JS",ignoreError:"\u6267\u884C\u5F02\u5E38",expression:"\u6267\u884C\u6761\u4EF6",stopPropagation:"\u963B\u65AD\u6761\u4EF6",execute:"\u6267\u884C\u52A8\u4F5C",info:"\u52A8\u4F5C\u8BF4\u660E"},openModel:{name:"\u6253\u5F00\u5F39\u7A97",info:"\u6253\u5F00\u6240\u9009\u7684\u5F39\u7A97"},closeModel:{name:"\u5173\u95ED\u5F39\u7A97",info:"\u5173\u95ED\u5F53\u524D\u5F39\u7A97"},hidden:{name:"\u7EC4\u4EF6\u53EF\u89C1\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u663E\u793A/\u9690\u85CF"},disabled:{name:"\u7EC4\u4EF6\u53EF\u7528\u6027",info:"\u63A7\u5236\u6240\u9009\u7684\u7EC4\u4EF6\u7684\u542F\u7528/\u7981\u7528"},resetFields:{name:"\u91CD\u7F6E\u8868\u5355",info:"\u91CD\u7F6E\u8868\u5355\u6570\u636E"},clearFields:{name:"\u6E05\u7A7A\u8868\u5355",info:"\u6E05\u7A7A\u8868\u5355\u6570\u636E"},validate:{name:"\u6821\u9A8C\u8868\u5355",info:"\u5BF9\u6574\u4E2A\u8868\u5355\u7684\u5185\u5BB9\u8FDB\u884C\u6821\u9A8C"},validateFields:{name:"\u6821\u9A8C\u8868\u5355\u9879",info:"\u6821\u9A8C\u6240\u9009\u7684\u7684\u8868\u5355\u9879"},setValue:{name:"\u8868\u5355\u8D4B\u503C",info:"\u4FEE\u6539\u8868\u5355\u7684\u6570\u636E"},fetch:{name:"\u53D1\u9001\u8BF7\u6C42",info:"\u914D\u7F6E\u5E76\u53D1\u9001API\u8BF7\u6C42",props:{append:"\u8FFD\u52A0\u8868\u5355\u6570\u636E"},warning:{append:"\u5F00\u542F\u540E\uFF0C\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u81EA\u52A8\u8FFD\u52A0\u5230\u8868\u5355\u7684\u6570\u636E\u4E2D\u3002",response:"\u8FDC\u7A0B\u8BF7\u6C42\u8FD4\u56DE\u7684\u6570\u636E\u5C06\u6682\u5B58\u5230\u6307\u5B9A\u7684\u53D8\u91CF\u4E2D\u3002"}},copy:{name:"\u590D\u5236\u5185\u5BB9",info:"\u590D\u5236\u6587\u672C\u5185\u5BB9\u81F3\u7C98\u8D34\u677F"},callback:{name:"\u81EA\u5B9A\u4E49\u64CD\u4F5C",info:"\u901A\u8FC7JavaScript\u81EA\u5B9A\u4E49\u52A8\u4F5C\u903B\u8F91"},message:{name:"\u6D88\u606F\u63D0\u9192",info:"\u5F39\u51FA\u6D88\u606F\u63D0\u9192",props:{type:"\u7C7B\u578B",message:"\u63D0\u793A\u4FE1\u606F",duration:"\u6301\u7EED\u65F6\u95F4(ms)",showClose:"\u663E\u793A\u5173\u95ED\u6309\u94AE"}},submit:{name:"\u63D0\u4EA4\u8868\u5355",info:"\u624B\u52A8\u63D0\u4EA4\u8868\u5355\u5E76\u89E6\u53D1\u8868\u5355\u63D0\u4EA4\u4E8B\u4EF6"}},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",info:"\u901A\u8FC7\u54CD\u5E94\u5F0F\u914D\u7F6E\u591A\u7AEF\u5E03\u5C40\uFF0C\u79FB\u52A8\u7AEF\u4F1A\u81EA\u52A8\u5E94\u7528\u7B2C\u4E00\u4E2A",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"}},elDescriptions:{name:"\u63CF\u8FF0\u5217\u8868",props:{title:"\u6807\u9898\u6587\u672C\uFF0C\u663E\u793A\u5728\u5DE6\u4E0A\u65B9",extra:"\u64CD\u4F5C\u533A\u6587\u672C\uFF0C\u663E\u793A\u5728\u53F3\u4E0A\u65B9",column:"\u4E00\u884C\u4E2D\u8868\u683C\u7684\u6570\u91CF",border:"\u662F\u5426\u5E26\u6709\u8FB9\u6846",direction:"\u6392\u5217\u7684\u65B9\u5411",size:"\u5217\u8868\u7684\u5C3A\u5BF8"}},elDescriptionsItem:{name:"\u63CF\u8FF0\u683C\u5B50",props:{label:"\u6807\u7B7E\u6587\u672C",__child:"\u5185\u5BB9",span:"\u5217\u7684\u6570\u91CF",width:"\u5217\u7684\u5BBD\u5EA6\uFF0C\u4E0D\u540C\u884C\u76F8\u540C\u5217\u7684\u5BBD\u5EA6\u6309\u6700\u5927\u503C\u8BBE\u5B9A\uFF08\u5982\u65E0 border \uFF0C\u5BBD\u5EA6\u5305\u542B\u6807\u7B7E\u4E0E\u5185\u5BB9",minWidth:"\u5217\u7684\u6700\u5C0F\u5BBD\u5EA6",align:"\u5217\u7684\u5185\u5BB9\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u5BF9\u6807\u7B7E\u548C\u5185\u5BB9\u5747\u751F\u6548\uFF09",labelAlign:"\u5217\u7684\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F\uFF0C\u82E5\u4E0D\u8BBE\u7F6E\u8BE5\u9879\uFF0C\u5219\u4F7F\u7528\u5185\u5BB9\u7684\u5BF9\u9F50\u65B9\u5F0F\uFF08\u5982\u65E0 border\uFF0C\u8BF7\u4F7F\u7528 align \u53C2\u6570\uFF09",className:"\u5217\u7684\u5185\u5BB9\u81EA\u5B9A\u4E49\u7C7B\u540D"}},elDivider:{name:"\u5206\u5272\u7EBF",props:{direction:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",contentPosition:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E"}},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:{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",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",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"}},elLink:{name:"\u94FE\u63A5",props:{formCreateChild:"\u5185\u5BB9",href:"\u8DF3\u8F6C\u94FE\u63A5",type:"\u7C7B\u578B",underline:"\u662F\u5426\u663E\u793A\u4E0B\u5212\u7EBF",disabled:"\u662F\u5426\u7981\u7528",target:"\u6253\u5F00\u65B9\u5F0F"}},elWatermark:{name:"\u6C34\u5370",props:{content:"\u6C34\u5370\u6587\u672C\u5185\u5BB9",image:"\u6C34\u5370\u56FE\u7247\uFF0C\u5EFA\u8BAE\u4F7F\u7528 2x \u6216 3x \u56FE\u50CF",width:"\u6C34\u5370\u7684\u5BBD\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u5BBD\u5EA6",height:"\u6C34\u5370\u7684\u9AD8\u5EA6\uFF0C content \u7684\u9ED8\u8BA4\u503C\u662F\u5B83\u81EA\u5DF1\u7684\u9AD8\u5EA6",rotate:"\u6C34\u5370\u7684\u65CB\u8F6C\u89D2\u5EA6, \u5355\u4F4D \xB0",zIndex:"\u6C34\u5370\u5143\u7D20\u7684z-index\u503C",gap:"\u6C34\u5370\u4E4B\u95F4\u7684\u95F4\u8DDD"}},elTooltip:{name:"\u6587\u5B57\u63D0\u793A",props:{content:"\u663E\u793A\u7684\u5185\u5BB9",disabled:"\u662F\u5426\u7981\u7528",rawContent:"\u5185\u5BB9\u662F\u5426\u4F5C\u4E3A HTML \u5B57\u7B26\u4E32\u5904\u7406",enterable:"\u9F20\u6807\u662F\u5426\u53EF\u8FDB\u5165\u5230 Tooltip \u4E2D",effect:"\u4E3B\u9898",placement:"Tooltip \u7EC4\u4EF6\u51FA\u73B0\u7684\u4F4D\u7F6E",trigger:"\u5982\u4F55\u89E6\u53D1 Tooltip",offset:"\u51FA\u73B0\u4F4D\u7F6E\u7684\u504F\u79FB\u91CF",showAfter:"\u5728\u89E6\u53D1\u540E\u591A\u4E45\u663E\u793A\u5185\u5BB9\uFF0C\u5355\u4F4D\u6BEB\u79D2",hideAfter:"\u5EF6\u8FDF\u5173\u95ED\uFF0C\u5355\u4F4D\u6BEB\u79D2",autoClose:"\u51FA\u73B0\u540E\u81EA\u52A8\u9690\u85CF\u5EF6\u65F6\uFF0C\u5355\u4F4D\u6BEB\u79D2"}},elImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5",previewSrcList:"\u9884\u89C8\u56FE\u7247\u5217\u8868"}},elAvatar:{name:"\u5934\u50CF\u6846",props:{src:"\u56FE\u7247\u94FE\u63A5",shape:"\u5F62\u72B6",size:"\u5C3A\u5BF8"}},elMention:{name:"\u63D0\u53CA",event:{search:"\u6309\u4E0B\u89E6\u53D1\u5B57\u6BB5\u65F6\u89E6\u53D1",select:"\u5F53\u7528\u6237\u9009\u62E9\u9009\u9879\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",whole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",checkIsWhole:"\u5F53\u9000\u683C\u952E\u88AB\u6309\u4E0B\u505A\u5220\u9664\u64CD\u4F5C\u65F6\uFF0C\u68C0\u67E5\u662F\u5426\u5C06\u63D0\u53CA\u90E8\u5206\u4F5C\u4E3A\u6574\u4F53\u5220\u9664",filterOption:"\u7B5B\u9009\u5668\u9009\u9879\u903B\u8F91"}},elSegmented:{name:"\u5206\u6BB5\u63A7\u5236\u5668",props:{size:"\u5C3A\u5BF8",block:"\u6491\u6EE1\u7236\u5143\u7D20\u5BBD\u5EA6",disabled:"\u662F\u5426\u7981\u7528"}},elFormItem:{name:"\u8868\u5355\u9879",props:{label:"\u6807\u7B7E\u6587\u672C",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",size:"\u5C3A\u5BF8"}},elStatistic:{name:"\u7EDF\u8BA1\u680F",props:{value:"\u6570\u503C",title:"\u6807\u9898",prefix:"\u6570\u503C\u7684\u524D\u7F00",suffix:"\u6570\u503C\u7684\u540E\u7F00"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcId:{name:"\u552F\u4E00\u503C",props:{prefix:"\u524D\u7F00"}},fcCity:{name:"\u7701\u5E02\u533A\u9009\u62E9\u5668",props:{api:"\u6570\u636E\u94FE\u63A5 URI",level:"\u7C7B\u578B",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",filter:"\u6570\u636E\u8FC7\u6EE4,\u8FD4\u56DE\u53EF\u9009\u62E9\u6570\u636E"}},fcCell:{name:"\u683C\u5B50"},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcFlex:{name:"\u76D2\u5B50\u5E03\u5C40"},fcFlex2:{name:"\u76D2\u5B50\u5E03\u5C40",horizontal:"\u6C34\u5E73\u5C45\u4E2D",vertical:"\u5782\u76F4\u5C45\u4E2D",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",reset:"\u91CD\u7F6E\u5E03\u5C40"},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"}},fcDialog:{name:"\u5F39\u51FA\u6846",props:{title:"\u6807\u9898",width:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",fullscreen:"\u662F\u5426\u4E3A\u5168\u5C4F",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"}},fcDrawer:{name:"\u62BD\u5C49",props:{title:"\u6807\u9898",size:"\u5BF9\u8BDD\u6846\u7684\u5BBD\u5EA6",direction:"\u6253\u5F00\u7684\u65B9\u5411",modal:"\u662F\u5426\u9700\u8981\u906E\u7F69\u5C42",autoClose:"\u63D0\u4EA4\u8868\u5355\u540E\u81EA\u52A8\u5173\u95ED\u5F39\u51FA\u6846",footer:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",beforeClose:"\u5173\u95ED\u524D\u7684\u56DE\u8C03"},directionType:{ltr:"\u5DE6\u4FA7",rtl:"\u53F3\u4FA7"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{mini:"\u7D27\u51D1\u6A21\u5F0F",border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},fcValue:{name:"\u8BA1\u7B97\u516C\u5F0F",empty:"\u5728\u53F3\u4FA7\u914D\u7F6E\u4E2D\u8BBE\u7F6E\u8BA1\u7B97\u516C\u5F0F"},fcSlot:{name:"\u63D2\u69FD\u533A\u57DF",empty:"\u901A\u8FC7\u5B9A\u4E49\u63D2\u69FD {tag} \u586B\u5145\u533A\u57DF",props:{name:"\u63D2\u69FD\u540D\u79F0"}},fcJson:{name:"\u52A8\u6001\u533A\u57DF",empty:"\u901A\u8FC7\u52A0\u8F7D {tag} \u89C4\u5219\u586B\u5145\u533A\u57DF",props:{_loadType:"JSON \u89C4\u5219",type:"\u7C7B\u578B"}},lineChart:{name:"\u6298\u7EBF\u56FE",data:"\u56FE\u8868\u6570\u636E",pieTypeOpt:{pie:"\u5706\u5F62",doughnut:"\u73AF\u5F62","half-doughnut":"\u534A\u73AF\u5F62"},funnelSortOpt:{descending:"\u5012\u5E8F",ascending:"\u6B63\u5E8F"},props:{title:"\u56FE\u8868\u7684\u540D\u79F0",subtitle:"\u56FE\u8868\u7684\u7B80\u4ECB",valueFormat:"\u683C\u5F0F\u5316\u6570\u503C\u663E\u793A",stack:"\u591A\u5217\u6570\u636E\u65F6\u662F\u5426\u5806\u53E0",smooth:"\u7EBF\u6761\u662F\u5426\u5E73\u6ED1\u8FC7\u6E21",showLegend:"\u662F\u5426\u663E\u793A\u6807\u8BB0",showSeriesLabel:"\u662F\u5426\u663E\u793A\u6570\u503C",barBackgroundColor:"\u67F1\u72B6\u7684\u80CC\u666F\u8272",funnelSort:"\u6392\u5E8F\u65B9\u5F0F",pieType:"\u5F62\u72B6",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",value:"\u6570\u503C",indicator:"\u6307\u793A\u5668",loadOptions:"\u521D\u59CB\u5316"}},areaChart:{name:"\u4F53\u79EF\u56FE"},barChart:{name:"\u67F1\u72B6\u56FE"},customChart:{name:"\u81EA\u5B9A\u4E49\u56FE\u8868"},funnelChart:{name:"\u6F0F\u6597\u56FE"},gaugeChart:{name:"\u4EEA\u8868\u76D8"},pieChart:{name:"\u997C\u56FE"},radarChart:{name:"\u96F7\u8FBE\u56FE"},scatterChart:{name:"\u6563\u70B9\u56FE"},stripeChart:{name:"\u6761\u5F62\u56FE"},fcInlineForm:{name:"\u884C\u5185\u5E03\u5C40"},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:{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:"\u6570\u5B57\u8F93\u5165\u6846",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"}},fcDataSelect:{name:"\u5B50\u8868\u5355\u9009\u62E9\u5668"},select:{name:"\u9009\u62E9\u5668",title:"\u8BF7\u9009\u62E9",emptyText:"\u62D6\u62FD\u7EC4\u4EF6\u914D\u7F6E\u641C\u7D22\u6761\u4EF6",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},props:{title:"\u6807\u9898",valueKey:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",labelKey:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",autoLoad:"\u81EA\u52A8\u89E6\u53D1\u641C\u7D22",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"},stepForm:{name:"\u5206\u6B65\u8868\u5355",event:{next:"\u70B9\u51FB\u4E0B\u4E00\u6B65\u6309\u94AE\u65F6\u89E6\u53D1"},props:{submitBtn:"\u663E\u793A\u63D0\u4EA4\u6309\u94AE",autoValidate:"\u8FDB\u5165\u4E0B\u4E00\u6B65\u524D\u81EA\u52A8\u9A8C\u8BC1\u8868\u5355","stepsProps>alignCenter":"\u8FDB\u884C\u5C45\u4E2D\u5BF9\u9F50","stepsProps>simple":"\u662F\u5426\u5E94\u7528\u7B80\u6D01\u98CE\u683C"}},stepFormItem:{name:"\u6B65\u9AA4\u6761",props:{title:"\u6807\u9898",description:"\u63CF\u8FF0\u6587\u6848"}},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",slots:{"active-action":"\u6253\u5F00\u65F6\u7684\u5185\u5BB9","inactive-action":"\u5173\u95ED\u65F6\u7684\u5185\u5BB9"},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",size:"\u5C3A\u5BF8",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",showIndex:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875",addable:"\u5141\u8BB8\u65B0\u589E",deletable:"\u5141\u8BB8\u5220\u9664",newColumn:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"}},tableFormPro:{name:"\u8868\u683C\u8868\u5355Pro",event:{handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6"}},nestedTableForm:{name:"\u5D4C\u5957\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",nestedMax:"\u5B50\u8868\u5355\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},infiniteTableForm:{name:"\u65E0\u9650\u7EA7\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",childrenField:"\u8BBE\u7F6E\u5B50\u7EA7\u7684\u5B57\u6BB5\u540D",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",layerMax:"\u6700\u591A\u6DFB\u52A0\u51E0\u5C42\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236"}},nestedSubTableForm:{name:"\u5B50\u8868\u683C\u8868\u5355"},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{label:"\u6807\u9898",header:"\u8868\u5934",fixed:"\u4F4D\u7F6E",width:"\u5BBD\u5EA6",color:"\u989C\u8272",hidden:"\u662F\u5426\u9690\u85CF",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},tableFormColumn2:{name:"\u8868\u683C\u683C\u5B50",header:"\u914D\u7F6E\u5F53\u524D\u5217\u7684\u8868\u5934\u540D\u79F0\uFF0C\u91CD\u590D\u7684\u8868\u5934\u5C06\u81EA\u52A8\u5408\u5E76\u3002"},dataTable:{name:"\u6570\u636E\u8868\u683C",handle:"\u7981\u7528\u903B\u8F91",click:"\u70B9\u51FB\u4E8B\u4EF6",filter:"\u7B5B\u9009",header:"\u8868\u5934",event:{cellMouseEnter:"\u5F53\u5355\u5143\u683C hover \u8FDB\u5165\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",cellMouseLeave:"\u5F53\u5355\u5143\u683C hover \u9000\u51FA\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",handleClick:"\u70B9\u51FB\u64CD\u4F5C\u6309\u94AE\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowClick:"\u5F53\u67D0\u4E00\u884C\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",rowDblclick:"\u5F53\u67D0\u4E00\u884C\u88AB\u53CC\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",headerClick:"\u5F53\u67D0\u4E00\u5217\u7684\u8868\u5934\u88AB\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",filterChange:"\u7B5B\u9009\u6761\u4EF6\u53D8\u5316\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",expandChange:"\u5F53\u7528\u6237\u5BF9\u67D0\u4E00\u884C\u5C55\u5F00\u6216\u8005\u5173\u95ED\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",sortChange:"\u5F53\u8868\u683C\u7684\u6392\u5E8F\u6761\u4EF6\u53D1\u751F\u53D8\u5316\u7684\u65F6\u5019\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",selectionChange:"\u5F53\u9009\u62E9\u9879\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1"},button:{title:"\u64CD\u4F5C\u6309\u94AE",btn:"\u914D\u7F6E\u64CD\u4F5C\u6309\u94AE",link:"\u6587\u5B57",round:"\u5706\u89D2",plain:"\u6734\u7D20",disabled:"\u7981\u7528"},column:{title:"\u5217\u8868\u7BA1\u7406",btn:"\u914D\u7F6E\u8868\u683C\u5217\u8868",prop:"\u5B57\u6BB5\u540D\u79F0",sort:"\u6392\u5E8F"},format:{default:"\u5E38\u89C4",tag:"\u6807\u7B7E",image:"\u56FE\u7247",custom:"\u81EA\u5B9A\u4E49"},fixed:{default:"\u5E38\u89C4",left:"\u5DE6\u60AC\u6D6E",right:"\u53F3\u60AC\u6D6E"},sortable:{disabled:"\u4E0D\u6392\u5E8F",default:"\u5E38\u89C4\u6392\u5E8F",custom:"\u63A5\u53E3\u6392\u5E8F"},props:{_optionType:"\u8868\u683C\u6570\u636E","page>totalField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u603B\u6761\u76EE\u6570\u7684\u5B57\u6BB5\u540D\u79F0","page>dataField":"\u63A5\u53E3\u54CD\u5E94\u6570\u636E\u4E2D\u5217\u8868\u6570\u636E\u7684\u5B57\u6BB5\u540D\u79F0","page>orderField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u7684\u53C2\u6570\u540D\u79F0","page>orderByField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6392\u5E8F\u65B9\u5F0F\u7684\u53C2\u6570\u540D\u79F0","page>pageField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u9875\u7801\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)","page>pageSizeField":"\u8BF7\u6C42\u63A5\u53E3\u65F6\u6761\u76EE\u6570\u7684\u53C2\u6570\u540D\u79F0(\u5206\u9875)",column:"\u8868\u683C\u7BA1\u7406",showSummary:"\u662F\u5426\u5728\u8868\u5C3E\u663E\u793A\u5408\u8BA1\u884C",selection:"\u662F\u5426\u663E\u793A\u591A\u9009\u6846",size:"\u5C3A\u5BF8",rowKey:"\u884C\u6570\u636E\u7684Key",emptyText:"\u7A7A\u6570\u636E\u65F6\u663E\u793A\u7684\u6587\u672C\u5185\u5BB9",height:"\u9AD8\u5EA6",index:"\u663E\u793A\u884C\u53F7",stripe:"\u663E\u793A\u6591\u9A6C\u7EB9",border:"\u8FB9\u6846",defaultExpandAll:"\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u884C",button:"\u64CD\u4F5C\u6309\u94AE",page:"\u5206\u9875","button>column":"\u6309\u94AE\u7BA1\u7406","button>label":"\u64CD\u4F5C","button>fixed":"\u4F4D\u7F6E","button>width":"\u5217\u7684\u5BBD\u5EA6","page>position":"\u4F4D\u7F6E","page>props>pageSize":"\u6BCF\u9875\u663E\u793A\u6761\u76EE\u4E2A\u6570","page>props>small":"\u4F7F\u7528\u5C0F\u578B\u5206\u9875\u6837\u5F0F","page>props>background":"\u4E3A\u5206\u9875\u6309\u94AE\u6DFB\u52A0\u80CC\u666F\u8272"},requiredName:"\u8BF7\u8F93\u5165\u6309\u94AE\u540D\u79F0",requiredKey:"\u8BF7\u8F93\u5165\u6309\u94AE\u6807\u8BC6",requiredLabel:"\u8BF7\u8F93\u5165\u6807\u9898",requiredRender:"\u8BF7\u8F93\u5165\u6E32\u67D3\u51FD\u6570"},text:{name:"\u6587\u5B57",props:{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","HH:mm:ss":"\u65F6:\u5206:\u79D2","HH:mm":"\u65F6:\u5206",props:{__format:"\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",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\u7ED3\u675F\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"},slots:{tip:"\u8BF4\u660E"},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"}},audioBox:{name:"\u97F3\u9891\u64AD\u653E\u5668",preloadOpt:{auto:"\u81EA\u52A8",metadata:"\u5143\u6570\u636E",none:"\u7981\u6B62"},event:{pause:"\u97F3\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u97F3\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u97F3\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u97F3\u9891\u5730\u5740",type:"\u97F3\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",muted:"\u662F\u5426\u9759\u97F3",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",preload:"\u9884\u52A0\u8F7D"}},barCodeBox:{name:"\u6761\u5F62\u7801",props:{value:"\u5185\u5BB9",format:"\u6761\u5F62\u7801\u7684\u7C7B\u578B",width:"\u5355\u4E2A\u6761\u5F62\u7684\u5BBD\u5EA6",height:"\u6761\u5F62\u7801\u7684\u9AD8\u5EA6",displayValue:"\u662F\u5426\u663E\u793A\u5185\u5BB9",fontSize:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5927\u5C0F",textPosition:"\u8BBE\u7F6E\u6587\u5B57\u7684\u4F4D\u7F6E",textAlign:"\u8BBE\u7F6E\u6587\u5B57\u7684\u5BF9\u9F50\u65B9\u5F0F",textMargin:"\u8BBE\u7F6E\u6587\u5B57\u7684\u8FB9\u8DDD",background:"\u6761\u5F62\u7801\u7684\u80CC\u666F\u8272",lineColor:"\u7EBF\u6761\u7684\u989C\u8272"}},iframeBox:{name:"\u5185\u5D4C\u9875\u9762",event:{load:"\u9875\u9762\u52A0\u8F7D\u5B8C\u6210\u540E\u89E6\u53D1"},loadingOpt:{eager:"\u7ACB\u5373\u52A0\u8F7D",lazy:"\u5EF6\u8FDF\u52A0\u8F7D"},props:{src:"\u9875\u9762\u94FE\u63A5",loading:"\u52A0\u8F7D\u65B9\u5F0F"}},qrCodeBox:{name:"\u4E8C\u7EF4\u7801",circleTypeOpt:{square:"\u6B63\u65B9\u5F62",dots:"\u70B9\u72B6",rounded:"\u5706\u5F62",classy:"\u7ECF\u5178"},props:{data:"\u5185\u5BB9",image:"\u4E2D\u5FC3\u7684\u56FE\u7247\u94FE\u63A5",width:"\u4E8C\u7EF4\u7801\u7684\u5BBD\u5EA6",height:"\u4E8C\u7EF4\u7801\u7684\u9AD8\u5EA6",circleType:"\u70B9\u7684\u7C7B\u578B",circleColor:"\u70B9\u7684\u989C\u8272"}},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272"}},videoBox:{name:"\u89C6\u9891\u64AD\u653E\u5668",event:{error:"\u89C6\u9891\u52A0\u8F7D\u5931\u8D25\u65F6\u89E6\u53D1",pause:"\u89C6\u9891\u64AD\u653E\u6682\u505C\u65F6\u89E6\u53D1",play:"\u89C6\u9891\u5F00\u59CB\u64AD\u653E\u65F6\u89E6\u53D1",ended:"\u89C6\u9891\u64AD\u653E\u7ED3\u675F\u540E\u89E6\u53D1"},props:{src:"\u89C6\u9891\u5730\u5740",type:"\u89C6\u9891\u7C7B\u578B",autoplay:"\u662F\u5426\u81EA\u52A8\u64AD\u653E",loop:"\u662F\u5426\u5FAA\u73AF\u64AD\u653E",isLive:"\u662F\u5426\u662F\u76F4\u64AD",controls:"\u662F\u5426\u663E\u793A\u63A7\u5236\u6761",withCredentials:"\u662F\u5426\u643A\u5E26\u51ED\u8BC1"}}},tmp:{duration:"\u65F6\u957F",chineseAmount:"\u91D1\u989D",col3:"\u4E09\u5217\u6805\u683C",col4:"\u56DB\u5217\u6805\u683C",table43:"4x3\u8868\u683C"}},rd=(e,t)=>ai.ElMessage({message:e,type:t||"info",customClass:"_fc-message-tip"}),dn=e=>rd(e,"error"),Wa=function(e,t,r,o){const i=o||{};return t.forEach(l=>{e.indexOf(l[r||"id"])>-1&&e.splice(e.indexOf(l[r||"id"]),1,l[i.label||"label"]),dt.trueArray(l[i.children||"children"])&&Wa(e,l[i.children||"children"],r,o)}),e},Db=function(e,t){return t.forEach(r=>{e.indexOf(r.value)>-1&&(e[e.indexOf(r.value)]=r.label)}),e};function Vr(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function Vb(e,t){let r=t.rule.value;const o=t.$render.vNode.h,i=t.type,l=t.$handle.subForm[t.id],d=t.prop.readMode;if(t.prop.title.title&&t.prop.title.title.trim()&&(t.prop.title.title+="\uFF1A"),d===!1||d==="custom"||!t.input||t.rule.subForm||(Array.isArray(l)?l.length:l)||["fcGroup","fcSubForm","tableForm","tableFormPro","fcJson","stepForm","nestedTableForm","infiniteTableForm","fcUpload","fcDialog","fcDrawer","fcPopup"].indexOf(t.trueType)>-1)return t.trueType==="fcUpload"&&(t.prop.props.disabled=!0),t.parser.render(e,t);if(["radio","select","checkbox"].indexOf(i)>-1)r=Db([...Vr(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(i)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(i==="cascader")r=[...Vr(r)],Array.isArray(r[0])||(r=[r]),r=r.map(c=>Wa(c,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value",t.prop.props.props).join("/")).join(", ");else if(i==="elTransfer"){const c=[...Vr(r)];r=Wa(c,t.prop.props.data||t.prop.props.formCreateInject.options||[],"key").join(", ")}else if(i==="fcDataSelect")r=[...Vr(r)].map(u=>u[t.prop.props.labelKey||"label"]).join(", ");else if(["tree","elTreeSelect"].indexOf(i)>-1){const c=t.prop.props.data||t.prop.props.formCreateInject.options||[];r=Wa([...Vr(r)],c,i==="elTreeSelect"?"value":"id").join(", ")}else{if(i==="fcEditor"||d==="html")return o("div",{innerHTML:r});if(d==="image")return r=Vr(r),o("div",{class:"_fc-upload"},r.map(function(c){return o("div",{class:"_fc-upload-preview"},[o("el-image",{src:(c==null?void 0:c.url)||c,previewSrcList:r.map(u=>(u==null?void 0:u.url)||u),previewTeleported:!0,fit:"cover"})])}));if((i==="switch"||i==="el-switch")&&(t.prop.props.activeValue!=null||t.prop.props.inactiveValue!=null))r=t.prop.props.activeValue===r?"\u662F":"\u5426";else{if(i==="signaturePad"&&r)return o("el-image",{src:r,previewTeleported:!0,fit:"cover",style:{height:"90px"}});typeof r=="boolean"&&(r=r?"\u662F":"\u5426")}}return o("span",{class:"_fc-read-view"},[""+(r==null?"":r)])}function Ob(e,t){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('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
|
||
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
|
||
//option.preview = true;
|
||
return {
|
||
formData: {},
|
||
fapi: null,
|
||
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
|
||
option: option
|
||
}
|
||
},
|
||
methods: {
|
||
onSubmit (formData) {
|
||
//todo \u63D0\u4EA4\u8868\u5355
|
||
}
|
||
}
|
||
}
|
||
<\/script>`}function Bb(e,t){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('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
|
||
const rule = ref(formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
|
||
const fapi = ref(null);
|
||
const formData = ref({});
|
||
const onSubmit = (formData) => {
|
||
//todo \u63D0\u4EA4\u8868\u5355
|
||
}
|
||
<\/script>`}function Rb(e,t){return`<template>
|
||
<form-create-mobile
|
||
driver="elm"
|
||
v-model="formData"
|
||
v-model:api="fapi"
|
||
:rule="rule"
|
||
:option="option"
|
||
@submit="onSubmit"
|
||
></form-create-mobile>
|
||
</template>
|
||
<script>
|
||
import formCreate from "@form-create/vant";
|
||
export default {
|
||
components: {
|
||
formCreateMobile: formCreate.$form()
|
||
},
|
||
data () {
|
||
const option = formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
|
||
//\u5F00\u542F\u9605\u8BFB\u6A21\u5F0F
|
||
//option.preview = true;
|
||
return {
|
||
formData: {},
|
||
fapi: null,
|
||
rule: formCreate.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
|
||
option: option
|
||
}
|
||
},
|
||
methods: {
|
||
onSubmit (formData) {
|
||
//todo \u63D0\u4EA4\u8868\u5355
|
||
}
|
||
}
|
||
}
|
||
<\/script>`}function $b(e,t){return`<template>
|
||
<form-create-mobile
|
||
driver="elm"
|
||
v-model="formData"
|
||
v-model:api="fapi"
|
||
:rule="rule"
|
||
:option="option"
|
||
@submit="onSubmit"
|
||
></form-create-mobile>
|
||
</template>
|
||
<script setup>
|
||
import {ref} from "vue";
|
||
import formCreateMobile from "@form-create/vant";
|
||
const option = ref(formCreateMobile.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
|
||
const rule = ref(formCreateMobile.parseJson('${e.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
|
||
const fapi = ref(null);
|
||
const formData = ref({});
|
||
const onSubmit = (formData) => {
|
||
//todo \u63D0\u4EA4\u8868\u5355
|
||
}
|
||
<\/script>`}function od(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function z5(e){}function Qn(e,t,r,o=[]){t.id||(t.id=1),r&&r--;for(let i=0;i<3;i++){const l={[t.label]:e+r*10+(i+1),[t.value]:""+t.id++};r&&Qn(e+(i+1)+"-",t,r,l.children=[]),o.push(l)}return o}function ad(e){return[{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateNative",_fc_important_prop:!1,col:{show:!1},wrap:{show:!1},value:!1,props:{activeValue:!1,inactiveValue:!0}},{type:"input",field:"formCreateTitle",title:e("form.title"),_fc_license:"KrrSN2KlZ2tanmqEGlAE",_fc_important_prop:!1,col:{show:!1},slot:"append"},{type:"select",field:"formCreateWrap>class",title:e("form.labelPosition"),_fc_important_prop:!1,col:{show:!1},slot:"append",options:it(e,[{value:"fc-wrap-top",label:"top"},{value:"fc-wrap-left",label:"left"},{value:"fc-wrap-right",label:"right"}])},{type:"SizeInput",field:"formCreateWrap>labelWidth",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.labelWidth")},{type:"SizeInput",field:"formCreateWrap>style>marginBottom",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.formItemMarginBottom")}]}]}function Pi(e,t,r,o){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],l=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+Br(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:r||"label"},{value:!0,label:"value",key:o||"value"}],keyValue:r||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Ln(e,t,r){const o=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],i=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"Struct",field:"formCreate"+Br(t).replace(".",">"),title:r||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:r||e("props.options"),field:"_optionType",value:2,options:o,props:{type:"button"},control:i}}function Or(e,t,r,o){const i=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],l=[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:t}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:t}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+Br(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:r,value:o},keyValue:r}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:i,props:{type:"button"},control:l}}function Br(e){return e.replace(e[0],e[0].toLocaleUpperCase())}const En=function(e){const t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&bp[t[1].toLowerCase()]?bp[t[1].toLowerCase()](e):e},bp={object:function(e){var t=[];for(var r in e)!li(e,r)||t.push(En(r)+": "+(e[r]!=null?En(e[r]):"null"));return`{
|
||
`+t.join(`,
|
||
`)+`
|
||
}`},function:function(e){e=""+e;var t=/^ *([\w]+) *\(/.exec(e);return t&&t[1]!=="function"?"function "+e:e},array:function(e){for(var t=0,r=[];t<e.length;t++)r[t]=e[t]!=null?En(e[t]):"null";return"["+r.join(", ")+"]"},string:function(e){for(var t=e.split(""),r=0;r<t.length;r++){var o=t[r];o>=" "?o==="\\"?t[r]="\\\\":o==='"'&&(t[r]='\\"'):t[r]=o===`
|
||
`?"\\n":o==="\r"?"\\r":o===" "?"\\t":o==="\b"?"\\b":o==="\f"?"\\f":(o=o.charCodeAt(),"\\u00"+(o>15?1:0)+o%16)}return'"'+t.join("")+'"'}},wp=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let r=e[t];(Array.isArray(r)||dt.Object(r))&&wp(r),dt.String(r)&&(e[t]=Dr(r))}}return e};function Rr(e,t,r){t=(t||"").split(".");let o=0,i=t.length;for(;e!=null&&o<i;)e=e[t[o++]];return o&&o===i&&e!==void 0?e:r}const Ib=e=>(t,r)=>Fb(t,r,n.unref(e)),Fb=(e,t,r)=>Rr(r,e,"").replace(/\{(\w+)\}/g,(o,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),Pb=e=>{const t=n.computed(()=>n.unref(e).name),r=n.computed(()=>Br(id(t.value||""))),o=n.isRef(e)?e:n.ref(e);return{lang:t,name:r,locale:o,t:Ib(e)}},ld=e=>Pb(n.computed(()=>(n.isRef(e)?e.value:e)||yp)),it=(e,t,r)=>t.map(o=>(o.label=e((r||"props")+"."+(o.label||o.value))||o.label,o)),Be=(e,t,r)=>r.map(o=>(o.field==="formCreate$required"?o.title=e("validate.required")||o.title:o.field&&o.field!=="_optionType"&&(o.title=e("com."+t+"."+o.field)||o.title),o.type==="template"&&dt.trueArray(o.children)&&(o.children=Be(e,t,o.children)),o)),sd=e=>{const t=[];return e&&e.forEach(r=>{if(!r._fc_drag_skip)if(r._fc_drag_tag){const o={id:r.__fc__.id,rule:r,children:sd(r.children)};o.children.length||delete o.children,t.push(o)}else t.push(...sd(r.children))}),t},Cp=e=>{const t=r=>{const o=[];return r&&r.forEach(i=>{i._fc_drag_skip||(i.field?(i.children=t(i.children||[]),i.children.length||delete i.children,o.push(i)):o.push(...t(i.children||[])))}),o};return t(e)},_p=e=>{const t=r=>{const o=[];return r&&r.forEach(i=>{if(typeof i=="object")if(i._fc_drag_tag){const l={_fc_id:i._fc_id,_fc_drag_tag:i._fc_drag_tag==="_"?void 0:i._fc_drag_tag,type:i.type,field:i.field,title:i.title,name:i.name,slot:i.slot,props:{...i.props||{}},children:t(i.children||[])};i.children&&typeof i.children[0]=="string"&&(l.content=i.children[0]),l.children.length||delete l.children,o.push(l)}else o.push(...t(i.children))}),o};return t(e)};function on(e){return{name:"$inject",columns:[{label:"$inject.api",info:e("event.inject.api"),type:"Api"},{label:"$inject.rule",info:e("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:e("event.inject.self"),type:"Rule"},{label:"$inject.option",info:e("event.inject.option"),type:"Object"},{label:"$inject.args",info:e("event.inject.args"),type:"Array"}]}}function si(e){return["",null,void 0].indexOf(e)!==-1}function Ep(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function Mb(e,t){const r=e.split("."),o=t.split("."),i=Math.min(r.length,o.length);for(var l=0;l<i;l++){var d=parseInt(r[l],10)-parseInt(o[l],10);if(d>0)return 1;if(d<0)return-1}return r.length===o.length?0:r.length<o.length?-1:1}function di(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left="-9999px",t.value=e,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}rd("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function Ga(e){return e.filter((t,r)=>e.indexOf(t)===r)}let Lb=0;function We(){const e=370+ ++Lb;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function jb(e,t){return function(r,o,i){const l={...r||{}};Object.keys(l).forEach(d=>{si(l[d])&&delete l[d]}),i.getRule(e).props.info=Object.keys(l).length>0?t("struct.configured"):""}}function Sp({t:e}){const t=We();return[{type:"input",field:">formName",value:"",title:e("form.formName")},{type:"radio",field:"labelPosition",value:"left",title:e("form.labelPosition"),options:it(e,[{value:"left",label:"left"},{value:"right",label:"right"},{value:"top",label:"top"}])},{type:"input",field:">tableName",value:"",title:e("form.tableName")},{type:"radio",field:"size",value:"small",title:e("form.size"),options:it(e,[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}])},{type:"input",field:"labelSuffix",value:"",title:e("form.labelSuffix"),style:{width:"150px"}},{type:"SizeInput",field:"labelWidth",value:"125px",title:e("form.labelWidth")},{type:"SizeInput",field:"wrap>style>marginBottom",value:"",title:e("form.formItemMarginBottom")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:e("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:e("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:e("form.inlineMessage")},{type:"switch",field:"_submitBtn>show",value:!0,title:e("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:e("form.resetBtn")},{type:"switch",field:">ignoreHiddenFields",value:!1,title:e("form.ignoreHiddenFields"),warning:e("warning.ignoreHiddenFields")},{type:"ConfigItem",col:{show:!0},name:t,style:"margin-bottom: 10px",props:{label:e("form.labelStyle"),info:""},children:[{type:"StyleConfig",field:"title>style",wrap:{show:!1},value:{},slot:"append",update:jb(t,e)}]},{type:"FnConfig",field:">_event",value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:e("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:e("form.onReset"),args:["api"]},{name:"onCreated",info:e("form.onCreated"),args:["api"]},{name:"onMounted",info:e("form.onMounted"),args:["api"]},{name:"onReload",info:e("form.onReload"),args:["api"]},{name:"onChange",info:e("form.onChange"),args:["field","value","options"]},{name:"beforeSubmit",info:e("form.beforeSubmit"),args:["formData","data"]},{name:"beforeFetch",info:e("form.beforeFetch"),args:["config","data"]}]},title:e("form.event")}]}function Vo({t:e}){return[{type:"ConfigItem",col:{show:!0},style:"margin-bottom: 10px",name:"iskey",props:{label:e("form.iskey"),warning:e("warning.iskey")},children:[{type:"switch",field:"iskey",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"FieldInput",field:"field",value:"",title:e("form.field"),warning:e("warning.field")},{type:"LanguageInput",field:"title",value:"",title:e("form.title")},{type:"Input",field:"fieldtype",value:"",title:e("form.fieldtype")},{type:"LanguageInput",field:"info",value:"",title:e("form.info")},{type:"SpanInput",field:"formCreateCol>span",title:e("form.formItemSpan")},{type:"ConfigItem",col:{show:!0},style:"margin-bottom: 10px",name:"ignoreConfig",props:{label:e("form.ignore"),warning:e("warning.ignore")},children:[{type:"switch",field:"ignore",value:!1,wrap:{show:!1},col:{show:!1}}]},{type:"ConfigItem",col:{show:!0},name:"labelConfig",style:"margin-bottom: 10px",props:{label:e("form.formItem")},children:[{type:"HideConfig",field:"formCreateWrap>title",col:{show:!1},wrap:{show:!1},value:!0},{type:"select",field:"formCreateWrap>class",title:e("form.labelPosition"),col:{show:!1},slot:"append",options:it(e,[{value:"fc-wrap-top",label:"top"},{value:"fc-wrap-left",label:"left"},{value:"fc-wrap-right",label:"right"}])},{type:"SizeInput",field:"formCreateWrap>labelWidth",col:{show:!1},value:"",slot:"append",title:e("form.labelWidth")},{type:"SizeInput",field:"formCreateWrap>style>marginBottom",col:{show:!1},value:"",slot:"append",title:e("form.formItemMarginBottom")}]},{type:"Struct",field:"_control",name:"control",value:[],title:e("form.control"),warning:e("form.controlDocument",{doc:'<a target="_blank" href="https://pro.form-create.com/doc/control" style="color: inherit;text-decoration: underline;">'+e("form.document")+"</a>"}),props:{defaultValue:[],validate(t){return Array.isArray(t)?t.length?!t.some(({rule:r})=>!Array.isArray(r)):!0:!1}}}]}function Ap({t:e}){return[{type:"input",title:"ID",field:"id",wrap:{labelWidth:"45px"}},{type:"GlobalClassSelect",title:"Class",field:"class",wrap:{labelWidth:"45px"}},{type:"StyleConfig",field:"style",title:"",value:{}}]}function xp({t:e}){return[{type:"ComputedConfig",field:"value",value:"",props:{type:"linkage",btn:e("computed.value.btn"),title:e("computed.value.title"),name:e("computed.value.name")},title:e("computed.value.title")},{type:"ComputedConfig",field:"hidden",value:"",props:{btn:e("computed.hidden.btn"),title:e("computed.hidden.title"),name:e("computed.hidden.name"),invertLabel:e("props.show"),validLabel:e("props.hide")},title:e("computed.hidden.title")},{type:"ComputedConfig",field:"$required",value:"",props:{btn:e("computed.required.btn"),title:e("computed.required.title"),name:e("computed.required.name"),invertLabel:e("validate.modes.notRequired"),validLabel:e("validate.modes.required")},title:e("computed.required.title")},{type:"ComputedConfig",field:"props.disabled",value:"",props:{btn:e("computed.disabled.btn"),title:e("computed.disabled.title"),name:e("computed.disabled.name"),invertLabel:e("props.enable"),validLabel:e("props.disabled")},title:e("computed.disabled.title")}]}function kp({t:e}){return[{type:"Required",field:"$required",title:e("validate.required")},{type:"validate",field:"validate",title:e("validate.rule"),value:[]}]}function zb(e){e=e||new Map;const t={$on(r,o){const i=e.get(r);i&&i.push(o)||e.set(r,[o])},$once(r,o){o._once=!0,t.$on(r,o)},$off(r,o){const i=e.get(r);i&&i.splice(i.indexOf(o)>>>0,1)},$emit(r,...o){(e.get(r)||[]).slice().map(i=>{i._once&&(t.$off(r,i),delete i._once),i(...o)}),(e.get("*")||[]).slice().map(i=>{i(r,o)})}};return t}const Ub="\u5355\u9009\u6846",dd="radio",Hb={menu:"main",icon:"icon-radio",label:Ub,name:dd,input:!0,event:["change"],validate:["string","number"],condition:{type:"select",options:"options"},sfc(e){e.type="elRadioGroup",e.children=(e.options||[]).map(t=>({type:e.props.type==="button"?"elRadioButton":"elRadio",props:{label:t.value,value:t.value},_sfc:{content:t.label}})),delete e.props.type},rule({t:e}){return{type:dd,field:We(),title:e("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Qn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Be(t,dd+".props",[Pi(t,"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"}])}},Wb="\u591A\u9009\u6846",cd="checkbox",Gb={menu:"main",icon:"icon-checkbox",label:Wb,name:cd,input:!0,event:["change"],validate:["array"],condition:{type:"select",options:"options"},sfc(e){e.type="elCheckboxGroup",e.children=(e.options||[]).map(t=>({type:e.props.type==="button"?"elCheckboxButton":"elCheckbox",props:{label:t.value,value:t.value},_sfc:{content:t.label}})),delete e.props.type},rule({t:e}){return{type:cd,field:We(),title:e("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Qn(e("props.option"),{label:"label",value:"value"},1)}},props(e,{t}){return Be(t,cd+".props",[Pi(t,"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"}])}},Kb="\u8F93\u5165\u6846",ud="input",Yb={menu:"main",icon:"icon-input",label:Kb,name:ud,input:!0,easySlots:["prefix","suffix","prepend","append"],event:["blur","focus","change","input","clear"],validate:["string","url","email"],rule({t:e}){return{type:ud,field:We(),title:e("com.input.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,ud+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"select",field:"type",options:it(t,[{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"}])}},Qb="\u591A\u884C\u8F93\u5165\u6846",Np="textarea",Jb={menu:"main",icon:"icon-textarea",label:Qb,name:Np,input:!0,event:["blur","focus","change","input"],validate:["string"],rule({t:e}){return{type:"input",field:We(),title:e("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(e,{t}){return Be(t,Np+".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"}])}},Xb="\u5BC6\u7801\u8F93\u5165\u6846",Tp="password",Zb={menu:"main",icon:"icon-password",label:Xb,name:Tp,input:!0,easySlots:["prefix","suffix","prepend","append"],event:["blur","focus","change","input","clear"],validate:["string"],rule({t:e}){return{type:"input",field:We(),title:e("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(e,{t}){return Be(t,Tp+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},qb="\u8BA1\u6570\u5668",fd="inputNumber",e1={menu:"main",icon:"icon-number",label:qb,name:fd,input:!0,easySlots:["prefix","suffix"],event:["blur","focus","change"],validate:["number","integer","float"],condition:"number",rule({t:e}){return{type:fd,field:We(),title:e("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,fd+".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:it(t,[{label:"default",value:""},{label:"right",value:"right"}])},{type:"input",field:"placeholder"}])}},t1="\u9009\u62E9\u5668",pd="select",n1={menu:"main",icon:"icon-select",label:t1,name:pd,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],condition:{type:"select",options:"options"},sfc(e){e.type="elSelect",e.children=(e.options||[]).map(t=>({type:"elOption",props:{label:t.label,value:t.value}}))},rule({t:e}){return{type:pd,field:We(),title:e("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:Qn(e("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:e}){e.key=We()}},props(e,{t}){return Be(t,pd+".props",[Pi(t,"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,button:!0,fnx:!0,name:"remoteMethod",args:[on(t)]}},{type:"switch",field:"allowCreate"},{type:"input",field:"noMatchText"},{type:"input",field:"noDataText"},{type:"switch",field:"reserveKeyword"},{type:"switch",field:"defaultFirstOption"}])}},i1="\u5F00\u5173",hd="switch",r1={menu:"main",icon:"icon-switch",label:i1,name:hd,input:!0,easySlots:["active-action","inactive-action"],event:["change"],condition:function(e){return{type:"switch",props:{activeValue:e.props.activeValue,inactiveValue:e.props.inactiveValue,activeText:e.props.activeText,inactiveText:e.props.inactiveText}}},rule({t:e}){return{type:hd,field:We(),title:e("com.switch.name"),info:"",$required:!1,props:{activeValue:!0,inactiveValue:!1}}},props(e,{t}){return Be(t,hd+".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"}])}},o1="\u6ED1\u5757",md="slider",a1={menu:"main",icon:"icon-slider",label:o1,name:md,input:!0,event:["change","input"],validate:["number","array"],condition:"number",rule({t:e}){return{type:md,field:We(),title:e("com.slider.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,md+".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"}])}},l1="\u65F6\u95F4",Oo="timePicker",Dp={menu:"main",icon:"icon-time",label:l1,name:Oo,input:!0,event:["change","blur","focus","visibleChange"],sfc(e){e.props.valueFormat||(e.props.valueFormat="HH:mm:ss")},rule({t:e}){return{type:Oo,field:We(),title:e("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:e}){e.key=We()},__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Be(t,Oo+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"isRange"},{type:"switch",field:"clearable",value:!0},{type:"select",field:"__format",options:[{label:t("com."+Oo+".HH:mm:ss"),value:"HH:mm:ss"},{label:t("com."+Oo+".HH:mm"),value:"HH:mm"}]},{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:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},s1={menu:"main",icon:"icon-time-range",label:"\u65F6\u95F4\u533A\u95F4",name:"timeRange",input:!0,event:["change","blur","focus","visibleChange"],sfc:Dp.sfc,rule({t:e}){return{type:"timePicker",field:We(),title:e("com.timeRange.name"),info:"",$required:!1,props:{isRange:!0}}},watch:{__format({value:e,rule:t}){t.props.format=e,t.props.valueFormat=e}},attrs:{format({rule:e}){return e.props.format||""}},props(e,{t}){return Be(t,"timePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable",value:!0},{type:"select",field:"__format",options:[{label:t("com.timePicker.HH:mm:ss"),value:"HH:mm:ss"},{label:t("com.timePicker.HH:mm"),value:"HH:mm"}]},{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:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},d1="\u65E5\u671F",gd="datePicker",Vp={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"},Op={menu:"main",icon:"icon-date",label:d1,name:gd,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],sfc(e){e.props.valueFormat||(e.props.valueFormat=Vp[e.props.type]||Vp.date)},rule({t:e}){return{type:gd,field:We(),title:e("com.datePicker.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,gd+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{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:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},c1={menu:"main",icon:"icon-date-range",label:"\u65E5\u671F\u533A\u95F4",name:"dateRange",input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],sfc:Op.sfc,rule({t:e}){return{type:"datePicker",field:We(),title:e("com.dateRange.name"),info:"",$required:!1,props:{type:"datetimerange"}}},props(e,{t}){return Be(t,"datePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{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:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},u1="\u8BC4\u5206",vd="rate",f1={menu:"main",icon:"icon-rate",label:u1,name:vd,input:!0,event:["change"],validate:["number"],condition:"number",rule({t:e}){return{type:vd,field:We(),title:e("com.rate.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,vd+".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"}])}},p1="\u989C\u8272\u9009\u62E9\u5668",yd="colorPicker",h1={menu:"main",icon:"icon-color",label:p1,name:yd,input:!0,event:["change","activeChange","focus","blur"],validate:["string"],condition:"color",rule({t:e}){return{type:yd,field:We(),title:e("com.colorPicker.name"),info:"",$required:!1,props:{predefine:["#c9e6fc","#c3f2f2","#c2f1d2","#fef6c6","#ffe5c2","#fdcac2","#fadcce","#dec2fa","#ccd2f1","#2196f3","#08c9c9","#00c344","#fad714","#ff9300","#f52222","#eb2f96","#800080","#7500ea","#2d46c4","#000000","#333333","#5a5a5a","#757575","#9e9e9e","#bdbdbd","#dddddd","#f5f5f5","#ffffff"]}}},props(e,{t}){return Be(t,yd+".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:t("props.value"),key:"value"}],valueType:"string"}}])}},m1="\u6805\u683C\u5E03\u5C40",bd="fcRow",g1={menu:"layout",icon:"icon-row",label:m1,name:bd,mask:!1,children:"col",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("style.width"),vnode:t(r("el-slider"),{size:"small",min:0,max:24,modelValue:o.props.span,"onUpdate:modelValue":i=>{o.props.span=i}})}]},sfc(e){e.type="elRow"},rule(){return{type:bd,props:{},children:[]}},props(e,{t}){return Be(t,bd+".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"}]}])}},wd="col",Bp={xs:"<768px",sm:"\u2265768px",md:"\u2265992px",lg:"\u22651200px",xl:"\u22651920px"},v1={name:wd,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:wd,props:{span:12},children:[]}},props(e,{t}){return Be(t,wd+".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:t("props.reactive"),warning:t("com.col.info")},children:[{type:"elTabs",style:{width:"100%"},slot:"append",children:Object.keys(Bp).map(r=>({type:"elTabPane",props:{label:Bp[r]},style:"padding:0 10px;",children:[{type:"slider",field:r+">span",title:t("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:r+">offset",title:t("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:r+">push",title:t("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:r+">pull",title:t("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},y1="\u9009\u9879\u5361",Cd="elTabPane",b1={label:y1,name:Cd,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t:e}){return{type:Cd,props:{label:e("com.elTabPane.name")},children:[]}},props(e,{t}){return Be(t,Cd+".props",[{type:"input",field:"label"},{type:"switch",field:"disabled"},{type:"input",field:"name"},{type:"switch",field:"lazy"}])}},w1="\u5206\u5272\u7EBF",_d="elDivider",C1={menu:"aide",icon:"icon-divider",label:w1,name:_d,rule({t:e}){return{type:_d,props:{},children:[e("com.elDivider.name")]}},props(e,{t}){return Be(t,_d+".props",[{type:"select",field:"direction",options:it(t,[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}])},{type:"input",field:"formCreateChild"},{type:"select",field:"contentPosition",options:it(t,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])}])}},_1="\u7EA7\u8054\u9009\u62E9\u5668",Ka="cascader",E1={menu:"main",icon:"icon-cascader",label:_1,name:Ka,input:!0,event:["change","expandChange","blur","focus","visibleChange","removeTag"],validate:["string","number","array"],condition(e){return{type:"cascader",options:"props.options",props:{props:e.props&&e.props.props||{}}}},rule({t:e}){return{type:Ka,field:We(),title:e("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:Qn(e("props.option"),{label:"label",value:"value"},3)}}},props(e,{t}){return Be(t,Ka+".props",[Or(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"input",field:"placeholder"},{type:"Object",field:"props",props:{rule:Be(t,Ka+".propsOpt",[{type:"switch",field:"multiple"},{type:"select",field:"expandTrigger",options:it(t,[{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"}]}])}},S1="\u4E0A\u4F20",Ed="upload",A1={menu:"main",icon:"icon-upload",label:S1,name:Ed,input:!0,easySlots:[{value:"tip",type:"text"}],event:["change","remove","preview","error","progress","exceed"],languageKey:["clickToUpload"],validate:["array"],sfc(e){e.type="elUpload",e.props.listType||(e.props.listType="picture-card"),e._sfc.modelField="fileList"},rule({t:e}){return{type:Ed,field:We(),title:e("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(e,{t}){return Be(t,Ed+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:it(t,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"name"},{type:"PromptInput",field:"accept",props:{options:[{label:t("props.image"),value:"image/*"},{label:t("props.document"),value:".pdf,.doc,.docx,.xml,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"},{label:t("props.video"),value:"video/*"},{label:t("props.audio"),value:"audio/*"}]}},{type:"input",field:"action"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"onSuccess"}},{type:"TableOptions",field:"headers",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"switch",field:"autoUpload",value:!0},{type:"inputNumber",field:"limit",props:{min:0}}])}},x1="\u7A7F\u68AD\u6846",Sd="elTransfer",k1={menu:"main",icon:"icon-transfer",label:x1,name:Sd,input:!0,event:["change","leftCheckChange","rightCheckChange"],validate:["array"],condition:function(e){return{type:"select",options:e.props.data?e.props.data.map(t=>({label:t.label,value:t.key})):[]}},rule({t:e}){return{type:Sd,field:We(),title:e("com.elTransfer.name"),info:"",$required:!1,props:{data:Qn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return Be(t,Sd+".props",[Pi(t,"props.data","label","key"),{type:"switch",field:"filterable"},{type:"input",field:"filterPlaceholder"},{type:"select",field:"targetOrder",warning:t("com.elTransfer.props.targetOrderInfo"),options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"TableOptions",field:"titles",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}},{type:"TableOptions",field:"buttonTexts",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}}])}},N1="\u6811\u5F62\u63A7\u4EF6",Ad="tree",T1={menu:"main",icon:"icon-tree",label:N1,name:Ad,input:!0,event:["nodeClick","nodeContextmenu","checkChange","check","currentChange","nodeExpand","nodeCollapse","nodeDragStart","nodeDragEnter","nodeDragLeave","nodeDragOver","nodeDragEnd","nodeDrop"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.data||[],props:{props:{checkStrictly:!0,emitPath:!1,value:"id"}}}},sfc(e){e.type="elTree",e._sfc.modelField="defaultCheckedKeys"},rule({t:e}){return{type:Ad,field:We(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:Qn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return Be(t,Ad+".props",[Or(t,"props.data","label","id"),{type:"input",field:"emptyText"},{type:"TableOptions",field:"props",props:{column:[{label:t("props.key"),key:"label"},{label:t("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"}])}},D1="\u63D0\u793A",xd="elAlert",V1={menu:"aide",icon:"icon-alert",label:D1,name:xd,event:["close"],rule({t:e}){return{type:xd,props:{title:e("com.elAlert.name"),description:e("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props(e,{t}){return Be(t,xd+".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"}]}])}},O1="\u6587\u5B57",Rp="text",B1={menu:"aide",icon:"icon-span",label:O1,name:Rp,inline:!0,rule({t:e}){return{type:"div",title:"",style:{whiteSpace:"pre-line"},children:[e("com.text.name")]}},props(e,{t}){return Be(t,Rp+".props",[{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},R1={menu:"layout",icon:"icon-space",label:"\u95F4\u8DDD",name:"space",rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(){return[]}},$1="\u6807\u7B7E\u9875",kd="elTabs",I1={menu:"layout",icon:"icon-tab",label:$1,name:kd,mask:!1,event:["tabClick","tabChange","tabRemove","tabAdd","edit"],children:"elTabPane",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},rule(){return{type:kd,style:{width:"100%"},props:{modelValue:"0"},sync:["modelValue"],children:[]}},props(e,{t}){return Be(t,kd+".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:it(t,[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"stretch"}])}},F1="\u6309\u94AE",Nd="elButton",P1={menu:"aide",icon:"icon-button",label:F1,name:Nd,mask:!0,inline:!0,easySlots:[{value:"icon",type:"icon"}],event:["click"],rule({t:e}){return{type:Nd,props:{},children:[e("com.elButton.name")]}},props(e,{t}){return Be(t,Nd+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",options:it(t,[{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"}])}},M1="\u5BCC\u6587\u672C\u6846",Td="fcEditor",L1={menu:"main",icon:"icon-editor",label:M1,name:Td,input:!0,event:["change"],validate:["string"],rule({t:e}){return{type:Td,field:We(),title:e("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Td+".props",[{type:"switch",field:"disabled"}])}},j1="\u5B50\u8868\u5355",$p="group",z1={menu:"subform",icon:"icon-subform",label:j1,name:$p,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,event:["change"],subForm:"array",loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="group",delete e.children,delete e.props.mode},sfc:!1,rule({t:e}){return{type:"fcRow",field:We(),title:e("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,$p+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},U1="\u5206\u7EC4",Ip="subForm",H1={menu:"subform",icon:"icon-group",label:U1,name:Ip,input:!0,inside:!1,drag:!0,dragBtn:!0,mask:!1,subForm:"object",event:["change"],loadRule(e){e.children=e.props.rule||[],e.type="FcRow",delete e.props.rule},parseRule(e){e.props.rule=e.children,e.type="subForm",delete e.children},sfc(e,{getParentFieldStr:t}){return{type:"elFormItem",props:{prop:t()+e.field,label:e.title,required:e.$required===!0?!0:void 0},col:{show:!0},_sfc:{parentField:e.field},_fc_id:e._fc_id,children:[{type:"elRow",class:e.class,style:e.style,children:e.children}]}},rule({t:e}){return{type:"fcRow",field:We(),title:e("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,Ip+".props",[{type:"switch",field:"disabled"}])}},W1="\u5361\u7247",Dd="elCard",G1={menu:"layout",icon:"icon-card",label:W1,name:Dd,drag:!0,inside:!1,mask:!1,rule({t:e}){return{type:Dd,props:{header:e("com.elCard.props.header")},style:{width:"100%"},children:[]}},props(e,{t}){return Be(t,Dd+".props",[{type:"input",field:"header"},{type:"select",field:"shadow",value:"always",options:it(t,[{label:"always",value:"always"},{label:"never",value:"never"},{label:"hover",value:"hover"}])}])}},K1="\u6298\u53E0\u9762\u677F",Vd="elCollapse",Y1={menu:"layout",icon:"icon-collapse",label:K1,name:Vd,mask:!1,children:"elCollapseItem",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.title,"onUpdate:modelValue":i=>{o.props.title=i}})}]},event:["change"],rule(){return{type:Vd,props:{modelValue:[]},sync:["modelValue"],style:{width:"100%"},children:[]}},props(e,{t}){return Be(t,Vd+".props",[{type:"switch",field:"accordion"}])}},Q1="\u9762\u677F",Od="elCollapseItem",J1={icon:"icon-cell",label:Q1,name:Od,drag:!0,dragBtn:!1,inside:!0,mask:!1,easySlots:[{value:"icon",type:"icon"}],rule({t:e}){return{type:Od,props:{title:e("com.elCollapseItem.name"),name:We()},style:{},children:[]}},props(e,{t}){return Be(t,Od+".props",[{type:"input",field:"title"},{type:"input",field:"name"},{type:"switch",field:"disabled"}])}},X1="\u6811\u5F62\u9009\u62E9",Bd="elTreeSelect",Z1={menu:"main",icon:"icon-tree-select",label:X1,name:Bd,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],condition:function(e){return{type:"cascader",options:e.props.data||[],props:{props:{checkStrictly:!0,emitPath:!1}}}},rule({t:e}){return{type:Bd,field:We(),title:e("com.elTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{nodeKey:"value",showCheckbox:!0,data:Qn(e("props.option"),{label:"label",value:"value"},3)}}},watch:{multiple({rule:e}){e.key=We()}},props(e,{t}){return Be(t,Bd+".props",[Or(t,"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:t("props.key"),key:"label"},{label:t("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:"checkStrictly"},{type:"input",field:"nodeKey"}])}},q1="\u6807\u7B7E",Rd="elTag",ew={menu:"aide",icon:"icon-tag",label:q1,name:Rd,mask:!0,inline:!0,event:["click","close"],rule({t:e}){return{type:Rd,title:"",children:[e("com.elTag.name")]}},props(e,{t}){return Be(t,Rd+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"type",options:it(t,[{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:it(t,[{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"}])}},tw="\u63CF\u8FF0\u683C\u5B50",$d="elDescriptionsItem",nw={icon:"icon-cell",label:tw,name:$d,dragBtn:!1,inside:!0,mask:!1,rule({t:e}){return{type:$d,props:{label:e("props.title")},children:[e("props.content")]}},watch:{__child({value:e,rule:t}){t.children[0].children[0]=e}},attrs:{child({rule:e}){return e.children[0].children[0]||""}},props(e,{t}){return Be(t,$d+".props",[{type:"input",field:"label"},{type:"input",field:"__child",_fc_important_prop:"formCreateChild"},{type:"inputNumber",field:"span"},{type:"input",field:"width"},{type:"input",field:"minWidth"},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"select",field:"labelAlign",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"className"}])}},iw="\u63CF\u8FF0\u5217\u8868",Id="elDescriptions",rw={menu:"layout",icon:"icon-descriptions",label:iw,name:Id,mask:!1,rule(){return{type:Id,props:{border:!0},style:{width:"100%"},children:[]}},children:"elDescriptionsItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},props(e,{t}){return Be(t,Id+".props",[{type:"input",field:"title",value:""},{type:"input",field:"extra",value:""},{type:"inputNumber",field:"column",value:3,props:{min:0}},{type:"switch",field:"border"},{type:"select",field:"direction",options:it(t,[{label:"vertical",value:"vertical"},{label:"horizontal",value:"horizontal"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},ow="\u5206\u6B65\u8868\u5355",Fd="stepForm",aw={menu:"subform",icon:"icon-step-form",label:ow,name:Fd,input:!0,mask:!1,languageKey:["prevStep","nextStep","submit"],event:["change","submit","next"],subForm:"object",children:"stepFormItem",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.title,"onUpdate:modelValue":i=>{o.props.title=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.steps||{};e.children=t.map(r=>({type:"stepFormItem",_fc_drag_tag:"stepFormItem",props:{title:r.props.title,description:r.props.description},children:r.rule})),delete e.props.steps},parseRule(e){const t=e.children||[];e.props.steps=t.map(r=>({props:r.props,rule:r.children})),e.children=[]},sfc:!1,rule(){return{type:Fd,field:We(),title:"",info:"",$required:!1,props:{},children:[]}},props(e,{t}){return Be(t,Fd+".props",[{type:"switch",field:"submitBtn",value:!0},{type:"switch",field:"autoValidate"},{type:"switch",field:"stepsProps>alignCenter"},{type:"switch",field:"stepsProps>simple"}])}},lw="\u6B65\u9AA4\u6761",Pd="stepFormItem",sw={icon:"icon-cell",label:lw,name:Pd,aide:!0,drag:!0,dragBtn:!1,inside:!0,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:Pd,props:{title:e("com.stepFormItem.props.title"),description:""},children:[]}},props(e,{t}){return Be(t,Pd+".props",[{type:"input",field:"title",value:""},{type:"input",field:"description",value:""}])}},dw="HTML",Md="html",cw={menu:"aide",icon:"icon-html",label:dw,name:Md,sfc(e){e.type="div"},rule(){return{type:Md,title:"",style:{display:"block",width:"100%"},children:['<div style="color:#2E73FF;display:flex;align-items:center;"><img style="width:20px;height:20px;display:inline-block;"src="https://static.form-create.com/example.png"data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAIAAABLixI0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAGaADAAQAAAABAAAAGQAAAABY85deAAABuElEQVQ4Ee2UTYtBYRTH595BIu8hoYSNfAFJVrKxsFA+gg9laycLG7KQHUo+gRAhRaHI+8v8ZOYu7jTNTM1iauZZnOc8/+c8/3PP/5yu0G63n35oiT/Ec6f55/qemL9VL8VkMimVSo9iUqlUuVze7Xay2mw222w2A4zFYl6v93ELUiwW8YPBoNForNfrCqfTSUS1Wk0mkxaLRalUxuNxu92ey+XC4bDb7a7Van6/fzQardfrbrcrcS0WC4PBQEAoFBIE4XA4KCA2m81YvV6PjUQiEOE8lkqlikajxN1uN2yr1TqdTuTj9nK54Oh0OlG8iw6JXHuXy/VK87ZpNBqTycSJHGq1ejgc4q9WKz7qLeR1F7PZbD6fl6EfHSmw3+9zi8rvs4qZTCadTn/0WIb7fD6EOx6PlCy74iiv8X2EhFyvV6vVqtVqm82mw+GQcMm5c223WywSSCgIGi+XSwQGPJ/P4/G41+vhUOZ8Pqfj+/2e6aG55CBms9k8JxKJx3x1Oh2Px4PS0+m0UCgQgUMC6qpUKoPBgIHiZSAQoH0Iz9CQD5D+gjcaDeH/Xyh14yvON2biU7q/wPUCZDXIe9hWJkQAAAAASUVORK5CYII="/><span style="font-size:16px;">HTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTMLHTML</span></div>']}},props(e,{t}){return Be(t,Md+".props",[{type:"HtmlEditor",field:"formCreateChild"}])}},uw="\u8868\u683C\u5E03\u5C40",Ld="fcTable",fw={menu:"layout",icon:"icon-table",label:uw,name:Ld,inside:!1,mask:!1,sfc:{style:`._fc-table {
|
||
overflow: auto;
|
||
}
|
||
._fc-table > table {
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
table-layout: fixed;
|
||
border: 1px solid #EBEEF5;
|
||
border-bottom: 0 none;
|
||
border-right: 0 none;
|
||
}
|
||
._fc-table tr {
|
||
min-height: 50px;
|
||
}
|
||
._fc-table td {
|
||
padding: 5px;
|
||
min-height: 50px;
|
||
min-width: 80px;
|
||
position: relative;
|
||
box-sizing: border-box;
|
||
overflow-wrap: break-word;
|
||
overflow: hidden;
|
||
border: 0 none;
|
||
border-right: 1px solid #EBEEF5;
|
||
border-bottom: 1px solid #EBEEF5;
|
||
}`,handle(e){const t=(e.children||[]).reduce((m,y)=>(m[y.slot]||(m[y.slot]=[]),m[y.slot].push(y),delete y.slot,m),{}),{row:r,col:o,style:i,class:l,layout:d}=e.props.rule,c={},u=[];d.forEach(m=>{const y=m.row||1,C=m.col||1,A=`${m.top}:${m.left}`;c[A]={row:y,col:C};for(let w=0;w<y;w++)for(let E=0;E<C;E++){if(w===0&&w===E)continue;const b=`${m.top+w}:${m.left+E}`;t[b]&&(t[A]=(t[A]||[]).concat(t[b]),delete t[b]),u.push(b)}});const h=[];for(let m=0;m<r;m++){const y=[];for(let C=0;C<o;C++){const A=`${m}:${C}`;if(u.indexOf(A)>-1)continue;const w=t[A];y.push({type:"td",props:{rowspan:""+(c[A]?c[A].row:1),colspan:""+(c[A]?c[A].col:1)},style:i[A],class:l[A],children:w})}h.push({type:"tr",children:y})}return{type:"elCol",props:{span:24},style:e.style,class:e.class,children:[{type:"div",class:"_fc-table",children:[{type:"table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:h}]}]}}},rule(){return{type:Ld,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return Be(t,Ld+".props",[{type:"switch",field:"border",value:!0},{type:"switch",field:"mini"},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},pw="\u8868\u683C\u8868\u5355",jd="tableForm",hw={menu:"subform",icon:"icon-table-form",label:pw,name:jd,input:!0,mask:!1,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(r=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:r.label,required:r.required||!1,width:r.style.width||"",color:r.style.color||""},children:r.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(r=>({label:r.props.label,required:r.props.required,style:{width:r.props.width,color:r.props.color},rule:r.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:jd,field:We(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,jd+".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}}])}},mw="\u8868\u683C\u8868\u5355Pro",gw="tableFormPro",Fp=e=>e.map(t=>{let r=t.children||[];const o=r.filter(i=>i._fc_drag_tag==="tableFormColumn2");return o.length>0&&(r=Fp(o)),{header:t.props.header,label:t.props.label,fixed:t.props.fixed,required:t.props.required,hidden:t.props.hidden,style:{width:t.props.width,color:t.props.color},[o.length?"children":"rule"]:r}}),Pp=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn2",props:{header:t.header,label:t.label,fixed:t.fixed,required:t.required||!1,hidden:t.hidden||!1,width:t.style.width||"",color:t.style.color||""},children:t.children?Pp(t.children):t.rule||[]})),vw={menu:"subform",icon:"icon-table-form",label:mw,name:gw,input:!0,mask:!1,subForm:"array",languageKey:["add","delete","operation","dataEmpty"],event:["change","add","delete","handleClick"],children:"tableFormColumn2",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={}),e.children=Pp(e.props.columns||[]),delete e.props.columns},parseRule(e){e.props.columns=Fp(e.children||[]),e.children=[]},sfc:!1,rule({t:e}){return{type:"tableFormPro",field:We(),title:e("com.tableFormPro.name"),info:"",props:{button:{open:!0,column:[{key:"delete",name:"\u5220\u9664",type:"danger",size:"small",prop:["link"]}]}},children:[]}},props(e,{t}){const r=function(o){return Be(t,"tableForm.props",o)};return Be(t,"tableForm.props",[{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{type:"HideConfig",title:t("com.dataTable.props.button"),wrap:{show:!1},col:{show:!1},field:"button>open"},{type:"template",slot:"append",children:r([{type:"TableButtonConfig",col:{show:!1},field:"button>column"},{type:"input",col:{show:!1},field:"button>label",value:"\u64CD\u4F5C"},{type:"select",col:{show:!1},field:"button>fixed",options:[{label:t("com.dataTable.fixed.default"),value:!1},{label:t("com.dataTable.fixed.left"),value:"left"},{label:t("com.dataTable.fixed.right"),value:"right"}],value:"right"},{type:"SizeInput",col:{show:!1},field:"button>width",value:"100px"}])}]},{type:"ConfigItem",props:{label:t("com.dataTable.props.page")},col:{show:!0},children:[{type:"HideConfig",wrap:{show:!1},col:{show:!1},title:t("com.dataTable.props.page"),field:"page>open"},{type:"template",slot:"append",children:r([{type:"inputNumber",col:{show:!1},field:"page>props>pageSize",value:20},{type:"switch",col:{show:!1},field:"page>props>small"},{type:"switch",col:{show:!1},field:"page>props>background"}])}]},{type:"switch",field:"disabled"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"input",field:"emptyText"},{type:"switch",field:"stripe"},{type:"switch",field:"border"},{type:"switch",field:"showIndex"},{type:"switch",field:"addable",value:!0},{type:"switch",field:"deletable",value:!0},{type:"switch",field:"newColumn"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"SizeInput",field:"height"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}}])}},yw="\u65E0\u9650\u7EA7\u8868\u5355",Ya="infiniteTableForm",bw={menu:"subform",icon:"icon-table-form3",label:yw,name:Ya,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(r=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:r.label,required:r.required||!1,width:r.style.width||"",color:r.style.color||""},children:r.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(r=>({label:r.props.label,required:r.props.required,style:{width:r.props.width,color:r.props.color},rule:r.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:Ya,field:We(),title:e("com."+Ya+".name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,Ya+".props",[{type:"switch",field:"disabled"},{type:"input",field:"childrenField",value:"children"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"layerMax",props:{min:0}}])}},ww="\u5D4C\u5957\u8868\u5355",Qa="nestedTableForm",Cw=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:t.label,required:t.required||!1,width:t.style.width||"",color:t.style.color||""},children:t.rule||[]})),_w={menu:"subform",icon:"icon-table-form2",label:ww,name:Qa,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],slot:["default",{name:"nested",type:"nestedSubTableForm"}],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[],r=e.props.nested||[];e.children=Cw(t),e.children.push({type:"TableForm",_fc_drag_tag:"nestedSubTableForm",field:e.props.nestedField,props:{columns:r},slot:"nested"}),delete e.props.nestedField,delete e.props.columns,delete e.props.nested},parseRule(e){const t=e.children||[];e.props.columns=[],t.forEach(r=>{if(r.slot==="nested"){e.props.nested=r.props.columns,e.props.nestedField=r.field;return}e.props.columns.push({label:r.props.label,required:r.props.required,style:{width:r.props.width,color:r.props.color},rule:r.children||[]})}),e.children=[]},sfc:!1,rule({t:e}){return{type:Qa,field:We(),title:e("com."+Qa+".name"),info:"",props:{},children:[]}},props(e,{t}){return Be(t,Qa+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"nestedMax",props:{min:0}}])}},Ew={icon:"icon-table-form",label:"\u5B50\u8868\u683C\u8868\u5355",name:"nestedSubTableForm",aide:!0,mask:!1,validate:!1,style:!1,advanced:!1,variable:!1,subForm:"array",hiddenBaseField:["title","info","labelConfig","formCreate_computed>hidden","formCreate_computed>value","_control"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("props.title"),vnode:t(r("el-input"),{size:"small",modelValue:o.props.label,"onUpdate:modelValue":i=>{o.props.label=i}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(r=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:r.label,required:r.required||!1,width:r.style.width||"",color:r.style.color||""},children:r.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(r=>({label:r.props.label,required:r.props.required,style:{width:r.props.width,color:r.props.color},rule:r.children||[]})),e.children=[]},rule(){return{type:"TableForm",field:We(),title:"",info:"",props:{},children:[]}},props(){return[]}},zd="tableFormColumn",Sw={icon:"icon-cell",name:zd,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,rule({t:e}){return{type:zd,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Be(t,zd+".props",[{type:"input",field:"label"},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},Mp="tableFormColumn2",Aw={icon:"icon-cell",name:Mp,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,advanced:!1,variable:!1,children:"tableFormColumn2",childrenLen:0,checkDrag({toRule:e}){return!(e.children[0].children.length>0&&e.children[0].children.some(t=>t._config.name==="tableFormColumn2"))},rule({t:e}){return{type:Mp,props:{label:e("com.tableFormColumn.label"),width:"auto"},children:[]}},props(e,{t}){return Be(t,"tableFormColumn.props",[{type:"input",field:"label"},{type:"select",field:"fixed",options:[!1,"left","right"].map(r=>({label:t("com.dataTable.fixed."+(r||"default")),value:r}))},{type:"switch",field:"required"},{type:"switch",field:"hidden"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},xw={icon:"icon-flex",label:"\u76D2\u5B50\u5E03\u5C40",name:"fcFlex",mask:!1,children:"fcCell",childrenLen:2,subRender({t:e,h:t,resolveComponent:r,subRule:o}){return[{label:e("style.width"),vnode:t(r("SizeInput"),{size:"small",modelValue:o.style&&o.style.width||"","onUpdate:modelValue":i=>{o.style||(o.style={}),o.style.width=i}})},{label:e("style.height"),vnode:t(r("SizeInput"),{size:"small",modelValue:o.style&&o.style.height||"auto","onUpdate:modelValue":i=>{o.style||(o.style={}),o.style.height=i}})}]},sfc(e){e.type="elRow"},rule(){return{type:"fcRow",props:{},children:[]}},props(){return[]}},Lp="fcCell",kw={name:Lp,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},rule(){return{type:Lp,style:{display:"block",width:"50%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")}]}},Nw="\u8BA1\u7B97\u516C\u5F0F",jp="fcValue",Tw={menu:"main",icon:"icon-value",label:Nw,name:jp,input:!0,event:["change"],validate:!1,sfc(e,{getParentFieldStr:t}){e.type="div",e._sfc.content=`{{formData.${t()}${e.field}}}`,e._sfc.vModel=!1},rule({t:e}){return{type:jp,field:We(),title:e("com.fcValue.name"),info:"",props:{}}},props(){return[]}},Dw="\u94FE\u63A5",Ud="elLink",Vw={menu:"aide",icon:"icon-link",label:Dw,name:Ud,inline:!0,easySlots:[{value:"icon",type:"icon"}],rule({t:e}){return{type:Ud,title:"",children:[e("com.elLink.name")]}},props(e,{t}){return Be(t,Ud+".props",[{type:"input",field:"href"},{type:"input",field:"formCreateChild"},{type:"select",field:"target",options:it(t,[{label:"_self",value:"_self"},{label:"_blank",value:"_blank"},{label:"_parent",value:"_parent"},{label:"_top",value:"_top"}])},{type:"switch",field:"underline",value:!0},{type:"switch",field:"disabled"},{type:"select",field:"type",options:it(t,[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"},{label:"default",value:"default"}])}])}},Ow="\u6587\u5B57\u63D0\u793A",Ja="elTooltip",Bw={menu:"aide",icon:"icon-tooltip",label:Ow,name:Ja,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:Ja,props:{content:e("com."+Ja+".name")},children:[]}},props(e,{t}){return Be(t,Ja+".props",[{type:"input",field:"content",props:{type:"textarea"}},{type:"switch",field:"disabled"},{type:"switch",field:"rawContent"},{type:"switch",field:"enterable",value:!0},{type:"select",field:"effect",value:"dark",options:[{label:"dark",value:"dark"},{label:"light",value:"light"}]},{type:"select",field:"placement",value:"bottom",options:[{label:"top",value:"top"},{label:"top-start",value:"top-start"},{label:"top-end",value:"top-end"},{label:"bottom",value:"bottom"},{label:"bottom-start",value:"bottom-start"},{label:"bottom-end",value:"bottom-end"},{label:"left",value:"left"},{label:"left-start",value:"left-start"},{label:"left-end",value:"left-end"},{label:"right",value:"right"},{label:"right-start",value:"right-start"},{label:"right-end",value:"right-end"}]},{type:"select",field:"trigger",value:"hover",options:[{label:"hover",value:"hover"},{label:"click",value:"click"},{label:"focus",value:"focus"},{label:"contextmenu",value:"contextmenu"}]},{type:"inputNumber",field:"offset"},{type:"inputNumber",field:"showAfter",props:{min:0}},{type:"inputNumber",field:"hideAfter",props:{min:0}},{type:"inputNumber",field:"autoClose",props:{min:0}}])}},Rw="\u6C34\u5370",Xa="elWatermark",$w={menu:"aide",icon:"icon-watermark",label:Rw,name:Xa,drag:!0,dragBtn:!0,inside:!1,mask:!1,rule({t:e}){return{type:Xa,style:{width:"100%"},props:{content:e("com."+Xa+".name")},children:[]}},props(e,{t}){return Be(t,Xa+".props",[{type:"input",field:"content"},{type:"input",field:"image"},{type:"inputNumber",field:"width",props:{min:0},value:120},{type:"inputNumber",field:"height",props:{min:0},value:64},{type:"inputNumber",field:"rotate",value:-22},{type:"inputNumber",field:"zIndex",props:{min:0}},{type:"TableOptions",field:"gap",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2},value:[100,100]}])}},Iw={menu:"template",name:"chineseAmount",label:"\u91D1\u989D",autoField:!0,template:[{type:"inputNumber",field:"Fgtxlugfgbdvb5c",title:"\u91D1\u989D",info:"",$required:!1,display:!0,hidden:!1,_fc_drag_tag:"inputNumber"},{type:"fcValue",field:"Fvr1lugfgd3yb7c",title:" ",info:"",display:!0,hidden:!1,_fc_drag_tag:"fcValue",style:{color:"#999999"},computed:{value:'"\u5927\u5199: " + TOCHINSESAMOUNT(Fgtxlugfgbdvb5c || 0)'}}]},Fw={menu:"template",name:"duration",label:"\u65F6\u957F",autoField:!0,template:[{type:"fcInlineForm",_fc_id:"id_Founm50iu5kocac",name:"ref_Fqrpm50iu5kocbc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fz0um50itwf6bbc",title:"\u5F00\u59CB\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){this.api.validateField('Fv92m50itwf6bdc');
|
||
callback();}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:""}],_fc_template:"duration",_fc_id:"id_Fhqtm50itwf6bgc",name:"ref_Fzsym50itwf6bhc",display:!0,hidden:!1},{type:"select",field:"F730m50itwf6bcc",title:"\u5F00\u59CB\u65F6\u95F4\u6BB5",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fnj8m50itwf6bkc",name:"ref_Fyjym50itwf6blc",display:!0,hidden:!1,wrap:{title:!1},style:{marginLeft:"10px",width:"150px"}}]},{type:"fcInlineForm",_fc_id:"id_Fxbnm50iw4ttccc",name:"ref_Fhwmm50iw4ttcdc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fv92m50itwf6bdc",title:"\u7ED3\u675F\u65F6\u95F4",$required:!1,_fc_drag_tag:"datePicker",validate:[{type:"validator",trigger:"change",validator:`[[FORM-CREATE-PREFIX-function validator(rule, value, callback){let startTime = this.api.getValue('Fz0um50itwf6bbc');
|
||
if(startTime && value && Date.parse(startTime) > Date.parse(value)) {
|
||
callback(false);
|
||
return;
|
||
}
|
||
callback()}-FORM-CREATE-SUFFIX]]`,mode:"min",message:"\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7ED3\u675F\u65F6\u95F4"}],_fc_template:"duration",_fc_id:"id_Fu8im50itwf6bqc",name:"ref_Fy17m50itwf6brc",display:!0,hidden:!1},{type:"select",field:"Fx9gm50itwf6bec",title:"\u7ED3\u675F\u65F6\u95F4\u6BB5",effect:{fetch:""},$required:!1,options:[{label:"\u4E0A\u5348",value:"1"},{label:"\u4E0B\u5348",value:"1.5"}],_fc_drag_tag:"select",_fc_template:"duration",_fc_id:"id_Fxrxm50itwf6buc",name:"ref_Fehcm50itwf6bvc",display:!0,hidden:!1,wrap:{title:!1},style:{marginLeft:"10px",width:"150px"}}]},{type:"fcInlineForm",_fc_id:"id_Ffb0m50j0g8vcec",name:"ref_Ftpym50j0g8vcfc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"inputNumber",field:"F5q8m50itwf6bfc",title:"\u65F6\u957F",$required:!1,props:{controls:!1},_fc_drag_tag:"inputNumber",_fc_template:"duration",_fc_id:"id_Fo5cm50itwf7c0c",name:"ref_Fnnvm50itwf7c1c",display:!0,hidden:!1,computed:{value:"MAX(IF(Fz0um50itwf6bbc && Fv92m50itwf6bdc && TIMESTAMP(Fv92m50itwf6bdc) > TIMESTAMP(Fz0um50itwf6bbc), DIFFDAYS(Fz0um50itwf6bbc, Fv92m50itwf6bdc), 0) + IF(Fx9gm50itwf6bec && F730m50itwf6bcc, Fx9gm50itwf6bec - F730m50itwf6bcc + 0.5, 0), 0);"}},{type:"div",native:!0,children:["\u5929"],_fc_drag_tag:"text",_fc_template:"duration",_fc_id:"id_Fatsm50itwf7c4c",name:"ref_Fh2rm50itwf7c5c",display:!0,hidden:!1,style:{marginTop:"5px",marginLeft:"10px"}}],style:{alignItems:"flex-start"}}]},Pw={menu:"template",name:"col3",label:"\u4E09\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:8},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},Mw={menu:"template",name:"col4",label:"\u56DB\u5217\u6805\u683C",autoField:!1,template:[{type:"fcRow",children:[{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"},{type:"col",props:{span:6},display:!0,hidden:!1,_fc_drag_tag:"col"}],display:!0,hidden:!1,_fc_drag_tag:"fcRow"}]},Lw={menu:"template",name:"table43",label:"\u56DB\u884C\u4E09\u5217\u8868\u683C",autoField:!1,template:[{type:"fcTable",props:{rule:{row:4,col:3,style:{},class:{},layout:[]}},display:!0,hidden:!1,_fc_drag_tag:"fcTable"}]},jw="\u6570\u636E\u8868\u683C",Za="dataTable",zw=()=>{const e=[];for(let t=0;t<30;t++)e.push({date:"2016-05-12",name:"Tom "+(10+t),state:"California",city:"Los Angeles",address:"No. 189, Grove St, Los Angeles",zip:"CA 90036"});return e},Uw=e=>{if(e.format==="tag")return{type:"elTag",props:{disableTransitions:!0},_sfc:{content:`{{scope.row.${e.prop}}}`}};if(e.format==="image")return{type:"div",class:"_fc-data-table-img-list",children:[{type:"template",children:[{type:"el-image",props:{previewTeleported:!0,fit:"cover"},_sfc:{attr:{":initialIndex":"i",":src":"src",":previewSrcList":`Array.isArray(scope.row.${e.prop}) ? scope.row.${e.prop} : [scope.row.${e.prop}]`}}}],_sfc:{attr:{"v-for":`(src, i) in Array.isArray(scope.row.${e.prop}) ? scope.row.${e.prop} : [scope.row.${e.prop}]`}}}]}},Hw={menu:"main",icon:"icon-data-table",label:jw,name:Za,languageKey:["operation"],event:["cellMouseEnter","cellMouseLeave","handleClick","rowClick","rowDblclick","headerClick","filterChange","expandChange","sortChange","selectionChange"],sfc:{style:`._fc-data-table {
|
||
width: 100%;
|
||
}
|
||
._fc-data-table .el-table {
|
||
--el-table-header-bg-color: #e8eefc;
|
||
}
|
||
._fc-data-table .el-pagination {
|
||
display: flex;
|
||
margin-top: 10px;
|
||
}
|
||
._fc-data-table .el-pagination.left {
|
||
justify-content: flex-start;
|
||
}
|
||
._fc-data-table .el-pagination.left {
|
||
justify-content: center;
|
||
}
|
||
._fc-data-table .el-pagination.right {
|
||
justify-content: flex-end;
|
||
}
|
||
._fc-data-table ._fc-data-table-img-list .el-image {
|
||
max-width: 150px;
|
||
height: 60px;
|
||
}`,handle(e){const{column:t,button:r,page:o,index:i,selection:l,data:d}=e.props,c=[];["column","button","index","globalDataKey","fetch","page"].forEach(h=>{delete e.props[h]}),t.forEach(h=>{const m=Uw(h),y={type:"elTableColumn",props:{label:h.label,prop:h.prop,width:h.width,align:h.align,className:h.className,fixed:h.fixed,sortable:h.sortable},_sfc:{attr:{"#default":"scope"}}};m&&(y.children=[m]),c.push(y)}),r&&r.open===!0&&r.column&&c.push({type:"elTableColumn",props:{label:r.label||"\u64CD\u4F5C",fixed:r.fixed===void 0?"right":r.fixed,width:r.width||"100px"},_sfc:{attr:{"#default":"scope"}},children:r.column.map(h=>{const m=h.prop||[],y={type:"elButton",props:{type:h.type,size:h.size},_sfc:{content:h.name}};return m.forEach(C=>{y.props[C]=!0}),y})}),l&&c.unshift({type:"elTableColumn",props:{type:"selection",width:"50px"}}),i&&c.unshift({type:"elTableColumn",props:{type:"index",width:"50px"}});const u=[{type:"elTable",props:{data:[],...e.props},_fc_id:e._fc_id,children:c}];if(o&&o.open===!0){const h=o.props&&o.props.pageSize||20;o.props&&delete o.props.pageSize,u.push({type:"elPagination",class:o.position||"right",_fc_id:e._fc_id,props:{layout:"prev, pager, next",...o.props||{}},_sfc:{prop:{total:(d||[]).length,currentPage:1,pageSize:h}}})}return{type:"div",class:"_fc-data-table",children:u}}},rule(){return{type:Za,native:!0,props:{height:"500px",button:{},data:zw(),column:[{format:"default",prop:"date",label:"Date",width:"150"},{format:"default",prop:"name",label:"Name",width:"120"},{format:"default",prop:"state",label:"State",width:"120"},{format:"default",prop:"city",label:"City",width:"320"},{format:"default",prop:"address",label:"Address",width:"600"},{format:"default",prop:"zip",label:"Zip",width:"120"}]}}},props(e,{t}){const r=function(i){return Be(t,Za+".props",i)},o=r([{type:"input",field:"page>totalField",value:"count"},{type:"input",field:"page>dataField",value:"list"},{type:"input",field:"page>orderField",value:"order"},{type:"input",field:"page>orderByField",value:"orderBy"},{type:"input",field:"page>pageField",value:"page"},{type:"input",field:"page>pageSizeField",value:"limit"}]);return Be(t,Za+".props",[{type:"radio",field:"_optionType",value:0,options:[{label:t("fetch.optionsType.struct"),value:0},{label:t("fetch.optionsType.fetch"),value:2},{label:t("fetch.optionsType.global"),value:1}],props:{type:"button"},control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"globalDataKey"},...o]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...o]},{value:0,rule:[{type:"Struct",title:t("com.dataTable.props._optionType"),field:"data",_fc_important_prop:!0,props:{validate(i){return!i||Array.isArray(i)}}}]}]},{type:"TableColumnConfig",field:"column",_fc_important_prop:!0},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"ConfigItem",props:{label:t("com.dataTable.props.button")},col:{show:!0},children:[{type:"HideConfig",title:t("com.dataTable.props.button"),wrap:{show:!1},col:{show:!1},field:"button>open"},{type:"template",slot:"append",children:r([{type:"TableButtonConfig",col:{show:!1},field:"button>column"},{type:"input",col:{show:!1},field:"button>label",value:"\u64CD\u4F5C"},{type:"select",col:{show:!1},field:"button>fixed",options:[{label:t("com.dataTable.fixed.default"),value:!1},{label:t("com.dataTable.fixed.left"),value:"left"},{label:t("com.dataTable.fixed.right"),value:"right"}],value:"right"},{type:"SizeInput",col:{show:!1},field:"button>width",value:"100px"}])}]},{type:"ConfigItem",props:{label:t("com.dataTable.props.page")},col:{show:!0},children:[{type:"HideConfig",wrap:{show:!1},col:{show:!1},title:t("com.dataTable.props.page"),field:"page>open"},{type:"template",slot:"append",children:r([{type:"select",field:"page>position",value:"right",col:{show:!1},options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",col:{show:!1},field:"page>props>pageSize",value:20},{type:"switch",col:{show:!1},field:"page>props>small"},{type:"switch",col:{show:!1},field:"page>props>background"}])}]},{type:"input",field:"rowKey"},{type:"input",field:"emptyText"},{type:"SizeInput",field:"height"},{type:"switch",field:"showSummary"},{type:"switch",field:"selection"},{type:"switch",field:"index"},{type:"switch",field:"stripe"},{type:"switch",field:"border"},{type:"switch",field:"defaultExpandAll"}])}},qa="fcDialog",Ww={name:qa,icon:"icon-dialog",label:"\u5F39\u51FA\u6846",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,input:!0,subForm:"object",hiddenBaseField:["title","info","formCreateCol>span","labelConfig","_control"],languageKey:["close","ok"],event:["confirm","submit","validateFail","open","opened","close","closed","openAutoFocus","closeAutoFocus"],container:{formDataField:"value",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],e.native==null&&(e.native=!0),e.ignore==null&&(e.ignore=!0),delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:qa,props:{title:e("com."+qa+".name")},native:!0,ignore:!0,children:[]}},props(e,{t}){return Be(t,qa+".props",[{type:"input",field:"formCreateProps>title",title:"\u6807\u9898"},{type:"SizeInput",field:"width",value:"50%"},{type:"switch",field:"fullscreen"},{type:"switch",field:"preview",title:t("form.previewMode")},{type:"switch",field:"modal",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"beforeClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[on(t)]}}])}},el="fcDrawer",Gw={name:el,icon:"icon-dialog",label:"\u62BD\u5C49",drag:!0,dragBtn:!1,handleBtn:!1,inside:!1,mask:!1,style:!1,advanced:!1,input:!0,subForm:"object",hiddenBaseField:["title","info","formCreateCol>span","labelConfig","_control"],languageKey:["close","ok"],event:["confirm","submit","validateFail","open","opened","close","closed","openAutoFocus","closeAutoFocus"],container:{formDataField:"value",labelField:"props.title"},loadRule(e){e.children=e.props.rule||[],e.native==null&&(e.native=!0),e.ignore==null&&(e.ignore=!0),delete e.props.rule},parseRule(e){e.props.rule=e.children||[],e.children=[]},rule({t:e}){return{type:el,props:{title:e("com."+el+".name")},native:!0,ignore:!0,children:[]}},props(e,{t}){return Be(t,el+".props",[{type:"input",field:"formCreateProps>title",title:"\u6807\u9898"},{type:"SizeInput",field:"size",value:"30%"},{type:"select",field:"direction",options:it(t,[{label:"ltr",value:"ltr"},{label:"rtl",value:"rtl"}],"com.fcDrawer.directionType"),value:"rtl"},{type:"switch",field:"preview",title:t("form.previewMode")},{type:"switch",field:"modal",value:!0},{type:"switch",field:"footer",value:!0},{type:"switch",field:"autoClose",value:!0},{type:"FnInput",field:"beforeClose",props:{body:!0,button:!0,fnx:!0,name:"beforeClose",args:[on(t)]}}])}},Kw="\u63D2\u69FD\u533A\u57DF",Hd="fcSlot",Yw={menu:"container",icon:"icon-slot",label:Kw,name:Hd,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:Hd,field:We(),title:"",native:!1,$required:!1,readMode:"custom",props:{name:"block_"+We()}}},props(e,{t}){return Be(t,Hd+".props",[{type:"input",field:"name"}])}},Qw="\u52A8\u6001\u533A\u57DF",Wd="fcJson",Jw={menu:"container",icon:"icon-json",label:Qw,name:Wd,input:!0,mask:!0,style:!1,sfc:!1,rule(){return{type:Wd,field:We(),props:{expand:1}}},props(e,{t}){return Be(t,Wd+".props",[{type:"radio",field:"_loadType",value:2,props:{type:"button"},options:[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:3},{label:t("fetch.optionsType.global"),value:1}],control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]},{value:2,rule:[{type:"Struct",field:"rule",title:t("com.fcJson.props._loadType"),_fc_important_prop:!0,wrap:{show:!1}}]},{value:3,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:"props.rule"}}]}]},{type:"select",field:"type",options:it(t,[{label:t("props.default"),value:"default"},{label:t("com.group.name"),value:"array"},{label:t("com.subForm.name"),value:"object"}]),control:[{value:"array",method:"hidden",rule:Be(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"},{type:"switch",field:"button",ignore:"hidden",value:!0},{type:"switch",field:"sortBtn",ignore:"hidden",value:!0},{type:"inputNumber",field:"expand",ignore:"hidden"},{type:"inputNumber",field:"min",ignore:"hidden"},{type:"inputNumber",field:"max",ignore:"hidden"}])},{value:"object",method:"hidden",rule:Be(t,"group.props",[{type:"switch",field:"disabled",ignore:"hidden"}])}]}])}},Xw="\u5185\u8054\u5E03\u5C40",zp="fcInlineForm",Zw={menu:"layout",icon:"icon-inline",label:Xw,name:zp,denyDrag:{menu:["subform","layout"]},drag:!0,inside:!1,mask:!1,sfc:{style:`._fc-line-form .el-form-item {
|
||
display: inline-flex;
|
||
vertical-align: middle;
|
||
}
|
||
._fc-line-form .el-select, ._fc-line-form .el-slider {
|
||
width: 220px;
|
||
}`,handle(e){return{type:"div",class:"_fc-line-form",children:e.children}}},rule(){return{type:zp,props:{}}},props(){return[]}},qw="\u56FE\u7247",Gd="elImage",eC={menu:"aide",icon:"icon-image",label:qw,name:Gd,inline:!0,rule(){return{type:Gd,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Be(t,Gd+".props",[{type:"input",field:"src"},{type:"TableOptions",field:"previewSrcList",props:{column:[{label:t("com.elImage.props.src"),key:"value"}],valueType:"string"}}])}},tC={menu:"layout",icon:"icon-flex",name:"fcFlex2",label:"\u76D2\u5B50\u5E03\u5C40",drag:!0,inside:!0,inline:!0,mask:!1,sfc(e){e.type="div"},actions:[{label:"com.fcFlex2.horizontal",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="center":e.style.justifyContent="center"}},{label:"com.fcFlex2.vertical",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.alignItems="center"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.justifyContent="center":e.style.alignItems="center"}},{label:"com.fcFlex2.left",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-start"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-start":e.style.justifyContent="flex-start"}},{label:"com.fcFlex2.right",handler(e){e.style||(e.style={}),e.style.display!=="flex"?(e.style.display="flex",e.style.flexDirection="row",e.style.justifyContent="flex-end"):["column-reverse","column"].indexOf(e.style.flexDirection)>-1?e.style.alignItems="flex-end":e.style.justifyContent="flex-end"}},{label:"com.fcFlex2.reset",handler(e){e.style?(delete e.style.flexDirection,delete e.style.justifyContent,delete e.style.alignContent,delete e.style.flexWrap,delete e.style.alignItems,e.style.display="flex"):e.style={}}}],rule(){return{type:"fcCell",style:{display:"block",width:"100%",height:"100px"},children:[]}},props(e,{t}){return[{type:"SizeInput",field:"formCreateStyle>width",title:t("style.width")},{type:"SizeInput",field:"formCreateStyle>height",title:t("style.height")}]}},nC="\u8868\u5355\u9879",Kd="elFormItem",iC={menu:"container",icon:"icon-form-item",label:nC,name:Kd,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:Kd,props:{label:e("com.elFormItem.name")},children:[]}},props(e,{t}){return Be(t,Kd+".props",[{type:"input",field:"label"},{type:"SizeInput",field:"labelWidth"},{type:"select",field:"formCreateClass",title:t("form.labelPosition"),options:it(t,[{value:"fc-wrap-top",label:"top"},{value:"fc-wrap-left",label:"left"},{value:"fc-wrap-right",label:"right"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},rC="\u97F3\u9891\u64AD\u653E\u5668",Yd="audioBox",oC={menu:"aide",icon:"icon-audio",label:rC,name:Yd,mask:!1,event:["pause","play","ended"],rule(){return{type:Yd,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return Be(t,Yd+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"MP3",value:"audio/mpeg"},{label:"OGG",value:"audio/ogg"},{label:"AAC",value:"audio/aac"},{label:"WAV",value:"audio/wav"},{label:"WMA",value:"audio/x-ms-wma"},{label:"WEBA",value:"audio/webm"},{label:"FLAC",value:"audio/flac"},{label:"ALAC",value:"audio/x-alac"},{label:"AMR",value:"audio/amr"},{label:"MIDI",value:"audio/midi"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"loop"},{type:"switch",field:"muted"},{type:"switch",field:"controls"},{type:"select",field:"preload",options:it(t,[{label:"auto",value:"auto"},{label:"metadata",value:"metadata"},{label:"none",value:"none"}],"com.audioBox.preloadOpt")}])}},aC="\u89C6\u9891\u64AD\u653E\u5668",Qd="videoBox",lC={menu:"aide",icon:"icon-video",label:aC,name:Qd,mask:!1,event:["pause","play","ended","error"],rule(){return{type:Qd,props:{src:"",type:"mp4"}}},props(e,{t}){return Be(t,Qd+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{label:"mp4",value:"mp4"},{label:"mpegts",value:"mpegts"},{label:"m2ts",value:"m2ts"},{label:"flv",value:"flv"},{label:"mse",value:"mse"}]},{type:"switch",field:"autoplay"},{type:"switch",field:"controls",value:!0},{type:"switch",field:"isLive"},{type:"switch",field:"loop"},{type:"switch",field:"withCredentials",value:!0}])}},sC="\u5934\u50CF\u6846",Up="elAvatar",dC={menu:"aide",icon:"icon-avatar",label:sC,name:Up,mask:!0,inline:!0,event:[],rule(){return{type:Up,props:{fit:"cover",src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Be(t,"elAvatar.props",[{type:"input",field:"src"},{type:"select",field:"shape",options:it(t,[{label:"circle",value:"circle"},{label:"square",value:"square"}])},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},cC="\u6761\u5F62\u7801",Hp="barCodeBox",uC={menu:"aide",icon:"icon-barcode",label:cC,name:Hp,mask:!0,inline:!0,event:[],rule(){return{type:Hp,props:{value:"12345670",format:"CODE128"}}},props(e,{t}){return Be(t,"barCodeBox.props",[{type:"input",field:"value"},{type:"select",field:"format",options:[{label:"CODE39",value:"CODE39"},{label:"CODE128",value:"CODE128"},{label:"CODE128A",value:"CODE128A"},{label:"CODE128B",value:"CODE128B"},{label:"CODE128C",value:"CODE128C"},{label:"EAN13",value:"EAN13"},{label:"UPC",value:"UPC"},{label:"CODABAR",value:"CODABAR"}]},{type:"inputNumber",field:"width",value:2},{type:"inputNumber",field:"height",value:50},{type:"switch",field:"displayValue",value:!0},{type:"inputNumber",field:"fontSize",value:12},{type:"select",field:"textPosition",options:it(t,[{label:"top",value:"top"},{label:"bottom",value:"bottom"}])},{type:"select",field:"textAlign",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"inputNumber",field:"textMargin",value:2},{type:"ColorInput",field:"background"},{type:"ColorInput",field:"lineColor"}])}},fC="\u5185\u5D4C\u7F51\u9875",Wp="iframeBox",pC={menu:"aide",icon:"icon-iframe",label:fC,name:Wp,mask:!0,event:["load"],rule(){return{type:Wp,props:{src:"https://github.com/xaboy/form-create"}}},props(e,{t}){return Be(t,"iframeBox.props",[{type:"input",field:"src"},{type:"select",field:"loading",value:"eager",options:it(t,[{label:"eager",value:"eager"},{label:"lazy",value:"lazy"}],"com.iframeBox.loadingOpt")}])}},hC="\u4E8C\u7EF4\u7801",Jd="qrCodeBox",mC={menu:"aide",icon:"icon-qrcode",label:hC,name:Jd,mask:!0,inline:!0,rule(){return{type:Jd,props:{data:"1234567890",width:150,height:150}}},props(e,{t}){return Be(t,Jd+".props",[{type:"input",field:"data"},{type:"input",field:"image"},{type:"inputNumber",field:"width"},{type:"inputNumber",field:"height"},{type:"select",field:"circleType",options:it(t,[{label:"square",value:"square"},{label:"dots",value:"dots"},{label:"rounded",value:"rounded"},{label:"classy",value:"classy"}],"com.qrCodeBox.circleTypeOpt")},{type:"ColorInput",field:"circleColor"}])}},gC="\u624B\u5199\u7B7E\u540D",Xd="signaturePad",vC={menu:"main",icon:"icon-sign",label:gC,name:Xd,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule({t:e}){return{type:Xd,field:We(),title:e("com.signaturePad.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,Xd+".props",[{type:"ColorInput",field:"penColor"}])}},yC="\u63D0\u53CA",Zd="elMention",bC={menu:"main",icon:"icon-mention",label:yC,name:Zd,input:!0,event:["search","select","blur","focus","change","input","clear"],validate:["string"],rule({t:e}){return{type:Zd,field:We(),title:e("com.elMention.name"),info:"",$required:!1,props:{options:[{label:"Fuphoenixes",value:"Fuphoenixes"},{label:"kooriookami",value:"kooriookami"},{label:"Jeremy",value:"Jeremy"},{label:"btea",value:"btea"}]}}},props(e,{t}){return Be(t,Zd+".props",[Pi(t,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"whole"},{type:"input",field:"placeholder"},{type:"select",field:"type",options:[{label:"input",value:"input"},{label:"textarea",value:"textarea"}]},{type:"FnInput",field:"checkIsWhole",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"checkIsWhole"}},{type:"FnInput",field:"filterOption",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"filterOption"}}])}},wC="\u5206\u6BB5\u63A7\u5236\u5668",qd="elSegmented",CC={menu:"main",icon:"icon-segmented",label:wC,name:qd,input:!0,event:["change"],validate:["string","number"],rule(){return{type:qd,field:We(),title:"",props:{options:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"].map(e=>({label:e,value:e}))}}},props(e,{t}){return Be(t,qd+".props",[{type:"TableOptions",field:"options",title:t("props.options"),wrap:{show:!1},props:{column:[{label:"label",key:"label"},{value:!0,label:"value",key:"value"}],keyValue:"label"}},{type:"switch",field:"disabled"},{type:"switch",field:"block"},{type:"select",field:"size",options:it(t,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])}])}},_C="\u6807\u9898",Gp="fcTitle",EC={menu:"aide",icon:"icon-title",label:_C,name:Gp,event:[],rule({t:e}){return{type:"fcTitle",props:{title:e("props.title")}}},props(e,{t}){return Be(t,Gp+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(r=>({label:"H"+r,value:"h"+r}))},{type:"select",field:"align",options:it(t,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},SC="\u552F\u4E00\u503C",ec="fcId",AC={menu:"main",icon:"icon-input-id",label:SC,name:ec,input:!0,validate:!1,rule({t:e}){return{type:ec,field:We(),title:e("com.fcId.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,ec+".props",[{type:"input",field:"prefix"}])}},xC="\u7701\u5E02\u533A\u9009\u62E9\u5668",tc="fcCity",kC={menu:"main",icon:"icon-city",label:xC,name:tc,input:!0,event:["change"],validate:["array"],rule({t:e}){return{type:tc,field:We(),title:e("com.fcCity.name"),info:"",$required:!1,props:{}}},props(e,{t}){return Be(t,tc+".props",[{type:"select",field:"level",value:3,options:[{label:"\u7701\u4F1A",value:1},{label:"\u7701\u4F1A/\u57CE\u5E02",value:2},{label:"\u7701\u4F1A/\u57CE\u5E02/\u533A\u57DF",value:3}]},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"FnInput",field:"filter",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"filter"}},{type:"input",field:"api"}])}},NC={menu:"aide",icon:"icon-markdown",label:"Markdown",name:"markdown",rule(){return{type:"FcMarkdown",native:!0,props:{content:`### \u6807\u9898
|
||
|
||
\u4F7F\u7528 # \u53F7\u521B\u5EFA\u6807\u9898
|
||
|
||
\`\`\`
|
||
# \u4E00\u7EA7\u6807\u9898
|
||
## \u4E8C\u7EA7\u6807\u9898
|
||
### \u4E09\u7EA7\u6807\u9898
|
||
\`\`\`
|
||
|
||
### \u7C97\u4F53
|
||
|
||
\u4F7F\u7528 ** \u5305\u56F4\u6587\u672C
|
||
|
||
\`\`\`
|
||
**\u7C97\u4F53\u6587\u672C**
|
||
\`\`\`
|
||
|
||
### \u659C\u4F53
|
||
|
||
\u4F7F\u7528 * \u5305\u56F4\u6587\u672C
|
||
|
||
\`\`\`
|
||
*\u659C\u4F53\u6587\u672C*
|
||
\`\`\`
|
||
|
||
### \u5220\u9664\u7EBF
|
||
|
||
\u4F7F\u7528 ~~ \u5305\u56F4\u6587\u672C
|
||
|
||
\`\`\`
|
||
~~\u5220\u9664\u7EBF\u6587\u672C~~
|
||
\`\`\`
|
||
|
||
### \u94FE\u63A5
|
||
|
||
\u4F7F\u7528 [\u6587\u672C](\u94FE\u63A5) \u683C\u5F0F
|
||
|
||
\`\`\`
|
||
[\u94FE\u63A5\u6587\u672C](https://example.com)
|
||
\`\`\`
|
||
|
||
### \u56FE\u7247
|
||
|
||
\u4F7F\u7528  \u683C\u5F0F
|
||
|
||
\`\`\`
|
||

|
||

|
||
\`\`\`
|
||
|
||
### \u4EE3\u7801\u5757
|
||
|
||
\u4F7F\u7528 \`\`\` \u5305\u56F4\u4EE3\u7801
|
||
|
||
\`\`\`\`
|
||
\`\`\`js
|
||
function hello() {
|
||
console.log('Hello');
|
||
}
|
||
\`\`\`
|
||
\`\`\`\`
|
||
|
||
### \u884C\u5185\u4EE3\u7801
|
||
|
||
\u4F7F\u7528 \` \u5305\u56F4\u4EE3\u7801
|
||
|
||
\`\`\`
|
||
\`\u884C\u5185\u4EE3\u7801\`
|
||
\`\`\`
|
||
|
||
### \u5F15\u7528
|
||
|
||
\u4F7F\u7528 > \u5F00\u59CB\u5F15\u7528
|
||
|
||
\`\`\`
|
||
> \u8FD9\u662F\u4E00\u6BB5\u5F15\u7528\u6587\u672C
|
||
\`\`\`
|
||
|
||
### \u65E0\u5E8F\u5217\u8868
|
||
|
||
\u4F7F\u7528 - \u5F00\u59CB\u5217\u8868\u9879
|
||
|
||
\`\`\`
|
||
- \u9879\u76EE1
|
||
- \u9879\u76EE2
|
||
- \u9879\u76EE3
|
||
\`\`\`
|
||
|
||
### \u6709\u5E8F\u5217\u8868
|
||
|
||
\u4F7F\u7528 1. \u5F00\u59CB\u5217\u8868\u9879
|
||
|
||
\`\`\`
|
||
1. \u7B2C\u4E00\u9879
|
||
2. \u7B2C\u4E8C\u9879
|
||
3. \u7B2C\u4E09\u9879
|
||
\`\`\`
|
||
|
||
### \u8868\u683C
|
||
|
||
\u4F7F\u7528 | \u5206\u9694\u5217
|
||
|
||
\`\`\`
|
||
| \u5DE6\u5BF9\u9F50 | \u5C45\u4E2D\u5BF9\u9F50 | \u53F3\u5BF9\u9F50 |
|
||
|:-------|:-------:|-------:|
|
||
| \u6570\u636E1 | \u6570\u636E2 | \u6570\u636E3 |
|
||
\`\`\`
|
||
|
||
### \u6C34\u5E73\u5206\u5272\u7EBF
|
||
|
||
\u4F7F\u7528 --- \u521B\u5EFA\u5206\u5272\u7EBF
|
||
|
||
\`\`\`
|
||
---
|
||
\`\`\`
|
||
|
||
### \u5F3A\u5236\u6362\u884C
|
||
|
||
\u4F7F\u7528 <br/> \u6807\u7B7E\u5B9E\u73B0\u591A\u6B21\u6362\u884C
|
||
|
||
\`\`\`
|
||
\u7B2C\u4E00\u884C<br/><br/>\u7B2C\u4E09\u884C
|
||
\`\`\`
|
||
`}}},props(e,{t}){return[{type:"HtmlEditor",field:"content",title:t("props.content"),props:{text:!0}}]}},TC="\u7EDF\u8BA1\u680F",tl="elStatistic",Kp=[Yb,Jb,Zb,bC,CC,e1,Hb,Gb,n1,r1,f1,Dp,s1,a1,Op,c1,h1,E1,A1,k1,T1,Z1,kC,L1,Hw,AC,vC,Tw,{menu:"main",icon:"icon-data-select",label:"\u5B50\u8868\u5355\u9009\u62E9\u5668",name:"fcDataSelect",drag:!0,input:!0,mask:!1,subForm:"scope",slot:[{name:"search",type:"fcInlineForm"},{name:"table",type:"dataTable"}],event:["change","clear"],validate:["object","array"],parseRule(e){e.children.forEach(t=>{t.slot==="search"?(delete t.slot,e.props.searchRule=t):t.slot==="table"&&(delete t.slot,e.props.tableRule=t)}),delete e.children},loadRule(e){e.children=[e.props.searchRule,e.props.tableRule],e.children[0].slot="search",e.children[1].slot="table",delete e.props.searchRule,delete e.props.tableRule},rule({t:e}){return{type:"fcDataSelect",field:We(),title:e("com.fcDataSelect.name"),info:"",$required:!1,props:{title:e("com.select.title"),labelKey:"name",valueKey:"name"}}},props(e,{t}){return Be(t,"select.props",[{type:"input",field:"title"},{type:"input",field:"labelKey",value:"label"},{type:"input",field:"valueKey",value:"value"},{type:"switch",field:"autoLoad"},{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"}])}},z1,H1,aw,hw,vw,Sw,Aw,_w,Ew,bw,Yw,Jw,iC,V1,P1,ew,EC,B1,cw,{menu:"aide",icon:"icon-statistic",label:TC,name:tl,inline:!0,easySlots:["prefix","suffix"],rule({t:e}){return{type:tl,props:{value:99e3,title:e("com."+tl+".name")}}},props(e,{t}){return Be(t,tl+".props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"prefix"},{type:"input",field:"suffix"}])}},C1,Vw,Bw,$w,eC,oC,lC,dC,uC,pC,mC,NC,{menu:"chart",icon:"icon-chart-line",label:"\u6298\u7EBF\u56FE",name:"lineChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"line",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-area",label:"\u4F53\u79EF\u56FE",name:"areaChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"area",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Email",data:[120,132,101,134,90,230,210]},{name:"Union Ads",data:[220,182,191,234,290,330,310]},{name:"Video Ads",data:[150,232,201,154,190,330,410]},{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Search Engine",data:[820,932,901,934,1290,1330,1320]}]}}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"switch",field:"stack"},{type:"switch",field:"smooth"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-bar",label:"\u67F1\u72B6\u56FE",name:"barChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"bar",config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-stripe",label:"\u6761\u5F62\u56FE",name:"stripeChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"bar",stripe:!0,config:{category:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],series:[{name:"Direct",data:[320,332,301,334,390,330,320]},{name:"Direct2",data:[320,332,301,334,390,330,320]}]}}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"input",field:"valueFormat",value:"{value}"},{type:"ColorInput",field:"barBackgroundColor"},{type:"switch",field:"stack"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-pie",label:"\u997C\u56FE",name:"pieChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"pie",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Num"},{value:300,name:"Video Num"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"pieType",options:it(t,[{label:"pie",value:"pie"},{label:"doughnut",value:"doughnut"},{label:"half-doughnut",value:"half-doughnut"}],"com.lineChart.pieTypeOpt")},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-funnel",label:"\u6F0F\u6597\u56FE",name:"funnelChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"funnel",data:[{value:60,name:"Visit"},{value:40,name:"Inquiry"},{value:20,name:"Order"},{value:80,name:"Click"},{value:100,name:"Show"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"select",field:"funnelSort",options:it(t,[{label:"descending",value:"descending"},{label:"ascending",value:"ascending"}],"com.lineChart.funnelSortOpt"),value:"descending"},{type:"switch",field:"showLegend",value:!0}])}},{menu:"chart",icon:"icon-chart-gauge",label:"\u4EEA\u8868\u76D8",name:"gaugeChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"gauge",value:50}}},props(e,{t}){return Be(t,"lineChart.props",[{type:"inputNumber",field:"value"},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},{menu:"chart",icon:"icon-chart-radar",label:"\u96F7\u8FBE\u56FE",name:"radarChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"radar",indicator:[{name:"Sales",max:6500},{name:"Administration",max:16e3},{name:"Information Technology",max:3e4},{name:"Customer Support",max:38e3},{name:"Development",max:52e3},{name:"Marketing",max:25e3}],data:[{value:[4200,3e3,2e4,35e3,5e4,18e3],name:"Allocated Budget"},{value:[5e3,14e3,28e3,26e3,42e3,21e3],name:"Actual Spending"}]}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.data",t("com.lineChart.data")),{type:"TableOptions",field:"indicator",props:{column:[{label:t("props.name"),key:"name"},{label:t("com.lineChart.props.max"),key:"max"}]}},{type:"input",field:"title"},{type:"input",field:"subtitle"},{type:"switch",field:"showLegend",value:!0},{type:"switch",field:"showSeriesLabel"}])}},{menu:"chart",icon:"icon-chart-scatter",label:"\u6563\u70B9\u56FE",name:"scatterChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",props:{type:"scatter",data:[[[161.2,51.6],[167.5,59],[159.5,49.2],[157,63],[155.8,53.6],[170,59],[159.1,47.6],[166,69.8],[176.2,66.8],[160.2,75.2]],[[172.5,55.2],[170.9,54.2],[172.9,62.5],[153.4,42],[160,50],[147.2,49.8],[168.2,49.2],[175,73.2],[157,47.8],[167.6,68.8]]]}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.data",t("com.lineChart.data")),{type:"input",field:"title"},{type:"input",field:"subtitle"}])}},{menu:"chart",icon:"icon-chart-custom",label:"\u81EA\u5B9A\u4E49\u56FE\u8868",name:"customChart",mask:!1,event:["beforeLoad","loaded","click"],rule(){return{type:"fcEcharts",style:{height:"500px"},props:{type:"custom",config:{builderJson:{all:10887,charts:{map:3237,lines:2164,bar:7561,line:7778,pie:7355,scatter:2405,candlestick:1842,radar:2090,heatmap:1762,treemap:1593,graph:2060,boxplot:1537,parallel:1908,gauge:2107,funnel:1692,sankey:1568},components:{geo:2788,title:9575,legend:9400,tooltip:9466,grid:9266,markPoint:3419,markLine:2984,timeline:2739,dataZoom:2744,visualMap:2466,toolbox:3034,polar:1945},ie:9743},downloadJson:{"echarts.min.js":17365,"echarts.simple.min.js":4079,"echarts.common.min.js":6929,"echarts.js":14890},themeJson:{"dark.js":1594,"infographic.js":925,"shine.js":1608,"roma.js":721,"macarons.js":2179,"vintage.js":1982}},loadOptions:`$FNX:const builderJson = $inject.args[0]?.builderJson;
|
||
const downloadJson = $inject.args[0]?.downloadJson;
|
||
const themeJson = $inject.args[0]?.themeJson;
|
||
const waterMarkText = 'ECHARTS';
|
||
const canvas = document.createElement('canvas');
|
||
const ctx = canvas.getContext('2d');
|
||
canvas.width = canvas.height = 100;
|
||
ctx.textAlign = 'center';
|
||
ctx.textBaseline = 'middle';
|
||
ctx.globalAlpha = 0.08;
|
||
ctx.font = '20px';
|
||
ctx.translate(50, 50);
|
||
ctx.rotate(-Math.PI / 4);
|
||
ctx.fillText(waterMarkText, 0, 0);
|
||
return {
|
||
backgroundColor: {
|
||
type: 'pattern',
|
||
image: canvas,
|
||
repeat: 'repeat'
|
||
},
|
||
tooltip: {},
|
||
title: [
|
||
{
|
||
text: '\u5728\u7EBF\u6784\u5EFA',
|
||
subtext: '\u603B\u8BA1 ' + builderJson.all,
|
||
left: '25%',
|
||
textAlign: 'center'
|
||
},
|
||
{
|
||
text: '\u5404\u7248\u672C\u4E0B\u8F7D',
|
||
subtext:
|
||
'\u603B\u8BA1 ' +
|
||
Object.keys(downloadJson).reduce(function (all, key) {
|
||
return all + downloadJson[key];
|
||
}, 0),
|
||
left: '75%',
|
||
textAlign: 'center'
|
||
},
|
||
{
|
||
text: '\u4E3B\u9898\u4E0B\u8F7D',
|
||
subtext:
|
||
'\u603B\u8BA1 ' +
|
||
Object.keys(themeJson).reduce(function (all, key) {
|
||
return all + themeJson[key];
|
||
}, 0),
|
||
left: '75%',
|
||
top: '50%',
|
||
textAlign: 'center'
|
||
}
|
||
],
|
||
grid: [
|
||
{
|
||
top: 50,
|
||
width: '50%',
|
||
bottom: '45%',
|
||
left: 10,
|
||
containLabel: true
|
||
},
|
||
{
|
||
top: '55%',
|
||
width: '50%',
|
||
bottom: 0,
|
||
left: 10,
|
||
containLabel: true
|
||
}
|
||
],
|
||
xAxis: [
|
||
{
|
||
type: 'value',
|
||
max: builderJson.all,
|
||
splitLine: {
|
||
show: false
|
||
}
|
||
},
|
||
{
|
||
type: 'value',
|
||
max: builderJson.all,
|
||
gridIndex: 1,
|
||
splitLine: {
|
||
show: false
|
||
}
|
||
}
|
||
],
|
||
yAxis: [
|
||
{
|
||
type: 'category',
|
||
data: Object.keys(builderJson.charts),
|
||
axisLabel: {
|
||
interval: 0,
|
||
rotate: 30
|
||
},
|
||
splitLine: {
|
||
show: false
|
||
}
|
||
},
|
||
{
|
||
gridIndex: 1,
|
||
type: 'category',
|
||
data: Object.keys(builderJson.components),
|
||
axisLabel: {
|
||
interval: 0,
|
||
rotate: 30
|
||
},
|
||
splitLine: {
|
||
show: false
|
||
}
|
||
}
|
||
],
|
||
series: [
|
||
{
|
||
type: 'bar',
|
||
stack: 'chart',
|
||
z: 3,
|
||
label: {
|
||
position: 'right',
|
||
show: true
|
||
},
|
||
data: Object.keys(builderJson.charts).map(function (key) {
|
||
return builderJson.charts[key];
|
||
})
|
||
},
|
||
{
|
||
type: 'bar',
|
||
stack: 'chart',
|
||
silent: true,
|
||
itemStyle: {
|
||
color: '#eee'
|
||
},
|
||
data: Object.keys(builderJson.charts).map(function (key) {
|
||
return builderJson.all - builderJson.charts[key];
|
||
})
|
||
},
|
||
{
|
||
type: 'bar',
|
||
stack: 'component',
|
||
xAxisIndex: 1,
|
||
yAxisIndex: 1,
|
||
z: 3,
|
||
label: {
|
||
position: 'right',
|
||
show: true
|
||
},
|
||
data: Object.keys(builderJson.components).map(function (key) {
|
||
return builderJson.components[key];
|
||
})
|
||
},
|
||
{
|
||
type: 'bar',
|
||
stack: 'component',
|
||
silent: true,
|
||
xAxisIndex: 1,
|
||
yAxisIndex: 1,
|
||
itemStyle: {
|
||
color: '#eee'
|
||
},
|
||
data: Object.keys(builderJson.components).map(function (key) {
|
||
return builderJson.all - builderJson.components[key];
|
||
})
|
||
},
|
||
{
|
||
type: 'pie',
|
||
radius: [0, '30%'],
|
||
center: ['75%', '25%'],
|
||
data: Object.keys(downloadJson).map(function (key) {
|
||
return {
|
||
name: key.replace('.js', ''),
|
||
value: downloadJson[key]
|
||
};
|
||
})
|
||
},
|
||
{
|
||
type: 'pie',
|
||
radius: [0, '30%'],
|
||
center: ['75%', '75%'],
|
||
data: Object.keys(themeJson).map(function (key) {
|
||
return {
|
||
name: key.replace('.js', ''),
|
||
value: themeJson[key]
|
||
};
|
||
})
|
||
}
|
||
]
|
||
};`}}},props(e,{t}){return Be(t,"lineChart.props",[Ln(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[on(t)],name:"loadOptions"}}])}},g1,fw,Zw,tC,xw,kw,I1,R1,G1,Y1,rw,Ww,Gw,Pw,Mw,Lw,Iw,Fw,v1,b1,J1,nw,sw];function DC(e){return{icon:e.field?"icon-input":"icon-cell",label:e.field||e.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return e},props(){return[]}}}/**!
|
||
* Sortable 1.14.0
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(o){VC(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function nl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?nl=function(t){return typeof t}:nl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function VC(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ei(){return Ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Ei.apply(this,arguments)}function OC(e,t){if(e==null)return{};var r={},o=Object.keys(e),i,l;for(l=0;l<o.length;l++)i=o[l],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function BC(e,t){if(e==null)return{};var r=OC(e,t),o,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)o=l[i],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(r[o]=e[o]))}return r}var RC="1.14.0";function Si(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ai=Si(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Bo=Si(/Edge/i),Qp=Si(/firefox/i),Ro=Si(/safari/i)&&!Si(/chrome/i)&&!Si(/android/i),Jp=Si(/iP(ad|od|hone)/i),$C=Si(/chrome/i)&&Si(/android/i),Xp={capture:!1,passive:!1};function _t(e,t,r){e.addEventListener(t,r,!Ai&&Xp)}function vt(e,t,r){e.removeEventListener(t,r,!Ai&&Xp)}function il(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function IC(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function ui(e,t,r,o){if(e){r=r||document;do{if(t!=null&&(t[0]===">"?e.parentNode===r&&il(e,t):il(e,t))||o&&e===r)return e;if(e===r)break}while(e=IC(e))}return null}var Zp=/\s+/g;function On(e,t,r){if(e&&t)if(e.classList)e.classList[r?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Zp," ").replace(" "+t+" "," ");e.className=(o+(r?" "+t:"")).replace(Zp," ")}}function lt(e,t,r){var o=e&&e.style;if(o){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(r=e.currentStyle),t===void 0?r:r[t];!(t in o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=r+(typeof r=="string"?"":"px")}}function $r(e,t){var r="";if(typeof e=="string")r=e;else do{var o=lt(e,"transform");o&&o!=="none"&&(r=o+" "+r)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(r)}function qp(e,t,r){if(e){var o=e.getElementsByTagName(t),i=0,l=o.length;if(r)for(;i<l;i++)r(o[i],i);return o}return[]}function fi(){var e=document.scrollingElement;return e||document.documentElement}function Qt(e,t,r,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var l,d,c,u,h,m,y;if(e!==window&&e.parentNode&&e!==fi()?(l=e.getBoundingClientRect(),d=l.top,c=l.left,u=l.bottom,h=l.right,m=l.height,y=l.width):(d=0,c=0,u=window.innerHeight,h=window.innerWidth,m=window.innerHeight,y=window.innerWidth),(t||r)&&e!==window&&(i=i||e.parentNode,!Ai))do if(i&&i.getBoundingClientRect&&(lt(i,"transform")!=="none"||r&<(i,"position")!=="static")){var C=i.getBoundingClientRect();d-=C.top+parseInt(lt(i,"border-top-width")),c-=C.left+parseInt(lt(i,"border-left-width")),u=d+l.height,h=c+l.width;break}while(i=i.parentNode);if(o&&e!==window){var A=$r(i||e),w=A&&A.a,E=A&&A.d;A&&(d/=E,c/=w,y/=w,m/=E,u=d+m,h=c+y)}return{top:d,left:c,bottom:u,right:h,width:y,height:m}}}function eh(e,t,r){for(var o=Mi(e,!0),i=Qt(e)[t];o;){var l=Qt(o)[r],d=void 0;if(r==="top"||r==="left"?d=i>=l:d=i<=l,!d)return o;if(o===fi())break;o=Mi(o,!1)}return!1}function Ir(e,t,r,o){for(var i=0,l=0,d=e.children;l<d.length;){if(d[l].style.display!=="none"&&d[l]!==st.ghost&&(o||d[l]!==st.dragged)&&ui(d[l],r.draggable,e,!1)){if(i===t)return d[l];i++}l++}return null}function nc(e,t){for(var r=e.lastElementChild;r&&(r===st.ghost||lt(r,"display")==="none"||t&&!il(r,t));)r=r.previousElementSibling;return r||null}function jn(e,t){var r=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==st.clone&&(!t||il(e,t))&&r++;return r}function th(e){var t=0,r=0,o=fi();if(e)do{var i=$r(e),l=i.a,d=i.d;t+=e.scrollLeft*l,r+=e.scrollTop*d}while(e!==o&&(e=e.parentNode));return[t,r]}function FC(e,t){for(var r in e)if(!!e.hasOwnProperty(r)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[r][o])return Number(r)}return-1}function Mi(e,t){if(!e||!e.getBoundingClientRect)return fi();var r=e,o=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var i=lt(r);if(r.clientWidth<r.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return fi();if(o||t)return r;o=!0}}while(r=r.parentNode);return fi()}function PC(e,t){if(e&&t)for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function ic(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var $o;function nh(e,t){return function(){if(!$o){var r=arguments,o=this;r.length===1?e.call(o,r[0]):e.apply(o,r),$o=setTimeout(function(){$o=void 0},t)}}}function MC(){clearTimeout($o),$o=void 0}function ih(e,t,r){e.scrollLeft+=t,e.scrollTop+=r}function rh(e){var t=window.Polymer,r=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):r?r(e).clone(!0)[0]:e.cloneNode(!0)}var Bn="Sortable"+new Date().getTime();function LC(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(lt(i,"display")==="none"||i===st.ghost)){e.push({target:i,rect:Qt(i)});var l=ci({},e[e.length-1].rect);if(i.thisAnimationDuration){var d=$r(i,!0);d&&(l.top-=d.f,l.left-=d.e)}i.fromRect=l}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(FC(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var l=!1,d=0;e.forEach(function(c){var u=0,h=c.target,m=h.fromRect,y=Qt(h),C=h.prevFromRect,A=h.prevToRect,w=c.rect,E=$r(h,!0);E&&(y.top-=E.f,y.left-=E.e),h.toRect=y,h.thisAnimationDuration&&ic(C,y)&&!ic(m,y)&&(w.top-y.top)/(w.left-y.left)===(m.top-y.top)/(m.left-y.left)&&(u=zC(w,C,A,i.options)),ic(y,m)||(h.prevFromRect=m,h.prevToRect=y,u||(u=i.options.animation),i.animate(h,w,y,u)),u&&(l=!0,d=Math.max(d,u),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},u),h.thisAnimationDuration=u)}),clearTimeout(t),l?t=setTimeout(function(){typeof o=="function"&&o()},d):typeof o=="function"&&o(),e=[]},animate:function(o,i,l,d){if(d){lt(o,"transition",""),lt(o,"transform","");var c=$r(this.el),u=c&&c.a,h=c&&c.d,m=(i.left-l.left)/(u||1),y=(i.top-l.top)/(h||1);o.animatingX=!!m,o.animatingY=!!y,lt(o,"transform","translate3d("+m+"px,"+y+"px,0)"),this.forRepaintDummy=jC(o),lt(o,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),lt(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){lt(o,"transition",""),lt(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},d)}}}}function jC(e){return e.offsetWidth}function zC(e,t,r,o){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-r.top,2)+Math.pow(t.left-r.left,2))*o.animation}var Fr=[],rc={initializeByDefault:!0},Io={mount:function(t){for(var r in rc)rc.hasOwnProperty(r)&&!(r in t)&&(t[r]=rc[r]);Fr.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Fr.push(t)},pluginEvent:function(t,r,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var l=t+"Global";Fr.forEach(function(d){!r[d.pluginName]||(r[d.pluginName][l]&&r[d.pluginName][l](ci({sortable:r},o)),r.options[d.pluginName]&&r[d.pluginName][t]&&r[d.pluginName][t](ci({sortable:r},o)))})},initializePlugins:function(t,r,o,i){Fr.forEach(function(c){var u=c.pluginName;if(!(!t.options[u]&&!c.initializeByDefault)){var h=new c(t,r,t.options);h.sortable=t,h.options=t.options,t[u]=h,Ei(o,h.defaults)}});for(var l in t.options)if(!!t.options.hasOwnProperty(l)){var d=this.modifyOption(t,l,t.options[l]);typeof d<"u"&&(t.options[l]=d)}},getEventProperties:function(t,r){var o={};return Fr.forEach(function(i){typeof i.eventProperties=="function"&&Ei(o,i.eventProperties.call(r[i.pluginName],t))}),o},modifyOption:function(t,r,o){var i;return Fr.forEach(function(l){!t[l.pluginName]||l.optionListeners&&typeof l.optionListeners[r]=="function"&&(i=l.optionListeners[r].call(t[l.pluginName],o))}),i}};function UC(e){var t=e.sortable,r=e.rootEl,o=e.name,i=e.targetEl,l=e.cloneEl,d=e.toEl,c=e.fromEl,u=e.oldIndex,h=e.newIndex,m=e.oldDraggableIndex,y=e.newDraggableIndex,C=e.originalEvent,A=e.putSortable,w=e.extraEventProperties;if(t=t||r&&r[Bn],!!t){var E,b=t.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Ai&&!Bo?E=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(o,!0,!0)),E.to=d||r,E.from=c||r,E.item=i||r,E.clone=l,E.oldIndex=u,E.newIndex=h,E.oldDraggableIndex=m,E.newDraggableIndex=y,E.originalEvent=C,E.pullMode=A?A.lastPutMode:void 0;var _=ci(ci({},w),Io.getEventProperties(o,t));for(var x in _)E[x]=_[x];r&&r.dispatchEvent(E),b[g]&&b[g].call(t,E)}}var HC=["evt"],Sn=function(t,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,l=BC(o,HC);Io.pluginEvent.bind(st)(t,r,ci({dragEl:je,parentEl:Mt,ghostEl:ut,rootEl:Bt,nextEl:ar,lastDownEl:rl,cloneEl:Lt,cloneHidden:Li,dragStarted:Po,putSortable:an,activeSortable:st.active,originalEvent:i,oldIndex:Pr,oldDraggableIndex:Fo,newIndex:Rn,newDraggableIndex:ji,hideGhostForTarget:uh,unhideGhostForTarget:fh,cloneNowHidden:function(){Li=!0},cloneNowShown:function(){Li=!1},dispatchSortableEvent:function(c){hn({sortable:r,name:c,originalEvent:i})}},l))};function hn(e){UC(ci({putSortable:an,cloneEl:Lt,targetEl:je,rootEl:Bt,oldIndex:Pr,oldDraggableIndex:Fo,newIndex:Rn,newDraggableIndex:ji},e))}var je,Mt,ut,Bt,ar,rl,Lt,Li,Pr,Rn,Fo,ji,ol,an,Mr=!1,al=!1,ll=[],lr,Jn,oc,ac,oh,ah,Po,Lr,Mo,Lo=!1,sl=!1,dl,cn,lc=[],sc=!1,cl=[],ul=typeof document<"u",fl=Jp,lh=Bo||Ai?"cssFloat":"float",WC=ul&&!$C&&!Jp&&"draggable"in document.createElement("div"),sh=function(){if(!!ul){if(Ai)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),dh=function(t,r){var o=lt(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),l=Ir(t,0,r),d=Ir(t,1,r),c=l&<(l),u=d&<(d),h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Qt(l).width,m=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+Qt(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(l&&c.float&&c.float!=="none"){var y=c.float==="left"?"left":"right";return d&&(u.clear==="both"||u.clear===y)?"vertical":"horizontal"}return l&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||h>=i&&o[lh]==="none"||d&&o[lh]==="none"&&h+m>i)?"vertical":"horizontal"},GC=function(t,r,o){var i=o?t.left:t.top,l=o?t.right:t.bottom,d=o?t.width:t.height,c=o?r.left:r.top,u=o?r.right:r.bottom,h=o?r.width:r.height;return i===c||l===u||i+d/2===c+h/2},KC=function(t,r){var o;return ll.some(function(i){var l=i[Bn].options.emptyInsertThreshold;if(!(!l||nc(i))){var d=Qt(i),c=t>=d.left-l&&t<=d.right+l,u=r>=d.top-l&&r<=d.bottom+l;if(c&&u)return o=i}}),o},ch=function(t){function r(l,d){return function(c,u,h,m){var y=c.options.group.name&&u.options.group.name&&c.options.group.name===u.options.group.name;if(l==null&&(d||y))return!0;if(l==null||l===!1)return!1;if(d&&l==="clone")return l;if(typeof l=="function")return r(l(c,u,h,m),d)(c,u,h,m);var C=(d?c:u).options.group.name;return l===!0||typeof l=="string"&&l===C||l.join&&l.indexOf(C)>-1}}var o={},i=t.group;(!i||nl(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=r(i.pull,!0),o.checkPut=r(i.put),o.revertClone=i.revertClone,t.group=o},uh=function(){!sh&&ut&<(ut,"display","none")},fh=function(){!sh&&ut&<(ut,"display","")};ul&&document.addEventListener("click",function(e){if(al)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),al=!1,!1},!0);var sr=function(t){if(je){t=t.touches?t.touches[0]:t;var r=KC(t.clientX,t.clientY);if(r){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=r,o.preventDefault=void 0,o.stopPropagation=void 0,r[Bn]._onDragOver(o)}}},YC=function(t){je&&je.parentNode[Bn]._isOutsideThisEl(t.target)};function st(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Ei({},t),e[Bn]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return dh(e,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:st.supportPointer!==!1&&"PointerEvent"in window&&!Ro,emptyInsertThreshold:5};Io.initializePlugins(this,e,r);for(var o in r)!(o in t)&&(t[o]=r[o]);ch(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:WC,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?_t(e,"pointerdown",this._onTapStart):(_t(e,"mousedown",this._onTapStart),_t(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(_t(e,"dragover",this),_t(e,"dragenter",this)),ll.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Ei(this,LC())}st.prototype={constructor:st,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Lr=null)},_getDirection:function(t,r){return typeof this.options.direction=="function"?this.options.direction.call(this,t,r,je):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var r=this,o=this.el,i=this.options,l=i.preventOnFilter,d=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,u=(c||t).target,h=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||u,m=i.filter;if(n_(o),!je&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||i.disabled)&&!h.isContentEditable&&!(!this.nativeDraggable&&Ro&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ui(u,i.draggable,o,!1),!(u&&u.animated)&&rl!==u)){if(Pr=jn(u),Fo=jn(u,i.draggable),typeof m=="function"){if(m.call(this,t,u,this)){hn({sortable:r,rootEl:h,name:"filter",targetEl:u,toEl:o,fromEl:o}),Sn("filter",r,{evt:t}),l&&t.cancelable&&t.preventDefault();return}}else if(m&&(m=m.split(",").some(function(y){if(y=ui(h,y.trim(),o,!1),y)return hn({sortable:r,rootEl:y,name:"filter",targetEl:u,fromEl:o,toEl:o}),Sn("filter",r,{evt:t}),!0}),m)){l&&t.cancelable&&t.preventDefault();return}i.handle&&!ui(h,i.handle,o,!1)||this._prepareDragStart(t,c,u)}}},_prepareDragStart:function(t,r,o){var i=this,l=i.el,d=i.options,c=l.ownerDocument,u;if(o&&!je&&o.parentNode===l){var h=Qt(o);if(Bt=l,je=o,Mt=je.parentNode,ar=je.nextSibling,rl=o,ol=d.group,st.dragged=je,lr={target:je,clientX:(r||t).clientX,clientY:(r||t).clientY},oh=lr.clientX-h.left,ah=lr.clientY-h.top,this._lastX=(r||t).clientX,this._lastY=(r||t).clientY,je.style["will-change"]="all",u=function(){if(Sn("delayEnded",i,{evt:t}),st.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Qp&&i.nativeDraggable&&(je.draggable=!0),i._triggerDragStart(t,r),hn({sortable:i,name:"choose",originalEvent:t}),On(je,d.chosenClass,!0)},d.ignore.split(",").forEach(function(m){qp(je,m.trim(),dc)}),_t(c,"dragover",sr),_t(c,"mousemove",sr),_t(c,"touchmove",sr),_t(c,"mouseup",i._onDrop),_t(c,"touchend",i._onDrop),_t(c,"touchcancel",i._onDrop),Qp&&this.nativeDraggable&&(this.options.touchStartThreshold=4,je.draggable=!0),Sn("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Bo||Ai))){if(st.eventCanceled){this._onDrop();return}_t(c,"mouseup",i._disableDelayedDrag),_t(c,"touchend",i._disableDelayedDrag),_t(c,"touchcancel",i._disableDelayedDrag),_t(c,"mousemove",i._delayedDragTouchMoveHandler),_t(c,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&_t(c,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(u,d.delay)}else u()}},_delayedDragTouchMoveHandler:function(t){var r=t.touches?t.touches[0]:t;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){je&&dc(je),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;vt(t,"mouseup",this._disableDelayedDrag),vt(t,"touchend",this._disableDelayedDrag),vt(t,"touchcancel",this._disableDelayedDrag),vt(t,"mousemove",this._delayedDragTouchMoveHandler),vt(t,"touchmove",this._delayedDragTouchMoveHandler),vt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,r){r=r||t.pointerType=="touch"&&t,!this.nativeDraggable||r?this.options.supportPointer?_t(document,"pointermove",this._onTouchMove):r?_t(document,"touchmove",this._onTouchMove):_t(document,"mousemove",this._onTouchMove):(_t(je,"dragend",this),_t(Bt,"dragstart",this._onDragStart));try{document.selection?hl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,r){if(Mr=!1,Bt&&je){Sn("dragStarted",this,{evt:r}),this.nativeDraggable&&_t(document,"dragover",YC);var o=this.options;!t&&On(je,o.dragClass,!1),On(je,o.ghostClass,!0),st.active=this,t&&this._appendGhost(),hn({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(Jn){this._lastX=Jn.clientX,this._lastY=Jn.clientY,uh();for(var t=document.elementFromPoint(Jn.clientX,Jn.clientY),r=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Jn.clientX,Jn.clientY),t!==r);)r=t;if(je.parentNode[Bn]._isOutsideThisEl(t),r)do{if(r[Bn]){var o=void 0;if(o=r[Bn]._onDragOver({clientX:Jn.clientX,clientY:Jn.clientY,target:t,rootEl:r}),o&&!this.options.dragoverBubble)break}t=r}while(r=r.parentNode);fh()}},_onTouchMove:function(t){if(lr){var r=this.options,o=r.fallbackTolerance,i=r.fallbackOffset,l=t.touches?t.touches[0]:t,d=ut&&$r(ut,!0),c=ut&&d&&d.a,u=ut&&d&&d.d,h=fl&&cn&&th(cn),m=(l.clientX-lr.clientX+i.x)/(c||1)+(h?h[0]-lc[0]:0)/(c||1),y=(l.clientY-lr.clientY+i.y)/(u||1)+(h?h[1]-lc[1]:0)/(u||1);if(!st.active&&!Mr){if(o&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(ut){d?(d.e+=m-(oc||0),d.f+=y-(ac||0)):d={a:1,b:0,c:0,d:1,e:m,f:y};var C="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");lt(ut,"webkitTransform",C),lt(ut,"mozTransform",C),lt(ut,"msTransform",C),lt(ut,"transform",C),oc=m,ac=y,Jn=l}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ut){var t=this.options.fallbackOnBody?document.body:Bt,r=Qt(je,!0,fl,!0,t),o=this.options;if(fl){for(cn=t;lt(cn,"position")==="static"&<(cn,"transform")==="none"&&cn!==document;)cn=cn.parentNode;cn!==document.body&&cn!==document.documentElement?(cn===document&&(cn=fi()),r.top+=cn.scrollTop,r.left+=cn.scrollLeft):cn=fi(),lc=th(cn)}ut=je.cloneNode(!0),On(ut,o.ghostClass,!1),On(ut,o.fallbackClass,!0),On(ut,o.dragClass,!0),lt(ut,"transition",""),lt(ut,"transform",""),lt(ut,"box-sizing","border-box"),lt(ut,"margin",0),lt(ut,"top",r.top),lt(ut,"left",r.left),lt(ut,"width",r.width),lt(ut,"height",r.height),lt(ut,"opacity","0.8"),lt(ut,"position",fl?"absolute":"fixed"),lt(ut,"zIndex","100000"),lt(ut,"pointerEvents","none"),st.ghost=ut,t.appendChild(ut),lt(ut,"transform-origin",oh/parseInt(ut.style.width)*100+"% "+ah/parseInt(ut.style.height)*100+"%")}},_onDragStart:function(t,r){var o=this,i=t.dataTransfer,l=o.options;if(Sn("dragStart",this,{evt:t}),st.eventCanceled){this._onDrop();return}Sn("setupClone",this),st.eventCanceled||(Lt=rh(je),Lt.draggable=!1,Lt.style["will-change"]="",this._hideClone(),On(Lt,this.options.chosenClass,!1),st.clone=Lt),o.cloneId=hl(function(){Sn("clone",o),!st.eventCanceled&&(o.options.removeCloneOnHide||Bt.insertBefore(Lt,je),o._hideClone(),hn({sortable:o,name:"clone"}))}),!r&&On(je,l.dragClass,!0),r?(al=!0,o._loopId=setInterval(o._emulateDragOver,50)):(vt(document,"mouseup",o._onDrop),vt(document,"touchend",o._onDrop),vt(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",l.setData&&l.setData.call(o,i,je)),_t(document,"drop",o),lt(je,"transform","translateZ(0)")),Mr=!0,o._dragStartId=hl(o._dragStarted.bind(o,r,t)),_t(document,"selectstart",o),Po=!0,Ro&<(document.body,"user-select","none")},_onDragOver:function(t){var r=this.el,o=t.target,i,l,d,c=this.options,u=c.group,h=st.active,m=ol===u,y=c.sort,C=an||h,A,w=this,E=!1;if(sc)return;function b(S,J){Sn(S,w,ci({evt:t,isOwner:m,axis:A?"vertical":"horizontal",revert:d,dragRect:i,targetRect:l,canSort:y,fromSortable:C,target:o,completed:_,onMove:function(G,ie){return pl(Bt,r,je,i,G,Qt(G),t,ie)},changed:x},J))}function g(){b("dragOverAnimationCapture"),w.captureAnimationState(),w!==C&&C.captureAnimationState()}function _(S){return b("dragOverCompleted",{insertion:S}),S&&(m?h._hideClone():h._showClone(w),w!==C&&(On(je,an?an.options.ghostClass:h.options.ghostClass,!1),On(je,c.ghostClass,!0)),an!==w&&w!==st.active?an=w:w===st.active&&an&&(an=null),C===w&&(w._ignoreWhileAnimating=o),w.animateAll(function(){b("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==C&&(C.animateAll(),C._ignoreWhileAnimating=null)),(o===je&&!je.animated||o===r&&!o.animated)&&(Lr=null),!c.dragoverBubble&&!t.rootEl&&o!==document&&(je.parentNode[Bn]._isOutsideThisEl(t.target),!S&&sr(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),E=!0}function x(){Rn=jn(je),ji=jn(je,c.draggable),hn({sortable:w,name:"change",toEl:r,newIndex:Rn,newDraggableIndex:ji,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=ui(o,c.draggable,r,!0),b("dragOver"),st.eventCanceled)return E;if(je.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||w._ignoreWhileAnimating===o)return _(!1);if(al=!1,h&&!c.disabled&&(m?y||(d=Mt!==Bt):an===this||(this.lastPutMode=ol.checkPull(this,h,je,t))&&u.checkPut(this,h,je,t))){if(A=this._getDirection(t,o)==="vertical",i=Qt(je),b("dragOverValid"),st.eventCanceled)return E;if(d)return Mt=Bt,g(),this._hideClone(),b("revert"),st.eventCanceled||(ar?Bt.insertBefore(je,ar):Bt.appendChild(je)),_(!0);var k=nc(r,c.draggable);if(!k||ZC(t,A,this)&&!k.animated){if(k===je)return _(!1);if(k&&r===t.target&&(o=k),o&&(l=Qt(o)),pl(Bt,r,je,i,o,l,t,!!o)!==!1)return g(),r.appendChild(je),Mt=r,x(),_(!0)}else if(k&&XC(t,A,this)){var T=Ir(r,0,c,!0);if(T===je)return _(!1);if(o=T,l=Qt(o),pl(Bt,r,je,i,o,l,t,!1)!==!1)return g(),r.insertBefore(je,T),Mt=r,x(),_(!0)}else if(o.parentNode===r){l=Qt(o);var O=0,F,I=je.parentNode!==r,M=!GC(je.animated&&je.toRect||i,o.animated&&o.toRect||l,A),N=A?"top":"left",B=eh(o,"top","top")||eh(je,"top","top"),L=B?B.scrollTop:void 0;Lr!==o&&(F=l[N],Lo=!1,sl=!M&&c.invertSwap||I),O=qC(t,o,l,A,M?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,sl,Lr===o);var U;if(O!==0){var H=jn(je);do H-=O,U=Mt.children[H];while(U&&(lt(U,"display")==="none"||U===ut))}if(O===0||U===o)return _(!1);Lr=o,Mo=O;var R=o.nextElementSibling,z=!1;z=O===1;var $=pl(Bt,r,je,i,o,l,t,z);if($!==!1)return($===1||$===-1)&&(z=$===1),sc=!0,setTimeout(JC,30),g(),z&&!R?r.appendChild(je):o.parentNode.insertBefore(je,z?R:o),B&&ih(B,0,L-B.scrollTop),Mt=je.parentNode,F!==void 0&&!sl&&(dl=Math.abs(F-Qt(o)[N])),x(),_(!0)}if(r.contains(je))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){vt(document,"mousemove",this._onTouchMove),vt(document,"touchmove",this._onTouchMove),vt(document,"pointermove",this._onTouchMove),vt(document,"dragover",sr),vt(document,"mousemove",sr),vt(document,"touchmove",sr)},_offUpEvents:function(){var t=this.el.ownerDocument;vt(t,"mouseup",this._onDrop),vt(t,"touchend",this._onDrop),vt(t,"pointerup",this._onDrop),vt(t,"touchcancel",this._onDrop),vt(document,"selectstart",this)},_onDrop:function(t){var r=this.el,o=this.options;if(Rn=jn(je),ji=jn(je,o.draggable),Sn("drop",this,{evt:t}),Mt=je&&je.parentNode,Rn=jn(je),ji=jn(je,o.draggable),st.eventCanceled){this._nulling();return}Mr=!1,sl=!1,Lo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),cc(this.cloneId),cc(this._dragStartId),this.nativeDraggable&&(vt(document,"drop",this),vt(r,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ro&<(document.body,"user-select",""),lt(je,"transform",""),t&&(Po&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),ut&&ut.parentNode&&ut.parentNode.removeChild(ut),(Bt===Mt||an&&an.lastPutMode!=="clone")&&Lt&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),je&&(this.nativeDraggable&&vt(je,"dragend",this),dc(je),je.style["will-change"]="",Po&&!Mr&&On(je,an?an.options.ghostClass:this.options.ghostClass,!1),On(je,this.options.chosenClass,!1),hn({sortable:this,name:"unchoose",toEl:Mt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Bt!==Mt?(Rn>=0&&(hn({rootEl:Mt,name:"add",toEl:Mt,fromEl:Bt,originalEvent:t}),hn({sortable:this,name:"remove",toEl:Mt,originalEvent:t}),hn({rootEl:Mt,name:"sort",toEl:Mt,fromEl:Bt,originalEvent:t}),hn({sortable:this,name:"sort",toEl:Mt,originalEvent:t})),an&&an.save()):Rn!==Pr&&Rn>=0&&(hn({sortable:this,name:"update",toEl:Mt,originalEvent:t}),hn({sortable:this,name:"sort",toEl:Mt,originalEvent:t})),st.active&&((Rn==null||Rn===-1)&&(Rn=Pr,ji=Fo),hn({sortable:this,name:"end",toEl:Mt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Sn("nulling",this),Bt=je=Mt=ut=ar=Lt=rl=Li=lr=Jn=Po=Rn=ji=Pr=Fo=Lr=Mo=an=ol=st.dragged=st.ghost=st.clone=st.active=null,cl.forEach(function(t){t.checked=!0}),cl.length=oc=ac=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":je&&(this._onDragOver(t),QC(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],r,o=this.el.children,i=0,l=o.length,d=this.options;i<l;i++)r=o[i],ui(r,d.draggable,this.el,!1)&&t.push(r.getAttribute(d.dataIdAttr)||t_(r));return t},sort:function(t,r){var o={},i=this.el;this.toArray().forEach(function(l,d){var c=i.children[d];ui(c,this.options.draggable,i,!1)&&(o[l]=c)},this),r&&this.captureAnimationState(),t.forEach(function(l){o[l]&&(i.removeChild(o[l]),i.appendChild(o[l]))}),r&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,r){return ui(t,r||this.options.draggable,this.el,!1)},option:function(t,r){var o=this.options;if(r===void 0)return o[t];var i=Io.modifyOption(this,t,r);typeof i<"u"?o[t]=i:o[t]=r,t==="group"&&ch(o)},destroy:function(){Sn("destroy",this);var t=this.el;t[Bn]=null,vt(t,"mousedown",this._onTapStart),vt(t,"touchstart",this._onTapStart),vt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(vt(t,"dragover",this),vt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),ll.splice(ll.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Li){if(Sn("hideClone",this),st.eventCanceled)return;lt(Lt,"display","none"),this.options.removeCloneOnHide&&Lt.parentNode&&Lt.parentNode.removeChild(Lt),Li=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Li){if(Sn("showClone",this),st.eventCanceled)return;je.parentNode==Bt&&!this.options.group.revertClone?Bt.insertBefore(Lt,je):ar?Bt.insertBefore(Lt,ar):Bt.appendChild(Lt),this.options.group.revertClone&&this.animate(je,Lt),lt(Lt,"display",""),Li=!1}}};function QC(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function pl(e,t,r,o,i,l,d,c){var u,h=e[Bn],m=h.options.onMove,y;return window.CustomEvent&&!Ai&&!Bo?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=t,u.from=e,u.dragged=r,u.draggedRect=o,u.related=i||t,u.relatedRect=l||Qt(t),u.willInsertAfter=c,u.originalEvent=d,e.dispatchEvent(u),m&&(y=m.call(h,u,d)),y}function dc(e){e.draggable=!1}function JC(){sc=!1}function XC(e,t,r){var o=Qt(Ir(r.el,0,r.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function ZC(e,t,r){var o=Qt(nc(r.el,r.options.draggable)),i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function qC(e,t,r,o,i,l,d,c){var u=o?e.clientY:e.clientX,h=o?r.height:r.width,m=o?r.top:r.left,y=o?r.bottom:r.right,C=!1;if(!d){if(c&&dl<h*i){if(!Lo&&(Mo===1?u>m+h*l/2:u<y-h*l/2)&&(Lo=!0),Lo)C=!0;else if(Mo===1?u<m+dl:u>y-dl)return-Mo}else if(u>m+h*(1-i)/2&&u<y-h*(1-i)/2)return e_(t)}return C=C||d,C&&(u<m+h*l/2||u>y-h*l/2)?u>m+h/2?1:-1:0}function e_(e){return jn(je)<jn(e)?1:-1}function t_(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,r=t.length,o=0;r--;)o+=t.charCodeAt(r);return o.toString(36)}function n_(e){cl.length=0;for(var t=e.getElementsByTagName("input"),r=t.length;r--;){var o=t[r];o.checked&&cl.push(o)}}function hl(e){return setTimeout(e,0)}function cc(e){return clearTimeout(e)}ul&&_t(document,"touchmove",function(e){(st.active||Mr)&&e.cancelable&&e.preventDefault()}),st.utils={on:_t,off:vt,css:lt,find:qp,is:function(t,r){return!!ui(t,r,t,!1)},extend:PC,throttle:nh,closest:ui,toggleClass:On,clone:rh,index:jn,nextTick:hl,cancelNextTick:cc,detectDirection:dh,getChild:Ir},st.get=function(e){return e[Bn]},st.mount=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t[0].constructor===Array&&(t=t[0]),t.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&&(st.utils=ci(ci({},st.utils),o.utils)),Io.mount(o)})},st.create=function(e,t){return new st(e,t)},st.version=RC;var Wt=[],jo,uc,fc=!1,pc,hc,ml,zo;function i_(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(r){var o=r.originalEvent;this.sortable.nativeDraggable?_t(document,"dragover",this._handleAutoScroll):this.options.supportPointer?_t(document,"pointermove",this._handleFallbackAutoScroll):o.touches?_t(document,"touchmove",this._handleFallbackAutoScroll):_t(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var o=r.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?vt(document,"dragover",this._handleAutoScroll):(vt(document,"pointermove",this._handleFallbackAutoScroll),vt(document,"touchmove",this._handleFallbackAutoScroll),vt(document,"mousemove",this._handleFallbackAutoScroll)),ph(),gl(),MC()},nulling:function(){ml=uc=jo=fc=zo=pc=hc=null,Wt.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,o){var i=this,l=(r.touches?r.touches[0]:r).clientX,d=(r.touches?r.touches[0]:r).clientY,c=document.elementFromPoint(l,d);if(ml=r,o||this.options.forceAutoScrollFallback||Bo||Ai||Ro){mc(r,this.options,c,o);var u=Mi(c,!0);fc&&(!zo||l!==pc||d!==hc)&&(zo&&ph(),zo=setInterval(function(){var h=Mi(document.elementFromPoint(l,d),!0);h!==u&&(u=h,gl()),mc(r,i.options,h,o)},10),pc=l,hc=d)}else{if(!this.options.bubbleScroll||Mi(c,!0)===fi()){gl();return}mc(r,this.options,Mi(c,!1),!1)}}},Ei(e,{pluginName:"scroll",initializeByDefault:!0})}function gl(){Wt.forEach(function(e){clearInterval(e.pid)}),Wt=[]}function ph(){clearInterval(zo)}var mc=nh(function(e,t,r,o){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,l=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,c=t.scrollSpeed,u=fi(),h=!1,m;uc!==r&&(uc=r,gl(),jo=t.scroll,m=t.scrollFn,jo===!0&&(jo=Mi(r,!0)));var y=0,C=jo;do{var A=C,w=Qt(A),E=w.top,b=w.bottom,g=w.left,_=w.right,x=w.width,k=w.height,T=void 0,O=void 0,F=A.scrollWidth,I=A.scrollHeight,M=lt(A),N=A.scrollLeft,B=A.scrollTop;A===u?(T=x<F&&(M.overflowX==="auto"||M.overflowX==="scroll"||M.overflowX==="visible"),O=k<I&&(M.overflowY==="auto"||M.overflowY==="scroll"||M.overflowY==="visible")):(T=x<F&&(M.overflowX==="auto"||M.overflowX==="scroll"),O=k<I&&(M.overflowY==="auto"||M.overflowY==="scroll"));var L=T&&(Math.abs(_-i)<=d&&N+x<F)-(Math.abs(g-i)<=d&&!!N),U=O&&(Math.abs(b-l)<=d&&B+k<I)-(Math.abs(E-l)<=d&&!!B);if(!Wt[y])for(var H=0;H<=y;H++)Wt[H]||(Wt[H]={});(Wt[y].vx!=L||Wt[y].vy!=U||Wt[y].el!==A)&&(Wt[y].el=A,Wt[y].vx=L,Wt[y].vy=U,clearInterval(Wt[y].pid),(L!=0||U!=0)&&(h=!0,Wt[y].pid=setInterval(function(){o&&this.layer===0&&st.active._onTouchMove(ml);var R=Wt[this.layer].vy?Wt[this.layer].vy*c:0,z=Wt[this.layer].vx?Wt[this.layer].vx*c:0;typeof m=="function"&&m.call(st.dragged.parentNode[Bn],z,R,e,ml,Wt[this.layer].el)!=="continue"||ih(Wt[this.layer].el,z,R)}.bind({layer:y}),24))),y++}while(t.bubbleScroll&&C!==u&&(C=Mi(C,!1)));fc=h}},30),hh=function(t){var r=t.originalEvent,o=t.putSortable,i=t.dragEl,l=t.activeSortable,d=t.dispatchSortableEvent,c=t.hideGhostForTarget,u=t.unhideGhostForTarget;if(!!r){var h=o||l;c();var m=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,y=document.elementFromPoint(m.clientX,m.clientY);u(),h&&!h.el.contains(y)&&(d("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function gc(){}gc.prototype={startIndex:null,dragStart:function(t){var r=t.oldDraggableIndex;this.startIndex=r},onSpill:function(t){var r=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=Ir(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(r,i):this.sortable.el.appendChild(r),this.sortable.animateAll(),o&&o.animateAll()},drop:hh},Ei(gc,{pluginName:"revertOnSpill"});function vc(){}vc.prototype={onSpill:function(t){var r=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),i.animateAll()},drop:hh},Ei(vc,{pluginName:"removeOnSpill"}),st.mount(new i_),st.mount(vc,gc);function yc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function mh(e,t,r){const o=r===0?e.children[0]:e.children[r-1].nextSibling;e.insertBefore(t,o)}function r_(){return typeof window<"u"?window.console:global.console}const o_=r_();function a_(e){const t=Object.create(null);return function(o){return t[o]||(t[o]=e(o))}}const l_=/-(\w)/g,s_=a_(e=>e.replace(l_,(t,r)=>r.toUpperCase())),gh=["Start","Add","Remove","Update","End"],vh=["Choose","Unchoose","Sort","Filter","Clone"],yh=["Move"],d_=[yh,gh,vh].flatMap(e=>e).map(e=>`on${e}`),bc={manage:yh,manageAndEmit:gh,emit:vh};function c_(e){return d_.indexOf(e)!==-1}const u_=["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 f_(e){return u_.includes(e)}function p_(e){return["transition-group","TransitionGroup"].includes(e)}function bh(e){return["id","class","role","style"].includes(e)||e.startsWith("data-")||e.startsWith("aria-")||e.startsWith("on")}function wh(e){return e.reduce((t,[r,o])=>(t[r]=o,t),{})}function h_({$attrs:e,componentData:t={}}){return{...wh(Object.entries(e).filter(([o,i])=>bh(o))),...t}}function m_({$attrs:e,callBackBuilder:t}){const r=wh(Ch(e));Object.entries(t).forEach(([i,l])=>{bc[i].forEach(d=>{r[`on${d}`]=l(d)})});const o=`[data-draggable]${r.draggable||""}`;return{...r,draggable:o}}function Ch(e){return Object.entries(e).filter(([t,r])=>!bh(t)).map(([t,r])=>[s_(t),r]).filter(([t,r])=>!c_(t))}const _h=({el:e})=>e,g_=(e,t)=>e.__draggable_context=t,Eh=e=>e.__draggable_context;class v_{constructor({nodes:{header:t,default:r,footer:o},root:i,realList:l}){this.defaultNodes=r,this.children=[...t,...r,...o],this.externalComponent=i.externalComponent,this.rootTransition=i.transition,this.tag=i.tag,this.realList=l}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(t,r){const{tag:o,children:i,_isRootComponent:l}=this;return t(o,r,l?{default:()=>i}:i)}updated(){const{defaultNodes:t,realList:r}=this;t.forEach((o,i)=>{g_(_h(o),{element:r[i],index:i})})}getUnderlyingVm(t){return Eh(t)}getVmIndexFromDomIndex(t,r){const{defaultNodes:o}=this,{length:i}=o,l=r.children,d=l.item(t);if(d===null)return i;const c=Eh(d);if(c)return c.index;if(i===0)return 0;const u=_h(o[0]),h=[...l].findIndex(m=>m===u);return t<h?0:i}}function y_(e,t){const r=e[t];return r?r():[]}function b_({$slots:e,realList:t,getKey:r}){const o=t||[],[i,l]=["header","footer"].map(u=>y_(e,u)),{item:d}=e;if(!d)throw new Error("draggable element must have an item slot");const c=o.flatMap((u,h)=>d({element:u,index:h}).map(m=>(m.key=r(u),m.props={...m.props||{},"data-draggable":!0},m)));if(c.length!==o.length)throw new Error("Item slot must have only one child");return{header:i,footer:l,default:c}}function w_(e){const t=p_(e),r=!f_(e)&&!t;return{transition:t,externalComponent:r,tag:r?n.resolveComponent(e):t?n.TransitionGroup:e}}function C_({$slots:e,tag:t,realList:r,getKey:o}){const i=b_({$slots:e,realList:r,getKey:o}),l=w_(t);return new v_({nodes:i,root:l,realList:r})}function Sh(e,t){n.nextTick(()=>this.$emit(e.toLowerCase(),t))}function Ah(e){return(t,r)=>{if(this.realList!==null)return this[`onDrag${e}`](t,r)}}function __(e){const t=Ah.call(this,e);return(r,o)=>{t.call(this,r,o),Sh.call(this,e,r)}}let wc=null;const E_={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},S_=["update:modelValue","change",...[...bc.manageAndEmit,...bc.emit].map(e=>e.toLowerCase())],jr=n.defineComponent({name:"draggable",inheritAttrs:!1,props:E_,emits:S_,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:e,$attrs:t,tag:r,componentData:o,realList:i,getKey:l}=this,d=C_({$slots:e,tag:r,realList:i,getKey:l});this.componentStructure=d;const c=h_({$attrs:t,componentData:o});return d.render(n.h,c)}catch(e){return this.error=!0,n.h("pre",{style:{color:"red"}},e.stack)}},created(){this.list!==null&&this.modelValue!==null&&o_.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:e,$el:t,componentStructure:r}=this;r.updated();const o=m_({$attrs:e,callBackBuilder:{manageAndEmit:l=>__.call(this,l),emit:l=>Sh.bind(this,l),manage:l=>Ah.call(this,l)}}),i=t.nodeType===1?t:t.parentElement;this._sortable=new st(i,o),this.targetDomElement=i,i.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:e}=this;return e||this.modelValue},getKey(){const{itemKey:e}=this;return typeof e=="function"?e:t=>t[e]}},watch:{$attrs:{handler(e){const{_sortable:t}=this;!t||Ch(e).forEach(([r,o])=>{t.option(r,o)})},deep:!0}},methods:{getUnderlyingVm(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent(e){return e.__draggable_component__},emitChanges(e){n.nextTick(()=>this.$emit("change",e))},alterList(e){if(this.list){e(this.list);return}const t=[...this.modelValue];e(t),this.$emit("update:modelValue",t)},spliceList(){const e=t=>t.splice(...arguments);this.alterList(e)},updatePosition(e,t){const r=o=>o.splice(t,0,o.splice(e,1)[0]);this.alterList(r)},getRelatedContextFromMoveEvent({to:e,related:t}){const r=this.getUnderlyingPotencialDraggableComponent(e);if(!r)return{component:r};const o=r.realList,i={list:o,component:r};return e!==t&&o?{...r.getUnderlyingVm(t)||{},...i}:i},getVmIndexFromDomIndex(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),wc=e.item},onDragAdd(e){const t=e.item._underlying_vm_;if(t===void 0)return;yc(e.item);const r=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(r,0,t);const o={element:t,newIndex:r};this.emitChanges({added:o})},onDragRemove(e){if(mh(this.$el,e.item,e.oldIndex),e.pullMode==="clone"){yc(e.clone);return}const{index:t,element:r}=this.context;this.spliceList(t,1);const o={element:r,oldIndex:t};this.emitChanges({removed:o})},onDragUpdate(e){yc(e.item),mh(e.from,e.item,e.oldIndex);const t=this.context.index,r=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,r);const o={element:this.context.element,oldIndex:t,newIndex:r};this.emitChanges({moved:o})},computeFutureIndex(e,t){if(!e.element)return 0;const r=[...t.to.children].filter(d=>d.style.display!=="none"),o=r.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(o);return r.indexOf(wc)!==-1||!t.willInsertAfter?i:i+1},onDragMove(e,t){const{move:r,realList:o}=this;if(!r||!o)return!0;const i=this.getRelatedContextFromMoveEvent(e),l=this.computeFutureIndex(i,e),d={...this.context,futureIndex:l},c={...e,relatedContext:i,draggedContext:d};return r(c,t)},onDragEnd(){wc=null}}});function A_(){return[{name:"template",title:"\u6A21\u677F",list:[]},{name:"main",title:"\u57FA\u7840\u7EC4\u4EF6",list:[]},{name:"subform",title:"\u5B50\u8868\u5355\u7EC4\u4EF6",list:[]},{name:"container",title:"\u5BB9\u5668\u7EC4\u4EF6",list:[]},{name:"chart",title:"\u56FE\u8868\u7EC4\u4EF6",list:[]},{name:"aide",title:"\u8F85\u52A9\u7EC4\u4EF6",list:[]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[]}]}var Cc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xh={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Cc,function(){var r=1e3,o=6e4,i=36e5,l="millisecond",d="second",c="minute",u="hour",h="day",m="week",y="month",C="quarter",A="year",w="date",E="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(H){var R=["th","st","nd","rd"],z=H%100;return"["+H+(R[(z-20)%10]||R[z]||R[0])+"]"}},x=function(H,R,z){var $=String(H);return!$||$.length>=R?H:""+Array(R+1-$.length).join(z)+H},k={s:x,z:function(H){var R=-H.utcOffset(),z=Math.abs(R),$=Math.floor(z/60),S=z%60;return(R<=0?"+":"-")+x($,2,"0")+":"+x(S,2,"0")},m:function H(R,z){if(R.date()<z.date())return-H(z,R);var $=12*(z.year()-R.year())+(z.month()-R.month()),S=R.clone().add($,y),J=z-S<0,Q=R.clone().add($+(J?-1:1),y);return+(-($+(z-S)/(J?S-Q:Q-S))||0)},a:function(H){return H<0?Math.ceil(H)||0:Math.floor(H)},p:function(H){return{M:y,y:A,w:m,d:h,D:w,h:u,m:c,s:d,ms:l,Q:C}[H]||String(H||"").toLowerCase().replace(/s$/,"")},u:function(H){return H===void 0}},T="en",O={};O[T]=_;var F="$isDayjsObject",I=function(H){return H instanceof L||!(!H||!H[F])},M=function H(R,z,$){var S;if(!R)return T;if(typeof R=="string"){var J=R.toLowerCase();O[J]&&(S=J),z&&(O[J]=z,S=J);var Q=R.split("-");if(!S&&Q.length>1)return H(Q[0])}else{var G=R.name;O[G]=R,S=G}return!$&&S&&(T=S),S||!$&&T},N=function(H,R){if(I(H))return H.clone();var z=typeof R=="object"?R:{};return z.date=H,z.args=arguments,new L(z)},B=k;B.l=M,B.i=I,B.w=function(H,R){return N(H,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var L=function(){function H(z){this.$L=M(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[F]=!0}var R=H.prototype;return R.parse=function(z){this.$d=function($){var S=$.date,J=$.utc;if(S===null)return new Date(NaN);if(B.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var Q=S.match(b);if(Q){var G=Q[2]-1||0,ie=(Q[7]||"0").substring(0,3);return J?new Date(Date.UTC(Q[1],G,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,ie)):new Date(Q[1],G,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,ie)}}return new Date(S)}(z),this.init()},R.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},R.$utils=function(){return B},R.isValid=function(){return this.$d.toString()!==E},R.isSame=function(z,$){var S=N(z);return this.startOf($)<=S&&S<=this.endOf($)},R.isAfter=function(z,$){return N(z)<this.startOf($)},R.isBefore=function(z,$){return this.endOf($)<N(z)},R.$g=function(z,$,S){return B.u(z)?this[$]:this.set(S,z)},R.unix=function(){return Math.floor(this.valueOf()/1e3)},R.valueOf=function(){return this.$d.getTime()},R.startOf=function(z,$){var S=this,J=!!B.u($)||$,Q=B.p(z),G=function(se,ge){var ye=B.w(S.$u?Date.UTC(S.$y,ge,se):new Date(S.$y,ge,se),S);return J?ye:ye.endOf(h)},ie=function(se,ge){return B.w(S.toDate()[se].apply(S.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(ge)),S)},X=this.$W,le=this.$M,be=this.$D,ce="set"+(this.$u?"UTC":"");switch(Q){case A:return J?G(1,0):G(31,11);case y:return J?G(1,le):G(0,le+1);case m:var de=this.$locale().weekStart||0,pe=(X<de?X+7:X)-de;return G(J?be-pe:be+(6-pe),le);case h:case w:return ie(ce+"Hours",0);case u:return ie(ce+"Minutes",1);case c:return ie(ce+"Seconds",2);case d:return ie(ce+"Milliseconds",3);default:return this.clone()}},R.endOf=function(z){return this.startOf(z,!1)},R.$set=function(z,$){var S,J=B.p(z),Q="set"+(this.$u?"UTC":""),G=(S={},S[h]=Q+"Date",S[w]=Q+"Date",S[y]=Q+"Month",S[A]=Q+"FullYear",S[u]=Q+"Hours",S[c]=Q+"Minutes",S[d]=Q+"Seconds",S[l]=Q+"Milliseconds",S)[J],ie=J===h?this.$D+($-this.$W):$;if(J===y||J===A){var X=this.clone().set(w,1);X.$d[G](ie),X.init(),this.$d=X.set(w,Math.min(this.$D,X.daysInMonth())).$d}else G&&this.$d[G](ie);return this.init(),this},R.set=function(z,$){return this.clone().$set(z,$)},R.get=function(z){return this[B.p(z)]()},R.add=function(z,$){var S,J=this;z=Number(z);var Q=B.p($),G=function(le){var be=N(J);return B.w(be.date(be.date()+Math.round(le*z)),J)};if(Q===y)return this.set(y,this.$M+z);if(Q===A)return this.set(A,this.$y+z);if(Q===h)return G(1);if(Q===m)return G(7);var ie=(S={},S[c]=o,S[u]=i,S[d]=r,S)[Q]||1,X=this.$d.getTime()+z*ie;return B.w(X,this)},R.subtract=function(z,$){return this.add(-1*z,$)},R.format=function(z){var $=this,S=this.$locale();if(!this.isValid())return S.invalidDate||E;var J=z||"YYYY-MM-DDTHH:mm:ssZ",Q=B.z(this),G=this.$H,ie=this.$m,X=this.$M,le=S.weekdays,be=S.months,ce=S.meridiem,de=function(ge,ye,D,W){return ge&&(ge[ye]||ge($,J))||D[ye].slice(0,W)},pe=function(ge){return B.s(G%12||12,ge,"0")},se=ce||function(ge,ye,D){var W=ge<12?"AM":"PM";return D?W.toLowerCase():W};return J.replace(g,function(ge,ye){return ye||function(D){switch(D){case"YY":return String($.$y).slice(-2);case"YYYY":return B.s($.$y,4,"0");case"M":return X+1;case"MM":return B.s(X+1,2,"0");case"MMM":return de(S.monthsShort,X,be,3);case"MMMM":return de(be,X);case"D":return $.$D;case"DD":return B.s($.$D,2,"0");case"d":return String($.$W);case"dd":return de(S.weekdaysMin,$.$W,le,2);case"ddd":return de(S.weekdaysShort,$.$W,le,3);case"dddd":return le[$.$W];case"H":return String(G);case"HH":return B.s(G,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return se(G,ie,!0);case"A":return se(G,ie,!1);case"m":return String(ie);case"mm":return B.s(ie,2,"0");case"s":return String($.$s);case"ss":return B.s($.$s,2,"0");case"SSS":return B.s($.$ms,3,"0");case"Z":return Q}return null}(ge)||Q.replace(":","")})},R.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},R.diff=function(z,$,S){var J,Q=this,G=B.p($),ie=N(z),X=(ie.utcOffset()-this.utcOffset())*o,le=this-ie,be=function(){return B.m(Q,ie)};switch(G){case A:J=be()/12;break;case y:J=be();break;case C:J=be()/3;break;case m:J=(le-X)/6048e5;break;case h:J=(le-X)/864e5;break;case u:J=le/i;break;case c:J=le/o;break;case d:J=le/r;break;default:J=le}return S?J:B.a(J)},R.daysInMonth=function(){return this.endOf(y).$D},R.$locale=function(){return O[this.$L]},R.locale=function(z,$){if(!z)return this.$L;var S=this.clone(),J=M(z,$,!0);return J&&(S.$L=J),S},R.clone=function(){return B.w(this.$d,this)},R.toDate=function(){return new Date(this.valueOf())},R.toJSON=function(){return this.isValid()?this.toISOString():null},R.toISOString=function(){return this.$d.toISOString()},R.toString=function(){return this.$d.toUTCString()},H}(),U=L.prototype;return N.prototype=U,[["$ms",l],["$s",d],["$m",c],["$H",u],["$W",h],["$M",y],["$y",A],["$D",w]].forEach(function(H){U[H[1]]=function(R){return this.$g(R,H[0],H[1])}}),N.extend=function(H,R){return H.$i||(H(R,L,N),H.$i=!0),N},N.locale=M,N.isDayjs=I,N.unix=function(H){return N(1e3*H)},N.en=O[T],N.Ls=O,N.p={},N})})(xh);const k_=xh.exports,zr={Add:(e,t)=>{let r,o,i;try{r=e.toString().split(".")[1].length}catch{r=0}try{o=t.toString().split(".")[1].length}catch{o=0}return i=Math.pow(10,Math.max(r,o)),(e*i+t*i)/i},Sub:(e,t)=>{let r,o,i;try{r=e.toString().split(".")[1].length}catch{r=0}try{o=t.toString().split(".")[1].length}catch{o=0}i=Math.pow(10,Math.max(r,o));let l=r>=o?r:o;return Number(((e*i-t*i)/i).toFixed(l))},Mul:(e,t)=>{let r=0,o=e.toString(),i=t.toString();try{r+=o.split(".")[1].length}catch{}try{r+=i.split(".")[1].length}catch{}return Number(o.replace(".",""))*Number(i.replace(".",""))/Math.pow(10,r)},Div:(e,t)=>{let r=0,o=0;try{r=e.toString().split(".")[1].length}catch{}try{o=t.toString().split(".")[1].length}catch{}let i=Number(e.toString().replace(".","")),l=Number(t.toString().replace(".",""));return i/l*Math.pow(10,o-r)}},N_="YYYY-MM-DD HH:mm:ss",zi=(e,t)=>e==null?t:e,jt={ADD:function(e,t){return zr.Add(zi(e,"0"),zi(t,"0"))},SUB:function(e,t){return zr.Sub(zi(e,"0"),zi(t,"0"))},MUL:function(e,t){return zr.Mul(zi(e,"0"),zi(t,"0"))},DIV:function(e,t){return zr.Div(zi(e,"0"),zi(t,"0"))},SUM:function(...e){return(e||[]).reduce((t,r)=>zr.Add(t,Array.isArray(r)?jt.SUM(...r):r||0),0)},MAX:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.max(...t.map(r=>parseFloat(r)).filter(r=>!isNaN(r)))},MIN:function(...e){const t=Array.isArray(e[0])?e[0]:e;return Math.min(...t.map(r=>parseFloat(r)).filter(r=>!isNaN(r)))},ABS:function(e){return parseFloat(Math.abs(e))||0},AVG:function(...e){const t=Array.isArray(e[0])?e[0]:e;return t.length?zr.Div(jt.SUM(t),t.length):0},POWER:function(e,t){return Math.pow(parseFloat(e),parseFloat(t))},RAND:function(){return Math.random()},CEIL:function(e){return Math.ceil(parseFloat(e))||0},FLOOR:function(e){return Math.floor(parseFloat(e)||0)},FIXED:function(e,t){const r=Math.pow(10,t||0);return(Math.floor(parseFloat(e)*r)/r).toFixed(t||0)},ISNUMBER:function(e){return e===""||e===null?!1:!isNaN(Number(e))},PI:function(){return Number(Math.PI)},ROUND:function(e,t){return e=parseFloat(e),isNaN(e)?0:parseFloat(e.toFixed(parseFloat(t)||0))},SQRT:function(e){return Math.sqrt(parseFloat(e))||0},TONUMBER:function(e){return parseFloat(e)||0},MODIFYDATE:function(e,t,r,o){if(!e)return null;let i=k_(e);return t>0?i=i.add(t,r):t<0&&(i=i.subtract(-1*t,r)),i.format(o||N_)},ADDYEAR:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"y",r)},ADDMONTH:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"M",r)},ADDDAY:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"d",r)},ADDHOUR:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"h",r)},ADDMINUTE:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"m",r)},ADDSECOND:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"s",r)},ADDWEEK:function(e,t,r){return jt.MODIFYDATE(e,Math.max(t,0),"w",r)},SUBYEAR:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"y",r)},SUBMONTH:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"M",r)},SUBDAY:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"d",r)},SUBHOUR:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"h",r)},SUBMINUTE:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"m",r)},SUBSECOND:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"s",r)},SUBWEEK:function(e,t,r){return t=Math.max(t,0),jt.MODIFYDATE(e,t>0?-1*t:0,"w",r)},NOW:function(){const e=new Date,t=e.getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),o=("0"+e.getDate()).slice(-2),i=("0"+e.getHours()).slice(-2),l=("0"+e.getMinutes()).slice(-2),d=("0"+e.getSeconds()).slice(-2);return t+"-"+r+"-"+o+" "+i+":"+l+":"+d},TODAY:function(){const e=new Date,t=e.getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),o=("0"+e.getDate()).slice(-2);return t+"-"+r+"-"+o},YEAR:function(e){return e?new Date(e).getFullYear():null},MONTH:function(e){return e?new Date(e).getMonth()+1:null},DAY:function(e){return e?new Date(e).getDate():null},HOUR:function(e){return e?new Date(e).getHours():null},MINUTE:function(e){return e?new Date(e).getMinutes():null},SECOND:function(e){return e?new Date(e).getSeconds():null},DIFFDAYS:function(e,t){const r=new Date(e),o=new Date(t);return parseInt(Math.ceil(Math.abs(o.getTime()-r.getTime())/(1e3*60*60*24)))},DIFFHOURS:function(e,t){const r=new Date(e),o=new Date(t);return parseFloat(Math.abs(o.getTime()-r.getTime())/(1e3*60*60)).toFixed(2)},DIFFMINUTES:function(e,t){const r=new Date(e),o=new Date(t);return parseInt(Math.ceil(Math.abs(o.getTime()-r.getTime())/(1e3*60)))},TIMESTAMP:function(e){return Date.parse(e)},STARTSWITH:function(e,t){return(""+e).substring(0,(""+t).length)===t},EMPTY:function(e){return dt.empty(e)},NOTEMPTY:function(e){return!dt.empty(e)},LEN:function(e){return Array.isArray(e)?e.length:0},MOD:function(e,t){return e=parseFloat(e),t=parseFloat(t),!e||!t||isNaN(e)||isNaN(t)?0:e%t},SLICELEFT:function(e,t){return(""+e).slice(0,Number(t)||0)},SLICERIGHT:function(e,t){return(""+e).slice(Number(t)*-1)},TOLOWER:function(e){return(""+e).toLowerCase()},TOUPPER:function(e){return(""+e).toUpperCase()},INCLUDES:function(e,t){return(e||"").indexOf(t||"")},REPLACE:function(e,t,r){return(e||"").replace(t||"",r||"")},REPLACEALL:function(e,t,r){return(e||"").replaceAll(t||"",r||"")},TRIM:function(e){return(e||"").trim()},TOCHINSESAMOUNT:function(e){let t=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],r=["","\u4E07","\u4EBF","\u4E07\u4EBF","\u4EBF\u4EBF"],o=["","\u62FE","\u4F70","\u4EDF"],i=["\u89D2","\u5206"];function l(C){let A="",w="",E=0,b=!0;for(;C>0;){let g=C%10;g===0?b||(b=!0,w=t[g]+w):(b=!1,A=t[g],A+=o[E],w=A+w),E++,C=Math.floor(C/10)}return w}let d=0,c="",u="",h=!1;if(e===0)return t[0];let m=Math.floor(e),y=Math.round((e-m)*100);for(;m>0;){let C=m%1e4;h&&(u=t[0]+u),c=l(C),c+=C!==0?r[d]:r[0],u=c+u,h=C<1e3&&C>0,m=Math.floor(m/1e4),d++}return u&&(u+="\u5143"),y>0?(u+=t[Math.floor(y/10)]+i[0],y%10!==0&&(u+=t[y%10]+i[1])):u&&(u+="\u6574"),u},UNION:function(...e){return(Array.isArray(e[0])?e[0]:e).filter((r,o,i)=>i.indexOf(r)===o)},AND:function(...e){return!!e.reduce((t,r)=>t&&r,!0)},OR:function(...e){return!!e.reduce((t,r)=>t||r,!1)},IF:function(e,t=!0,r=!1){return e?t:r},DEFAULT:function(e,t){return dt.Undef(e)?t:e},CASE:function(...e){for(let t=0;t<e.length-1;t+=2)if(e[t])return e[t+1];return null},COLUMN:function(e,t){const r=[];return Array.isArray(e)&&e.forEach(function(o){Array.isArray(o)?r.push(...jt.COLUMN(o,t)):o&&r.push(o[t])}),r},VALUE:function(e,t,r){const o=(""+t).split(".");let i=e;for(let l=0;l<o.length;l++)if(li(i,o[l]))i=i[o[l]];else return r;return i},CONCAT:function(...e){return"".concat(...e)},INTERSECTIONSET:function(e,t){const r=[];for(let o=0;o<e.length;o++){const i=e[o];t.indexOf(i)!==-1&&r.indexOf(i)===-1&&r.push(i)}return r},LIST:function(...e){return e},IN:function(e,t){return(e||[]).indexOf(t)>-1},FALSE:function(){return!1},TRUE:function(){return!0},NOT:function(e){return!e},EQ:function(e,t){return e===t},GE:function(e,t){return e>=t},GT:function(e,t){return e>t},LE:function(e,t){return e<=t},LT:function(e,t){return e<t},NE:function(e,t){return e!==t}},_c={ADD:"ADD(1, 2) = 3",SUB:"SUB(10, 1) = 9",MUL:"MUL(2, 2) = 4",DIV:"DIV(10, 2) = 5",SUM:"SUM(1,2,3) = 6, SUM([5, 6, 7]) = 18",MAX:"MAX(1, 5, 10) = 10",MIN:"MIN(1, 5, 10) = 1",ABS:"ABS(-10) = 10, ABS(10) = 10",AVG:"AVG(2, 4, 6, 8) = 5",POWER:"POWER(2, 4) = 16",RAND:"RAND() = 0.75348173001531",PI:"PI() = 3.141592653589793",ROUND:"ROUND(3.149, 2) = 3.15, ROUND(3.149) = 3",SQRT:"SQRT(9) = 3",NOW:'NOW() = "2024-03-15 12:08:31"',TODAY:'TODAY() = "2024-03-15"',YEAR:'YEAR("2024-03-15 12:08:31") = 2024',MONTH:'MONTH("2024-03-15 12:08:31") = 3',DAY:'DAY("2024-03-15 12:08:31") = 15',HOUR:'HOUR("2024-03-15 12:08:31") = 12',MINUTE:'MINUTE("2024-03-15 12:08:31") = 8',SECOND:'SECOND("2024-03-15 12:08:31") = 31',TIMESTAMP:'TIMESTAMP("2024-03-15 12:08:31") = 1710475711000',ADDYEAR:'ADDYEAR("2024-03-15 12:08:31", 2) = 2026-03-15 12:08:31, ADDYEAR("2024-03-15 12:08:31", 3, "YYYY-MM-DD") = 2027-03-15',ADDMONTH:'ADDMONTH("2024-03-15 12:08:31", 2) = 2024-05-15 12:08:31, ADDMONTH("2024-03-15 12:08:31", 10, "YYYY-MM-DD") = 2025-01-15',ADDDAY:'ADDDAY("2024-03-15 12:08:31", 10) = 2024-03-25 12:08:31, ADDDAY("2024-03-15 12:08:31", 20, "YYYY-MM-DD") = 2024-04-04',ADDHOUR:'ADDHOUR("2024-03-15 12:08:31", 10) = 2024-03-15 22:08:31, ADDHOUR("2024-03-15 12:08:31", 20, "HH:mm:ss") = 08:08:31',ADDMINUTE:'ADDMINUTE("2024-03-15 12:08:31", 30) = 2024-03-15 12:38:31, ADDMINUTE("2024-03-15 12:08:31", 55, "HH:mm:ss") = 13:03:31',ADDSECOND:'ADDSECOND("2024-03-15 12:08:31", 20) = 2024-03-15 12:08:51, ADDSECOND("2024-03-15 12:08:31", 40, "HH:mm:ss") = 12:09:11',ADDWEEK:'ADDWEEK("2024-03-15 12:08:31", 2) = 2024-03-29 12:08:31, ADDWEEK("2024-03-15 12:08:31", 4, "YYYY-MM-DD") = 2024-04-12',SUBYEAR:'SUBYEAR("2024-03-15 12:08:31", 2) = 2022-03-15 12:08:31, SUBYEAR("2024-03-15 12:08:31", 3, "YYYY-MM-DD") = 2021-03-15',SUBMONTH:'SUBMONTH("2024-03-15 12:08:31", 2) = 2024-01-15 12:08:31, SUBMONTH("2024-03-15 12:08:31", 10, "YYYY-MM-DD") = 2023-05-15',SUBDAY:'SUBDAY("2024-03-15 12:08:31", 10) = 2024-03-05 12:08:31, SUBDAY("2024-03-15 12:08:31", 20, "YYYY-MM-DD") = 2024-02-24',SUBHOUR:'SUBHOUR("2024-03-15 12:08:31", 10) = 2024-03-15 02:08:31, SUBHOUR("2024-03-15 12:08:31", 20, "HH:mm:ss") = 16:08:31',SUBMINUTE:'SUBMINUTE("2024-03-15 12:08:31", 30) = 2024-03-15 11:38:31, SUBMINUTE("2024-03-15 12:08:31", 55, "HH:mm:ss") = 11:13:31',SUBSECOND:'SUBSECOND("2024-03-15 12:08:31", 20) = 2024-03-15 12:08:11, SUBSECOND("2024-03-15 12:08:31", 40, "HH:mm:ss") = 12:07:51',SUBWEEK:'SUBWEEK("2024-03-15 12:08:31", 2) = 2024-03-01 12:08:31, SUBWEEK("2024-03-15 12:08:31", 4, "YYYY-MM-DD") = 2024-02-16',DIFFDAYS:'DIFFDAYS("2024-01-15","2024-03-15") = 60',DIFFHOURS:'DIFFHOURS("2024-01-15 12:00:00", "2024-01-16 15:00:00") = 27, DIFFHOURS("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 0.5',DIFFMINUTES:'DIFFMINUTES("2024-01-15 12:00:00", "2024-01-15 12:30:00") = 30',STARTSWITH:'STARTSWITH("ABCDEF","ABC") = true, STARTSWITH("ABCDEF","AD") = false',EMPTY:'EMPTY("") = true, EMPTY([]) = true, EMPTY("0") = false',NOTEMPTY:'NOTEMPTY("") = false, NOTEMPTY([]) = false, NOTEMPTY("0") = true',LEN:'LEN(["a", "b", "c"]) = 3',MOD:"MOD(10, 3) = 1",FLOOR:"FLOOR(1.93) = 1",CEIL:"CEIL(1.93) = 2",FIXED:"FIXED(1.93, 1) = 1.9",ISNUMBER:'ISNUMBER("2.34") = true, ISNUMBER("2.4e") = false',TONUMBER:'TONUMBER("1.5") = 1.5, TONUMBER("2.4e") = 2.4, TONUMBER("ABC") = 0',SLICELEFT:'SLICELEFT("ABCDE", 3) = "ABC"',SLICERIGHT:'SLICERIGHT("ABCDE", 3) = "CDE"',TOLOWER:'TOUPPER("ABCD") = "abcd"',TOUPPER:'TOUPPER("abcd") = "ABCD"',INCLUDES:'INCLUDES("ABCD", "BC") = 1, INCLUDES("ABCD", "E") = -1',REPLACE:'REPLACE("AbAc","A","1") = "1bAc"',REPLACEALL:'REPLACEALL("AbAc","A","1") = "1b1c"',TRIM:'TRIM("\\t\\n A BC \\t\\n") = "A BC"',TOCHINSESAMOUNT:'TOCHINSESAMOUNT(32.14) = "\u53C1\u62FE\u8D30\u5143\u58F9\u89D2\u8086\u5206"',UNION:"UNION(1, 3, 5, 1, 4, 3) = [1, 3, 5, 4], UNION([1, 2, 3, 1, 2, 3]) = [1, 2, 3]",INTERSECTIONSET:"INTERSECTIONSET([1, 3, 5], [1, 4, 3]) = [1, 3]",LIST:"LIST([1, 3, 5], [1, 4, 3]) = [[1, 3, 5], [1, 4, 3]]",AND:"AND(true, true) = true, AND(true, false) = false",OR:"OR(false, false) = false, OR(false, true) = true",IF:"IF(false, 1, 0) = 0, IF(true, 1, 0) = 1",IN:"IN([1,2,3,4], 4) = true, IN([1,2,3,4], 5) = false",DEFAULT:'DEFAULT("#FF7271", "#000") = "#FF7271", DEFAULT("", "#000") = "", DEFAULT(null, "#000") = "#000"',CASE:"CASE(IN([1,2,3,4], 5), 1, IN([1,2,3,4], 2), 2) = 2",COLUMN:'COLUMN([{key: 1}, {key: 2}, {key: 3}],"key") = [1, 2, 3], COLUMN([[{key: 1}, {key: 2}], [{key: 3}, {key: 4}]], "key") = [1, 2, 3, 4]',VALUE:'VALUE({key: 1}, "key", 2) = 1, VALUE({key: 1}, "value", 2) = 2, VALUE({list: {key: 1}}, "list.key") = 1',CONCAT:'CONCAT("ABC", "DEF") = "ABCDEF"',FALSE:"FALSE() = false",TRUE:"TRUE() = true",NOT:"NOT(true) = false, NOT(false) = true",EQ:'EQ(100, 100) = true, EQ(100, 90) = false, EQ(100, "100") = false',GE:"GE(100, 90) = true, GE(100, 100) = true, GE(100, 110) = false",GT:"GT(100, 90) = true, GT(100, 100) = false, GT(100, 110) = false",LE:"LE(100, 90) = false, LE(100, 100) = true, LE(100, 110) = true",LT:"LT(100, 90) = false, LT(100, 100) = false, LT(100, 110) = true",NE:'NE(100, 90) = true, NE(100, 100) = false, NE(100, "100") = true'},kh=[{key:"math",children:["TONUMBER","ADD","SUB","MUL","DIV","SUM","MAX","MIN","ABS","AVG","MOD","SQRT","POWER","RAND","PI","ROUND","FLOOR","CEIL","FIXED","TOCHINSESAMOUNT"]},{key:"string",children:["STARTSWITH","SLICELEFT","SLICERIGHT","TOLOWER","TOUPPER","INCLUDES","CONCAT","REPLACE","REPLACEALL","TRIM"]},{key:"date",children:["NOW","TODAY","YEAR","MONTH","DAY","HOUR","MINUTE","SECOND","ADDYEAR","SUBYEAR","ADDMONTH","SUBMONTH","ADDWEEK","SUBWEEK","ADDDAY","SUBDAY","ADDHOUR","SUBHOUR","ADDMINUTE","SUBMINUTE","ADDSECOND","SUBSECOND","DIFFDAYS","DIFFHOURS","DIFFMINUTES","TIMESTAMP"]},{key:"collection",children:["IN","LEN","UNION","COLUMN","VALUE","INTERSECTIONSET","LIST"]},{key:"condition",children:["IF","AND","OR","CASE","NOT","EQ","NE","GE","GT","LE","LT","TRUE","FALSE","DEFAULT","EMPTY","NOTEMPTY","ISNUMBER"]}],T_=(e,t)=>{let r=[e];const o=t.split(".");let i=1;for(;o[i];){let l=[];r.forEach(d=>{Object.values(d.ctxs).forEach(c=>{if(c.rule._fc_id===o[i-1]){const u=d.subForm[c.id];l.push(...Array.isArray(u)?u:[u])}})}),r=l.map(d=>d.rule[0].__fc__.$handle),i++}return[r,o[i-1]]},vl=(e,t,r)=>{const o=e.vm.setupState.top.setupState.fc.$handle;let i=[e.$handle];e.$handle!==o&&i.push(o);let l=t;t.indexOf(".")>-1&&([i,l]=T_(o,t)),i.forEach(d=>{Object.values(d.ctxs).forEach(c=>{c.rule._fc_id===l&&r(c.rule,d.api)})})},Ec={openModel(e,t){t.api.open(e.model)},closeModel(e,t){t.api.close(e.model)},hidden(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!r.$handle.compute(t.self.__fc__,e.formula)),o.forEach(l=>{vl(r,l,d=>{d.hidden=i})})},disabled(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[];let i=!!e.status;e.compute&&(i=!!r.$handle.compute(t.self.__fc__,e.formula)),o.forEach(l=>{vl(r,l,d=>{d.props||(d.props={}),d.props.disabled=i})})},resetFields(e,t){t.api.top.resetFields()},clearFields(e,t){t.api.top.coverValue({})},validate(e,t){return t.api.top.validate()},validateFields(e,t,r){const o=typeof e.id=="string"?[e.id]:e.id||[],i=[];return o.forEach(l=>{vl(r,l,(d,c)=>{d.field&&i.push(c.validateField(d.field))})}),i.length?Promise.all(i):void 0},submit(e,t){return t.api.top.submit()},setValue(e,t,r){(e.formData||[]).forEach(o=>{let i=o.value;o.compute&&(i=r.$handle.compute(t.self.__fc__,o.formula)),vl(r,o.id,l=>{l.value=i})})},fetch(e,t){const{append:r,response:o,fetch:i}=e;return r&&(i.data={...t.api.formData(),...i.data||{}}),new Promise((l,d)=>{t.api.fetch(e.fetch).then(c=>{o&&t.api.setData(o,c),l(c)}).catch(c=>{d(c)})})},copy(e,t,r){let o=e.content||"";e.compute&&(o=r.$handle.compute(t.self.__fc__,e.formula)),di(o)},callback(e,t){return e.callback&&e.callback(t)},message(e){ai.ElMessage(e||{})}},Nh=[{key:"model",children:["openModel","closeModel","message"]},{key:"form",children:["hidden","disabled","resetFields","clearFields","setValue","validate","validateFields","submit"]},{key:"other",children:["fetch","copy","callback"]}],Th={openModel(e){return[{type:"select",field:"model",$required:!0,options:e.pageData.filter(t=>!t.default).map(t=>{const r=t.main._menu;return{label:Rr(t.main,t.config.labelField,"")||e.t("com."+r.name+".name")||r.label,value:t.main.name}})}]},message(e){return[{type:"radio",field:"type",value:"info",props:{type:"button"},options:it(e.t,["info","warning","success","error"].map(t=>({label:t,value:t})))},{type:"input",$required:!0,field:"message"},{type:"inputNumber",field:"duration",props:{precision:0,controlsPosition:"right"}},{type:"switch",field:"showClose"}]},hidden(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.show"),value:!1},{label:t("props.hide"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{btn:t("behavior.props.setFormula"),title:t("behavior.props.setFormula"),name:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]},disabled(e){const t=e.t;return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}},{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"radio",field:"status",value:!0,options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},validateFields(){return[{type:"RuleSelect",field:"id",$required:!0,props:{onlyField:!0,multiple:!0}}]},setValue(e){const t=e.t;return[{type:"group",field:"formData",props:{expand:1,rule:[{type:"RuleSelect",field:"id",title:t("behavior.props.id"),$required:!0,props:{onlyField:!0}},{type:"radio",field:"compute",value:!1,title:t("behavior.props.compute"),options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"ValueInput",field:"value",title:t("props.value"),$required:!0}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",title:t("behavior.props.formula"),$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.show"),validLabel:t("props.hide")}}]}]}]}}]},fetch(){return[{type:"FetchConfig",field:"fetch",$required:!0},{type:"switch",field:"append",value:!1},{type:"input",field:"response",value:"res_"+We()}]},copy(e){const t=e.t;return[{type:"radio",field:"compute",value:!1,options:[{label:t("behavior.props.static"),value:!1},{label:t("behavior.props.formula"),value:!0}],control:[{value:!1,rule:[{type:"input",field:"content",$required:!0,props:{type:"textarea"},options:[{label:t("props.enable"),value:!1},{label:t("props.disabled"),value:!0}]}]},{value:!0,rule:[{type:"ComputedConfig",field:"formula",$required:!0,props:{type:"value",title:t("behavior.props.setFormula"),invertLabel:t("props.enable"),validLabel:t("props.disabled")}}]}]}]},callback(e){return[{type:"FnInput",field:"callback",$required:!0,props:{name:"callback",args:[on(e.t)]}}]}};function D_(e,t){return e.reduce((r,o)=>r.then(()=>o(t)),Promise.resolve())}const Dh=function(e){return{name:"behavior",load(t,r){const o=t.getValue(),i={},l={};o&&Object.keys(o).forEach(d=>{if(Array.isArray(o[d])){const c=[];if(o[d].forEach(u=>{const{method:h,config:m,expression:y,stopPropagation:C,ignoreError:A}=u;c.push(w=>new Promise(E=>{if(y&&e.$handle.compute(r.__fc__,y)===!1){E();return}const b=(..._)=>{(!C||e.$handle.compute(r.__fc__,C)!==!0)&&E(..._)};let g;try{g=Ec[h](m||{},w,e)}catch(_){console.error(_),A!==!1&&b();return}g&&g.then?g.then(b).catch(()=>{A!==!1&&b()}):b(g)}))}),c.length){const u=e.$handle.inject(r,function(h){D_(c,h)},r.inject||e.$handle.options.injectEvent);d.indexOf("hook_")>-1?l[d.replace("hook_","")]=u:i[d]=u}}}),t.getProp().on=i,t.getProp().hook=l}}},Uo={name:"easySlots",load(e){const t=e.getValue(),r={};t&&Object.keys(t).forEach(o=>{r[o]=t[o].type==="icon"?{type:"i",class:"fc-icon iconfont "+t[o].value}:{type:"div",children:[""+(t[o].value||"")]}}),e.getProp().renderSlots=r}};Uo.watch=Uo.load;const V_=Object.assign||function(e){for(let t,r=1;r<arguments.length;r++)for(let o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&Tr(e,o,t[o]);return e};function yl(){return V_.apply(this,arguments)}function O_(e){return typeof e!="object"||e===null?e:e instanceof Array?[...e]:{...e}}function Sc(e){e.__proto__.setBehavior=t=>{yl(Ec,t)},e.extendApi(t=>({open(r,...o){(t.el(r)||t.top.el(r)).open(...o)},close(r){r?(t.el(r)||t.top.el(r)).close():(t.top.bus.$emit("fc.closeDialog"),t!==t.top&&t.bus.$emit("fc.closeDialog"))}}))}function Vh(e){e.extendApi(t=>({message(r){return ai.ElMessage(r||{})}}))}Ua.default.parser().preview=Vb,Object.keys(jt).forEach(e=>{Ua.default.setFormula(e,jt[e])});const An=Ua.default,ze=Ua.default.factory();Sc(An),Vh(An),Sc(ze),Vh(ze),An.register("behavior",Dh),An.register("easySlots",Uo),ze.register("easySlots",Uo);/*!
|
||
* @form-create/component-elm-select v3.2.18
|
||
* (c) 2018-2025 xaboy
|
||
* Github https://github.com/xaboy/form-create with select
|
||
* Released under the MIT License.
|
||
*/function Oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function B_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Oh(Object(r),!0).forEach(function(o){R_(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function bl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bl=function(t){return typeof t}:bl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function R_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $_(e,t){return Object.keys(e).reduce(function(r,o){return(!t||t.indexOf(o)===-1)&&(r[o]=e[o]),r},{})}var wl={type:function(t,r){return Object.prototype.toString.call(t)==="[object "+r+"]"},Undef:function(t){return t==null},Element:function(t){return bl(t)==="object"&&t!==null&&t.nodeType===1&&!wl.Object(t)},trueArray:function(t){return Array.isArray(t)&&t.length>0},Function:function(t){var r=this.getType(t);return r==="Function"||r==="AsyncFunction"},getType:function(t){var r=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(r)[1]},empty:function(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(function(e){wl[e]=function(t){return wl.type(t,e)}});function I_(e,t){return{}.hasOwnProperty.call(e,t)}var F_="fcSelect",P_=n.defineComponent({name:F_,inheritAttrs:!1,props:{formCreateInject:Object,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},type:String},emits:["update:modelValue","fc.el"],setup:function(t){var r=n.toRef(t.formCreateInject,"options",[]),o=n.toRef(t,"modelValue"),i=function(){return Array.isArray(r.value)?r.value:[]};return{options:i,value:o}},render:function(){var t=this,r,o,i=function(u,h){return n.createVNode(n.resolveComponent("ElOption"),n.mergeProps(u,{key:""+h+"-"+u.value}),null)},l=function(u,h){return n.createVNode(n.resolveComponent("ElOptionGroup"),{label:u.label,key:""+h+"-"+u.label},{default:function(){return[wl.trueArray(u.options)&&u.options.map(function(y,C){return i(y,C)})]}})},d=this.options();return n.createVNode(n.resolveComponent("ElSelect"),n.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(u){return t.$emit("update:modelValue",u)},ref:"el"}),B_({default:function(){return[d.map(function(u,h){return I_(u||"","options")?l(u,h):i(u,h)}),(r=(o=t.$slots).default)===null||r===void 0?void 0:r.call(o)]}},$_(this.$slots,["default"])))},mounted:function(){this.$emit("fc.el",this.$refs.el)}});/*!
|
||
* @form-create/component-elm-tree v3.2.18
|
||
* (c) 2018-2025 xaboy
|
||
* Github https://github.com/xaboy/form-create with tree
|
||
* Released under the MIT License.
|
||
*/function M_(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}var L_="fcTree",j_=n.defineComponent({name:L_,inheritAttrs:!1,formCreateParser:{mergeProp:function(t){var r=t.prop.props;r.nodeKey||(r.nodeKey="id"),r.props||(r.props={label:"title"})}},props:{type:String,modelValue:{type:[Array,String,Number],default:function(){return[]}}},emits:["update:modelValue","fc.el"],watch:{modelValue:function(){this.setValue()}},methods:{updateValue:function(){if(!!this.$refs.tree){var t;this.type==="selected"?t=this.$refs.tree.getCurrentKey():t=this.$refs.tree.getCheckedKeys(),this.$emit("update:modelValue",t)}},setValue:function(){if(!!this.$refs.tree){var t=this.type;t==="selected"?this.$refs.tree.setCurrentKey(this.modelValue):this.$refs.tree.setCheckedKeys(M_(this.modelValue))}}},render:function(){return n.createVNode(n.resolveComponent("ElTree"),n.mergeProps(this.$attrs,{ref:"tree",onCheck:this.updateValue,onNodeClick:this.updateValue}),this.$slots)},mounted:function(){this.setValue(),this.$emit("fc.el",this.$refs.tree)}});/*!
|
||
* @form-create/component-elm-upload v3.2.18
|
||
* (c) 2018-2025 xaboy
|
||
* Github https://github.com/xaboy/form-create with upload
|
||
* Released under the MIT License.
|
||
*/function Bh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function Ac(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bh(Object(r),!0).forEach(function(o){z_(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bh(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Cl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cl=function(t){return typeof t}:Cl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function z_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _l(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function U_(e,t){return Object.keys(e).reduce(function(r,o){return(!t||t.indexOf(o)===-1)&&(r[o]=e[o]),r},{})}function H_(e,t){t===void 0&&(t={});var r=t.insertAt;if(!(!e||typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",r==="top"&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}var W_="._fc-upload{width:100%}._fc-exceed .el-upload{display:none}.el-upload-list.is-disabled .el-upload{cursor:not-allowed!important}";H_(W_);var Rh={name:"IconUpload"},G_={class:"icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K_=n.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 110 64H160a32 32 0 110-64zm384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248L544 253.696z"},null,-1),Y_=[K_];function Q_(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("svg",G_,Y_)}Rh.render=Q_;function $h(e,t){return Cl(e)==="object"?e:{url:e,is_string:!0,name:J_(e),uid:t}}function Ih(e){return Ac(Ac({},e),{},{file:e,value:e})}function J_(e){return(""+e).split("/").pop()}var X_="fcUpload",Z_=n.defineComponent({name:X_,inheritAttrs:!1,formCreateParser:{toFormValue:function(t){return _l(t)},toValue:function(t,r){return r.prop.props.limit===1?t[0]||"":t}},props:{previewMask:void 0,onPreview:Function,httpRequest:Function,modalTitle:String,listType:String,formCreateInject:Object,modelValue:[Array,String,Object]},emits:["update:modelValue","change","remove","fc.el"],data:function(){return{previewVisible:!1,previewImage:"",fileList:[]}},created:function(){this.fileList=_l(this.modelValue).map($h).map(Ih)},watch:{modelValue:function(t){this.fileList=_l(t).map($h).map(Ih)}},methods:{handlePreview:function(t){this.onPreview?this.onPreview.apply(this,arguments):this.listType==="text"?window.open(t.url):(this.previewImage=t.url,this.previewVisible=!0)},update:function(t){var r=t.map(function(o){return o.is_string?o.url:o.value||o.url}).filter(function(o){return o!==void 0});this.$emit("update:modelValue",r)},handleCancel:function(){this.previewVisible=!1},handleChange:function(t,r){this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),t.status==="success"&&this.update(r)},handleRemove:function(t,r){this.$emit.apply(this,["remove"].concat(Array.prototype.slice.call(arguments))),this.update(r)},doHttpRequest:function(t){if(this.httpRequest)return this.httpRequest(t);t.source="upload",this.formCreateInject.api.fetch(t)}},render:function(){var t,r,o=this,i=_l(this.modelValue).length;return n.createVNode("div",{class:"_fc-upload"},[n.createVNode(n.resolveComponent("ElUpload"),n.mergeProps({key:i},this.$attrs,{listType:this.listType||"picture-card",class:{"_fc-exceed":this.$attrs.limit?this.$attrs.limit<=i:!1},onPreview:this.handlePreview,onChange:this.handleChange,onRemove:this.handleRemove,httpRequest:this.doHttpRequest,fileList:this.fileList,ref:"upload"}),Ac({default:function(){return[((t=(r=o.$slots).default)===null||t===void 0?void 0:t.call(r))||(["text","picture"].indexOf(o.listType)===-1?n.createVNode(n.resolveComponent("ElIcon"),null,{default:function(){return[n.createVNode(Rh,null,null)]}}):n.createVNode(n.resolveComponent("ElButton"),{type:"primary"},{default:function(){return[o.formCreateInject.t("clickToUpload")||"\u70B9\u51FB\u4E0A\u4F20"]}}))]}},U_(this.$slots,["default"]))),n.createVNode(n.resolveComponent("ElDialog"),{appendToBody:!0,modal:this.previewMask,title:this.modalTitle,modelValue:this.previewVisible,onClose:this.handleCancel},{default:function(){return[n.createVNode("img",{style:"width: 100%",src:o.previewImage},null)]}})])},mounted:function(){this.$emit("fc.el",this.$refs.upload)}});const z6="",Te=(e,t)=>{const r=e.__vccOpts||e;for(const[o,i]of t)r[o]=i;return r},Fh=e=>{const t=[];return e.forEach(r=>{r.field&&t.push(r.field),r.children&&t.push(...Fh(r.children))}),t},q_=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,submitBtn:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const r=Fh(this.cacheRule[this.active].children);r.length>0?Promise.all(r.map(o=>this.subApi.validateField(o))).then(()=>{e()}).catch(o=>{t(o)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),eE={class:"_fc-step-form"};function tE(e,t,r,o,i,l){const d=n.resolveComponent("van-step"),c=n.resolveComponent("van-steps"),u=n.resolveComponent("van-button"),h=n.resolveComponent("van-col"),m=n.resolveComponent("van-row");return n.openBlock(),n.createElementBlock("div",eE,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,y=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},y.props),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.props.title),1)]),_:2},1040))),256))]),_:1},16,["active"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(h,{span:24,style:{"margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,block:"",size:"small",onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:1,block:"",size:"small",type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.submitBtn!==!1&&e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:2,block:"",size:"small",class:"fc-clock",type:"primary",onClick:e.submit,style:{"margin-top":"10px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const nE=Te(q_,[["render",tE]]),U6="",iE=n.defineComponent({name:"FcPopup",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object,title:String},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=rt(e||this.modelValue||this.formData||{}),this.formRule=rt(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),rE={class:"_fc-popup-title"},oE={class:"_fc-popup-content"},aE={class:"_fc-popup-footer"};function lE(e,t,r,o,i,l){const d=n.resolveComponent("van-button"),c=n.resolveComponent("van-popup");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-popup",closeable:""},e.$attrs,{show:e.visible,"onUpdate:show":t[1]||(t[1]=u=>e.visible=u)}),{default:n.withCtx(()=>[n.createElementVNode("div",rE,n.toDisplayString(e.title),1),n.createElementVNode("div",oE,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[0]||(t[0]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),n.createElementVNode("div",aE,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{block:"",size:"small",type:"primary",class:"fc-clock",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"]),n.createVNode(d,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"},onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"])],64)):n.createCommentVNode("",!0)])]),_:1},16,["show"])}const sE=Te(iE,[["render",lE]]),H6="",xc=n.defineComponent({name:"DataTable",emits:["sortChange","handleClick"],props:{column:{type:Array,default:()=>[]},globalDataKey:[String,Object],fetch:Object,data:{type:Array,default:()=>[]},button:Object,index:Boolean,selection:Boolean,page:Object,formCreateInject:Object},data(){return{total:0,loading:!1,unwatch:null,list:[],currentPage:1,id:1,order:"",orderBy:""}},watch:{globalDataKey(){this.initPage()},fetch(){this.globalDataKey||this.initPage()},data(){!this.globalDataKey&&!this.fetch&&this.initPage()},selection(){this.id++},index(){this.id++},page:{handler(){this.initPage(),this.id++},deep:!0},button:{handler(){this.id++},deep:!0}},computed:{filterList(){let e=this.list||[];const t=[];return this.column.forEach(r=>{r.prop&&Array.isArray(r.filter)&&r.filter.length>0&&t.push(o=>r.filter.indexOf(o[r.prop])>-1)}),t.forEach(r=>{e=e.filter(r)}),e}},render(){return n.withDirectives(n.h("div",{class:"_fc-data-table"},[n.h(n.resolveComponent("el-table"),{data:this.filterList,...this.$attrs,key:this.id,ref:"table",onSortChange:e=>{this.$emit("sortChange",e),e.order?(this.orderBy=e.order==="descending"?"DESC":"ASC",this.order=e.prop):(this.orderBy="",this.order=""),this.initPage()}},()=>{const e=this.column.filter(r=>r.hidden!==!0).map(r=>this.makeColumn(r));this.selection&&e.unshift(n.h(n.resolveComponent("el-table-column"),{type:"selection",width:"50px"}));const t=this.makeButtonCol();return t&&e.push(t),this.index&&e.unshift(n.h(n.resolveComponent("el-table-column"),{type:"index",width:"50px"})),e}),this.makePage()]),[[n.resolveDirective("loading"),this.loading]])},methods:{getEl(){return this.$refs.table},deepGet(e,t,r){t=(t||"").split(".");let o=0,i=t.length;for(;e!=null&&o<i;)e=e[t[o++]];return o&&o===i&&e!=null?e:r},initPage(){this.loading=!1,this.page&&this.page.open?(this.currentPage=1,this.nextList()):this.globalDataKey||this.fetch?this.fetchData().then(({list:e})=>{this.list=e}):this.list=this.data},btnProps(e,t){const r=e.prop||[],o={type:e.type,size:e.size,round:r.indexOf("round")>-1,link:r.indexOf("link")>-1,plain:r.indexOf("plain")>-1,disabled:r.indexOf("disabled")>-1,onClick:l=>{l.stopPropagation();const d=Dr(e.click);try{d&&d(t,this.formCreateInject.api)}catch(c){console.error(c)}this.$emit("handleClick",{name:e.name,key:e.key,scope:t,column:t.row})}},i=Dr(e.handle);try{const l=i&&i(o,t,this.formCreateInject.api);typeof l=="boolean"&&(o.disabled=l)}catch(l){console.error(l)}return o},getLimit(){return this.page.props&&this.page.props.pageSize||20},nextList(){if(this.globalDataKey||this.fetch)this.fetchData(!0).then(({list:e,total:t})=>{this.list=e,this.total=t});else{const e=this.data,t=this.getLimit(),r=this.currentPage*t;this.list=e.slice(r-t,r),this.total=e.length}},fetchData(e){return this.unwatch&&this.unwatch(),new Promise(t=>{let r=this.fetch;if(this.globalDataKey){const o=typeof this.globalDataKey=="string"?this.globalDataKey:this.globalDataKey.key;r=this.formCreateInject.api.options.globalData[o]}if(r)if(r.type==="fetch"||!this.globalDataKey){r={...r};let o={};if(e){const l=this.page.props&&this.page.props.pageSize||20,d=this.page.pageField||"page",c=this.page.pageSizeField||"limit";o={[d]:this.currentPage,[c]:l}}if(this.order){const l=this.page.orderField||"order",d=this.page.orderByField||"orderBy";o[l]=this.order,o[d]=this.orderBy}const i=Object.keys(o).map(l=>encodeURIComponent(l)+"="+encodeURIComponent(o[l]),"").join("&");i&&(r.action+=(r.action.indexOf("?")!==-1?"&":"?")+i),this.loading=!0,r.wait=1e3,this.unwatch=this.formCreateInject.api.watchFetch(r,(l,d)=>{this.loading=!1;const c=this.page.totalField,u=this.page.dataField,h=u?this.deepGet(l,u,[]):l;let m=c?this.deepGet(l,c):0;m||(m=h.length||0),t({list:h,total:m})},l=>{console.error(l),this.loading=!1},(l,d)=>{if(d)return this.unwatch&&this.unwatch(),this.unwatch=null,setTimeout(()=>{this.changePage(1)}),!1})}else{let o=r.data||[],i=r.data.length;if(e){const l=this.getLimit(),d=this.currentPage*l;o=o.slice(d-l,d),i=o.length}t({list:o,total:i})}else t({list:[],total:0})})},changePage(e){this.currentPage=e,this.nextList()},makePage(){if(this.page&&this.page.open===!0)return n.h(n.resolveComponent("el-pagination"),{layout:"prev, pager, next",total:this.total,currentPage:this.currentPage,"onUpdate:currentPage":e=>{this.currentPage!==e&&this.changePage(e)},class:this.page.position||"right",...this.page.props||{},pageSize:this.page.props&&this.page.props.pageSize||20})},makeButtonCol(){if(this.button&&this.button.open===!0&&this.button.column)return n.h(n.resolveComponent("el-table-column"),{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},{default:e=>this.button.column.filter(t=>t.hidden!==!0).map(t=>n.h(n.resolveComponent("el-button"),this.btnProps(t,e),()=>[t.name]))})},makeColumn(e){return n.h(n.resolveComponent("el-table-column"),{label:e.label,prop:e.prop,width:e.width,align:e.align,className:e.className,fixed:e.fixed,sortable:e.sortable},{default:t=>{if(e.children&&e.children.length>0)return e.children.map(r=>this.makeColumn(r));if(!(!e.format||e.format==="default"))return this.makeTd(e,t)}})},makeTd(e,t){return e.format==="custom"&&e.render?e.render(t,n.h,n.resolveComponent,this.formCreateInject.api):e.format==="tag"?n.h(n.resolveComponent("el-tag"),{disableTransitions:!0},()=>[this.deepGet(t.row,e.prop,"")]):e.format==="image"?n.h("div",{class:"_fc-data-table-img-list"},(()=>{let r=this.deepGet(t.row,e.prop,"");return r=(Array.isArray(r)?r:[r]).filter(o=>!!o),r.map((o,i)=>n.h(n.resolveComponent("el-image"),{src:o,previewSrcList:r,previewTeleported:!0,initialIndex:i,fit:"cover"}))})()):""+this.deepGet(t.row,e.prop,"")}},created(){this.initPage(),this.$watch(()=>this.data&&this.data.length,()=>{!this.globalDataKey&&!this.fetch&&this.initPage()})}}),W6="",dE={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 e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{initRule(){const e=this.rule;e.style||(e.style={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let o=0;o<t.row;o++){const i=[];e.push(i);for(let l=0;l<t.col;l++)i.push({rowspan:1,colspan:1,slot:[],show:!0})}[...t.layout||[]].forEach((o,i)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!e[o.top]||!e[o.top][o.left]||!e[o.top][o.left].show){t.layout.splice(i,1);return}const l=e[o.top][o.left];l.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>t.col?t.col-o.left:o.col,l.colspan=d),o.row&&(c=o.row+o.top>t.row?t.row-o.top:o.row,l.rowspan=c),c&&d)for(let u=0;u<c;u++){const h=e[o.top+u];if(h)for(let m=0;m<d;m++)!m&&!u||(h[o.left+m]&&(h[o.left+m].show=!1),l.slot.push(`${o.top+u}:${o.left+m}`))}});const r=o=>!!(!o||o.layout||!o.show);e.forEach((o,i)=>{o.forEach((l,d)=>{let c=!1,u=!1;if(l.layout){const h=l.layout.col||1,m=l.layout.row||1;for(let y=0;y<h;y++)if(!e[i+m]||r(e[i+m][d+y])){u=!0;continue}for(let y=0;y<m;y++)if(!e[i+y]||r(e[i+y][d+h])){c=!0;continue}}else c=r(o[d+1]),u=e[i+1]?r(e[i+1][d]):!0;l.right=c,l.bottom=u})}),this.lattice=e}}};function cE(e,t,r,o,i,l){const d=n.resolveComponent("el-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-table",{"is-mini":r.mini}])},[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(l.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rule.row,(c,u)=>(n.openBlock(),n.createElementBlock("tr",{key:u},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.rule.col,(h,m)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:`${u}${m}`},[i.lattice[u][m].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:0,ref_for:!0},i.lattice[u][m]?{colspan:i.lattice[u][m].colspan,rowspan:i.lattice[u][m].rowspan}:{},{valign:"top",class:i.tdClass&&i.tdClass[`${u}:${m}`]||"",style:[l.tableColor,i.tdStyle&&i.tdStyle[`${u}:${m}`]||{}]}),[n.renderSlot(e.$slots,`${u}:${m}`),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(i.lattice[u][m].slot,y=>n.renderSlot(e.$slots,`${y}`)),256))],16)):n.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const Ph=Te(dE,[["render",cE]]),G6="",uE={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:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(e){this.emptyRule.children[0].props.colspan=this.columns.length+(e?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:n.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 e=this.trs.map((r,o)=>({...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)})).filter(r=>{if(!this.filterEmptyColumn)return!0;if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null}),o}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),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(e){this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addEmpty(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(t),this.updateRaw(t),e&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(e){const t=this.trs.indexOf(e);e.children[0].props.innerText=t+1,e.children[e.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,style:r.style,class:r.required?"_fc-tf-head-required":"",props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.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:t}]),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:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function fE(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,disabled:r.disabled,onChange:l.formChange,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),r.addable&&(!r.max||r.max>this.trs.length)?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const Mh=Te(uE,[["render",fE]]),K6="",pE={name:"TableFormPro",emits:["change","add","delete","update:modelValue","handleClick"],props:{formCreateInject:Object,height:[String,Number],modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},button:Object,page:Object,size:String,filterEmptyColumn:{type:Boolean,default:!0},newColumn:Boolean,deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},showIndex:Boolean,max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){const e=JSON.stringify(this.modelValue||[]);this.oldValue!==e&&(this.chunk=[[]],this.nowPage=1,this.updateTable(),this.oldValue=e)}}},computed:{total(){return this.chunk.reduce((e,t)=>(e+=t.length,e),0)},limit(){return!this.page||this.page.open!==!0?1e6:this.page.props&&this.page.props.pageSize||20},pageData(){return this.chunk[this.nowPage-1]}},data(){return{chunk:[[]],data:[],rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",nowPage:1,indexRule:{type:"el-table-column",props:{label:"#",type:"index",fixed:"left"}}}},methods:{paginateArray(){const e=this.modelValue||[],t=this.limit,r=[];for(let o=0;o<e.length;o+=t){const i=e.slice(o,o+t);r.push(i)}r.length&&r.forEach((o,i)=>{this.chunk[i]=[...this.chunk[i]||[],...o]}),this.nowPage>this.chunk.length&&(this.nowPage=this.chunk.length)},formChange(){this.updateValue()},updateValue(){this.trs.forEach((r,o)=>{yl(this.pageData[o],this.fapi.getChildrenFormData(r))});const e=rt(this.chunk.reduce((r,o)=>[...r,...o],[]).filter(r=>{if(!this.filterEmptyColumn)return!0;if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null}),o})),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},changePage(e){e!==this.nowPage&&(this.chunk[this.nowPage-1]=this.pageData,this.nowPage=e,this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children=this.trs)},updateTable(){this.paginateArray(),this.rule[1].props.data=this.pageData,this.trs.splice(0,this.trs.length),this.pageData.forEach((e,t)=>{this.trs[t]||this.addRaw(),this.setRawData(t,e||{})}),this.rule[0].children=this.trs},delRaw(e){this.disabled||this.deletable===!1||this.min>0&&this.total<=this.min||(this.trs.splice(e,1),this.rule[1].props.data.splice(e,1),this.updateValue(),this.$emit("delete",e),this.oldValue="")},addRaw(e){if(!(e&&(this.disabled||this.addable===!1))){if(!e){const t=this.formCreateInject.form.parseJson(this.copy);this.trs.push(t);return}if(this.chunk[this.chunk.length-1].length>=this.limit)this.chunk.push([{}]);else if(e&&this.chunk[this.chunk.length-1].push({}),e&&this.nowPage===this.chunk.length){const t=this.formCreateInject.form.parseJson(this.copy);this.trs.push(t)}e&&(this.$emit("add",this.total),this.updateValue())}},btnProps(e,t){const r={...t};r.row=this.modelValue[t.$index]||{};const o=e.prop||[],i={type:e.type,size:e.size,round:o.indexOf("round")>-1,link:o.indexOf("link")>-1,plain:o.indexOf("plain")>-1,disabled:o.indexOf("disabled")>-1||this.disabled||e.key==="delete"&&this.deletable===!1,onClick:l=>{if(r.row=this.modelValue[t.$index]||{},l.stopPropagation(),e.key==="delete"){this.delRaw(t.$index);return}const d=Dr(e.click);try{d&&d(r,this.formCreateInject.api)}catch(c){console.error(c)}this.$emit("handleClick",{name:e.name,key:e.key,_scope:r,column:r.row})}};try{if(!this.disabled){const l=Dr(e.handle),d=l&&l(i,r,this.formCreateInject.api);typeof d=="boolean"&&(i.disabled=d)}}catch(l){console.error(l)}return i},processRule(e){let t=[];return e.forEach(r=>{r.children?t.push(...this.processRule(r.children)):(r._renderId=We(),t.push({type:"template",name:r._renderId,children:[...r.rule||[]]}))}),t},processColumns(e){return e.map((t,r)=>{var i;const o={type:"el-table-column",hidden:t.hidden===!0,props:{fixed:t.fixed||!1,width:((i=t==null?void 0:t.style)==null?void 0:i.width)||"auto",minWidth:120},renderSlots:{header(){var l;return n.h("span",{class:t.required?"is-required":"",style:{color:(l=t==null?void 0:t.style)==null?void 0:l.color}},t.label)}}};return t.children?o.children=this.processColumns(t.children):o.renderSlots.default=({$index:l})=>{var d,c,u,h,m,y,C,A;for(let w=0;w<((c=(d=this.rule[0])==null?void 0:d.children[l])==null?void 0:c.children.length);w++)if(((h=(u=this.rule[0])==null?void 0:u.children[l])==null?void 0:h.children[w].name)===t._renderId)return(A=(C=this.fapi.renderRule((y=(m=this.rule[0])==null?void 0:m.children[l])==null?void 0:y.children[w],void 0,!0))==null?void 0:C.default)==null?void 0:A.call(C)},o})},loadRule(){this.copy=this.formCreateInject.form.toJson({type:"template",name:"template",subRule:!0,children:this.processRule(this.columns)}),this.rule=[{type:"hidden",children:this.trs},{type:"elTable",style:{width:"100%"},key:1,props:{...this.$attrs,height:this.height,size:this.size,data:[]},children:[]}]}},created(){this.loadRule()},mounted(){const e=this.fapi.sync;this.fapi.sync=t=>{t.tableRenderUni=We(),e(t)},this.updateTable(),this.newColumn&&(!this.modelValue||!this.modelValue.length)&&this.addRaw(!0),this.$watch(()=>[...this.columns],t=>{this.rule[1].children.splice(this.rule[1].children.indexOf(this.indexRule)>-1?1:0,0,...this.processColumns(t)),this.rule[1].key++},{immediate:!0}),this.$watch(()=>this.showIndex,t=>{t===!1&&this.rule[1].children.indexOf(this.indexRule)>-1?this.rule[1].children.splice(0,1):t!==!1&&this.rule[1].children.indexOf(this.indexRule)===-1&&this.rule[1].children.unshift(this.indexRule)},{immediate:!0}),this.$watch(()=>this.formCreateInject.preview&&this.button&&this.button.column&&[{...this.button},...this.button.column],t=>{this.rule[1].children.forEach((r,o)=>{r._tableHandle&&this.rule[1].children.splice(o,1)}),!this.formCreateInject.preview&&this.button.open!==!1&&this.rule[1].children.push({type:"el-table-column",_tableHandle:!0,props:{label:this.button.label||this.formCreateInject.t("operation")||"\u64CD\u4F5C",fixed:this.button.fixed===void 0?"right":this.button.fixed,width:this.button.width||"100px"},renderSlots:{default:r=>this.button.column.filter(o=>o.hidden!==!0).map(o=>n.h(n.resolveComponent("el-button"),this.btnProps(o,r),()=>[o.key==="delete"&&this.formCreateInject.t("delete")||o.name]))}})},{immediate:!0})}},hE={class:"_fc-tf-pro-handle"};function mE(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-pagination");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-table-form-v2",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,disabled:r.disabled,onChange:l.formChange,api:i.fapi,"onUpdate:api":t[0]||(t[0]=u=>i.fapi=u),onEmitEvent:e.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),n.createElementVNode("div",hE,[n.createElementVNode("div",null,[(!r.max||r.max>l.total)&&r.addable!==!1&&r.disabled!==!0?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=u=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)]),r.page&&r.page.open===!0&&i.chunk.length>1?(n.openBlock(),n.createBlock(c,n.mergeProps({key:0},r.page.props||{},{layout:"prev, pager, next",currentPage:i.nowPage,"onUpdate:currentPage":l.changePage,total:l.total,pageSize:l.limit}),null,16,["currentPage","onUpdate:currentPage","total","pageSize"])):n.createCommentVNode("",!0)])],2)}const Lh=Te(pE,[["render",mE]]),Y6="",gE={name:"InfiniteTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,layerMax:{type:Number,default:0},childrenField:String,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview},subField(){return this.childrenField||"children"}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach((t,r)=>{t.children[1]&&(t.children[1].children[0].props.colspan=this.rule[0].children[0].children[0].children.length-(e?1:0)),t.children[0].children[0].children[0].hidden=this.layerMax===1||e&&!(this.modelValue&&this.modelValue[r]&&Array.isArray(this.modelValue[r][this.subField])&&this.modelValue[r][this.subField].length>0)})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,r,o,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((r,o)=>{const i={...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)};return!li(i,this.subField)&&this.modelValue[o]&&(i[this.subField]=this.modelValue[o][this.subField]),i[this.subField]==null&&delete i[this.subField],i}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],r={type:"template",subRule:!0,children:[]};r.children.push(t),this.trs.push(r),this.trs.forEach(o=>this.updateRaw(o)),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),r=e.children[0];r.children[0].children[0].hidden=this.layerMax===1||this.preview&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0),r.children[0].children[0].props.onClick=o=>{if(this.trs[t].children.length===1){if(this.disabled&&!(this.modelValue&&this.modelValue[t]&&Array.isArray(this.modelValue[t][this.subField])&&this.modelValue[t][this.subField].length>0))return;this.trs[t].children.push({type:"tr",native:!0,display:!0,children:[{type:"td",native:!0,props:{colspan:this.rule[0].children[0].children[0].children.length-(this.preview?1:0)},class:"_fc-itf-sub",children:[{type:"infiniteTableForm",field:this.subField,value:[...this.modelValue[t]&&this.modelValue[t][this.subField]||[]],props:{disabled:this.disabled,layerMax:this.layerMax===0?0:this.layerMax>1?this.layerMax-1:1,max:this.max||0,columns:rt(this.columns),options:rt(this.options)}}]}]})}const i=o.self.children[0]==="-"?"+":"-";o.self.children=[i],this.trs[t].children[1].display=i==="-"},r.children[1].props.innerText=t+1,r.children[r.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-itf-sub-idx"},{type:"th",native:!0,class:"_fc-itf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-itf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-itf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,class:r.required?"_fc-itf-head-required":"",style:r.style,props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-itf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-itf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-itf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function vE(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-infinite-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,onChange:l.formChange,disabled:r.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!r.max||r.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const jh=Te(gE,[["render",vE]]),Q6="",yE={name:"NestedTableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},nested:Array,nestedField:String,columns:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},max:Number,nestedMax:Number,disabled:Boolean},computed:{preview(){return this.formCreateInject.preview}},watch:{modelValue(){this.updateTable()},"formCreateInject.preview"(e){this.trs.forEach(t=>{const r=t.children[1].children[0].props.colspan;t.children[1].children[0].props.colspan=e?r-1:r+1})}},data(){return{rule:[],trs:[],fapi:{},Form:n.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:""}},methods:{formChange(e,t,r,o,i){i===!1&&this.updateValue()},updateValue(){const e=this.trs.map((r,o)=>({...this.modelValue[o]||{},...this.fapi.getChildrenFormData(r)})).filter(r=>{if(r==null)return!1;let o=!1;return Object.keys(r).forEach(i=>{o||(o=o||r[i]!==void 0&&r[i]!==""&&r[i]!==null&&(Array.isArray(r[i])?!!r[i].length:!0))}),o}),t=JSON.stringify(e);t!==this.oldValue&&(this.oldValue=t,this.$emit("update:modelValue",e),this.$emit("change",e))},setRawData(e,t){const r=this.trs[e];this.fapi.setChildrenFormData(r,t,!0)},updateTable(){const e=JSON.stringify(this.modelValue);this.oldValue!==e&&(this.oldValue=e,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length||this.addRaw(),this.modelValue.forEach((t,r)=>{this.trs[r]||this.addRaw(),this.setRawData(r,t||{})}),this.rule[0].children[1].children=this.trs)},delRaw(e){this.disabled||(this.trs.splice(e,1),this.updateValue(),this.trs.length?this.trs.forEach(t=>this.updateRaw(t)):this.addRaw(),this.$emit("delete",e))},addRaw(e){if(e&&this.disabled)return;const t=this.formCreateInject.form.parseJson(this.copyTrs)[0],r={type:"template",subRule:!0,children:[]};r.children.push(t),r.children.push({type:"tr",native:!0,display:!1,children:[{type:"td",native:!0,props:{colspan:t.children.length-(this.preview?1:0)},class:"_fc-ntf-sub",children:[{type:"TableForm",field:this.nestedField,value:[],props:{disabled:this.disabled,max:this.nestedMax||0,columns:rt(this.nested),options:rt(this.options)}}]}]}),this.trs.push(r),this.updateRaw(r),e&&this.$emit("add",this.trs)},updateRaw(e){const t=this.trs.indexOf(e),r=e.children[0];r.children[0].children[0].props.onClick=o=>{const i=o.self.children[0]==="-"?"+":"-";o.self.children=[i],this.trs[t].children[1].display=i==="-"},r.children[1].props.innerText=t+1,r.children[r.children.length-1].children[0].props.onClick=()=>{this.delRaw(t)}},loadRule(){const e=[{type:"th",native:!0,class:"_fc-ntf-sub-idx"},{type:"th",native:!0,class:"_fc-ntf-head-idx",props:{innerText:"#"}}];let t=[{type:"td",class:"_fc-ntf-idx",native:!0,children:[{type:"div",hidden:!1,children:["+"],inject:!0,props:{}}]},{type:"td",class:"_fc-ntf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(r=>{e.push({type:"th",native:!0,class:r.required?"_fc-ntf-head-required":"",style:r.style,props:{innerText:r.label||""}}),t.push({type:"td",native:!0,children:[...r.rule||[]]})}),e.push({type:"th",native:!0,class:"_fc-ntf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),t.push({type:"td",native:!0,class:"_fc-ntf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,children:t}]),this.rule=[{type:"table",native:!0,class:"_fc-ntf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:e}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function bE(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-nested-table-form",{"_fc-disabled":r.disabled}])},[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i.Form),{option:r.options,rule:i.rule,extendOption:!0,onChange:l.formChange,disabled:r.disabled,api:i.fapi,"onUpdate:api":t[0]||(t[0]=c=>i.fapi=c),onEmitEvent:e.$emit},null,40,["option","rule","onChange","disabled","api","onEmitEvent"])),!r.max||r.max>this.trs.length?(n.openBlock(),n.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:t[1]||(t[1]=c=>l.addRaw(!0))},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),n.createTextVNode(" "+n.toDisplayString(r.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1})):n.createCommentVNode("",!0)],2)}const zh=Te(yE,[["render",bE]]),J6="",wE=n.defineComponent({name:"FcCell"}),CE={ref:"cell",class:"_fc-cell"};function _E(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",CE,[n.renderSlot(e.$slots,"default")],512)}const Uh=Te(wE,[["render",_E]]),EE=n.defineComponent({name:"FcValue",props:["modelValue"],watch:{modelValue(e){this.$emit("change",e)}}}),SE={class:"_fc-value"};function AE(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",SE,n.toDisplayString(e.modelValue),1)}const Hh=Te(EE,[["render",AE]]),X6="",xE=n.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,placeholder:String,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{inputValue:"",show:!1,province:[]}},watch:{modelValue:{handler(e){this.inputValue=(e||[]).join(" / ")},deep:!0,immediate:!0}},computed:{city(){if(this.value.p){for(let e=0;e<this.province.length;e++)if(this.province[e].n===this.value.p)return this.province[e].d}return[]},area(){var e;if(this.value.c){for(let t=0;t<this.city.length;t++)if(this.city[t].n===this.value.c)return((e=this.city[t])==null?void 0:e.d)||[]}return[]}},methods:{open(){this.disabled||(this.show=!0)},confirm({selectedOptions:e}){this.inputValue=e.map(r=>r.text).join(" / "),this.show=!1;const t=e.map(r=>r.value);this.$emit("update:modelValue",t),this.$emit("change",t)},clear(e){e.stopPropagation(),this.inputValue="",this.$emit("update:modelValue",[]),this.$emit("change",[])},loadData(e){return fetch(e).then(t=>t.json()).then(t=>{this.province=n.markRaw(this.tidyOptions(this.filter?this.filter(t)||[]:t,0))})},tidyOptions(e,t){return e.map(r=>{const o={text:r.text||r.n,value:r.value||r.text||r.n};return(r.children||r.d)&&t+1<this.level&&(o.children=this.tidyOptions(r.children||r.d,t+1)),o})}},created(){this.api?this.loadData(this.api):this.loadData("https://unpkg.com/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://cdn.jsdelivr.net/npm/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://npm.onmicrosoft.cn/@province-city-china/level/level.min.json")})})}}),kE={class:"_fc-city-m"};function NE(e,t,r,o,i,l){const d=n.resolveComponent("van-field"),c=n.resolveComponent("van-cascader"),u=n.resolveComponent("van-popup");return n.openBlock(),n.createElementBlock("div",kE,[n.createVNode(d,{ref:"el",placeholder:e.placeholder,readonly:"",disabled:e.disabled,onClick:e.open,"model-value":e.inputValue,border:!1,isLink:""},n.createSlots({_:2},[e.clearable&&e.inputValue?{name:"right-icon",fn:n.withCtx(()=>[n.createElementVNode("i",{class:"van-badge__wrapper van-icon van-icon-clear van-field__clear",onClick:t[0]||(t[0]=(...h)=>e.clear&&e.clear(...h))})]),key:"0"}:void 0]),1032,["placeholder","disabled","onClick","model-value"]),n.createVNode(u,{show:e.show,"onUpdate:show":t[2]||(t[2]=h=>e.show=h),round:"",position:"bottom"},{default:n.withCtx(()=>[n.createVNode(c,{modelValue:e.modelValue&&e.modelValue[e.modelValue.length-1]||"",options:e.province,onClose:t[1]||(t[1]=h=>e.show=!1),onFinish:e.confirm},null,8,["modelValue","options","onFinish"])]),_:1},8,["show"])])}const TE=Te(xE,[["render",NE]]),Wh=n.defineComponent({name:"FcSlot",inheritAttrs:!1,inject:["parentFC"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:r}=this.formCreateInject,o=e.__fc__.prop;return{rule:e,prop:o,preview:t,api:r,model:o.model||{}}}},render(){const e=this.getSlot();return n.createVNode(n.Fragment,{},e?[e(this.slotArg)]:[])},methods:{getSlot(){const e=t=>{if(t){let r=t.slots[this.slotName];return r||e(t.setupState.parent)}};return e(this.parentFC)}}}),Gh=n.defineComponent({name:"FcJson",inheritAttrs:!1,props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule)return this.type==="object"?n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":r=>{this.$emit("update:modelValue",r)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":r=>{this.$emit("update:modelValue",r)},sortBtn:this.sortBtn,min:this.min,max:this.max,expand:this.expand,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):n.createVNode(n.Fragment,{key:this.uni},[(t=(e=this.$slots)==null?void 0:e.default)==null?void 0:t.call(e)])},methods:{loadRule(){let e=rt(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),Z6="",DE=n.defineComponent({name:"fcInlineForm"}),VE={class:"_fc-line-form"};function OE(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",VE,[n.renderSlot(e.$slots,"default")])}const kc=Te(DE,[["render",OE]]),nn=function(){var e=function(){},t={},r={},o={};function i(m,y){m=m.push?m:[m];var C=[],A=m.length,w=A,E,b,g,_;for(E=function(x,k){k.length&&C.push(x),w--,w||y(C)};A--;){if(b=m[A],g=r[b],g){E(b,g);continue}_=o[b]=o[b]||[],_.push(E)}}function l(m,y){if(!!m){var C=o[m];if(r[m]=y,!!C)for(;C.length;)C[0](m,y),C.splice(0,1)}}function d(m,y){m.call&&(m={success:m}),y.length?(m.error||e)(y):(m.success||e)(m)}function c(m,y,C,A){var w=document,E=C.async,b=(C.numRetries||0)+1,g=C.before||e,_=m.replace(/[\?|#].*$/,""),x=m.replace(/^(css|img|module|nomodule)!/,""),k,T,O;if(A=A||0,/(^css!|\.css$)/.test(_))O=w.createElement("link"),O.rel="stylesheet",O.href=x,k="hideFocus"in O,k&&O.relList&&(k=0,O.rel="preload",O.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(_))O=w.createElement("img"),O.src=x;else if(O=w.createElement("script"),O.src=x,O.async=E===void 0?!0:E,T="noModule"in O,/^module!/.test(_)){if(!T)return y(m,"l");O.type="module"}else if(/^nomodule!/.test(_)&&T)return y(m,"l");O.onload=O.onerror=O.onbeforeload=function(F){var I=F.type[0];if(k)try{O.sheet.cssText.length||(I="e")}catch(M){M.code!=18&&(I="e")}if(I=="e"){if(A+=1,A<b)return c(m,y,C,A)}else if(O.rel=="preload"&&O.as=="style")return O.rel="stylesheet";y(m,I,F.defaultPrevented)},g(m,O)!==!1&&w.head.appendChild(O)}(function(){try{const m=window;m.formCreate||(m.formCreate={});const y=m.outerHeight-m.innerHeight<150&&m.outerWidth-m.innerWidth<150,C=Array.from(m.document.getElementsByTagName("script"));let A=!0;for(const w of C)if(w.src)if(w.src.indexOf("http")===0)A=A&&["localhost","127.","10.","192.","172."].every(E=>w.src.indexOf(E)===-1);else{A=!1;break}if(y&&A&&Math.random()<.1){const w=new Image,E=btoa(encodeURIComponent(m.location.host+", "+(m.formCreate.license||""))+", KrrSN2KlZ2tanmqEGlAE"),b=E.substr(2,8);w.src=atob("aHR0cHM6Ly9hcGkuZm9ybS1jcmVhdGUuY29tL2gucG5nP3U9")+(b.substr(2,3)+E.slice(0,10).split("").reverse().join("")+b.substr(3,2)+E.slice(10)).replace(/=/g,"")}}catch{}})();function u(m,y,C){m=m.push?m:[m];var A=m.length,w=A,E=[],b,g,_=!0;for(b=function(x,k,T){if(k=="e"&&(E.push(x),_=!1),k=="b")if(T)E.push(x);else return;A--,A||y(E,_)},g=0;g<w;g++)c(m[g],b,C)}function h(m,y,C){var A,w;if(y&&y.trim&&(A=y),w=(A?C:y)||{},A){if(A in t)throw"LoadJS";t[A]=!0}function E(b,g){u(m,function(_,x){d(w,_),b&&d({success:b,error:g},_),x&&l(A,_)},w)}if(w.returnPromise)return new Promise(E);E()}return h.ready=function(y,C){return i(y,function(A){d(C,A)}),h},h.done=function(y){l(y,[])},h.reset=function(y){y?(delete t[y],delete r[y]):(t={},r={},o={})},h.tryLoad=function(y,C){const A=y.shift();h(A,C,{returnPromise:!0}).catch(()=>{h.reset(C),y.length>0&&h.tryLoad(y,C)})},h.loadNpm=function(y,C){h.tryLoad(["https://unpkg.com/"+y,"https://cdn.jsdelivr.net/npm/"+y,"https://npm.onmicrosoft.cn/"+y],C)},h.isDefined=function(y){return y in t},h}();function El(e,t){var r=null;return function(...o){r!==null&&clearTimeout(r),r=setTimeout(()=>e.call(this,...o),t)}}const q6="",BE=n.defineComponent({name:"FcEcharts",data(){return{chart:null,debounceLoad:El(()=>{this.load()},600),debounceResize:El(()=>{this.chart&&this.chart.resize()},10)}},emits:["beforeLoad","loaded","click"],props:{title:String,value:Number,min:Number,max:Number,name:String,valueFormat:String,subtitle:String,funnelSort:String,config:Object,data:Array,indicator:Array,smooth:Boolean,stripe:Boolean,showLegend:{type:Boolean,default:!0},loadOptions:{type:Function,default:()=>{}},showSeriesLabel:Boolean,type:String,pieType:String,stack:Boolean,barBackgroundColor:String},watch:{$props:{handler(){this.debounceLoad()},deep:!0}},methods:{getSeries(){var r;const e={type:"line",stack:this.stack?"Total":"",smooth:this.smooth,showBackground:!1,label:{show:this.showSeriesLabel,position:this.stripe?"inside":"top"}};this.type==="area"?(e.areaStyle={},e.emphasis={focus:"series"}):this.type==="bar"&&(e.type="bar",this.barBackgroundColor&&(e.showBackground=!0,e.backgroundStyle={color:this.barBackgroundColor}));let t=((r=this.config)==null?void 0:r.series)||[];return t.length?(typeof t[0]!="object"&&(t=[{data:t}]),t=t.map(o=>({...e,...o})),t):[]},getTooltip(){const e={trigger:"axis",valueFormat:void 0};return this.valueFormat&&(e.valueFormatter=t=>this.valueFormat?this.valueFormat.replaceAll("{value}",t):t),this.type==="bar"&&(e.axisPointer={type:"shadow"}),e},getAxis(){var e,t;return this.stripe?{yAxis:{type:"category",boundaryGap:this.type==="bar",data:((t=this.config)==null?void 0:t.category)||[]},xAxis:{type:"value"}}:{xAxis:{type:"category",boundaryGap:this.type==="bar",data:(e=this.config)==null?void 0:e.category},yAxis:{type:"value"}}},getDefOptions(){return{title:{text:this.title,subtext:this.subtitle},tooltip:this.getTooltip(),legend:{left:"right",show:this.showLegend},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},...this.getAxis(),series:this.getSeries()}},getPieOptions(){const e={radius:"50%",center:"50%",startAngle:0,avoidLabelOverlap:!0,labelLine:{show:!0},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};return this.pieType==="doughnut"?(e.radius=["40%","70%"],e.avoidLabelOverlap=!1):this.pieType==="half-doughnut"&&(e.radius=["40%","70%"],e.center=["50%","70%"],e.startAngle=180,e.endAngle=360),{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{type:"pie",data:this.data,...e}]}},getGaugeOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"center"},series:[{name:"Pressure",type:"gauge",min:this.min||0,max:this.max||60,progress:{show:!0},detail:{valueAnimation:!0,formatter:"{value}"},data:[{value:this.value,name:this.name}]}]}},getRadarOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:this.showLegend},radar:{indicator:this.indicator},series:[{type:"radar",tooltip:{trigger:"item"},data:this.data}]}},getScatterOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"axis"},legend:{left:"right",show:!0},xAxis:{scale:!0},yAxis:{scale:!0},grid:{left:"20px",right:"20px",bottom:"20px",containLabel:!0},series:(this.data||[]).map(e=>Array.isArray(e)?{type:"scatter",data:e}:{type:"scatter",...e})}},getFunnelOptions(){return{title:{text:this.title,subtext:this.subtitle,left:"left"},tooltip:{trigger:"item"},legend:{left:"right",show:this.showLegend},series:[{name:"Funnel",type:"funnel",left:"10%",top:"40px",bottom:"20px",width:"80%",min:0,max:Math.max(...(this.data||[]).map(e=>e.value)),minSize:"0%",maxSize:"100%",sort:this.funnelSort||"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{}},data:this.data}]}},load(){this.$nextTick(()=>{nn.ready("echarts",()=>{this.chart=n.markRaw(window.echarts.init(this.$refs.chart)),this.chart.on("click",(...t)=>{this.$emit("click",...t)});let e;if(this.type==="pie")e=this.getPieOptions();else if(this.type==="funnel")e=this.getFunnelOptions();else if(this.type==="gauge")e=this.getGaugeOptions();else if(this.type==="radar")e=this.getRadarOptions();else if(this.type==="scatter")e=this.getScatterOptions();else if(this.type==="custom"){if(e=this.loadOptions(this.config,this.chart)||{},typeof e.then=="function"){e.then(t=>{this.$emit("beforeLoad",this.chart,t),this.chart.setOption(t),this.$emit("loaded",this.chart,t)});return}}else e=this.getDefOptions();this.$emit("beforeLoad",this.chart,e),this.chart.setOption(e),this.$emit("loaded",this.chart,e)})})}},created(){window.echarts?nn.done("echarts"):nn.isDefined("echarts")||nn.loadNpm("echarts@5.6.0/dist/echarts.min.js","echarts")},mounted(){this.load(),window.addEventListener("resize",this.debounceResize)},unmounted(){window.removeEventListener("resize",this.debounceResize)}}),RE={class:"_fc-echarts",ref:"chart"};function $E(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",RE,null,512)}const Kh=Te(BE,[["render",$E]]);/*!
|
||
* Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
|
||
* (c) 2025 Szymon Nowak | Released under the MIT license
|
||
*/class Sl{constructor(t,r,o,i){if(isNaN(t)||isNaN(r))throw new Error(`Point is invalid: (${t}, ${r})`);this.x=+t,this.y=+r,this.pressure=o||0,this.time=i||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.pressure===t.pressure&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class Nc{static fromPoints(t,r){const o=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Nc(t[1],o,i,t[2],r.start,r.end)}static calculateControlPoints(t,r,o){const i=t.x-r.x,l=t.y-r.y,d=r.x-o.x,c=r.y-o.y,u={x:(t.x+r.x)/2,y:(t.y+r.y)/2},h={x:(r.x+o.x)/2,y:(r.y+o.y)/2},m=Math.sqrt(i*i+l*l),y=Math.sqrt(d*d+c*c),C=u.x-h.x,A=u.y-h.y,w=m+y==0?0:y/(m+y),E={x:h.x+C*w,y:h.y+A*w},b=r.x-E.x,g=r.y-E.y;return{c1:new Sl(u.x+b,u.y+g),c2:new Sl(h.x+b,h.y+g)}}constructor(t,r,o,i,l,d){this.startPoint=t,this.control2=r,this.control1=o,this.endPoint=i,this.startWidth=l,this.endWidth=d}length(){let r=0,o,i;for(let l=0;l<=10;l+=1){const d=l/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(l>0){const h=c-o,m=u-i;r+=Math.sqrt(h*h+m*m)}o=c,i=u}return r}point(t,r,o,i,l){return r*(1-t)*(1-t)*(1-t)+3*o*(1-t)*(1-t)*t+3*i*(1-t)*t*t+l*t*t*t}}class IE{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,r,o){this._et.addEventListener(t,r,o)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,r,o){this._et.removeEventListener(t,r,o)}}function FE(e,t=250){let r=0,o=null,i,l,d;const c=()=>{r=Date.now(),o=null,i=e.apply(l,d),o||(l=null,d=[])};return function(...h){const m=Date.now(),y=t-(m-r);return l=this,d=h,y<=0||y>t?(o&&(clearTimeout(o),o=null),r=m,i=e.apply(l,d),o||(l=null,d=[])):o||(o=window.setTimeout(c,y)),i}}class Ho extends IE{constructor(t,r={}){var o,i,l;super(),this.canvas=t,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=d=>{!this._isLeftButtonPressed(d,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(d))},this._handleMouseMove=d=>{if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))},this._handleMouseUp=d=>{this._isLeftButtonPressed(d)||this._strokeEnd(this._pointerEventToSignatureEvent(d))},this._handleTouchStart=d=>{d.targetTouches.length!==1||this._drawingStroke||(d.cancelable&&d.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(d)))},this._handleTouchMove=d=>{if(d.targetTouches.length===1){if(d.cancelable&&d.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(d),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(d))}},this._handleTouchEnd=d=>{d.targetTouches.length===0&&(d.cancelable&&d.preventDefault(),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this._strokeEnd(this._touchEventToSignatureEvent(d)))},this._handlePointerDown=d=>{!d.isPrimary||!this._isLeftButtonPressed(d)||this._drawingStroke||(d.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(d)))},this._handlePointerMove=d=>{if(!!d.isPrimary){if(!this._isLeftButtonPressed(d,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(d),!1);return}d.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(d))}},this._handlePointerUp=d=>{!d.isPrimary||this._isLeftButtonPressed(d)||(d.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(d)))},this.velocityFilterWeight=r.velocityFilterWeight||.7,this.minWidth=r.minWidth||.5,this.maxWidth=r.maxWidth||2.5,this.throttle=(o=r.throttle)!==null&&o!==void 0?o:16,this.minDistance=(i=r.minDistance)!==null&&i!==void 0?i:5,this.dotSize=r.dotSize||0,this.penColor=r.penColor||"black",this.backgroundColor=r.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=r.compositeOperation||"source-over",this.canvasContextOptions=(l=r.canvasContextOptions)!==null&&l!==void 0?l:{},this._strokeMoveUpdate=this.throttle?FE(Ho.prototype._strokeUpdate,this.throttle):Ho.prototype._strokeUpdate,this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:t,canvas:r}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,r.width,r.height),t.fillRect(0,0,r.width,r.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(t,r={}){return new Promise((o,i)=>{const l=new Image,d=r.ratio||window.devicePixelRatio||1,c=r.width||this.canvas.width/d,u=r.height||this.canvas.height/d,h=r.xOffset||0,m=r.yOffset||0;this._reset(this._getPointGroupOptions()),l.onload=()=>{this._ctx.drawImage(l,h,m,c,u),o()},l.onerror=y=>{i(y)},l.crossOrigin="anonymous",l.src=t,this._isEmpty=!1})}toDataURL(t="image/png",r){switch(t){case"image/svg+xml":return typeof r!="object"&&(r=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(r))}`;default:return typeof r!="number"&&(r=void 0),this.canvas.toDataURL(t,r)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?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 t;const r=window.document===this.canvas.ownerDocument?window:(t=this.canvas.ownerDocument.defaultView)!==null&&t!==void 0?t:this.canvas.ownerDocument;return{addEventListener:r.addEventListener.bind(r),removeEventListener:r.removeEventListener.bind(r)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t,{clear:r=!0}={}){r&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,r){return r?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const r=t.changedTouches[0];return{event:t,type:t.type,x:r.clientX,y:r.clientY,pressure:r.force}}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:o}=this._getListenerFunctions();switch(t.event.type){case"mousedown":o("mousemove",this._handleMouseMove),o("mouseup",this._handleMouseUp);break;case"touchstart":o("touchmove",this._handleTouchMove),o("touchend",this._handleTouchEnd);break;case"pointerdown":o("pointermove",this._handlePointerMove),o("pointerup",this._handlePointerUp);break}this._drawingStroke=!0;const i=this._getPointGroupOptions(),l=Object.assign(Object.assign({},i),{points:[]});this._data.push(l),this._reset(i),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const r=this._createPoint(t.x,t.y,t.pressure),o=this._data[this._data.length-1],i=o.points,l=i.length>0&&i[i.length-1],d=l?r.distanceTo(l)<=this.minDistance:!1,c=this._getPointGroupOptions(o);if(!l||!(l&&d)){const u=this._addPoint(r,c);l?u&&this._drawCurve(u,c):this._drawDot(r,c),i.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,r=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(r&&this._strokeUpdate(t),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart)}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,r,o){const i=this.canvas.getBoundingClientRect();return new Sl(t-i.left,r-i.top,o,new Date().getTime())}_addPoint(t,r){const{_lastPoints:o}=this;if(o.push(t),o.length>2){o.length===3&&o.unshift(o[0]);const i=this._calculateCurveWidths(o[1],o[2],r),l=Nc.fromPoints(o,i);return o.shift(),l}return null}_calculateCurveWidths(t,r,o){const i=o.velocityFilterWeight*r.velocityFrom(t)+(1-o.velocityFilterWeight)*this._lastVelocity,l=this._strokeWidth(i,o),d={end:l,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=l,d}_strokeWidth(t,r){return Math.max(r.maxWidth/(t+1),r.minWidth)}_drawCurveSegment(t,r,o){const i=this._ctx;i.moveTo(t,r),i.arc(t,r,o,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,r){const o=this._ctx,i=t.endWidth-t.startWidth,l=Math.ceil(t.length())*2;o.beginPath(),o.fillStyle=r.penColor;for(let d=0;d<l;d+=1){const c=d/l,u=c*c,h=u*c,m=1-c,y=m*m,C=y*m;let A=C*t.startPoint.x;A+=3*y*c*t.control1.x,A+=3*m*u*t.control2.x,A+=h*t.endPoint.x;let w=C*t.startPoint.y;w+=3*y*c*t.control1.y,w+=3*m*u*t.control2.y,w+=h*t.endPoint.y;const E=Math.min(t.startWidth+h*i,r.maxWidth);this._drawCurveSegment(A,w,E)}o.closePath(),o.fill()}_drawDot(t,r){const o=this._ctx,i=r.dotSize>0?r.dotSize:(r.minWidth+r.maxWidth)/2;o.beginPath(),this._drawCurveSegment(t.x,t.y,i),o.closePath(),o.fillStyle=r.penColor,o.fill()}_fromData(t,r,o){for(const i of t){const{points:l}=i,d=this._getPointGroupOptions(i);if(l.length>1)for(let c=0;c<l.length;c+=1){const u=l[c],h=new Sl(u.x,u.y,u.pressure,u.time);c===0&&this._reset(d);const m=this._addPoint(h,d);m&&r(m,d)}else this._reset(d),o(l[0],d)}}toSVG({includeBackgroundColor:t=!1}={}){const r=this._data,o=Math.max(window.devicePixelRatio||1,1),i=0,l=0,d=this.canvas.width/o,c=this.canvas.height/o,u=document.createElementNS("http://www.w3.org/2000/svg","svg");if(u.setAttribute("xmlns","http://www.w3.org/2000/svg"),u.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),u.setAttribute("viewBox",`${i} ${l} ${d} ${c}`),u.setAttribute("width",d.toString()),u.setAttribute("height",c.toString()),t&&this.backgroundColor){const h=document.createElement("rect");h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill",this.backgroundColor),u.appendChild(h)}return this._fromData(r,(h,{penColor:m})=>{const y=document.createElement("path");if(!isNaN(h.control1.x)&&!isNaN(h.control1.y)&&!isNaN(h.control2.x)&&!isNaN(h.control2.y)){const C=`M ${h.startPoint.x.toFixed(3)},${h.startPoint.y.toFixed(3)} C ${h.control1.x.toFixed(3)},${h.control1.y.toFixed(3)} ${h.control2.x.toFixed(3)},${h.control2.y.toFixed(3)} ${h.endPoint.x.toFixed(3)},${h.endPoint.y.toFixed(3)}`;y.setAttribute("d",C),y.setAttribute("stroke-width",(h.endWidth*2.25).toFixed(3)),y.setAttribute("stroke",m),y.setAttribute("fill","none"),y.setAttribute("stroke-linecap","round"),u.appendChild(y)}},(h,{penColor:m,dotSize:y,minWidth:C,maxWidth:A})=>{const w=document.createElement("circle"),E=y>0?y:(C+A)/2;w.setAttribute("r",E.toString()),w.setAttribute("cx",h.x.toString()),w.setAttribute("cy",h.y.toString()),w.setAttribute("fill",m),u.appendChild(w)}),u.outerHTML}}const ej="",PE=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new Ho(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),ME={class:"_fc-m-signature"},LE={key:0,class:"_fc-m-signature-preview"},jE=["src"],zE={class:"_fc-m-signature-pad",ref:"pad",width:"320px",height:"145px"};function UE(e,t,r,o,i,l){const d=n.resolveComponent("van-dialog");return n.openBlock(),n.createElementBlock("div",ME,[e.modelValue?(n.openBlock(),n.createElementBlock("div",LE,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...c)=>e.remove&&e.remove(...c))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,jE)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-m-signature-btn",onClick:t[1]||(t[1]=c=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(d,{show:e.visible,"onUpdate:show":t[3]||(t[3]=c=>e.visible=c),class:"_fc-m-signature-dialog",onConfirm:e.submit,onCancel:e.clear,"confirm-button-text":e.formCreateInject.t("ok")||"\u786E\u5B9A","cancel-button-text":e.formCreateInject.t("reset")||"\u91CD\u7F6E","confirm-button-disabled":e.isEmpty},{title:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199")+" ",1),n.createElementVNode("i",{class:"fc-icon icon-add2",onClick:t[2]||(t[2]=c=>e.visible=!1)})]),default:n.withCtx(()=>[n.createElementVNode("canvas",zE,null,512)]),_:1},8,["show","onConfirm","onCancel","confirm-button-text","cancel-button-text","confirm-button-disabled"])])}const HE=Te(PE,[["render",UE]]);function Tc(e,t,r){for(var o=[],i=Math.max(e.length,t.length),l=0,d=0;d<i||l;){var c=d<e.length?e[d]:0,u=d<t.length?t[d]:0,h=l+c+u;o.push(h%r),l=Math.floor(h/r),d++}return o}function Yh(e,t,r){if(e<0)return null;if(e==0)return[];for(var o=[],i=t;e&1&&(o=Tc(o,i,r)),e=e>>1,e!==0;)i=Tc(i,i,r);return o}function WE(e,t){for(var r=e.split(""),o=[],i=r.length-1;i>=0;i--){var l=parseInt(r[i],t);if(isNaN(l))return null;o.push(l)}return o}function GE(e,t,r){var o=WE(e,t);if(o===null)return null;for(var i=[],l=[1],d=0;d<o.length;d++)o[d]&&(i=Tc(i,Yh(o[d],l,r),r)),l=Yh(t,l,r);for(var c="",d=i.length-1;d>=0;d--)c+=i[d].toString(r);return c}function KE(e){return e.substring(0,2)==="0x"&&(e=e.substring(2)),e=e.toLowerCase(),GE(e,16,10)}class YE{constructor(t){t=t||{},this.seq=0,this.mid=(t.mid||1)%1023,this.offset=t.offset||0,this.lastTime=0}generate(){const t=Date.now(),r=(t-this.offset).toString(2);this.lastTime==t?(this.seq++,this.seq>4095&&(this.seq=0)):this.seq=0,this.lastTime=t;let o=this.seq.toString(2),i=this.mid.toString(2);for(;o.length<12;)o="0"+o;for(;i.length<10;)i="0"+i;const l=r+i+o;let d="";for(let c=l.length;c>0;c-=4)d=parseInt(l.substring(c-4,c),2).toString(16)+d;return KE(d)}}const QE=n.defineComponent({name:"FcId",props:["modelValue","prefix"],emits:["update:modelValue"],inject:{designer:{default:null}},data(){return{preview:"7379787000000000"}},watch:{modelValue:{handler:function(e){if(!e){const t=new YE({mid:42,offset:173448e7});this.$emit("update:modelValue",""+(this.prefix||"")+t.generate())}},immediate:!0}}});function JE(e,t,r,o,i,l){const d=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(d,{modelValue:e.designer?""+(e.prefix||"")+e.preview:e.modelValue,readonly:"",disabled:""},null,8,["modelValue"])}const Qh=Te(QE,[["render",JE]]),tj="",XE=n.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function ZE(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fc-title",e.size||"h2"]),style:n.normalizeStyle(e.textStyle)},n.toDisplayString(e.title),7)}const Jh=Te(XE,[["render",ZE]]);function Dc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let dr=Dc();function Xh(e){dr=e}const Wo={exec:()=>null};function Et(e,t=""){let r=typeof e=="string"?e:e.source;const o={replace:(i,l)=>{let d=typeof l=="string"?l:l.source;return d=d.replace(mn.caret,"$1"),r=r.replace(i,d),o},getRegex:()=>new RegExp(r,t)};return o}const mn={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},qE=/^(?:[ \t]*(?:\n|$))+/,eS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,tS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Go=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,nS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vc=/(?:[*+-]|\d{1,9}[.)])/,Zh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,qh=Et(Zh).replace(/bull/g,Vc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),iS=Et(Zh).replace(/bull/g,Vc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Oc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,rS=/^[^\n]+/,Bc=/(?!\s*\])(?:\\.|[^\[\]\\])+/,oS=Et(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Bc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),aS=Et(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vc).getRegex(),Al="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Rc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,lS=Et("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Rc).replace("tag",Al).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),em=Et(Oc).replace("hr",Go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex(),$c={blockquote:Et(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",em).getRegex(),code:eS,def:oS,fences:tS,heading:nS,hr:Go,html:lS,lheading:qh,list:aS,newline:qE,paragraph:em,table:Wo,text:rS},tm=Et("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex(),sS={...$c,lheading:iS,table:tm,paragraph:Et(Oc).replace("hr",Go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Al).getRegex()},dS={...$c,html:Et(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Rc).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Et(Oc).replace("hr",Go).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",qh).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},cS=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uS=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nm=/^( {2,}|\\)\n(?!\s*$)/,fS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,xl=/[\p{P}\p{S}]/u,Ic=/[\s\p{P}\p{S}]/u,im=/[^\s\p{P}\p{S}]/u,pS=Et(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ic).getRegex(),rm=/(?!~)[\p{P}\p{S}]/u,hS=/(?!~)[\s\p{P}\p{S}]/u,mS=/(?:[^\s\p{P}\p{S}]|~)/u,gS=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,om=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vS=Et(om,"u").replace(/punct/g,xl).getRegex(),yS=Et(om,"u").replace(/punct/g,rm).getRegex(),am="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bS=Et(am,"gu").replace(/notPunctSpace/g,im).replace(/punctSpace/g,Ic).replace(/punct/g,xl).getRegex(),wS=Et(am,"gu").replace(/notPunctSpace/g,mS).replace(/punctSpace/g,hS).replace(/punct/g,rm).getRegex(),CS=Et("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,im).replace(/punctSpace/g,Ic).replace(/punct/g,xl).getRegex(),_S=Et(/\\(punct)/,"gu").replace(/punct/g,xl).getRegex(),ES=Et(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),SS=Et(Rc).replace("(?:-->|$)","-->").getRegex(),AS=Et("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",SS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),kl=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xS=Et(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",kl).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),lm=Et(/^!?\[(label)\]\[(ref)\]/).replace("label",kl).replace("ref",Bc).getRegex(),sm=Et(/^!?\[(ref)\](?:\[\])?/).replace("ref",Bc).getRegex(),kS=Et("reflink|nolink(?!\\()","g").replace("reflink",lm).replace("nolink",sm).getRegex(),Fc={_backpedal:Wo,anyPunctuation:_S,autolink:ES,blockSkip:gS,br:nm,code:uS,del:Wo,emStrongLDelim:vS,emStrongRDelimAst:bS,emStrongRDelimUnd:CS,escape:cS,link:xS,nolink:sm,punctuation:pS,reflink:lm,reflinkSearch:kS,tag:AS,text:fS,url:Wo},NS={...Fc,link:Et(/^!?\[(label)\]\((.*?)\)/).replace("label",kl).getRegex(),reflink:Et(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",kl).getRegex()},Pc={...Fc,emStrongRDelimAst:wS,emStrongLDelim:yS,url:Et(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},TS={...Pc,br:Et(nm).replace("{2,}","*").getRegex(),text:Et(Pc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Nl={normal:$c,gfm:sS,pedantic:dS},Ko={normal:Fc,gfm:Pc,breaks:TS,pedantic:NS},DS={"&":"&","<":"<",">":">",'"':""","'":"'"},dm=e=>DS[e];function pi(e,t){if(t){if(mn.escapeTest.test(e))return e.replace(mn.escapeReplace,dm)}else if(mn.escapeTestNoEncode.test(e))return e.replace(mn.escapeReplaceNoEncode,dm);return e}function cm(e){try{e=encodeURI(e).replace(mn.percentDecode,"%")}catch{return null}return e}function um(e,t){var l;const r=e.replace(mn.findPipe,(d,c,u)=>{let h=!1,m=c;for(;--m>=0&&u[m]==="\\";)h=!h;return h?"|":" |"}),o=r.split(mn.splitPipe);let i=0;if(o[0].trim()||o.shift(),o.length>0&&!((l=o.at(-1))!=null&&l.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;i<o.length;i++)o[i]=o[i].trim().replace(mn.slashPipe,"|");return o}function Yo(e,t,r){const o=e.length;if(o===0)return"";let i=0;for(;i<o&&e.charAt(o-i-1)===t;)i++;return e.slice(0,o-i)}function VS(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let o=0;o<e.length;o++)if(e[o]==="\\")o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&(r--,r<0))return o;return r>0?-2:-1}function fm(e,t,r,o,i){const l=t.href,d=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");o.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:d,text:c,tokens:o.inlineTokens(c)};return o.state.inLink=!1,u}function OS(e,t,r){const o=e.match(r.other.indentCodeCompensation);if(o===null)return t;const i=o[1];return t.split(`
|
||
`).map(l=>{const d=l.match(r.other.beginningSpace);if(d===null)return l;const[c]=d;return c.length>=i.length?l.slice(i.length):l}).join(`
|
||
`)}class Tl{constructor(t){Dt(this,"options");Dt(this,"rules");Dt(this,"lexer");this.options=t||dr}space(t){const r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){const r=this.rules.block.code.exec(t);if(r){const o=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?o:Yo(o,`
|
||
`)}}}fences(t){const r=this.rules.block.fences.exec(t);if(r){const o=r[0],i=OS(o,r[3]||"",this.rules);return{type:"code",raw:o,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){const r=this.rules.block.heading.exec(t);if(r){let o=r[2].trim();if(this.rules.other.endingHash.test(o)){const i=Yo(o,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(o=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(t){const r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Yo(r[0],`
|
||
`)}}blockquote(t){const r=this.rules.block.blockquote.exec(t);if(r){let o=Yo(r[0],`
|
||
`).split(`
|
||
`),i="",l="";const d=[];for(;o.length>0;){let c=!1;const u=[];let h;for(h=0;h<o.length;h++)if(this.rules.other.blockquoteStart.test(o[h]))u.push(o[h]),c=!0;else if(!c)u.push(o[h]);else break;o=o.slice(h);const m=u.join(`
|
||
`),y=m.replace(this.rules.other.blockquoteSetextReplace,`
|
||
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
||
${m}`:m,l=l?`${l}
|
||
${y}`:y;const C=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,d,!0),this.lexer.state.top=C,o.length===0)break;const A=d.at(-1);if((A==null?void 0:A.type)==="code")break;if((A==null?void 0:A.type)==="blockquote"){const w=A,E=w.raw+`
|
||
`+o.join(`
|
||
`),b=this.blockquote(E);d[d.length-1]=b,i=i.substring(0,i.length-w.raw.length)+b.raw,l=l.substring(0,l.length-w.text.length)+b.text;break}else if((A==null?void 0:A.type)==="list"){const w=A,E=w.raw+`
|
||
`+o.join(`
|
||
`),b=this.list(E);d[d.length-1]=b,i=i.substring(0,i.length-A.raw.length)+b.raw,l=l.substring(0,l.length-w.raw.length)+b.raw,o=E.substring(d.at(-1).raw.length).split(`
|
||
`);continue}}return{type:"blockquote",raw:i,tokens:d,text:l}}}list(t){let r=this.rules.block.list.exec(t);if(r){let o=r[1].trim();const i=o.length>1,l={type:"list",raw:"",ordered:i,start:i?+o.slice(0,-1):"",loose:!1,items:[]};o=i?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=i?o:"[*+-]");const d=this.rules.other.listItemRegex(o);let c=!1;for(;t;){let h=!1,m="",y="";if(!(r=d.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let C=r[2].split(`
|
||
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),A=t.split(`
|
||
`,1)[0],w=!C.trim(),E=0;if(this.options.pedantic?(E=2,y=C.trimStart()):w?E=r[1].length+1:(E=r[2].search(this.rules.other.nonSpaceChar),E=E>4?1:E,y=C.slice(E),E+=r[1].length),w&&this.rules.other.blankLine.test(A)&&(m+=A+`
|
||
`,t=t.substring(A.length+1),h=!0),!h){const _=this.rules.other.nextBulletRegex(E),x=this.rules.other.hrRegex(E),k=this.rules.other.fencesBeginRegex(E),T=this.rules.other.headingBeginRegex(E),O=this.rules.other.htmlBeginRegex(E);for(;t;){const F=t.split(`
|
||
`,1)[0];let I;if(A=F,this.options.pedantic?(A=A.replace(this.rules.other.listReplaceNesting," "),I=A):I=A.replace(this.rules.other.tabCharGlobal," "),k.test(A)||T.test(A)||O.test(A)||_.test(A)||x.test(A))break;if(I.search(this.rules.other.nonSpaceChar)>=E||!A.trim())y+=`
|
||
`+I.slice(E);else{if(w||C.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(C)||T.test(C)||x.test(C))break;y+=`
|
||
`+A}!w&&!A.trim()&&(w=!0),m+=F+`
|
||
`,t=t.substring(F.length+1),C=I.slice(E)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(c=!0));let b=null,g;this.options.gfm&&(b=this.rules.other.listIsTask.exec(y),b&&(g=b[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:m,task:!!b,checked:g,loose:!1,text:y,tokens:[]}),l.raw+=m}const u=l.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let h=0;h<l.items.length;h++)if(this.lexer.state.top=!1,l.items[h].tokens=this.lexer.blockTokens(l.items[h].text,[]),!l.loose){const m=l.items[h].tokens.filter(C=>C.type==="space"),y=m.length>0&&m.some(C=>this.rules.other.anyLine.test(C.raw));l.loose=y}if(l.loose)for(let h=0;h<l.items.length;h++)l.items[h].loose=!0;return l}}html(t){const r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){const r=this.rules.block.def.exec(t);if(r){const o=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:o,raw:r[0],href:i,title:l}}}table(t){var c;const r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;const o=um(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
||
`):[],d={type:"table",raw:r[0],header:[],align:[],rows:[]};if(o.length===i.length){for(const u of i)this.rules.other.tableAlignRight.test(u)?d.align.push("right"):this.rules.other.tableAlignCenter.test(u)?d.align.push("center"):this.rules.other.tableAlignLeft.test(u)?d.align.push("left"):d.align.push(null);for(let u=0;u<o.length;u++)d.header.push({text:o[u],tokens:this.lexer.inline(o[u]),header:!0,align:d.align[u]});for(const u of l)d.rows.push(um(u,d.header.length).map((h,m)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:d.align[m]})));return d}}lheading(t){const r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){const r=this.rules.block.paragraph.exec(t);if(r){const o=r[1].charAt(r[1].length-1)===`
|
||
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:o,tokens:this.lexer.inline(o)}}}text(t){const r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){const r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){const r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){const r=this.rules.inline.link.exec(t);if(r){const o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;const d=Yo(o.slice(0,-1),"\\");if((o.length-d.length)%2===0)return}else{const d=VS(r[2],"()");if(d===-2)return;if(d>-1){const u=(r[0].indexOf("!")===0?5:4)+r[1].length+d;r[2]=r[2].substring(0,d),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],l="";if(this.options.pedantic){const d=this.rules.other.pedanticHrefTitle.exec(i);d&&(i=d[1],l=d[3])}else l=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?i=i.slice(1):i=i.slice(1,-1)),fm(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let o;if((o=this.rules.inline.reflink.exec(t))||(o=this.rules.inline.nolink.exec(t))){const i=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=r[i.toLowerCase()];if(!l){const d=o[0].charAt(0);return{type:"text",raw:d,text:d}}return fm(o,l,o[0],this.lexer,this.rules)}}emStrong(t,r,o=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&o.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!o||this.rules.inline.punctuation.exec(o)){const d=[...i[0]].length-1;let c,u,h=d,m=0;const y=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(y.lastIndex=0,r=r.slice(-1*t.length+d);(i=y.exec(r))!=null;){if(c=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!c)continue;if(u=[...c].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&d%3&&!((d+u)%3)){m+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+m);const C=[...i[0]][0].length,A=t.slice(0,d+i.index+C+u);if(Math.min(d,u)%2){const E=A.slice(1,-1);return{type:"em",raw:A,text:E,tokens:this.lexer.inlineTokens(E)}}const w=A.slice(2,-2);return{type:"strong",raw:A,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(t){const r=this.rules.inline.code.exec(t);if(r){let o=r[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(o),l=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return i&&l&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:r[0],text:o}}}br(t){const r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){const r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){const r=this.rules.inline.autolink.exec(t);if(r){let o,i;return r[2]==="@"?(o=r[1],i="mailto:"+o):(o=r[1],i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(t){var o,i;let r;if(r=this.rules.inline.url.exec(t)){let l,d;if(r[2]==="@")l=r[0],d="mailto:"+l;else{let c;do c=r[0],r[0]=(i=(o=this.rules.inline._backpedal.exec(r[0]))==null?void 0:o[0])!=null?i:"";while(c!==r[0]);l=r[0],r[1]==="www."?d="http://"+r[0]:d=r[0]}return{type:"link",raw:r[0],text:l,href:d,tokens:[{type:"text",raw:l,text:l}]}}}inlineText(t){const r=this.rules.inline.text.exec(t);if(r){const o=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:o}}}}class zn{constructor(t){Dt(this,"tokens");Dt(this,"options");Dt(this,"state");Dt(this,"tokenizer");Dt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||dr,this.options.tokenizer=this.options.tokenizer||new Tl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:mn,block:Nl.normal,inline:Ko.normal};this.options.pedantic?(r.block=Nl.pedantic,r.inline=Ko.pedantic):this.options.gfm&&(r.block=Nl.gfm,this.options.breaks?r.inline=Ko.breaks:r.inline=Ko.gfm),this.tokenizer.rules=r}static get rules(){return{block:Nl,inline:Ko}}static lex(t,r){return new zn(r).lex(t)}static lexInline(t,r){return new zn(r).inlineTokens(t)}lex(t){t=t.replace(mn.carriageReturn,`
|
||
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const o=this.inlineQueue[r];this.inlineTokens(o.src,o.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],o=!1){var i,l,d;for(this.options.pedantic&&(t=t.replace(mn.tabCharGlobal," ").replace(mn.spaceLine,""));t;){let c;if((l=(i=this.options.extensions)==null?void 0:i.block)!=null&&l.some(h=>(c=h.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);const h=r.at(-1);c.raw.length===1&&h!==void 0?h.raw+=`
|
||
`:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
||
`+c.raw,h.text+=`
|
||
`+c.text,this.inlineQueue.at(-1).src=h.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
||
`+c.raw,h.text+=`
|
||
`+c.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title});continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((d=this.options.extensions)!=null&&d.startBlock){let h=1/0;const m=t.slice(1);let y;this.options.extensions.startBlock.forEach(C=>{y=C.call({lexer:this},m),typeof y=="number"&&y>=0&&(h=Math.min(h,y))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){const h=r.at(-1);o&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
|
||
`+c.raw,h.text+=`
|
||
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(c),o=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
|
||
`+c.raw,h.text+=`
|
||
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(c);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,h;let o=t,i=null;if(this.tokens.links){const m=Object.keys(this.tokens.links);if(m.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)m.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,i.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let l=!1,d="";for(;t;){l||(d=""),l=!1;let m;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(C=>(m=C.call({lexer:this},t,r))?(t=t.substring(m.raw.length),r.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);const C=r.at(-1);m.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=m.raw,C.text+=m.text):r.push(m);continue}if(m=this.tokenizer.emStrong(t,o,d)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.del(t)){t=t.substring(m.raw.length),r.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),r.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),r.push(m);continue}let y=t;if((h=this.options.extensions)!=null&&h.startInline){let C=1/0;const A=t.slice(1);let w;this.options.extensions.startInline.forEach(E=>{w=E.call({lexer:this},A),typeof w=="number"&&w>=0&&(C=Math.min(C,w))}),C<1/0&&C>=0&&(y=t.substring(0,C+1))}if(m=this.tokenizer.inlineText(y)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(d=m.raw.slice(-1)),l=!0;const C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=m.raw,C.text+=m.text):r.push(m);continue}if(t){const C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}}class Dl{constructor(t){Dt(this,"options");Dt(this,"parser");this.options=t||dr}space(t){return""}code({text:t,lang:r,escaped:o}){var d;const i=(d=(r||"").match(mn.notSpaceStart))==null?void 0:d[0],l=t.replace(mn.endingNewline,"")+`
|
||
`;return i?'<pre><code class="language-'+pi(i)+'">'+(o?l:pi(l,!0))+`</code></pre>
|
||
`:"<pre><code>"+(o?l:pi(l,!0))+`</code></pre>
|
||
`}blockquote({tokens:t}){return`<blockquote>
|
||
${this.parser.parse(t)}</blockquote>
|
||
`}html({text:t}){return t}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
||
`}hr(t){return`<hr>
|
||
`}list(t){const r=t.ordered,o=t.start;let i="";for(let c=0;c<t.items.length;c++){const u=t.items[c];i+=this.listitem(u)}const l=r?"ol":"ul",d=r&&o!==1?' start="'+o+'"':"";return"<"+l+d+`>
|
||
`+i+"</"+l+`>
|
||
`}listitem(t){var o;let r="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((o=t.tokens[0])==null?void 0:o.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+pi(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
||
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
||
`}table(t){let r="",o="";for(let l=0;l<t.header.length;l++)o+=this.tablecell(t.header[l]);r+=this.tablerow({text:o});let i="";for(let l=0;l<t.rows.length;l++){const d=t.rows[l];o="";for(let c=0;c<d.length;c++)o+=this.tablecell(d[c]);i+=this.tablerow({text:o})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
||
<thead>
|
||
`+r+`</thead>
|
||
`+i+`</table>
|
||
`}tablerow({text:t}){return`<tr>
|
||
${t}</tr>
|
||
`}tablecell(t){const r=this.parser.parseInline(t.tokens),o=t.header?"th":"td";return(t.align?`<${o} align="${t.align}">`:`<${o}>`)+r+`</${o}>
|
||
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${pi(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:o}){const i=this.parser.parseInline(o),l=cm(t);if(l===null)return i;t=l;let d='<a href="'+t+'"';return r&&(d+=' title="'+pi(r)+'"'),d+=">"+i+"</a>",d}image({href:t,title:r,text:o,tokens:i}){i&&(o=this.parser.parseInline(i,this.parser.textRenderer));const l=cm(t);if(l===null)return pi(o);t=l;let d=`<img src="${t}" alt="${o}"`;return r&&(d+=` title="${pi(r)}"`),d+=">",d}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:pi(t.text)}}class Mc{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}}class Un{constructor(t){Dt(this,"options");Dt(this,"renderer");Dt(this,"textRenderer");this.options=t||dr,this.options.renderer=this.options.renderer||new Dl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Mc}static parse(t,r){return new Un(r).parse(t)}static parseInline(t,r){return new Un(r).parseInline(t)}parse(t,r=!0){var i,l;let o="";for(let d=0;d<t.length;d++){const c=t[d];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[c.type]){const h=c,m=this.options.extensions.renderers[h.type].call({parser:this},h);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){o+=m||"";continue}}const u=c;switch(u.type){case"space":{o+=this.renderer.space(u);continue}case"hr":{o+=this.renderer.hr(u);continue}case"heading":{o+=this.renderer.heading(u);continue}case"code":{o+=this.renderer.code(u);continue}case"table":{o+=this.renderer.table(u);continue}case"blockquote":{o+=this.renderer.blockquote(u);continue}case"list":{o+=this.renderer.list(u);continue}case"html":{o+=this.renderer.html(u);continue}case"paragraph":{o+=this.renderer.paragraph(u);continue}case"text":{let h=u,m=this.renderer.text(h);for(;d+1<t.length&&t[d+1].type==="text";)h=t[++d],m+=`
|
||
`+this.renderer.text(h);r?o+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):o+=m;continue}default:{const h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return o}parseInline(t,r=this.renderer){var i,l;let o="";for(let d=0;d<t.length;d++){const c=t[d];if((l=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&l[c.type]){const h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){o+=h||"";continue}}const u=c;switch(u.type){case"escape":{o+=r.text(u);break}case"html":{o+=r.html(u);break}case"link":{o+=r.link(u);break}case"image":{o+=r.image(u);break}case"strong":{o+=r.strong(u);break}case"em":{o+=r.em(u);break}case"codespan":{o+=r.codespan(u);break}case"br":{o+=r.br(u);break}case"del":{o+=r.del(u);break}case"text":{o+=r.text(u);break}default:{const h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return o}}class Qo{constructor(t){Dt(this,"options");Dt(this,"block");this.options=t||dr}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}provideLexer(){return this.block?zn.lex:zn.lexInline}provideParser(){return this.block?Un.parse:Un.parseInline}}Dt(Qo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class pm{constructor(...t){Dt(this,"defaults",Dc());Dt(this,"options",this.setOptions);Dt(this,"parse",this.parseMarkdown(!0));Dt(this,"parseInline",this.parseMarkdown(!1));Dt(this,"Parser",Un);Dt(this,"Renderer",Dl);Dt(this,"TextRenderer",Mc);Dt(this,"Lexer",zn);Dt(this,"Tokenizer",Tl);Dt(this,"Hooks",Qo);this.use(...t)}walkTokens(t,r){var i,l;let o=[];for(const d of t)switch(o=o.concat(r.call(this,d)),d.type){case"table":{const c=d;for(const u of c.header)o=o.concat(this.walkTokens(u.tokens,r));for(const u of c.rows)for(const h of u)o=o.concat(this.walkTokens(h.tokens,r));break}case"list":{const c=d;o=o.concat(this.walkTokens(c.items,r));break}default:{const c=d;(l=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&l[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{const h=c[u].flat(1/0);o=o.concat(this.walkTokens(h,r))}):c.tokens&&(o=o.concat(this.walkTokens(c.tokens,r)))}}return o}use(...t){const r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(o=>{const i={...o};if(i.async=this.defaults.async||i.async||!1,o.extensions&&(o.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){const d=r.renderers[l.name];d?r.renderers[l.name]=function(...c){let u=l.renderer.apply(this,c);return u===!1&&(u=d.apply(this,c)),u}:r.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const d=r[l.level];d?d.unshift(l.tokenizer):r[l.level]=[l.tokenizer],l.start&&(l.level==="block"?r.startBlock?r.startBlock.push(l.start):r.startBlock=[l.start]:l.level==="inline"&&(r.startInline?r.startInline.push(l.start):r.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(r.childTokens[l.name]=l.childTokens)}),i.extensions=r),o.renderer){const l=this.defaults.renderer||new Dl(this.defaults);for(const d in o.renderer){if(!(d in l))throw new Error(`renderer '${d}' does not exist`);if(["options","parser"].includes(d))continue;const c=d,u=o.renderer[c],h=l[c];l[c]=(...m)=>{let y=u.apply(l,m);return y===!1&&(y=h.apply(l,m)),y||""}}i.renderer=l}if(o.tokenizer){const l=this.defaults.tokenizer||new Tl(this.defaults);for(const d in o.tokenizer){if(!(d in l))throw new Error(`tokenizer '${d}' does not exist`);if(["options","rules","lexer"].includes(d))continue;const c=d,u=o.tokenizer[c],h=l[c];l[c]=(...m)=>{let y=u.apply(l,m);return y===!1&&(y=h.apply(l,m)),y}}i.tokenizer=l}if(o.hooks){const l=this.defaults.hooks||new Qo;for(const d in o.hooks){if(!(d in l))throw new Error(`hook '${d}' does not exist`);if(["options","block"].includes(d))continue;const c=d,u=o.hooks[c],h=l[c];Qo.passThroughHooks.has(d)?l[c]=m=>{if(this.defaults.async)return Promise.resolve(u.call(l,m)).then(C=>h.call(l,C));const y=u.call(l,m);return h.call(l,y)}:l[c]=(...m)=>{let y=u.apply(l,m);return y===!1&&(y=h.apply(l,m)),y}}i.hooks=l}if(o.walkTokens){const l=this.defaults.walkTokens,d=o.walkTokens;i.walkTokens=function(c){let u=[];return u.push(d.call(this,c)),l&&(u=u.concat(l.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return zn.lex(t,r!=null?r:this.defaults)}parser(t,r){return Un.parse(t,r!=null?r:this.defaults)}parseMarkdown(t){return(o,i)=>{const l={...i},d={...this.defaults,...l},c=this.onError(!!d.silent,!!d.async);if(this.defaults.async===!0&&l.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof o>"u"||o===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof o!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(o)+", string expected"));d.hooks&&(d.hooks.options=d,d.hooks.block=t);const u=d.hooks?d.hooks.provideLexer():t?zn.lex:zn.lexInline,h=d.hooks?d.hooks.provideParser():t?Un.parse:Un.parseInline;if(d.async)return Promise.resolve(d.hooks?d.hooks.preprocess(o):o).then(m=>u(m,d)).then(m=>d.hooks?d.hooks.processAllTokens(m):m).then(m=>d.walkTokens?Promise.all(this.walkTokens(m,d.walkTokens)).then(()=>m):m).then(m=>h(m,d)).then(m=>d.hooks?d.hooks.postprocess(m):m).catch(c);try{d.hooks&&(o=d.hooks.preprocess(o));let m=u(o,d);d.hooks&&(m=d.hooks.processAllTokens(m)),d.walkTokens&&this.walkTokens(m,d.walkTokens);let y=h(m,d);return d.hooks&&(y=d.hooks.postprocess(y)),y}catch(m){return c(m)}}}onError(t,r){return o=>{if(o.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+pi(o.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(o);throw o}}}const cr=new pm;function xt(e,t){return cr.parse(e,t)}xt.options=xt.setOptions=function(e){return cr.setOptions(e),xt.defaults=cr.defaults,Xh(xt.defaults),xt},xt.getDefaults=Dc,xt.defaults=dr,xt.use=function(...e){return cr.use(...e),xt.defaults=cr.defaults,Xh(xt.defaults),xt},xt.walkTokens=function(e,t){return cr.walkTokens(e,t)},xt.parseInline=cr.parseInline,xt.Parser=Un,xt.parser=Un.parse,xt.Renderer=Dl,xt.TextRenderer=Mc,xt.Lexer=zn,xt.lexer=zn.lex,xt.Tokenizer=Tl,xt.Hooks=Qo,xt.parse=xt,xt.options,xt.setOptions,xt.use,xt.walkTokens,xt.parseInline,Un.parse,zn.lex;const ij="",BS=n.defineComponent({name:"FcMarkdown",data(){return{marked:n.markRaw(new pm),html:""}},props:{content:String},watch:{content:{handler(){this.html=this.marked.parse(this.content||"")},immediate:!0}}}),RS=["innerHTML"];function $S(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:"_fc-markdown",innerHTML:e.html},null,8,RS)}const hm=Te(BS,[["render",$S]]),rj="",IS=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,max:this.$attrs.fullscreen||!1,fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=rt(e||this.modelValue||this.formData||{}),this.formRule=rt(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),FS={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"36px"}};function PS(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-dialog"},e.$attrs,{fullscreen:e.max,modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),destroyOnClose:""}),n.createSlots({default:n.withCtx(()=>[e.$attrs.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",FS,[e.max?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:t[0]||(t[0]=u=>e.max=!1)})):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:t[1]||(t[1]=u=>e.max=!0)}))])),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[2]||(t[2]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:2},[e.footer!==!1?{name:"footer",fn:n.withCtx(()=>[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])]),key:"0"}:void 0]),1040,["fullscreen","modelValue"])}const mm=Te(IS,[["render",PS]]),MS=e=>e!==null&&typeof e=="object",LS=e=>e!=null;function Lc(e){if(!LS(e))return e;if(Array.isArray(e))return e.map(t=>Lc(t));if(MS(e)){const t={};return Object.keys(e).forEach(r=>{t[r]=Lc(e[r])}),t}return e}const oj="",jS=n.defineComponent({name:"FcDataSelect",components:{FcDialog:mm},emits:["update:modelValue","change","clear"],props:{title:String,formCreateInject:Object,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean,searchRule:Object,tableRule:Object,autoLoad:Boolean,modelValue:[Object,Array]},computed:{options(){return this.list.map(e=>({label:e[this.labelKey||"label"],value:e[this.valueKey||"value"]}))},selectValue(){const e=this.options.map(t=>t.value);return this.multiple===!0?e:e[0]},fapi(){var e,t;return(t=(e=this.$refs)==null?void 0:e.dialog)==null?void 0:t.fapi}},data(){return{list:[],visible:!1,formRule:[],load:El(()=>{this.$refs.dialog.fapi.el(this.formRule[1].name).initPage()},500)}},watch:{modelValue:{handler(e){e?this.list=Array.isArray(e)?e:[e]:this.list=[]},immediate:!0}},methods:{getTableEl(){return this.$refs.dialog.fapi.el(this.formRule[1].name)},getDialogEl(){return this.$refs.dialog},formChange(){this.autoLoad&&this.load()},changeSelectValue(e){e==null?this.list=[]:this.list=this.list.filter(t=>e.indexOf(t[this.valueKey||"value"])!==-1),this.updateValue()},confirm(){const e=Ga([...this.list,...this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().getSelectionRows()]),t=e.map(r=>r[this.valueKey||"value"]);this.list=e.filter((r,o)=>t.indexOf(r[this.valueKey||"value"])===o),this.$refs.dialog.close(),this.updateValue()},tableRowClick(e){this.multiple?this.$refs.dialog.fapi.el(this.formRule[1].name).getEl().toggleRowSelection(e):(this.list=[e],this.updateValue(),this.$refs.dialog.close())},updateValue(){this.multipleLimit>0&&this.list.length>this.multipleLimit&&(this.list=this.list.splice(0,this.multipleLimit));const e=this.list.map(t=>({[this.valueKey||"value"]:t[this.valueKey||"value"],[this.labelKey||"label"]:t[this.labelKey||"label"]}));this.$emit("update:modelValue",this.multiple?e:e[0]),this.$emit("change",this.multiple?e:e[0])},getFormRule(){const e=Lc([this.searchRule,this.tableRule]);return e[1].on||(e[1].on={}),e[1].props||(e[1].props={}),this.multiple&&(e[1].props.rowKey||(e[1].props.rowKey=this.valueKey||"value"),e[1].name||(e[1].name=We())),e[1].props.selection=!0,e[1].on.rowClick?e[1].on.rowClick=[(...t)=>this.tableRowClick(...t),e[1].on.rowClick]:e[1].on.rowClick=(...t)=>this.tableRowClick(...t),e[1].on.selectionChange?e[1].on.selectionChange=[(...t)=>this.selectionChange(...t),e[1].on.selectionChange]:e[1].on.selectionChange=(...t)=>this.selectionChange(...t),e},selectionChange(e){this.multiple||this.tableRowClick(e[0])},handleClear(...e){this.$emit("clear",...e)},handleClick(e){this.disabled||!e||(this.visible=!0,this.formRule=this.getFormRule(),this.$refs.dialog.open())}}}),zS={class:"_fc-data-select"};function US(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("FcDialog");return n.openBlock(),n.createElementBlock("div",zS,[n.createVNode(c,{disabled:e.disabled,placeholder:e.placeholder,multiple:e.multiple,multipleLimit:e.multipleLimit,clearable:e.clearable,"model-value":e.selectValue,"onUpdate:modelValue":e.changeSelectValue,"popper-class":"_fc-data-select-pop",onVisibleChange:e.handleClick,onClear:e.handleClear},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,h=>(n.openBlock(),n.createBlock(d,{key:h.value,label:h.label,value:h.value},null,8,["label","value"]))),128))]),_:1},8,["disabled","placeholder","multiple","multipleLimit","clearable","model-value","onUpdate:modelValue","onVisibleChange","onClear"]),n.createVNode(u,{ref:"dialog",formCreateInject:e.formCreateInject,rule:e.formRule,"onUpdate:modelValue":e.formChange,footer:e.multiple,title:e.title,width:"900px",onConfirm:e.confirm},null,8,["formCreateInject","rule","onUpdate:modelValue","footer","title","onConfirm"])])}const gm=Te(jS,[["render",US]]),HS=n.defineComponent({name:"AudioBox",emits:["pause","play","ended"],data(){return{}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,loop:Boolean,preload:{type:String,default:"auto"},muted:Boolean}}),WS=["controls","autoplay","loop","preload","muted"],GS=["src","type"];function KS(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("audio",{key:e.src,controls:e.controls,autoplay:e.autoplay,loop:e.loop,preload:e.preload,muted:e.muted,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},[n.createElementVNode("source",{src:e.src,type:e.type},null,8,GS),t[3]||(t[3]=n.createTextVNode(" Your browser does not support the audio element. "))],40,WS)}const vm=Te(HS,[["render",KS]]),aj="",YS=n.defineComponent({name:"IframeBox",emits:["load"],data(){return{}},props:{src:String,loading:String}}),QS=["src"];function JS(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("iframe",{class:"_fc-iframe-box",src:e.src,frameborder:"0",onLoad:t[0]||(t[0]=d=>e.$emit("load",d))},null,40,QS)}const ym=Te(YS,[["render",JS]]);var jc={},Vl={},xn={};Object.defineProperty(xn,"__esModule",{value:!0});function XS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ZS=function e(t,r){XS(this,e),this.data=t,this.text=r.text||t,this.options=r};xn.default=ZS,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.CODE39=void 0;var qS=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),eA=xn,tA=nA(eA);function nA(e){return e&&e.__esModule?e:{default:e}}function iA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function oA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var aA=function(e){oA(t,e);function t(r,o){return iA(this,t),r=r.toUpperCase(),o.mod43&&(r+=dA(cA(r))),rA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return qS(t,[{key:"encode",value:function(){for(var o=zc("*"),i=0;i<this.data.length;i++)o+=zc(this.data[i])+"0";return o+=zc("*"),{data:o,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),t}(tA.default),bm=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],lA=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function zc(e){return sA(wm(e))}function sA(e){return lA[e].toString(2)}function dA(e){return bm[e]}function wm(e){return bm.indexOf(e)}function cA(e){for(var t=0,r=0;r<e.length;r++)t+=wm(e[r]);return t=t%43,t}Vl.CODE39=aA;var hi={},Uc={},Ur={},Vt={};Object.defineProperty(Vt,"__esModule",{value:!0});var Jo;function Hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cm=Vt.SET_A=0,_m=Vt.SET_B=1,Em=Vt.SET_C=2;Vt.SHIFT=98;var uA=Vt.START_A=103,fA=Vt.START_B=104,pA=Vt.START_C=105;Vt.MODULO=103,Vt.STOP=106,Vt.FNC1=207,Vt.SET_BY_CODE=(Jo={},Hc(Jo,uA,Cm),Hc(Jo,fA,_m),Hc(Jo,pA,Em),Jo),Vt.SWAP={101:Cm,100:_m,99:Em},Vt.A_START_CHAR=String.fromCharCode(208),Vt.B_START_CHAR=String.fromCharCode(209),Vt.C_START_CHAR=String.fromCharCode(210),Vt.A_CHARS="[\0-_\xC8-\xCF]",Vt.B_CHARS="[ -\x7F\xC8-\xCF]",Vt.C_CHARS="(\xCF*[0-9]{2}\xCF*)",Vt.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],Object.defineProperty(Ur,"__esModule",{value:!0});var hA=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),mA=xn,gA=vA(mA),$n=Vt;function vA(e){return e&&e.__esModule?e:{default:e}}function yA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function wA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var CA=function(e){wA(t,e);function t(r,o){yA(this,t);var i=bA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.substring(1),o));return i.bytes=r.split("").map(function(l){return l.charCodeAt(0)}),i}return hA(t,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var o=this.bytes,i=o.shift()-105,l=$n.SET_BY_CODE[i];if(l===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&o.unshift($n.FNC1);var d=t.next(o,1,l);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:t.getBar(i)+d.result+t.getBar((d.checksum+i)%$n.MODULO)+t.getBar($n.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var o=this.options.ean128||!1;return typeof o=="string"&&(o=o.toLowerCase()==="true"),o}}],[{key:"getBar",value:function(o){return $n.BARS[o]?$n.BARS[o].toString():""}},{key:"correctIndex",value:function(o,i){if(i===$n.SET_A){var l=o.shift();return l<32?l+64:l-32}else return i===$n.SET_B?o.shift()-32:(o.shift()-48)*10+o.shift()-48}},{key:"next",value:function(o,i,l){if(!o.length)return{result:"",checksum:0};var d=void 0,c=void 0;if(o[0]>=200){c=o.shift()-105;var u=$n.SWAP[c];u!==void 0?d=t.next(o,i+1,u):((l===$n.SET_A||l===$n.SET_B)&&c===$n.SHIFT&&(o[0]=l===$n.SET_A?o[0]>95?o[0]-96:o[0]:o[0]<32?o[0]+96:o[0]),d=t.next(o,i+1,l))}else c=t.correctIndex(o,l),d=t.next(o,i+1,l);var h=t.getBar(c),m=c*i;return{result:h+d.result,checksum:m+d.checksum}}}]),t}(gA.default);Ur.default=CA;var Wc={};Object.defineProperty(Wc,"__esModule",{value:!0});var Ui=Vt,Sm=function(t){return t.match(new RegExp("^"+Ui.A_CHARS+"*"))[0].length},Am=function(t){return t.match(new RegExp("^"+Ui.B_CHARS+"*"))[0].length},xm=function(t){return t.match(new RegExp("^"+Ui.C_CHARS+"*"))[0]};function Gc(e,t){var r=t?Ui.A_CHARS:Ui.B_CHARS,o=e.match(new RegExp("^("+r+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(o)return o[1]+String.fromCharCode(204)+km(e.substring(o[1].length));var i=e.match(new RegExp("^"+r+"+"))[0];return i.length===e.length?e:i+String.fromCharCode(t?205:206)+Gc(e.substring(i.length),!t)}function km(e){var t=xm(e),r=t.length;if(r===e.length)return e;e=e.substring(r);var o=Sm(e)>=Am(e);return t+String.fromCharCode(o?206:205)+Gc(e,o)}Wc.default=function(e){var t=void 0,r=xm(e).length;if(r>=2)t=Ui.C_START_CHAR+km(e);else{var o=Sm(e)>Am(e);t=(o?Ui.A_START_CHAR:Ui.B_START_CHAR)+Gc(e,o)}return t.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(i,l){return String.fromCharCode(203)+l})},Object.defineProperty(Uc,"__esModule",{value:!0});var _A=Ur,EA=Nm(_A),SA=Wc,AA=Nm(SA);function Nm(e){return e&&e.__esModule?e:{default:e}}function xA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kc(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function kA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var NA=function(e){kA(t,e);function t(r,o){if(xA(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(r))var i=Kc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,AA.default)(r),o));else var i=Kc(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return Kc(i)}return t}(EA.default);Uc.default=NA;var Yc={};Object.defineProperty(Yc,"__esModule",{value:!0});var TA=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),DA=Ur,VA=OA(DA),Tm=Vt;function OA(e){return e&&e.__esModule?e:{default:e}}function BA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function $A(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var IA=function(e){$A(t,e);function t(r,o){return BA(this,t),RA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Tm.A_START_CHAR+r,o))}return TA(t,[{key:"valid",value:function(){return new RegExp("^"+Tm.A_CHARS+"+$").test(this.data)}}]),t}(VA.default);Yc.default=IA;var Qc={};Object.defineProperty(Qc,"__esModule",{value:!0});var FA=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),PA=Ur,MA=LA(PA),Dm=Vt;function LA(e){return e&&e.__esModule?e:{default:e}}function jA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function UA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var HA=function(e){UA(t,e);function t(r,o){return jA(this,t),zA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Dm.B_START_CHAR+r,o))}return FA(t,[{key:"valid",value:function(){return new RegExp("^"+Dm.B_CHARS+"+$").test(this.data)}}]),t}(MA.default);Qc.default=HA;var Jc={};Object.defineProperty(Jc,"__esModule",{value:!0});var WA=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),GA=Ur,KA=YA(GA),Vm=Vt;function YA(e){return e&&e.__esModule?e:{default:e}}function QA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JA(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function XA(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ZA=function(e){XA(t,e);function t(r,o){return QA(this,t),JA(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Vm.C_START_CHAR+r,o))}return WA(t,[{key:"valid",value:function(){return new RegExp("^"+Vm.C_CHARS+"+$").test(this.data)}}]),t}(KA.default);Jc.default=ZA,Object.defineProperty(hi,"__esModule",{value:!0}),hi.CODE128C=hi.CODE128B=hi.CODE128A=hi.CODE128=void 0;var qA=Uc,ex=Ol(qA),tx=Yc,nx=Ol(tx),ix=Qc,rx=Ol(ix),ox=Jc,ax=Ol(ox);function Ol(e){return e&&e.__esModule?e:{default:e}}hi.CODE128=ex.default,hi.CODE128A=nx.default,hi.CODE128B=rx.default,hi.CODE128C=ax.default;var kn={},Xc={},Hn={};Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.SIDE_BIN="101",Hn.MIDDLE_BIN="01010",Hn.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},Hn.EAN2_STRUCTURE=["LL","LG","GL","GG"],Hn.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],Hn.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"];var Bl={},ur={};Object.defineProperty(ur,"__esModule",{value:!0});var lx=Hn,sx=function(t,r,o){var i=t.split("").map(function(d,c){return lx.BINARIES[r[c]]}).map(function(d,c){return d?d[t[c]]:""});if(o){var l=t.length-1;i=i.map(function(d,c){return c<l?d+o:d})}return i.join("")};ur.default=sx,Object.defineProperty(Bl,"__esModule",{value:!0});var dx=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Hr=Hn,cx=ur,Om=Bm(cx),ux=xn,fx=Bm(ux);function Bm(e){return e&&e.__esModule?e:{default:e}}function px(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hx(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function mx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var gx=function(e){mx(t,e);function t(r,o){px(this,t);var i=hx(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.fontSize=!o.flat&&o.fontSize>o.width*10?o.width*10:o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return dx(t,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(o,i){return this.text.substr(o,i)}},{key:"leftEncode",value:function(o,i){return(0,Om.default)(o,i)}},{key:"rightText",value:function(o,i){return this.text.substr(o,i)}},{key:"rightEncode",value:function(o,i){return(0,Om.default)(o,i)}},{key:"encodeGuarded",value:function(){var o={fontSize:this.fontSize},i={height:this.guardHeight};return[{data:Hr.SIDE_BIN,options:i},{data:this.leftEncode(),text:this.leftText(),options:o},{data:Hr.MIDDLE_BIN,options:i},{data:this.rightEncode(),text:this.rightText(),options:o},{data:Hr.SIDE_BIN,options:i}]}},{key:"encodeFlat",value:function(){var o=[Hr.SIDE_BIN,this.leftEncode(),Hr.MIDDLE_BIN,this.rightEncode(),Hr.SIDE_BIN];return{data:o.join(""),text:this.text}}}]),t}(fx.default);Bl.default=gx,Object.defineProperty(Xc,"__esModule",{value:!0});var vx=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Xo=function e(t,r,o){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(i===void 0){var l=Object.getPrototypeOf(t);return l===null?void 0:e(l,r,o)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(o)}},yx=Hn,bx=Bl,wx=Cx(bx);function Cx(e){return e&&e.__esModule?e:{default:e}}function _x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ex(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Sx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Rm=function(t){var r=t.substr(0,12).split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i*3:o+i},0);return(10-r%10)%10},Ax=function(e){Sx(t,e);function t(r,o){_x(this,t),r.search(/^[0-9]{12}$/)!==-1&&(r+=Rm(r));var i=Ex(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.lastChar=o.lastChar,i}return vx(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===Rm(this.data)}},{key:"leftText",value:function(){return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var o=this.data.substr(1,6),i=yx.EAN13_STRUCTURE[this.data[0]];return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,o,i)}},{key:"rightText",value:function(){return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var o=this.data.substr(7,6);return Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,o,"RRRRRR")}},{key:"encodeGuarded",value:function(){var o=Xo(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(o.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(o.push({data:"00"}),o.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),o}}]),t}(wx.default);Xc.default=Ax;var Zc={};Object.defineProperty(Zc,"__esModule",{value:!0});var xx=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Rl=function e(t,r,o){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,r);if(i===void 0){var l=Object.getPrototypeOf(t);return l===null?void 0:e(l,r,o)}else{if("value"in i)return i.value;var d=i.get;return d===void 0?void 0:d.call(o)}},kx=Bl,Nx=Tx(kx);function Tx(e){return e&&e.__esModule?e:{default:e}}function Dx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vx(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Ox(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var $m=function(t){var r=t.substr(0,7).split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i:o+i*3},0);return(10-r%10)%10},Bx=function(e){Ox(t,e);function t(r,o){return Dx(this,t),r.search(/^[0-9]{7}$/)!==-1&&(r+=$m(r)),Vx(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return xx(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===$m(this.data)}},{key:"leftText",value:function(){return Rl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var o=this.data.substr(0,4);return Rl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"leftEncode",this).call(this,o,"LLLL")}},{key:"rightText",value:function(){return Rl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var o=this.data.substr(4,4);return Rl(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"rightEncode",this).call(this,o,"RRRR")}}]),t}(Nx.default);Zc.default=Bx;var qc={};Object.defineProperty(qc,"__esModule",{value:!0});var Rx=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),$x=Hn,Ix=ur,Fx=Im(Ix),Px=xn,Mx=Im(Px);function Im(e){return e&&e.__esModule?e:{default:e}}function Lx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jx(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function zx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ux=function(t){var r=t.split("").map(function(o){return+o}).reduce(function(o,i,l){return l%2?o+i*9:o+i*3},0);return r%10},Hx=function(e){zx(t,e);function t(r,o){return Lx(this,t),jx(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return Rx(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var o=$x.EAN5_STRUCTURE[Ux(this.data)];return{data:"1011"+(0,Fx.default)(this.data,o,"01"),text:this.text}}}]),t}(Mx.default);qc.default=Hx;var eu={};Object.defineProperty(eu,"__esModule",{value:!0});var Wx=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Gx=Hn,Kx=ur,Yx=Fm(Kx),Qx=xn,Jx=Fm(Qx);function Fm(e){return e&&e.__esModule?e:{default:e}}function Xx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zx(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function qx(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ek=function(e){qx(t,e);function t(r,o){return Xx(this,t),Zx(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return Wx(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var o=Gx.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,Yx.default)(this.data,o,"01"),text:this.text}}}]),t}(Jx.default);eu.default=ek;var Zo={};Object.defineProperty(Zo,"__esModule",{value:!0});var tk=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();Zo.checksum=tu;var nk=ur,Wr=Pm(nk),ik=xn,rk=Pm(ik);function Pm(e){return e&&e.__esModule?e:{default:e}}function ok(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ak(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function lk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var sk=function(e){lk(t,e);function t(r,o){ok(this,t),r.search(/^[0-9]{11}$/)!==-1&&(r+=tu(r));var i=ak(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.displayValue=o.displayValue,o.fontSize>o.width*10?i.fontSize=o.width*10:i.fontSize=o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return tk(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==tu(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var o="";return o+="101",o+=(0,Wr.default)(this.data.substr(0,6),"LLLLLL"),o+="01010",o+=(0,Wr.default)(this.data.substr(6,6),"RRRRRR"),o+="101",{data:o,text:this.text}}},{key:"guardedEncoding",value:function(){var o=[];return this.displayValue&&o.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),o.push({data:"101"+(0,Wr.default)(this.data[0],"L"),options:{height:this.guardHeight}}),o.push({data:(0,Wr.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),o.push({data:"01010",options:{height:this.guardHeight}}),o.push({data:(0,Wr.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),o.push({data:(0,Wr.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&o.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),o}}]),t}(rk.default);function tu(e){var t=0,r;for(r=1;r<11;r+=2)t+=parseInt(e[r]);for(r=0;r<11;r+=2)t+=parseInt(e[r])*3;return(10-t%10)%10}Zo.default=sk;var nu={};Object.defineProperty(nu,"__esModule",{value:!0});var dk=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),ck=ur,uk=Mm(ck),fk=xn,pk=Mm(fk),hk=Zo;function Mm(e){return e&&e.__esModule?e:{default:e}}function mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function gk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var vk=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],yk=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],bk=function(e){gk(t,e);function t(r,o){mk(this,t);var i=iu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));if(i.isValid=!1,r.search(/^[0-9]{6}$/)!==-1)i.middleDigits=r,i.upcA=Lm(r,"0"),i.text=o.text||""+i.upcA[0]+r+i.upcA[i.upcA.length-1],i.isValid=!0;else if(r.search(/^[01][0-9]{7}$/)!==-1)if(i.middleDigits=r.substring(1,r.length-1),i.upcA=Lm(i.middleDigits,r[0]),i.upcA[i.upcA.length-1]===r[r.length-1])i.isValid=!0;else return iu(i);else return iu(i);return i.displayValue=o.displayValue,o.fontSize>o.width*10?i.fontSize=o.width*10:i.fontSize=o.fontSize,i.guardHeight=o.height+i.fontSize/2+o.textMargin,i}return dk(t,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var o="";return o+="101",o+=this.encodeMiddleDigits(),o+="010101",{data:o,text:this.text}}},{key:"guardedEncoding",value:function(){var o=[];return this.displayValue&&o.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),o.push({data:"101",options:{height:this.guardHeight}}),o.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),o.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&o.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),o}},{key:"encodeMiddleDigits",value:function(){var o=this.upcA[0],i=this.upcA[this.upcA.length-1],l=yk[parseInt(i)][parseInt(o)];return(0,uk.default)(this.middleDigits,l)}}]),t}(pk.default);function Lm(e,t){for(var r=parseInt(e[e.length-1]),o=vk[r],i="",l=0,d=0;d<o.length;d++){var c=o[d];c==="X"?i+=e[l++]:i+=c}return i=""+t+i,""+i+(0,hk.checksum)(i)}nu.default=bk,Object.defineProperty(kn,"__esModule",{value:!0}),kn.UPCE=kn.UPC=kn.EAN2=kn.EAN5=kn.EAN8=kn.EAN13=void 0;var wk=Xc,Ck=Gr(wk),_k=Zc,Ek=Gr(_k),Sk=qc,Ak=Gr(Sk),xk=eu,kk=Gr(xk),Nk=Zo,Tk=Gr(Nk),Dk=nu,Vk=Gr(Dk);function Gr(e){return e&&e.__esModule?e:{default:e}}kn.EAN13=Ck.default,kn.EAN8=Ek.default,kn.EAN5=Ak.default,kn.EAN2=kk.default,kn.UPC=Tk.default,kn.UPCE=Vk.default;var Kr={},$l={},qo={};Object.defineProperty(qo,"__esModule",{value:!0}),qo.START_BIN="1010",qo.END_BIN="11101",qo.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"],Object.defineProperty($l,"__esModule",{value:!0});var Ok=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),Il=qo,Bk=xn,Rk=$k(Bk);function $k(e){return e&&e.__esModule?e:{default:e}}function Ik(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fk(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Pk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Mk=function(e){Pk(t,e);function t(){return Ik(this,t),Fk(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return Ok(t,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var o=this,i=this.data.match(/.{2}/g).map(function(l){return o.encodePair(l)}).join("");return{data:Il.START_BIN+i+Il.END_BIN,text:this.text}}},{key:"encodePair",value:function(o){var i=Il.BINARIES[o[1]];return Il.BINARIES[o[0]].split("").map(function(l,d){return(l==="1"?"111":"1")+(i[d]==="1"?"000":"0")}).join("")}}]),t}(Rk.default);$l.default=Mk;var ru={};Object.defineProperty(ru,"__esModule",{value:!0});var Lk=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),jk=$l,zk=Uk(jk);function Uk(e){return e&&e.__esModule?e:{default:e}}function Hk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wk(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Gk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var jm=function(t){var r=t.substr(0,13).split("").map(function(o){return parseInt(o,10)}).reduce(function(o,i,l){return o+i*(3-l%2*2)},0);return Math.ceil(r/10)*10-r},Kk=function(e){Gk(t,e);function t(r,o){return Hk(this,t),r.search(/^[0-9]{13}$/)!==-1&&(r+=jm(r)),Wk(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return Lk(t,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===jm(this.data)}}]),t}(zk.default);ru.default=Kk,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.ITF14=Kr.ITF=void 0;var Yk=$l,Qk=zm(Yk),Jk=ru,Xk=zm(Jk);function zm(e){return e&&e.__esModule?e:{default:e}}Kr.ITF=Qk.default,Kr.ITF14=Xk.default;var Wn={},fr={};Object.defineProperty(fr,"__esModule",{value:!0});var Zk=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),qk=xn,e2=t2(qk);function t2(e){return e&&e.__esModule?e:{default:e}}function n2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function r2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var o2=function(e){r2(t,e);function t(r,o){return n2(this,t),i2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return Zk(t,[{key:"encode",value:function(){for(var o="110",i=0;i<this.data.length;i++){var l=parseInt(this.data[i]),d=l.toString(2);d=a2(d,4-d.length);for(var c=0;c<d.length;c++)o+=d[c]=="0"?"100":"110"}return o+="1001",{data:o,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),t}(e2.default);function a2(e,t){for(var r=0;r<t;r++)e="0"+e;return e}fr.default=o2;var ou={},pr={};Object.defineProperty(pr,"__esModule",{value:!0}),pr.mod10=l2,pr.mod11=s2;function l2(e){for(var t=0,r=0;r<e.length;r++){var o=parseInt(e[r]);(r+e.length)%2===0?t+=o:t+=o*2%10+Math.floor(o*2/10)}return(10-t%10)%10}function s2(e){for(var t=0,r=[2,3,4,5,6,7],o=0;o<e.length;o++){var i=parseInt(e[e.length-1-o]);t+=r[o%r.length]*i}return(11-t%11)%11}Object.defineProperty(ou,"__esModule",{value:!0});var d2=fr,c2=f2(d2),u2=pr;function f2(e){return e&&e.__esModule?e:{default:e}}function p2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function m2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g2=function(e){m2(t,e);function t(r,o){return p2(this,t),h2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r+(0,u2.mod10)(r),o))}return t}(c2.default);ou.default=g2;var au={};Object.defineProperty(au,"__esModule",{value:!0});var v2=fr,y2=w2(v2),b2=pr;function w2(e){return e&&e.__esModule?e:{default:e}}function C2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function E2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var S2=function(e){E2(t,e);function t(r,o){return C2(this,t),_2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r+(0,b2.mod11)(r),o))}return t}(y2.default);au.default=S2;var lu={};Object.defineProperty(lu,"__esModule",{value:!0});var A2=fr,x2=k2(A2),Um=pr;function k2(e){return e&&e.__esModule?e:{default:e}}function N2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function D2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var V2=function(e){D2(t,e);function t(r,o){return N2(this,t),r+=(0,Um.mod10)(r),r+=(0,Um.mod10)(r),T2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return t}(x2.default);lu.default=V2;var su={};Object.defineProperty(su,"__esModule",{value:!0});var O2=fr,B2=R2(O2),Hm=pr;function R2(e){return e&&e.__esModule?e:{default:e}}function $2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I2(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function F2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var P2=function(e){F2(t,e);function t(r,o){return $2(this,t),r+=(0,Hm.mod11)(r),r+=(0,Hm.mod10)(r),I2(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return t}(B2.default);su.default=P2,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.MSI1110=Wn.MSI1010=Wn.MSI11=Wn.MSI10=Wn.MSI=void 0;var M2=fr,L2=ea(M2),j2=ou,z2=ea(j2),U2=au,H2=ea(U2),W2=lu,G2=ea(W2),K2=su,Y2=ea(K2);function ea(e){return e&&e.__esModule?e:{default:e}}Wn.MSI=L2.default,Wn.MSI10=z2.default,Wn.MSI11=H2.default,Wn.MSI1010=G2.default,Wn.MSI1110=Y2.default;var Fl={};Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.pharmacode=void 0;var Q2=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),J2=xn,X2=Z2(J2);function Z2(e){return e&&e.__esModule?e:{default:e}}function q2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eN(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function tN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var nN=function(e){tN(t,e);function t(r,o){q2(this,t);var i=eN(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o));return i.number=parseInt(r,10),i}return Q2(t,[{key:"encode",value:function(){for(var o=this.number,i="";!isNaN(o)&&o!=0;)o%2===0?(i="11100"+i,o=(o-2)/2):(i="100"+i,o=(o-1)/2);return i=i.slice(0,-2),{data:i,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),t}(X2.default);Fl.pharmacode=nN;var Pl={};Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.codabar=void 0;var iN=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),rN=xn,oN=aN(rN);function aN(e){return e&&e.__esModule?e:{default:e}}function lN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sN(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function dN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var cN=function(e){dN(t,e);function t(r,o){lN(this,t),r.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(r="A"+r+"A");var i=sN(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r.toUpperCase(),o));return i.text=i.options.text||i.text.replace(/[A-D]/g,""),i}return iN(t,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var o=[],i=this.getEncodings(),l=0;l<this.data.length;l++)o.push(i[this.data.charAt(l)]),l!==this.data.length-1&&o.push("0");return{text:this.text,data:o.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),t}(oN.default);Pl.codabar=cN;var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.GenericBarcode=void 0;var uN=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),fN=xn,pN=hN(fN);function hN(e){return e&&e.__esModule?e:{default:e}}function mN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gN(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function vN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var yN=function(e){vN(t,e);function t(r,o){return mN(this,t),gN(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r,o))}return uN(t,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),t}(pN.default);Ml.GenericBarcode=yN,Object.defineProperty(jc,"__esModule",{value:!0});var bN=Vl,Ll=hi,Yr=kn,Wm=Kr,ta=Wn,wN=Fl,CN=Pl,_N=Ml;jc.default={CODE39:bN.CODE39,CODE128:Ll.CODE128,CODE128A:Ll.CODE128A,CODE128B:Ll.CODE128B,CODE128C:Ll.CODE128C,EAN13:Yr.EAN13,EAN8:Yr.EAN8,EAN5:Yr.EAN5,EAN2:Yr.EAN2,UPC:Yr.UPC,UPCE:Yr.UPCE,ITF14:Wm.ITF14,ITF:Wm.ITF,MSI:ta.MSI,MSI10:ta.MSI10,MSI11:ta.MSI11,MSI1010:ta.MSI1010,MSI1110:ta.MSI1110,pharmacode:wN.pharmacode,codabar:CN.codabar,GenericBarcode:_N.GenericBarcode};var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});var EN=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e};Qr.default=function(e,t){return EN({},e,t)};var du={};Object.defineProperty(du,"__esModule",{value:!0}),du.default=SN;function SN(e){var t=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",t.push(o)}return r(e),t}var cu={};Object.defineProperty(cu,"__esModule",{value:!0}),cu.default=AN;function AN(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}var uu={},fu={},jl={};Object.defineProperty(jl,"__esModule",{value:!0}),jl.default=xN;function xN(e){var t=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in t)t.hasOwnProperty(r)&&(r=t[r],typeof e[r]=="string"&&(e[r]=parseInt(e[r],10)));return typeof e.displayValue=="string"&&(e.displayValue=e.displayValue!="false"),e}var zl={};Object.defineProperty(zl,"__esModule",{value:!0});var kN={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};zl.default=kN,Object.defineProperty(fu,"__esModule",{value:!0});var NN=jl,TN=Km(NN),DN=zl,Gm=Km(DN);function Km(e){return e&&e.__esModule?e:{default:e}}function VN(e){var t={};for(var r in Gm.default)Gm.default.hasOwnProperty(r)&&(e.hasAttribute("jsbarcode-"+r.toLowerCase())&&(t[r]=e.getAttribute("jsbarcode-"+r.toLowerCase())),e.hasAttribute("data-"+r.toLowerCase())&&(t[r]=e.getAttribute("data-"+r.toLowerCase())));return t.value=e.getAttribute("jsbarcode-value")||e.getAttribute("data-value"),t=(0,TN.default)(t),t}fu.default=VN;var pu={},hu={},In={};Object.defineProperty(In,"__esModule",{value:!0}),In.getTotalWidthOfEncodings=In.calculateEncodingAttributes=In.getBarcodePadding=In.getEncodingHeight=In.getMaximumHeightOfEncodings=void 0;var ON=Qr,BN=RN(ON);function RN(e){return e&&e.__esModule?e:{default:e}}function Ym(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function Qm(e,t,r){if(r.displayValue&&t<e){if(r.textAlign=="center")return Math.floor((e-t)/2);if(r.textAlign=="left")return 0;if(r.textAlign=="right")return Math.floor(e-t)}return 0}function $N(e,t,r){for(var o=0;o<e.length;o++){var i=e[o],l=(0,BN.default)(t,i.options),d;l.displayValue?d=PN(i.text,l,r):d=0;var c=i.data.length*l.width;i.width=Math.ceil(Math.max(d,c)),i.height=Ym(i,l),i.barcodePadding=Qm(d,c,l)}}function IN(e){for(var t=0,r=0;r<e.length;r++)t+=e[r].width;return t}function FN(e){for(var t=0,r=0;r<e.length;r++)e[r].height>t&&(t=e[r].height);return t}function PN(e,t,r){var o;if(r)o=r;else if(typeof document<"u")o=document.createElement("canvas").getContext("2d");else return 0;o.font=t.fontOptions+" "+t.fontSize+"px "+t.font;var i=o.measureText(e);if(!i)return 0;var l=i.width;return l}In.getMaximumHeightOfEncodings=FN,In.getEncodingHeight=Ym,In.getBarcodePadding=Qm,In.calculateEncodingAttributes=$N,In.getTotalWidthOfEncodings=IN,Object.defineProperty(hu,"__esModule",{value:!0});var MN=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),LN=Qr,jN=zN(LN),mu=In;function zN(e){return e&&e.__esModule?e:{default:e}}function UN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var HN=function(){function e(t,r,o){UN(this,e),this.canvas=t,this.encodings=r,this.options=o}return MN(e,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var r=0;r<this.encodings.length;r++){var o=(0,jN.default)(this.options,this.encodings[r].options);this.drawCanvasBarcode(o,this.encodings[r]),this.drawCanvasText(o,this.encodings[r]),this.moveCanvasDrawing(this.encodings[r])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var r=this.canvas.getContext("2d");r.save(),(0,mu.calculateEncodingAttributes)(this.encodings,this.options,r);var o=(0,mu.getTotalWidthOfEncodings)(this.encodings),i=(0,mu.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=o+this.options.marginLeft+this.options.marginRight,this.canvas.height=i,r.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(r.fillStyle=this.options.background,r.fillRect(0,0,this.canvas.width,this.canvas.height)),r.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(r,o){var i=this.canvas.getContext("2d"),l=o.data,d;r.textPosition=="top"?d=r.marginTop+r.fontSize+r.textMargin:d=r.marginTop,i.fillStyle=r.lineColor;for(var c=0;c<l.length;c++){var u=c*r.width+o.barcodePadding;l[c]==="1"?i.fillRect(u,d,r.width,r.height):l[c]&&i.fillRect(u,d,r.width,r.height*l[c])}}},{key:"drawCanvasText",value:function(r,o){var i=this.canvas.getContext("2d"),l=r.fontOptions+" "+r.fontSize+"px "+r.font;if(r.displayValue){var d,c;r.textPosition=="top"?c=r.marginTop+r.fontSize-r.textMargin:c=r.height+r.textMargin+r.marginTop+r.fontSize,i.font=l,r.textAlign=="left"||o.barcodePadding>0?(d=0,i.textAlign="left"):r.textAlign=="right"?(d=o.width-1,i.textAlign="right"):(d=o.width/2,i.textAlign="center"),i.fillText(o.text,d,c)}}},{key:"moveCanvasDrawing",value:function(r){var o=this.canvas.getContext("2d");o.translate(r.width,0)}},{key:"restoreCanvas",value:function(){var r=this.canvas.getContext("2d");r.restore()}}]),e}();hu.default=HN;var gu={};Object.defineProperty(gu,"__esModule",{value:!0});var WN=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}(),GN=Qr,KN=YN(GN),vu=In;function YN(e){return e&&e.__esModule?e:{default:e}}function QN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Ul="http://www.w3.org/2000/svg",JN=function(){function e(t,r,o){QN(this,e),this.svg=t,this.encodings=r,this.options=o,this.document=o.xmlDocument||document}return WN(e,[{key:"render",value:function(){var r=this.options.marginLeft;this.prepareSVG();for(var o=0;o<this.encodings.length;o++){var i=this.encodings[o],l=(0,KN.default)(this.options,i.options),d=this.createGroup(r,l.marginTop,this.svg);this.setGroupOptions(d,l),this.drawSvgBarcode(d,l,i),this.drawSVGText(d,l,i),r+=i.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,vu.calculateEncodingAttributes)(this.encodings,this.options);var r=(0,vu.getTotalWidthOfEncodings)(this.encodings),o=(0,vu.getMaximumHeightOfEncodings)(this.encodings),i=r+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(i,o),this.options.background&&this.drawRect(0,0,i,o,this.svg).setAttribute("style","fill:"+this.options.background+";")}},{key:"drawSvgBarcode",value:function(r,o,i){var l=i.data,d;o.textPosition=="top"?d=o.fontSize+o.textMargin:d=0;for(var c=0,u=0,h=0;h<l.length;h++)u=h*o.width+i.barcodePadding,l[h]==="1"?c++:c>0&&(this.drawRect(u-o.width*c,d,o.width*c,o.height,r),c=0);c>0&&this.drawRect(u-o.width*(c-1),d,o.width*c,o.height,r)}},{key:"drawSVGText",value:function(r,o,i){var l=this.document.createElementNS(Ul,"text");if(o.displayValue){var d,c;l.setAttribute("style","font:"+o.fontOptions+" "+o.fontSize+"px "+o.font),o.textPosition=="top"?c=o.fontSize-o.textMargin:c=o.height+o.textMargin+o.fontSize,o.textAlign=="left"||i.barcodePadding>0?(d=0,l.setAttribute("text-anchor","start")):o.textAlign=="right"?(d=i.width-1,l.setAttribute("text-anchor","end")):(d=i.width/2,l.setAttribute("text-anchor","middle")),l.setAttribute("x",d),l.setAttribute("y",c),l.appendChild(this.document.createTextNode(i.text)),r.appendChild(l)}}},{key:"setSvgAttributes",value:function(r,o){var i=this.svg;i.setAttribute("width",r+"px"),i.setAttribute("height",o+"px"),i.setAttribute("x","0px"),i.setAttribute("y","0px"),i.setAttribute("viewBox","0 0 "+r+" "+o),i.setAttribute("xmlns",Ul),i.setAttribute("version","1.1"),i.setAttribute("style","transform: translate(0,0)")}},{key:"createGroup",value:function(r,o,i){var l=this.document.createElementNS(Ul,"g");return l.setAttribute("transform","translate("+r+", "+o+")"),i.appendChild(l),l}},{key:"setGroupOptions",value:function(r,o){r.setAttribute("style","fill:"+o.lineColor+";")}},{key:"drawRect",value:function(r,o,i,l,d){var c=this.document.createElementNS(Ul,"rect");return c.setAttribute("x",r),c.setAttribute("y",o),c.setAttribute("width",i),c.setAttribute("height",l),d.appendChild(c),c}}]),e}();gu.default=JN;var yu={};Object.defineProperty(yu,"__esModule",{value:!0});var XN=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();function ZN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var qN=function(){function e(t,r,o){ZN(this,e),this.object=t,this.encodings=r,this.options=o}return XN(e,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),e}();yu.default=qN,Object.defineProperty(pu,"__esModule",{value:!0});var eT=hu,tT=bu(eT),nT=gu,iT=bu(nT),rT=yu,oT=bu(rT);function bu(e){return e&&e.__esModule?e:{default:e}}pu.default={CanvasRenderer:tT.default,SVGRenderer:iT.default,ObjectRenderer:oT.default};var Jr={};Object.defineProperty(Jr,"__esModule",{value:!0});function wu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function _u(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var aT=function(e){_u(t,e);function t(r,o){wu(this,t);var i=Cu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.name="InvalidInputException",i.symbology=r,i.input=o,i.message='"'+i.input+'" is not a valid input for '+i.symbology,i}return t}(Error),lT=function(e){_u(t,e);function t(){wu(this,t);var r=Cu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="InvalidElementException",r.message="Not supported type to render on",r}return t}(Error),sT=function(e){_u(t,e);function t(){wu(this,t);var r=Cu(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.name="NoElementException",r.message="No element to render on.",r}return t}(Error);Jr.InvalidInputException=aT,Jr.InvalidElementException=lT,Jr.NoElementException=sT,Object.defineProperty(uu,"__esModule",{value:!0});var dT=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cT=fu,Eu=Jm(cT),uT=pu,na=Jm(uT),fT=Jr;function Jm(e){return e&&e.__esModule?e:{default:e}}function Su(e){if(typeof e=="string")return pT(e);if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++)t.push(Su(e[r]));return t}else{if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLImageElement)return hT(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&e instanceof SVGElement)return{element:e,options:(0,Eu.default)(e),renderer:na.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement)return{element:e,options:(0,Eu.default)(e),renderer:na.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:na.default.CanvasRenderer};if(e&&(typeof e>"u"?"undefined":dT(e))==="object"&&!e.nodeName)return{element:e,renderer:na.default.ObjectRenderer};throw new fT.InvalidElementException}}function pT(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var r=[],o=0;o<t.length;o++)r.push(Su(t[o]));return r}}function hT(e){var t=document.createElement("canvas");return{element:t,options:(0,Eu.default)(e),renderer:na.default.CanvasRenderer,afterRender:function(){e.setAttribute("src",t.toDataURL())}}}uu.default=Su;var Au={};Object.defineProperty(Au,"__esModule",{value:!0});var mT=function(){function e(t,r){for(var o=0;o<r.length;o++){var i=r[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,o){return r&&e(t.prototype,r),o&&e(t,o),t}}();function gT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var vT=function(){function e(t){gT(this,e),this.api=t}return mT(e,[{key:"handleCatch",value:function(r){if(r.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw r.message;else throw r;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(r){try{var o=r.apply(void 0,arguments);return this.api._options.valid(!0),o}catch(i){return this.handleCatch(i),this.api}}}]),e}();Au.default=vT;var yT=jc,hr=Hi(yT),bT=Qr,ia=Hi(bT),wT=du,Xm=Hi(wT),CT=cu,Zm=Hi(CT),_T=uu,ET=Hi(_T),ST=jl,AT=Hi(ST),xT=Au,kT=Hi(xT),qm=Jr,NT=zl,eg=Hi(NT);function Hi(e){return e&&e.__esModule?e:{default:e}}var xi=function(){},Hl=function(t,r,o){var i=new xi;if(typeof t>"u")throw Error("No element to render on was provided.");return i._renderProperties=(0,ET.default)(t),i._encodings=[],i._options=eg.default,i._errorHandler=new kT.default(i),typeof r<"u"&&(o=o||{},o.format||(o.format=ig()),i.options(o)[o.format](r,o).render()),i};Hl.getModule=function(e){return hr.default[e]};for(var tg in hr.default)hr.default.hasOwnProperty(tg)&&TT(hr.default,tg);function TT(e,t){xi.prototype[t]=xi.prototype[t.toUpperCase()]=xi.prototype[t.toLowerCase()]=function(r,o){var i=this;return i._errorHandler.wrapBarcodeCall(function(){o.text=typeof o.text>"u"?void 0:""+o.text;var l=(0,ia.default)(i._options,o);l=(0,AT.default)(l);var d=e[t],c=ng(r,d,l);return i._encodings.push(c),i})}}function ng(e,t,r){e=""+e;var o=new t(e,r);if(!o.valid())throw new qm.InvalidInputException(o.constructor.name,e);var i=o.encode();i=(0,Xm.default)(i);for(var l=0;l<i.length;l++)i[l].options=(0,ia.default)(r,i[l].options);return i}function ig(){return hr.default.CODE128?"CODE128":Object.keys(hr.default)[0]}xi.prototype.options=function(e){return this._options=(0,ia.default)(this._options,e),this},xi.prototype.blank=function(e){var t=new Array(e+1).join("0");return this._encodings.push({data:t}),this},xi.prototype.init=function(){if(!!this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var r=(0,ia.default)(this._options,e.options);r.format=="auto"&&(r.format=ig()),this._errorHandler.wrapBarcodeCall(function(){var o=r.value,i=hr.default[r.format.toUpperCase()],l=ng(o,i,r);xu(e,l,r)})}}},xi.prototype.render=function(){if(!this._renderProperties)throw new qm.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)xu(this._renderProperties[e],this._encodings,this._options);else xu(this._renderProperties,this._encodings,this._options);return this},xi.prototype._defaults=eg.default;function xu(e,t,r){t=(0,Xm.default)(t);for(var o=0;o<t.length;o++)t[o].options=(0,ia.default)(r,t[o].options),(0,Zm.default)(t[o].options);(0,Zm.default)(r);var i=e.renderer,l=new i(e.element,t,r);l.render(),e.afterRender&&e.afterRender()}typeof window<"u"&&(window.JsBarcode=Hl),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(e,t){var r=[];return jQuery(this).each(function(){r.push(this)}),Hl(r,e,t)});var DT=Hl;const VT=n.defineComponent({name:"BarCodeBox",data(){return{}},props:{value:String,format:String,displayValue:{type:Boolean,default:!0},fontSize:Number,textPosition:String,textAlign:String,textMargin:Number,width:{type:Number,default:2},height:{type:Number,default:50},background:String,lineColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e=this.value,t={};Object.keys(this.$props).forEach(r=>{this.$props[r]!=null&&this.$props[r]!==""&&(t[r]=this.$props[r])}),delete t.value,delete t.formCreateInject,this.$nextTick(()=>{DT(this.$refs.bar,e||"",t)})},deep:!0,immediate:!0}}}),OT={class:"_fc-barcode",ref:"bar"};function BT(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("img",OT,null,512)}const rg=Te(VT,[["render",BT]]),lj="",RT=n.defineComponent({name:"VideoBox",emits:["pause","play","ended","error"],data(){return{player:null}},props:{src:String,type:String,controls:{type:Boolean,default:!0},autoplay:Boolean,isLive:Boolean,withCredentials:Boolean,loop:Boolean},watch:{src:{handler:function(){this.$nextTick(()=>{nn.ready("mpegts",()=>{const e=this.$refs.video,t=window.mpegts.createPlayer({isLive:this.isLive,type:this.type,url:this.src});t.attachMediaElement(e),t.on("error",r=>{this.$emit("error",r)}),t.load(),this.autoplay&&t.play().catch(r=>{this.$emit("error",r)}),this.player=t})})},immediate:!0}},created(){window.mpegts?nn.done("mpegts"):nn.isDefined("mpegts")||nn.loadNpm("mpegts.js@1.8.0/dist/mpegts.js","mpegts")}}),$T=["controls","loop"];function IT(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("video",{ref:"video",class:"_fc-video-box",controls:e.controls,loop:e.loop,onPause:t[0]||(t[0]=d=>e.$emit("pause",d)),onPlay:t[1]||(t[1]=d=>e.$emit("play",d)),onEnded:t[2]||(t[2]=d=>e.$emit("ended",d))},null,40,$T)}const og=Te(RT,[["render",IT]]);var ag={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Cc,()=>(()=>{var r={873:(d,c)=>{var u,h,m=function(){var y=function(H,R){var z=H,$=g[R],S=null,J=0,Q=null,G=[],ie={},X=function(D,W){S=function(Y){for(var q=new Array(Y),ee=0;ee<Y;ee+=1){q[ee]=new Array(Y);for(var oe=0;oe<Y;oe+=1)q[ee][oe]=null}return q}(J=4*z+17),le(0,0),le(J-7,0),le(0,J-7),ce(),be(),pe(D,W),z>=7&&de(D),Q==null&&(Q=ge(z,$,G)),se(Q,W)},le=function(D,W){for(var Y=-1;Y<=7;Y+=1)if(!(D+Y<=-1||J<=D+Y))for(var q=-1;q<=7;q+=1)W+q<=-1||J<=W+q||(S[D+Y][W+q]=0<=Y&&Y<=6&&(q==0||q==6)||0<=q&&q<=6&&(Y==0||Y==6)||2<=Y&&Y<=4&&2<=q&&q<=4)},be=function(){for(var D=8;D<J-8;D+=1)S[D][6]==null&&(S[D][6]=D%2==0);for(var W=8;W<J-8;W+=1)S[6][W]==null&&(S[6][W]=W%2==0)},ce=function(){for(var D=_.getPatternPosition(z),W=0;W<D.length;W+=1)for(var Y=0;Y<D.length;Y+=1){var q=D[W],ee=D[Y];if(S[q][ee]==null)for(var oe=-2;oe<=2;oe+=1)for(var he=-2;he<=2;he+=1)S[q+oe][ee+he]=oe==-2||oe==2||he==-2||he==2||oe==0&&he==0}},de=function(D){for(var W=_.getBCHTypeNumber(z),Y=0;Y<18;Y+=1){var q=!D&&(W>>Y&1)==1;S[Math.floor(Y/3)][Y%3+J-8-3]=q}for(Y=0;Y<18;Y+=1)q=!D&&(W>>Y&1)==1,S[Y%3+J-8-3][Math.floor(Y/3)]=q},pe=function(D,W){for(var Y=$<<3|W,q=_.getBCHTypeInfo(Y),ee=0;ee<15;ee+=1){var oe=!D&&(q>>ee&1)==1;ee<6?S[ee][8]=oe:ee<8?S[ee+1][8]=oe:S[J-15+ee][8]=oe}for(ee=0;ee<15;ee+=1)oe=!D&&(q>>ee&1)==1,ee<8?S[8][J-ee-1]=oe:ee<9?S[8][15-ee-1+1]=oe:S[8][15-ee-1]=oe;S[J-8][8]=!D},se=function(D,W){for(var Y=-1,q=J-1,ee=7,oe=0,he=_.getMaskFunction(W),Ae=J-1;Ae>0;Ae-=2)for(Ae==6&&(Ae-=1);;){for(var Me=0;Me<2;Me+=1)if(S[q][Ae-Me]==null){var Le=!1;oe<D.length&&(Le=(D[oe]>>>ee&1)==1),he(q,Ae-Me)&&(Le=!Le),S[q][Ae-Me]=Le,(ee-=1)==-1&&(oe+=1,ee=7)}if((q+=Y)<0||J<=q){q-=Y,Y=-Y;break}}},ge=function(D,W,Y){for(var q=T.getRSBlocks(D,W),ee=O(),oe=0;oe<Y.length;oe+=1){var he=Y[oe];ee.put(he.getMode(),4),ee.put(he.getLength(),_.getLengthInBits(he.getMode(),D)),he.write(ee)}var Ae=0;for(oe=0;oe<q.length;oe+=1)Ae+=q[oe].dataCount;if(ee.getLengthInBits()>8*Ae)throw"code length overflow. ("+ee.getLengthInBits()+">"+8*Ae+")";for(ee.getLengthInBits()+4<=8*Ae&&ee.put(0,4);ee.getLengthInBits()%8!=0;)ee.putBit(!1);for(;!(ee.getLengthInBits()>=8*Ae||(ee.put(236,8),ee.getLengthInBits()>=8*Ae));)ee.put(17,8);return function(Me,Le){for(var fe=0,ke=0,we=0,He=new Array(Le.length),et=new Array(Le.length),_e=0;_e<Le.length;_e+=1){var Oe=Le[_e].dataCount,Ke=Le[_e].totalCount-Oe;ke=Math.max(ke,Oe),we=Math.max(we,Ke),He[_e]=new Array(Oe);for(var Re=0;Re<He[_e].length;Re+=1)He[_e][Re]=255&Me.getBuffer()[Re+fe];fe+=Oe;var mt=_.getErrorCorrectPolynomial(Ke),Ze=k(He[_e],mt.getLength()-1).mod(mt);for(et[_e]=new Array(mt.getLength()-1),Re=0;Re<et[_e].length;Re+=1){var De=Re+Ze.getLength()-et[_e].length;et[_e][Re]=De>=0?Ze.getAt(De):0}}var Pe=0;for(Re=0;Re<Le.length;Re+=1)Pe+=Le[Re].totalCount;var tt=new Array(Pe),$e=0;for(Re=0;Re<ke;Re+=1)for(_e=0;_e<Le.length;_e+=1)Re<He[_e].length&&(tt[$e]=He[_e][Re],$e+=1);for(Re=0;Re<we;Re+=1)for(_e=0;_e<Le.length;_e+=1)Re<et[_e].length&&(tt[$e]=et[_e][Re],$e+=1);return tt}(ee,q)};ie.addData=function(D,W){var Y=null;switch(W=W||"Byte"){case"Numeric":Y=F(D);break;case"Alphanumeric":Y=I(D);break;case"Byte":Y=M(D);break;case"Kanji":Y=N(D);break;default:throw"mode:"+W}G.push(Y),Q=null},ie.isDark=function(D,W){if(D<0||J<=D||W<0||J<=W)throw D+","+W;return S[D][W]},ie.getModuleCount=function(){return J},ie.make=function(){if(z<1){for(var D=1;D<40;D++){for(var W=T.getRSBlocks(D,$),Y=O(),q=0;q<G.length;q++){var ee=G[q];Y.put(ee.getMode(),4),Y.put(ee.getLength(),_.getLengthInBits(ee.getMode(),D)),ee.write(Y)}var oe=0;for(q=0;q<W.length;q++)oe+=W[q].dataCount;if(Y.getLengthInBits()<=8*oe)break}z=D}X(!1,function(){for(var he=0,Ae=0,Me=0;Me<8;Me+=1){X(!0,Me);var Le=_.getLostPoint(ie);(Me==0||he>Le)&&(he=Le,Ae=Me)}return Ae}())},ie.createTableTag=function(D,W){D=D||2;var Y="";Y+='<table style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: "+(W=W===void 0?4*D:W)+"px;",Y+='">',Y+="<tbody>";for(var q=0;q<ie.getModuleCount();q+=1){Y+="<tr>";for(var ee=0;ee<ie.getModuleCount();ee+=1)Y+='<td style="',Y+=" border-width: 0px; border-style: none;",Y+=" border-collapse: collapse;",Y+=" padding: 0px; margin: 0px;",Y+=" width: "+D+"px;",Y+=" height: "+D+"px;",Y+=" background-color: ",Y+=ie.isDark(q,ee)?"#000000":"#ffffff",Y+=";",Y+='"/>';Y+="</tr>"}return(Y+="</tbody>")+"</table>"},ie.createSvgTag=function(D,W,Y,q){var ee={};typeof arguments[0]=="object"&&(D=(ee=arguments[0]).cellSize,W=ee.margin,Y=ee.alt,q=ee.title),D=D||2,W=W===void 0?4*D:W,(Y=typeof Y=="string"?{text:Y}:Y||{}).text=Y.text||null,Y.id=Y.text?Y.id||"qrcode-description":null,(q=typeof q=="string"?{text:q}:q||{}).text=q.text||null,q.id=q.text?q.id||"qrcode-title":null;var oe,he,Ae,Me,Le=ie.getModuleCount()*D+2*W,fe="";for(Me="l"+D+",0 0,"+D+" -"+D+",0 0,-"+D+"z ",fe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',fe+=ee.scalable?"":' width="'+Le+'px" height="'+Le+'px"',fe+=' viewBox="0 0 '+Le+" "+Le+'" ',fe+=' preserveAspectRatio="xMinYMin meet"',fe+=q.text||Y.text?' role="img" aria-labelledby="'+ye([q.id,Y.id].join(" ").trim())+'"':"",fe+=">",fe+=q.text?'<title id="'+ye(q.id)+'">'+ye(q.text)+"</title>":"",fe+=Y.text?'<description id="'+ye(Y.id)+'">'+ye(Y.text)+"</description>":"",fe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',fe+='<path d="',he=0;he<ie.getModuleCount();he+=1)for(Ae=he*D+W,oe=0;oe<ie.getModuleCount();oe+=1)ie.isDark(he,oe)&&(fe+="M"+(oe*D+W)+","+Ae+Me);return(fe+='" stroke="transparent" fill="black"/>')+"</svg>"},ie.createDataURL=function(D,W){D=D||2,W=W===void 0?4*D:W;var Y=ie.getModuleCount()*D+2*W,q=W,ee=Y-W;return U(Y,Y,function(oe,he){if(q<=oe&&oe<ee&&q<=he&&he<ee){var Ae=Math.floor((oe-q)/D),Me=Math.floor((he-q)/D);return ie.isDark(Me,Ae)?0:1}return 1})},ie.createImgTag=function(D,W,Y){D=D||2,W=W===void 0?4*D:W;var q=ie.getModuleCount()*D+2*W,ee="";return ee+="<img",ee+=' src="',ee+=ie.createDataURL(D,W),ee+='"',ee+=' width="',ee+=q,ee+='"',ee+=' height="',ee+=q,ee+='"',Y&&(ee+=' alt="',ee+=ye(Y),ee+='"'),ee+"/>"};var ye=function(D){for(var W="",Y=0;Y<D.length;Y+=1){var q=D.charAt(Y);switch(q){case"<":W+="<";break;case">":W+=">";break;case"&":W+="&";break;case'"':W+=""";break;default:W+=q}}return W};return ie.createASCII=function(D,W){if((D=D||1)<2)return function(He){He=He===void 0?2:He;var et,_e,Oe,Ke,Re,mt=1*ie.getModuleCount()+2*He,Ze=He,De=mt-He,Pe={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},tt={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},$e="";for(et=0;et<mt;et+=2){for(Oe=Math.floor((et-Ze)/1),Ke=Math.floor((et+1-Ze)/1),_e=0;_e<mt;_e+=1)Re="\u2588",Ze<=_e&&_e<De&&Ze<=et&&et<De&&ie.isDark(Oe,Math.floor((_e-Ze)/1))&&(Re=" "),Ze<=_e&&_e<De&&Ze<=et+1&&et+1<De&&ie.isDark(Ke,Math.floor((_e-Ze)/1))?Re+=" ":Re+="\u2588",$e+=He<1&&et+1>=De?tt[Re]:Pe[Re];$e+=`
|
||
`}return mt%2&&He>0?$e.substring(0,$e.length-mt-1)+Array(mt+1).join("\u2580"):$e.substring(0,$e.length-1)}(W);D-=1,W=W===void 0?2*D:W;var Y,q,ee,oe,he=ie.getModuleCount()*D+2*W,Ae=W,Me=he-W,Le=Array(D+1).join("\u2588\u2588"),fe=Array(D+1).join(" "),ke="",we="";for(Y=0;Y<he;Y+=1){for(ee=Math.floor((Y-Ae)/D),we="",q=0;q<he;q+=1)oe=1,Ae<=q&&q<Me&&Ae<=Y&&Y<Me&&ie.isDark(ee,Math.floor((q-Ae)/D))&&(oe=0),we+=oe?Le:fe;for(ee=0;ee<D;ee+=1)ke+=we+`
|
||
`}return ke.substring(0,ke.length-1)},ie.renderTo2dContext=function(D,W){W=W||2;for(var Y=ie.getModuleCount(),q=0;q<Y;q++)for(var ee=0;ee<Y;ee++)D.fillStyle=ie.isDark(q,ee)?"black":"white",D.fillRect(q*W,ee*W,W,W)},ie};y.stringToBytes=(y.stringToBytesFuncs={default:function(H){for(var R=[],z=0;z<H.length;z+=1){var $=H.charCodeAt(z);R.push(255&$)}return R}}).default,y.createStringToBytes=function(H,R){var z=function(){for(var S=L(H),J=function(){var be=S.read();if(be==-1)throw"eof";return be},Q=0,G={};;){var ie=S.read();if(ie==-1)break;var X=J(),le=J()<<8|J();G[String.fromCharCode(ie<<8|X)]=le,Q+=1}if(Q!=R)throw Q+" != "+R;return G}(),$="?".charCodeAt(0);return function(S){for(var J=[],Q=0;Q<S.length;Q+=1){var G=S.charCodeAt(Q);if(G<128)J.push(G);else{var ie=z[S.charAt(Q)];typeof ie=="number"?(255&ie)==ie?J.push(ie):(J.push(ie>>>8),J.push(255&ie)):J.push($)}}return J}};var C,A,w,E,b,g={L:1,M:0,Q:3,H:2},_=(C=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],A=1335,w=7973,b=function(H){for(var R=0;H!=0;)R+=1,H>>>=1;return R},(E={}).getBCHTypeInfo=function(H){for(var R=H<<10;b(R)-b(A)>=0;)R^=A<<b(R)-b(A);return 21522^(H<<10|R)},E.getBCHTypeNumber=function(H){for(var R=H<<12;b(R)-b(w)>=0;)R^=w<<b(R)-b(w);return H<<12|R},E.getPatternPosition=function(H){return C[H-1]},E.getMaskFunction=function(H){switch(H){case 0:return function(R,z){return(R+z)%2==0};case 1:return function(R,z){return R%2==0};case 2:return function(R,z){return z%3==0};case 3:return function(R,z){return(R+z)%3==0};case 4:return function(R,z){return(Math.floor(R/2)+Math.floor(z/3))%2==0};case 5:return function(R,z){return R*z%2+R*z%3==0};case 6:return function(R,z){return(R*z%2+R*z%3)%2==0};case 7:return function(R,z){return(R*z%3+(R+z)%2)%2==0};default:throw"bad maskPattern:"+H}},E.getErrorCorrectPolynomial=function(H){for(var R=k([1],0),z=0;z<H;z+=1)R=R.multiply(k([1,x.gexp(z)],0));return R},E.getLengthInBits=function(H,R){if(1<=R&&R<10)switch(H){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+H}else if(R<27)switch(H){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+H}else{if(!(R<41))throw"type:"+R;switch(H){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+H}}},E.getLostPoint=function(H){for(var R=H.getModuleCount(),z=0,$=0;$<R;$+=1)for(var S=0;S<R;S+=1){for(var J=0,Q=H.isDark($,S),G=-1;G<=1;G+=1)if(!($+G<0||R<=$+G))for(var ie=-1;ie<=1;ie+=1)S+ie<0||R<=S+ie||G==0&&ie==0||Q==H.isDark($+G,S+ie)&&(J+=1);J>5&&(z+=3+J-5)}for($=0;$<R-1;$+=1)for(S=0;S<R-1;S+=1){var X=0;H.isDark($,S)&&(X+=1),H.isDark($+1,S)&&(X+=1),H.isDark($,S+1)&&(X+=1),H.isDark($+1,S+1)&&(X+=1),X!=0&&X!=4||(z+=3)}for($=0;$<R;$+=1)for(S=0;S<R-6;S+=1)H.isDark($,S)&&!H.isDark($,S+1)&&H.isDark($,S+2)&&H.isDark($,S+3)&&H.isDark($,S+4)&&!H.isDark($,S+5)&&H.isDark($,S+6)&&(z+=40);for(S=0;S<R;S+=1)for($=0;$<R-6;$+=1)H.isDark($,S)&&!H.isDark($+1,S)&&H.isDark($+2,S)&&H.isDark($+3,S)&&H.isDark($+4,S)&&!H.isDark($+5,S)&&H.isDark($+6,S)&&(z+=40);var le=0;for(S=0;S<R;S+=1)for($=0;$<R;$+=1)H.isDark($,S)&&(le+=1);return z+Math.abs(100*le/R/R-50)/5*10},E),x=function(){for(var H=new Array(256),R=new Array(256),z=0;z<8;z+=1)H[z]=1<<z;for(z=8;z<256;z+=1)H[z]=H[z-4]^H[z-5]^H[z-6]^H[z-8];for(z=0;z<255;z+=1)R[H[z]]=z;return{glog:function($){if($<1)throw"glog("+$+")";return R[$]},gexp:function($){for(;$<0;)$+=255;for(;$>=256;)$-=255;return H[$]}}}();function k(H,R){if(H.length===void 0)throw H.length+"/"+R;var z=function(){for(var S=0;S<H.length&&H[S]==0;)S+=1;for(var J=new Array(H.length-S+R),Q=0;Q<H.length-S;Q+=1)J[Q]=H[Q+S];return J}(),$={getAt:function(S){return z[S]},getLength:function(){return z.length},multiply:function(S){for(var J=new Array($.getLength()+S.getLength()-1),Q=0;Q<$.getLength();Q+=1)for(var G=0;G<S.getLength();G+=1)J[Q+G]^=x.gexp(x.glog($.getAt(Q))+x.glog(S.getAt(G)));return k(J,0)},mod:function(S){if($.getLength()-S.getLength()<0)return $;for(var J=x.glog($.getAt(0))-x.glog(S.getAt(0)),Q=new Array($.getLength()),G=0;G<$.getLength();G+=1)Q[G]=$.getAt(G);for(G=0;G<S.getLength();G+=1)Q[G]^=x.gexp(x.glog(S.getAt(G))+J);return k(Q,0).mod(S)}};return $}var T=function(){var H=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],R=function($,S){var J={};return J.totalCount=$,J.dataCount=S,J},z={getRSBlocks:function($,S){var J=function(de,pe){switch(pe){case g.L:return H[4*(de-1)+0];case g.M:return H[4*(de-1)+1];case g.Q:return H[4*(de-1)+2];case g.H:return H[4*(de-1)+3];default:return}}($,S);if(J===void 0)throw"bad rs block @ typeNumber:"+$+"/errorCorrectionLevel:"+S;for(var Q=J.length/3,G=[],ie=0;ie<Q;ie+=1)for(var X=J[3*ie+0],le=J[3*ie+1],be=J[3*ie+2],ce=0;ce<X;ce+=1)G.push(R(le,be));return G}};return z}(),O=function(){var H=[],R=0,z={getBuffer:function(){return H},getAt:function($){var S=Math.floor($/8);return(H[S]>>>7-$%8&1)==1},put:function($,S){for(var J=0;J<S;J+=1)z.putBit(($>>>S-J-1&1)==1)},getLengthInBits:function(){return R},putBit:function($){var S=Math.floor(R/8);H.length<=S&&H.push(0),$&&(H[S]|=128>>>R%8),R+=1}};return z},F=function(H){var R=H,z={getMode:function(){return 1},getLength:function(J){return R.length},write:function(J){for(var Q=R,G=0;G+2<Q.length;)J.put($(Q.substring(G,G+3)),10),G+=3;G<Q.length&&(Q.length-G==1?J.put($(Q.substring(G,G+1)),4):Q.length-G==2&&J.put($(Q.substring(G,G+2)),7))}},$=function(J){for(var Q=0,G=0;G<J.length;G+=1)Q=10*Q+S(J.charAt(G));return Q},S=function(J){if("0"<=J&&J<="9")return J.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+J};return z},I=function(H){var R=H,z={getMode:function(){return 2},getLength:function(S){return R.length},write:function(S){for(var J=R,Q=0;Q+1<J.length;)S.put(45*$(J.charAt(Q))+$(J.charAt(Q+1)),11),Q+=2;Q<J.length&&S.put($(J.charAt(Q)),6)}},$=function(S){if("0"<=S&&S<="9")return S.charCodeAt(0)-"0".charCodeAt(0);if("A"<=S&&S<="Z")return S.charCodeAt(0)-"A".charCodeAt(0)+10;switch(S){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+S}};return z},M=function(H){var R=y.stringToBytes(H);return{getMode:function(){return 4},getLength:function(z){return R.length},write:function(z){for(var $=0;$<R.length;$+=1)z.put(R[$],8)}}},N=function(H){var R=y.stringToBytesFuncs.SJIS;if(!R)throw"sjis not supported.";(function(){var S=R("\u53CB");if(S.length!=2||(S[0]<<8|S[1])!=38726)throw"sjis not supported."})();var z=R(H),$={getMode:function(){return 8},getLength:function(S){return~~(z.length/2)},write:function(S){for(var J=z,Q=0;Q+1<J.length;){var G=(255&J[Q])<<8|255&J[Q+1];if(33088<=G&&G<=40956)G-=33088;else{if(!(57408<=G&&G<=60351))throw"illegal char at "+(Q+1)+"/"+G;G-=49472}G=192*(G>>>8&255)+(255&G),S.put(G,13),Q+=2}if(Q<J.length)throw"illegal char at "+(Q+1)}};return $},B=function(){var H=[],R={writeByte:function(z){H.push(255&z)},writeShort:function(z){R.writeByte(z),R.writeByte(z>>>8)},writeBytes:function(z,$,S){$=$||0,S=S||z.length;for(var J=0;J<S;J+=1)R.writeByte(z[J+$])},writeString:function(z){for(var $=0;$<z.length;$+=1)R.writeByte(z.charCodeAt($))},toByteArray:function(){return H},toString:function(){var z="";z+="[";for(var $=0;$<H.length;$+=1)$>0&&(z+=","),z+=H[$];return z+"]"}};return R},L=function(H){var R=H,z=0,$=0,S=0,J={read:function(){for(;S<8;){if(z>=R.length){if(S==0)return-1;throw"unexpected end of file./"+S}var G=R.charAt(z);if(z+=1,G=="=")return S=0,-1;G.match(/^\s$/)||($=$<<6|Q(G.charCodeAt(0)),S+=6)}var ie=$>>>S-8&255;return S-=8,ie}},Q=function(G){if(65<=G&&G<=90)return G-65;if(97<=G&&G<=122)return G-97+26;if(48<=G&&G<=57)return G-48+52;if(G==43)return 62;if(G==47)return 63;throw"c:"+G};return J},U=function(H,R,z){for(var $=function(le,be){var ce=le,de=be,pe=new Array(le*be),se={setPixel:function(D,W,Y){pe[W*ce+D]=Y},write:function(D){D.writeString("GIF87a"),D.writeShort(ce),D.writeShort(de),D.writeByte(128),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(0),D.writeByte(255),D.writeByte(255),D.writeByte(255),D.writeString(","),D.writeShort(0),D.writeShort(0),D.writeShort(ce),D.writeShort(de),D.writeByte(0);var W=ge(2);D.writeByte(2);for(var Y=0;W.length-Y>255;)D.writeByte(255),D.writeBytes(W,Y,255),Y+=255;D.writeByte(W.length-Y),D.writeBytes(W,Y,W.length-Y),D.writeByte(0),D.writeString(";")}},ge=function(D){for(var W=1<<D,Y=1+(1<<D),q=D+1,ee=ye(),oe=0;oe<W;oe+=1)ee.add(String.fromCharCode(oe));ee.add(String.fromCharCode(W)),ee.add(String.fromCharCode(Y));var he,Ae,Me,Le=B(),fe=(he=Le,Ae=0,Me=0,{write:function(et,_e){if(et>>>_e!=0)throw"length over";for(;Ae+_e>=8;)he.writeByte(255&(et<<Ae|Me)),_e-=8-Ae,et>>>=8-Ae,Me=0,Ae=0;Me|=et<<Ae,Ae+=_e},flush:function(){Ae>0&&he.writeByte(Me)}});fe.write(W,q);var ke=0,we=String.fromCharCode(pe[ke]);for(ke+=1;ke<pe.length;){var He=String.fromCharCode(pe[ke]);ke+=1,ee.contains(we+He)?we+=He:(fe.write(ee.indexOf(we),q),ee.size()<4095&&(ee.size()==1<<q&&(q+=1),ee.add(we+He)),we=He)}return fe.write(ee.indexOf(we),q),fe.write(Y,q),fe.flush(),Le.toByteArray()},ye=function(){var D={},W=0,Y={add:function(q){if(Y.contains(q))throw"dup key:"+q;D[q]=W,W+=1},size:function(){return W},indexOf:function(q){return D[q]},contains:function(q){return D[q]!==void 0}};return Y};return se}(H,R),S=0;S<R;S+=1)for(var J=0;J<H;J+=1)$.setPixel(J,S,z(J,S));var Q=B();$.write(Q);for(var G=function(){var le=0,be=0,ce=0,de="",pe={},se=function(ye){de+=String.fromCharCode(ge(63&ye))},ge=function(ye){if(!(ye<0)){if(ye<26)return 65+ye;if(ye<52)return ye-26+97;if(ye<62)return ye-52+48;if(ye==62)return 43;if(ye==63)return 47}throw"n:"+ye};return pe.writeByte=function(ye){for(le=le<<8|255&ye,be+=8,ce+=1;be>=6;)se(le>>>be-6),be-=6},pe.flush=function(){if(be>0&&(se(le<<6-be),le=0,be=0),ce%3!=0)for(var ye=3-ce%3,D=0;D<ye;D+=1)de+="="},pe.toString=function(){return de},pe}(),ie=Q.toByteArray(),X=0;X<ie.length;X+=1)G.writeByte(ie[X]);return G.flush(),"data:image/gif;base64,"+G};return y}();m.stringToBytesFuncs["UTF-8"]=function(y){return function(C){for(var A=[],w=0;w<C.length;w++){var E=C.charCodeAt(w);E<128?A.push(E):E<2048?A.push(192|E>>6,128|63&E):E<55296||E>=57344?A.push(224|E>>12,128|E>>6&63,128|63&E):(w++,E=65536+((1023&E)<<10|1023&C.charCodeAt(w)),A.push(240|E>>18,128|E>>12&63,128|E>>6&63,128|63&E))}return A}(y)},(h=typeof(u=function(){return m})=="function"?u.apply(c,[]):u)===void 0||(d.exports=h)}},o={};function i(d){var c=o[d];if(c!==void 0)return c.exports;var u=o[d]={exports:{}};return r[d](u,u.exports,i),u.exports}i.n=d=>{var c=d&&d.__esModule?()=>d.default:()=>d;return i.d(c,{a:c}),c},i.d=(d,c)=>{for(var u in c)i.o(c,u)&&!i.o(d,u)&&Object.defineProperty(d,u,{enumerable:!0,get:c[u]})},i.o=(d,c)=>Object.prototype.hasOwnProperty.call(d,c);var l={};return(()=>{i.d(l,{default:()=>R});const d=z=>!!z&&typeof z=="object"&&!Array.isArray(z);function c(z,...$){if(!$.length)return z;const S=$.shift();return S!==void 0&&d(z)&&d(S)?(z=Object.assign({},z),Object.keys(S).forEach(J=>{const Q=z[J],G=S[J];Array.isArray(Q)&&Array.isArray(G)?z[J]=G:d(Q)&&d(G)?z[J]=c(Object.assign({},Q),G):z[J]=G}),c(z,...$)):z}function u(z,$){const S=document.createElement("a");S.download=$,S.href=z,document.body.appendChild(S),S.click(),document.body.removeChild(S)}const h={L:.07,M:.15,Q:.25,H:.3};class m{constructor({svg:$,type:S,window:J}){this._svg=$,this._type=S,this._window=J}draw($,S,J,Q){let G;switch(this._type){case"dots":G=this._drawDot;break;case"classy":G=this._drawClassy;break;case"classy-rounded":G=this._drawClassyRounded;break;case"rounded":G=this._drawRounded;break;case"extra-rounded":G=this._drawExtraRounded;break;default:G=this._drawSquare}G.call(this,{x:$,y:S,size:J,getNeighbor:Q})}_rotateFigure({x:$,y:S,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=S+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(J+S/2)),this._element.setAttribute("cy",String(Q+S/2)),this._element.setAttribute("r",String(S/2))}}))}_basicSquare($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(J)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(S)),this._element.setAttribute("height",String(S))}}))}_basicSideRounded($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${S}h `+S/2+`a ${S/2} ${S/2}, 0, 0, 0, 0 ${-S}`)}}))}_basicCornerRounded($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${S}h ${S}v `+-S/2+`a ${S/2} ${S/2}, 0, 0, 0, ${-S/2} ${-S/2}`)}}))}_basicCornerExtraRounded($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v ${S}h ${S}a ${S} ${S}, 0, 0, 0, ${-S} ${-S}`)}}))}_basicCornersRounded($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${J} ${Q}v `+S/2+`a ${S/2} ${S/2}, 0, 0, 0, ${S/2} ${S/2}h `+S/2+"v "+-S/2+`a ${S/2} ${S/2}, 0, 0, 0, ${-S/2} ${-S/2}`)}}))}_drawDot({x:$,y:S,size:J}){this._basicDot({x:$,y:S,size:J,rotation:0})}_drawSquare({x:$,y:S,size:J}){this._basicSquare({x:$,y:S,size:J,rotation:0})}_drawRounded({x:$,y:S,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0,be=G+ie+X+le;if(be!==0)if(be>2||G&&ie||X&&le)this._basicSquare({x:$,y:S,size:J,rotation:0});else{if(be===2){let ce=0;return G&&X?ce=Math.PI/2:X&&ie?ce=Math.PI:ie&&le&&(ce=-Math.PI/2),void this._basicCornerRounded({x:$,y:S,size:J,rotation:ce})}if(be===1){let ce=0;return X?ce=Math.PI/2:ie?ce=Math.PI:le&&(ce=-Math.PI/2),void this._basicSideRounded({x:$,y:S,size:J,rotation:ce})}}else this._basicDot({x:$,y:S,size:J,rotation:0})}_drawExtraRounded({x:$,y:S,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0,be=G+ie+X+le;if(be!==0)if(be>2||G&&ie||X&&le)this._basicSquare({x:$,y:S,size:J,rotation:0});else{if(be===2){let ce=0;return G&&X?ce=Math.PI/2:X&&ie?ce=Math.PI:ie&&le&&(ce=-Math.PI/2),void this._basicCornerExtraRounded({x:$,y:S,size:J,rotation:ce})}if(be===1){let ce=0;return X?ce=Math.PI/2:ie?ce=Math.PI:le&&(ce=-Math.PI/2),void this._basicSideRounded({x:$,y:S,size:J,rotation:ce})}}else this._basicDot({x:$,y:S,size:J,rotation:0})}_drawClassy({x:$,y:S,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0;G+ie+X+le!==0?G||X?ie||le?this._basicSquare({x:$,y:S,size:J,rotation:0}):this._basicCornerRounded({x:$,y:S,size:J,rotation:Math.PI/2}):this._basicCornerRounded({x:$,y:S,size:J,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:S,size:J,rotation:Math.PI/2})}_drawClassyRounded({x:$,y:S,size:J,getNeighbor:Q}){const G=Q?+Q(-1,0):0,ie=Q?+Q(1,0):0,X=Q?+Q(0,-1):0,le=Q?+Q(0,1):0;G+ie+X+le!==0?G||X?ie||le?this._basicSquare({x:$,y:S,size:J,rotation:0}):this._basicCornerExtraRounded({x:$,y:S,size:J,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:$,y:S,size:J,rotation:-Math.PI/2}):this._basicCornersRounded({x:$,y:S,size:J,rotation:Math.PI/2})}}const y={dot:"dot",square:"square",extraRounded:"extra-rounded"},C=Object.values(y);class A{constructor({svg:$,type:S,window:J}){this._svg=$,this._type=S,this._window=J}draw($,S,J,Q){let G;switch(this._type){case y.square:G=this._drawSquare;break;case y.extraRounded:G=this._drawExtraRounded;break;default:G=this._drawDot}G.call(this,{x:$,y:S,size:J,rotation:Q})}_rotateFigure({x:$,y:S,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=S+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:S,x:J,y:Q}=$,G=S/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J+S/2} ${Q}a ${S/2} ${S/2} 0 1 0 0.1 0zm 0 ${G}a ${S/2-G} ${S/2-G} 0 1 1 -0.1 0Z`)}}))}_basicSquare($){const{size:S,x:J,y:Q}=$,G=S/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J} ${Q}v ${S}h ${S}v `+-S+`zM ${J+G} ${Q+G}h `+(S-2*G)+"v "+(S-2*G)+"h "+(2*G-S)+"z")}}))}_basicExtraRounded($){const{size:S,x:J,y:Q}=$,G=S/7;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${J} ${Q+2.5*G}v `+2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*G} ${2.5*G}h `+2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*G} ${2.5*-G}v `+-2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*-G} ${2.5*-G}h `+-2*G+`a ${2.5*G} ${2.5*G}, 0, 0, 0, ${2.5*-G} ${2.5*G}M ${J+2.5*G} ${Q+G}h `+2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*G} ${1.5*G}v `+2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*-G} ${1.5*G}h `+-2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*-G} ${1.5*-G}v `+-2*G+`a ${1.5*G} ${1.5*G}, 0, 0, 1, ${1.5*G} ${1.5*-G}`)}}))}_drawDot({x:$,y:S,size:J,rotation:Q}){this._basicDot({x:$,y:S,size:J,rotation:Q})}_drawSquare({x:$,y:S,size:J,rotation:Q}){this._basicSquare({x:$,y:S,size:J,rotation:Q})}_drawExtraRounded({x:$,y:S,size:J,rotation:Q}){this._basicExtraRounded({x:$,y:S,size:J,rotation:Q})}}const w={dot:"dot",square:"square"},E=Object.values(w);class b{constructor({svg:$,type:S,window:J}){this._svg=$,this._type=S,this._window=J}draw($,S,J,Q){let G;G=this._type===w.square?this._drawSquare:this._drawDot,G.call(this,{x:$,y:S,size:J,rotation:Q})}_rotateFigure({x:$,y:S,size:J,rotation:Q=0,draw:G}){var ie;const X=$+J/2,le=S+J/2;G(),(ie=this._element)===null||ie===void 0||ie.setAttribute("transform",`rotate(${180*Q/Math.PI},${X},${le})`)}_basicDot($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(J+S/2)),this._element.setAttribute("cy",String(Q+S/2)),this._element.setAttribute("r",String(S/2))}}))}_basicSquare($){const{size:S,x:J,y:Q}=$;this._rotateFigure(Object.assign(Object.assign({},$),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(J)),this._element.setAttribute("y",String(Q)),this._element.setAttribute("width",String(S)),this._element.setAttribute("height",String(S))}}))}_drawDot({x:$,y:S,size:J,rotation:Q}){this._basicDot({x:$,y:S,size:J,rotation:Q})}_drawSquare({x:$,y:S,size:J,rotation:Q}){this._basicSquare({x:$,y:S,size:J,rotation:Q})}}const g="circle",_=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],x=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class k{constructor($,S){this._roundSize=J=>this._options.dotsOptions.roundSize?Math.floor(J):J,this._window=S,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String($.width)),this._element.setAttribute("height",String($.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),$.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${$.width} ${$.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=$.image,this._instanceId=k.instanceCount++,this._options=$}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR($){const S=$.getModuleCount(),J=Math.min(this._options.width,this._options.height)-2*this._options.margin,Q=this._options.shape===g?J/Math.sqrt(2):J,G=this._roundSize(Q/S);let ie={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=$,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:X,qrOptions:le}=this._options,be=X.imageSize*h[le.errorCorrectionLevel],ce=Math.floor(be*S*S);ie=function({originalHeight:de,originalWidth:pe,maxHiddenDots:se,maxHiddenAxisDots:ge,dotSize:ye}){const D={x:0,y:0},W={x:0,y:0};if(de<=0||pe<=0||se<=0||ye<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const Y=de/pe;return D.x=Math.floor(Math.sqrt(se/Y)),D.x<=0&&(D.x=1),ge&&ge<D.x&&(D.x=ge),D.x%2==0&&D.x--,W.x=D.x*ye,D.y=1+2*Math.ceil((D.x*Y-1)/2),W.y=Math.round(W.x*Y),(D.y*D.x>se||ge&&ge<D.y)&&(ge&&ge<D.y?(D.y=ge,D.y%2==0&&D.x--):D.y-=2,W.y=D.y*ye,D.x=1+2*Math.ceil((D.y/Y-1)/2),W.x=Math.round(W.y/Y)),{height:W.y,width:W.x,hideYDots:D.y,hideXDots:D.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:ce,maxHiddenAxisDots:S-14,dotSize:G})}this.drawBackground(),this.drawDots((X,le)=>{var be,ce,de,pe,se,ge;return!(this._options.imageOptions.hideBackgroundDots&&X>=(S-ie.hideYDots)/2&&X<(S+ie.hideYDots)/2&&le>=(S-ie.hideXDots)/2&&le<(S+ie.hideXDots)/2||((be=_[X])===null||be===void 0?void 0:be[le])||((ce=_[X-S+7])===null||ce===void 0?void 0:ce[le])||((de=_[X])===null||de===void 0?void 0:de[le-S+7])||((pe=x[X])===null||pe===void 0?void 0:pe[le])||((se=x[X-S+7])===null||se===void 0?void 0:se[le])||((ge=x[X])===null||ge===void 0?void 0:ge[le-S+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:ie.width,height:ie.height,count:S,dotSize:G})}drawBackground(){var $,S,J;const Q=this._element,G=this._options;if(Q){const ie=($=G.backgroundOptions)===null||$===void 0?void 0:$.gradient,X=(S=G.backgroundOptions)===null||S===void 0?void 0:S.color;let le=G.height,be=G.width;if(ie||X){const ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((J=G.backgroundOptions)===null||J===void 0)&&J.round&&(le=be=Math.min(G.width,G.height),ce.setAttribute("rx",String(le/2*G.backgroundOptions.round))),ce.setAttribute("x",String(this._roundSize((G.width-be)/2))),ce.setAttribute("y",String(this._roundSize((G.height-le)/2))),ce.setAttribute("width",String(be)),ce.setAttribute("height",String(le)),this._backgroundClipPath.appendChild(ce),this._createColor({options:ie,color:X,additionalRotation:0,x:0,y:0,height:G.height,width:G.width,name:`background-color-${this._instanceId}`})}}}drawDots($){var S,J;if(!this._qr)throw"QR code is not defined";const Q=this._options,G=this._qr.getModuleCount();if(G>Q.width||G>Q.height)throw"The canvas is too small.";const ie=Math.min(Q.width,Q.height)-2*Q.margin,X=Q.shape===g?ie/Math.sqrt(2):ie,le=this._roundSize(X/G),be=this._roundSize((Q.width-G*le)/2),ce=this._roundSize((Q.height-G*le)/2),de=new m({svg:this._element,type:Q.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(S=Q.dotsOptions)===null||S===void 0?void 0:S.gradient,color:Q.dotsOptions.color,additionalRotation:0,x:0,y:0,height:Q.height,width:Q.width,name:`dot-color-${this._instanceId}`});for(let pe=0;pe<G;pe++)for(let se=0;se<G;se++)$&&!$(pe,se)||!((J=this._qr)===null||J===void 0)&&J.isDark(pe,se)&&(de.draw(be+se*le,ce+pe*le,le,(ge,ye)=>!(se+ge<0||pe+ye<0||se+ge>=G||pe+ye>=G)&&!($&&!$(pe+ye,se+ge))&&!!this._qr&&this._qr.isDark(pe+ye,se+ge)),de._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(de._element));if(Q.shape===g){const pe=this._roundSize((ie/le-G)/2),se=G+2*pe,ge=be-pe*le,ye=ce-pe*le,D=[],W=this._roundSize(se/2);for(let Y=0;Y<se;Y++){D[Y]=[];for(let q=0;q<se;q++)Y>=pe-1&&Y<=se-pe&&q>=pe-1&&q<=se-pe||Math.sqrt((Y-W)*(Y-W)+(q-W)*(q-W))>W?D[Y][q]=0:D[Y][q]=this._qr.isDark(q-2*pe<0?q:q>=G?q-2*pe:q-pe,Y-2*pe<0?Y:Y>=G?Y-2*pe:Y-pe)?1:0}for(let Y=0;Y<se;Y++)for(let q=0;q<se;q++)D[Y][q]&&(de.draw(ge+q*le,ye+Y*le,le,(ee,oe)=>{var he;return!!(!((he=D[Y+oe])===null||he===void 0)&&he[q+ee])}),de._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(de._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const $=this._element,S=this._options;if(!$)throw"Element code is not defined";const J=this._qr.getModuleCount(),Q=Math.min(S.width,S.height)-2*S.margin,G=S.shape===g?Q/Math.sqrt(2):Q,ie=this._roundSize(G/J),X=7*ie,le=3*ie,be=this._roundSize((S.width-J*ie)/2),ce=this._roundSize((S.height-J*ie)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([de,pe,se])=>{var ge,ye,D,W,Y,q,ee,oe,he,Ae,Me,Le,fe,ke;const we=be+de*ie*(J-7),He=ce+pe*ie*(J-7);let et=this._dotsClipPath,_e=this._dotsClipPath;if((((ge=S.cornersSquareOptions)===null||ge===void 0?void 0:ge.gradient)||((ye=S.cornersSquareOptions)===null||ye===void 0?void 0:ye.color))&&(et=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),et.setAttribute("id",`clip-path-corners-square-color-${de}-${pe}-${this._instanceId}`),this._defs.appendChild(et),this._cornersSquareClipPath=this._cornersDotClipPath=_e=et,this._createColor({options:(D=S.cornersSquareOptions)===null||D===void 0?void 0:D.gradient,color:(W=S.cornersSquareOptions)===null||W===void 0?void 0:W.color,additionalRotation:se,x:we,y:He,height:X,width:X,name:`corners-square-color-${de}-${pe}-${this._instanceId}`})),((Y=S.cornersSquareOptions)===null||Y===void 0?void 0:Y.type)&&C.includes(S.cornersSquareOptions.type)){const Oe=new A({svg:this._element,type:S.cornersSquareOptions.type,window:this._window});Oe.draw(we,He,X,se),Oe._element&&et&&et.appendChild(Oe._element)}else{const Oe=new m({svg:this._element,type:((q=S.cornersSquareOptions)===null||q===void 0?void 0:q.type)||S.dotsOptions.type,window:this._window});for(let Ke=0;Ke<_.length;Ke++)for(let Re=0;Re<_[Ke].length;Re++)!((ee=_[Ke])===null||ee===void 0)&&ee[Re]&&(Oe.draw(we+Re*ie,He+Ke*ie,ie,(mt,Ze)=>{var De;return!!(!((De=_[Ke+Ze])===null||De===void 0)&&De[Re+mt])}),Oe._element&&et&&et.appendChild(Oe._element))}if((((oe=S.cornersDotOptions)===null||oe===void 0?void 0:oe.gradient)||((he=S.cornersDotOptions)===null||he===void 0?void 0:he.color))&&(_e=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),_e.setAttribute("id",`clip-path-corners-dot-color-${de}-${pe}-${this._instanceId}`),this._defs.appendChild(_e),this._cornersDotClipPath=_e,this._createColor({options:(Ae=S.cornersDotOptions)===null||Ae===void 0?void 0:Ae.gradient,color:(Me=S.cornersDotOptions)===null||Me===void 0?void 0:Me.color,additionalRotation:se,x:we+2*ie,y:He+2*ie,height:le,width:le,name:`corners-dot-color-${de}-${pe}-${this._instanceId}`})),((Le=S.cornersDotOptions)===null||Le===void 0?void 0:Le.type)&&E.includes(S.cornersDotOptions.type)){const Oe=new b({svg:this._element,type:S.cornersDotOptions.type,window:this._window});Oe.draw(we+2*ie,He+2*ie,le,se),Oe._element&&_e&&_e.appendChild(Oe._element)}else{const Oe=new m({svg:this._element,type:((fe=S.cornersDotOptions)===null||fe===void 0?void 0:fe.type)||S.dotsOptions.type,window:this._window});for(let Ke=0;Ke<x.length;Ke++)for(let Re=0;Re<x[Ke].length;Re++)!((ke=x[Ke])===null||ke===void 0)&&ke[Re]&&(Oe.draw(we+Re*ie,He+Ke*ie,ie,(mt,Ze)=>{var De;return!!(!((De=x[Ke+Ze])===null||De===void 0)&&De[Re+mt])}),Oe._element&&_e&&_e.appendChild(Oe._element))}})}loadImage(){return new Promise(($,S)=>{var J;const Q=this._options;if(!Q.image)return S("Image is not defined");if(!((J=Q.nodeCanvas)===null||J===void 0)&&J.loadImage)Q.nodeCanvas.loadImage(Q.image).then(G=>{var ie,X;if(this._image=G,this._options.imageOptions.saveAsBlob){const le=(ie=Q.nodeCanvas)===null||ie===void 0?void 0:ie.createCanvas(this._image.width,this._image.height);(X=le==null?void 0:le.getContext("2d"))===null||X===void 0||X.drawImage(G,0,0),this._imageUri=le==null?void 0:le.toDataURL()}$()}).catch(S);else{const G=new this._window.Image;typeof Q.imageOptions.crossOrigin=="string"&&(G.crossOrigin=Q.imageOptions.crossOrigin),this._image=G,G.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(ie,X){return new Promise(le=>{const be=new X.XMLHttpRequest;be.onload=function(){const ce=new X.FileReader;ce.onloadend=function(){le(ce.result)},ce.readAsDataURL(be.response)},be.open("GET",ie),be.responseType="blob",be.send()})}(Q.image||"",this._window)),$()},G.src=Q.image}})}async drawImage({width:$,height:S,count:J,dotSize:Q}){const G=this._options,ie=this._roundSize((G.width-J*Q)/2),X=this._roundSize((G.height-J*Q)/2),le=ie+this._roundSize(G.imageOptions.margin+(J*Q-$)/2),be=X+this._roundSize(G.imageOptions.margin+(J*Q-S)/2),ce=$-2*G.imageOptions.margin,de=S-2*G.imageOptions.margin,pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");pe.setAttribute("href",this._imageUri||""),pe.setAttribute("xlink:href",this._imageUri||""),pe.setAttribute("x",String(le)),pe.setAttribute("y",String(be)),pe.setAttribute("width",`${ce}px`),pe.setAttribute("height",`${de}px`),this._element.appendChild(pe)}_createColor({options:$,color:S,additionalRotation:J,x:Q,y:G,height:ie,width:X,name:le}){const be=X>ie?X:ie,ce=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(ce.setAttribute("x",String(Q)),ce.setAttribute("y",String(G)),ce.setAttribute("height",String(ie)),ce.setAttribute("width",String(X)),ce.setAttribute("clip-path",`url('#clip-path-${le}')`),$){let de;if($.type==="radial")de=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),de.setAttribute("id",le),de.setAttribute("gradientUnits","userSpaceOnUse"),de.setAttribute("fx",String(Q+X/2)),de.setAttribute("fy",String(G+ie/2)),de.setAttribute("cx",String(Q+X/2)),de.setAttribute("cy",String(G+ie/2)),de.setAttribute("r",String(be/2));else{const pe=(($.rotation||0)+J)%(2*Math.PI),se=(pe+2*Math.PI)%(2*Math.PI);let ge=Q+X/2,ye=G+ie/2,D=Q+X/2,W=G+ie/2;se>=0&&se<=.25*Math.PI||se>1.75*Math.PI&&se<=2*Math.PI?(ge-=X/2,ye-=ie/2*Math.tan(pe),D+=X/2,W+=ie/2*Math.tan(pe)):se>.25*Math.PI&&se<=.75*Math.PI?(ye-=ie/2,ge-=X/2/Math.tan(pe),W+=ie/2,D+=X/2/Math.tan(pe)):se>.75*Math.PI&&se<=1.25*Math.PI?(ge+=X/2,ye+=ie/2*Math.tan(pe),D-=X/2,W-=ie/2*Math.tan(pe)):se>1.25*Math.PI&&se<=1.75*Math.PI&&(ye+=ie/2,ge+=X/2/Math.tan(pe),W-=ie/2,D-=X/2/Math.tan(pe)),de=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),de.setAttribute("id",le),de.setAttribute("gradientUnits","userSpaceOnUse"),de.setAttribute("x1",String(Math.round(ge))),de.setAttribute("y1",String(Math.round(ye))),de.setAttribute("x2",String(Math.round(D))),de.setAttribute("y2",String(Math.round(W)))}$.colorStops.forEach(({offset:pe,color:se})=>{const ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ge.setAttribute("offset",100*pe+"%"),ge.setAttribute("stop-color",se),de.appendChild(ge)}),ce.setAttribute("fill",`url('#${le}')`),this._defs.appendChild(de)}else S&&ce.setAttribute("fill",S);this._element.appendChild(ce)}}k.instanceCount=0;const T=k,O="canvas",F={};for(let z=0;z<=40;z++)F[z]=z;const I={type:O,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:F[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function M(z){const $=Object.assign({},z);if(!$.colorStops||!$.colorStops.length)throw"Field 'colorStops' is required in gradient";return $.rotation?$.rotation=Number($.rotation):$.rotation=0,$.colorStops=$.colorStops.map(S=>Object.assign(Object.assign({},S),{offset:Number(S.offset)})),$}function N(z){const $=Object.assign({},z);return $.width=Number($.width),$.height=Number($.height),$.margin=Number($.margin),$.imageOptions=Object.assign(Object.assign({},$.imageOptions),{hideBackgroundDots:Boolean($.imageOptions.hideBackgroundDots),imageSize:Number($.imageOptions.imageSize),margin:Number($.imageOptions.margin)}),$.margin>Math.min($.width,$.height)&&($.margin=Math.min($.width,$.height)),$.dotsOptions=Object.assign({},$.dotsOptions),$.dotsOptions.gradient&&($.dotsOptions.gradient=M($.dotsOptions.gradient)),$.cornersSquareOptions&&($.cornersSquareOptions=Object.assign({},$.cornersSquareOptions),$.cornersSquareOptions.gradient&&($.cornersSquareOptions.gradient=M($.cornersSquareOptions.gradient))),$.cornersDotOptions&&($.cornersDotOptions=Object.assign({},$.cornersDotOptions),$.cornersDotOptions.gradient&&($.cornersDotOptions.gradient=M($.cornersDotOptions.gradient))),$.backgroundOptions&&($.backgroundOptions=Object.assign({},$.backgroundOptions),$.backgroundOptions.gradient&&($.backgroundOptions.gradient=M($.backgroundOptions.gradient))),$}var B=i(873),L=i.n(B);function U(z){if(!z)throw new Error("Extension must be defined");z[0]==="."&&(z=z.substring(1));const $={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[z.toLowerCase()];if(!$)throw new Error(`Extension "${z}" is not supported`);return $}class H{constructor($){$!=null&&$.jsdom?this._window=new $.jsdom("",{resources:"usable"}).window:this._window=window,this._options=$?N(c(I,$)):I,this.update()}static _clearContainer($){$&&($.innerHTML="")}_setupSvg(){if(!this._qr)return;const $=new T(this._options,this._window);this._svg=$.getElement(),this._svgDrawingPromise=$.drawQR(this._qr).then(()=>{var S;this._svg&&((S=this._extension)===null||S===void 0||S.call(this,$.getElement(),this._options))})}_setupCanvas(){var $,S;this._qr&&(!(($=this._options.nodeCanvas)===null||$===void 0)&&$.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(S=this._svgDrawingPromise)===null||S===void 0?void 0:S.then(()=>{var J;if(!this._svg)return;const Q=this._svg,G=new this._window.XMLSerializer().serializeToString(Q),ie=btoa(G),X=`data:${U("svg")};base64,${ie}`;if(!((J=this._options.nodeCanvas)===null||J===void 0)&&J.loadImage)return this._options.nodeCanvas.loadImage(X).then(le=>{var be,ce;le.width=this._options.width,le.height=this._options.height,(ce=(be=this._nodeCanvas)===null||be===void 0?void 0:be.getContext("2d"))===null||ce===void 0||ce.drawImage(le,0,0)});{const le=new this._window.Image;return new Promise(be=>{le.onload=()=>{var ce,de;(de=(ce=this._domCanvas)===null||ce===void 0?void 0:ce.getContext("2d"))===null||de===void 0||de.drawImage(le,0,0),be()},le.src=X})}}))}async _getElement($="png"){if(!this._qr)throw"QR code is empty";return $.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update($){H._clearContainer(this._container),this._options=$?N(c(this._options,$)):this._options,this._options.data&&(this._qr=L()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(S){switch(!0){case/^[0-9]*$/.test(S):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(S):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===O?this._setupCanvas():this._setupSvg(),this.append(this._container))}append($){if($){if(typeof $.appendChild!="function")throw"Container should be a single DOM node";this._options.type===O?this._domCanvas&&$.appendChild(this._domCanvas):this._svg&&$.appendChild(this._svg),this._container=$}}applyExtension($){if(!$)throw"Extension function should be defined.";this._extension=$,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData($="png"){if(!this._qr)throw"QR code is empty";const S=await this._getElement($),J=U($);if(!S)return null;if($.toLowerCase()==="svg"){const Q=`<?xml version="1.0" standalone="no"?>\r
|
||
${new this._window.XMLSerializer().serializeToString(S)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(Q):new Blob([Q],{type:J})}return new Promise(Q=>{const G=S;if("toBuffer"in G)if(J==="image/png")Q(G.toBuffer(J));else if(J==="image/jpeg")Q(G.toBuffer(J));else{if(J!=="application/pdf")throw Error("Unsupported extension");Q(G.toBuffer(J))}else"toBlob"in G&&G.toBlob(Q,J,1)})}async download($){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let S="png",J="qr";typeof $=="string"?(S=$,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof $=="object"&&$!==null&&($.name&&(J=$.name),$.extension&&(S=$.extension));const Q=await this._getElement(S);if(Q)if(S.toLowerCase()==="svg"){let G=new XMLSerializer().serializeToString(Q);G=`<?xml version="1.0" standalone="no"?>\r
|
||
`+G,u(`data:${U(S)};charset=utf-8,${encodeURIComponent(G)}`,`${J}.svg`)}else u(Q.toDataURL(U(S)),`${J}.${S}`)}}const R=H})(),l.default})())})(ag);const FT=x_(ag.exports),PT=n.defineComponent({name:"QrCodeBox",data(){return{qrcode:null}},props:{data:String,image:String,width:Number,height:Number,circleType:String,circleColor:String},methods:{},computed:{},components:{},watch:{$props:{handler(){const e={dotsOptions:{}};Object.keys(this.$props).forEach(t=>{this.$props[t]!=null&&this.$props[t]!==""&&(e[t]=this.$props[t])}),delete e.formCreateInject,e.circleType&&(e.dotsOptions.type=e.circleType),e.circleColor&&(e.dotsOptions.color=e.circleColor),delete e.circleColor,delete e.circleType,this.$nextTick(()=>{this.qrcode?this.qrcode.update(e):(this.qrcode=n.markRaw(new FT(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),MT={class:"_fc-qrcode",ref:"qr"};function LT(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",MT,null,512)}const lg=Te(PT,[["render",LT]]),sj="",dj="",sg={date:"YYYY-MM-DD",month:"YYYY-MM",datetime:"YYYY-MM-DD HH:mm:ss",timerange:"HH:mm:ss",daterange:"YYYY-MM-DD",monthrange:"YYYY-MM",datetimerange:"YYYY-MM-DD HH:mm:ss",year:"YYYY"};function jT(e){return e/20+"em"}function zT(e){var t;!((t=e.wrap)!=null&&t.class)||(e.wrap.class==="fc-wrap-top"?(e.wrap.labelAlign="top",delete e.wrap.class):e.wrap.class==="fc-wrap-left"?(e.wrap.labelAlign="left",delete e.wrap.class):e.wrap.class==="fc-wrap-right"&&(e.wrap.labelAlign="right",delete e.wrap.class))}const dg=function(e,t,r,o){const i=o||{};return t.forEach(l=>{e.indexOf(l[r||"id"])>-1&&e.splice(e.indexOf(l[r||"id"]),1,l[i.label||"label"]||l.text),dt.trueArray(l[i.children||"children"])&&dg(e,l[i.children||"children"],r,o)}),e},UT=function(e,t){return t.forEach(r=>{e.indexOf(r.value)>-1&&(e[e.indexOf(r.value)]=r.label||r.text)}),e};function ku(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function cg(e){Object.keys(jt).forEach(t=>{e.setFormula(t,jt[t])}),Sc(e),e.register("behavior",Dh),e.register("easySlots",Uo),e.extendApi(t=>({message(r){kb.showNotify({type:"warning",...r||{}})}})),e.setDriver("elm",{defaultPreview(t,r){let o=t.rule.value;const i=t.$render.vNode.h,l=t.type,d=t.$handle.subForm[t.id],c=t.prop.readMode;if(c===!1||c==="custom"||!t.input||t.rule.subForm||(Array.isArray(d)?d.length:d)||["fcGroup","fcSubForm","tableForm","stepForm","nestedTableForm","infiniteTableForm","upload","fcDialog","fcDrawer","fcPopup"].indexOf(t.trueType)>-1)return t.parser.render(r,t);if(["radio","select","checkbox"].indexOf(l)>-1)o=UT([...ku(o)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(l)>-1)o=Array.isArray(o)?o.join(" - "):o;else if(l==="cascader")o=[...ku(o)],Array.isArray(o[0])||(o=[o]),o=o.map(u=>dg(u,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(l==="fcEditor"||c==="html")return i("div",{innerHTML:o});if(l==="uploader"||c==="image")return o=ku(o),i("div",{class:"_fc-upload"},o.map(function(u){return i("div",{class:"_fc-upload-preview"},[i("van-image",{src:u,fit:"cover"})])}));if(l==="signaturePad"&&o)return i("van-image",{src:o,fit:"cover",style:{height:"90px"}});(typeof o=="boolean"||l==="switch")&&(o=o?"\u662F":"\u5426")}return i("span",{class:"_fc-read-view"},[""+(o==null?"":o)])},updateWrap(t){var o,i;let r=(i=(o=t.prop)==null?void 0:o.wrap)==null?void 0:i.style;t.prop.col&&t.prop.col.span&&(t.prop.col.span=24),r&&(r=Array.isArray(r)?r:[r],r.forEach(l=>{delete l.marginBottom})),zT(t.prop)},updateOptions(t){var r,o,i;((r=t.form)==null?void 0:r.labelWidth)&&t.form.labelWidth.indexOf("px")>-1&&(t.form.labelWidth=jT(parseInt(t.form.labelWidth))),(o=t.form)!=null&&o.labelPosition&&(t.form.labelAlign=t.form.labelPosition,delete t.form.labelPosition),(i=t.form)!=null&&i.hideRequiredAsterisk&&(t.form.colon=t.form.hideRequiredAsterisk,delete t.form.hideRequiredAsterisk)},parsers:{inputNumber:{mergeProp(t){t.prop.component="vanStepper";const r=t.prop.props;r.decimalLength=r.precision,r.integer=r.precision===0,delete r.precision}},radio:{mergeProp(t){t.prop.options&&(t.prop.props.options=t.prop.options)}},checkbox:{mergeProp(t){t.prop.options&&(t.prop.props.options=t.prop.options)}},select:{mergeProp(t){t.prop.props.multiple===!0?t.prop.component=P_:(t.prop.options&&(t.prop.props.options=t.prop.options),t.prop.props.options=(t.prop.props.options||[]).map(r=>({text:r.label,value:r.value})))}},rate:{mergeProp(t){t.prop.props.count=t.prop.props.max,delete t.prop.props.max}},timePicker:{mergeProp(t){t.prop.component="elTimePicker";const r=t.prop.props;r.valueFormat||(r.valueFormat="HH:mm:ss")}},datePicker:{mergeProp(t){t.prop.component="elDatePicker";const r=t.prop.props;r.valueFormat||(r.valueFormat=sg[r.type]||sg.date)}},colorPicker:{mergeProp(t){t.prop.component="elColorPicker"}},cascader:{mergeProp(t){t.prop.component="elCascader"}},elDivider:{mergeProp(t){t.prop.component="vanDivider"}},upload:{mergeProp(t){t.prop.component=Z_}},tree:{mergeProp(t){t.prop.component=j_}},row:{mergeProp(t){t.prop.component="vanRow"}},col:{mergeProp(t){t.prop.component="vanCol",t.prop.props.xs&&(t.prop.props={...t.prop.props,...t.prop.props.xs})}},fcDialog:{mergeProp(t){t.prop.component="FcPopup"}},fcDrawer:{mergeProp(t){t.prop.component="FcPopup"}}}})}cg(At.default),At.default.component("FcSlot",Wh),At.default.component("FcJson",Gh),At.default.component("StepForm",nE),At.default.component("FcPopup",sE),At.default.component("FcTable",Ph),At.default.component("FcCell",Uh),At.default.component("FcInlineForm",kc),At.default.component("TableForm",Mh),At.default.component("TableFormPro",Lh),At.default.component("NestedTableForm",zh),At.default.component("InfiniteTableForm",jh),At.default.component("DataTable",xc),At.default.component("FcValue",Hh),At.default.component("FcCity",TE),At.default.component("AudioBox",vm),At.default.component("VideoBox",og),At.default.component("BarCodeBox",rg),At.default.component("IframeBox",ym),At.default.component("QrCodeBox",lg),At.default.component("SignaturePad",HE),At.default.component("FcEcharts",Kh),At.default.component("FcTitle",Jh),At.default.component("FcDataSelect",gm),At.default.component("FcMarkdown",hm),At.default.component("FcId",Qh),At.default.loadjs=nn;const cj="",HT=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),WT={class:"_fd-step-form"};function GT(e,t,r,o,i,l){const d=n.resolveComponent("van-step"),c=n.resolveComponent("van-steps"),u=n.resolveComponent("van-button"),h=n.resolveComponent("van-col"),m=n.resolveComponent("van-row");return n.openBlock(),n.createElementBlock("div",WT,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.stepItemRef,(y,C)=>(n.openBlock(),n.createBlock(d,{key:y.id,onClick:n.withModifiers(A=>e.change(C),["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(y.title),1)]),_:2},1032,["onClick"]))),128))]),_:1},16,["active"]),n.renderSlot(e.$slots,"default"),n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(h,{span:24,style:{display:"flex","justify-content":"flex-end",padding:"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,block:"",size:"small",onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(u,{key:1,block:"",size:"small",type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const ug=Te(HT,[["render",GT]]),uj="",KT=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),YT={class:"_fd-step-form-item"};function QT(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",YT,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const fg=Te(KT,[["render",QT]]),fj="",JT=n.defineComponent({name:"FcPopup",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0}},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),XT={class:"_fd-popup-title"},ZT={class:"_fd-popup-content"},qT={class:"_fd-popup-footer"};function eD(e,t,r,o,i,l){const d=n.resolveComponent("van-button");return n.openBlock(),n.createElementBlock("div",{class:"van-popup van-popup--bottom _fd-popup",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[t[0]||(t[0]=n.createElementVNode("i",{class:"van-badge__wrapper van-icon van-icon-cross van-popup__close-icon van-popup__close-icon--top-right van-haptics-feedback"},null,-1)),n.createElementVNode("div",XT,n.toDisplayString(e.title),1),n.createElementVNode("div",ZT,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",qT,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{block:"",size:"small",type:"primary",class:"fc-clock"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1}),n.createVNode(d,{block:"",size:"small",class:"fc-clock",style:{"margin-top":"10px"}},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const Nu=Te(JT,[["render",eD]]),tD=At.default,Xr=At.default.factory();cg(Xr),Xr.setDriver("elm",{parsers:{stepForm:{mergeProp(e){e.prop.component=ug}},stepFormItem:{mergeProp(e){e.prop.component=fg}},fcDialog:{mergeProp(e){e.prop.component=Nu}},fcDrawer:{mergeProp(e){e.prop.component=Nu}}}}),Xr.component("MStepForm",ug),Xr.component("MStepFormItemView",fg),Xr.component("PopupView",Nu);let pg=null,Wl=n.ref(null);function Gl(...e){return pg(...e)}const hg=e=>{Wl.value=e||yp;const t=ld(Wl);return pg=t.t,t};hg();const pj="",hj="";var Tu={exports:{}},mg;function Zr(){return mg||(mg=1,function(e,t){(function(r,o){e.exports=o()})(Cc,function(){var r=navigator.userAgent,o=navigator.platform,i=/gecko\/\d/i.test(r),l=/MSIE \d/.test(r),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),c=/Edge\/(\d+)/.exec(r),u=l||d||c,h=u&&(l?document.documentMode||6:+(c||d)[1]),m=!c&&/WebKit\//.test(r),y=m&&/Qt\/\d+\.\d+/.test(r),C=!c&&/Chrome\/(\d+)/.exec(r),A=C&&+C[1],w=/Opera\//.test(r),E=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),g=/PhantomJS/.test(r),_=E&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),x=/Android/.test(r),k=_||x||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),T=_||/Mac/.test(o),O=/\bCrOS\b/.test(r),F=/win/i.test(o),I=w&&r.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(w=!1,m=!0);var M=T&&(y||w&&(I==null||I<12.11)),N=i||u&&h>=9;function B(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var L=function(a,s){var p=a.className,f=B(s).exec(p);if(f){var v=p.slice(f.index+f[0].length);a.className=p.slice(0,f.index)+(v?f[1]+v:"")}};function U(a){for(var s=a.childNodes.length;s>0;--s)a.removeChild(a.firstChild);return a}function H(a,s){return U(a).appendChild(s)}function R(a,s,p,f){var v=document.createElement(a);if(p&&(v.className=p),f&&(v.style.cssText=f),typeof s=="string")v.appendChild(document.createTextNode(s));else if(s)for(var V=0;V<s.length;++V)v.appendChild(s[V]);return v}function z(a,s,p,f){var v=R(a,s,p,f);return v.setAttribute("role","presentation"),v}var $;document.createRange?$=function(a,s,p,f){var v=document.createRange();return v.setEnd(f||a,p),v.setStart(a,s),v}:$=function(a,s,p){var f=document.body.createTextRange();try{f.moveToElementText(a.parentNode)}catch{return f}return f.collapse(!0),f.moveEnd("character",p),f.moveStart("character",s),f};function S(a,s){if(s.nodeType==3&&(s=s.parentNode),a.contains)return a.contains(s);do if(s.nodeType==11&&(s=s.host),s==a)return!0;while(s=s.parentNode)}function J(a){var s;try{s=a.activeElement}catch{s=a.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Q(a,s){var p=a.className;B(s).test(p)||(a.className+=(p?" ":"")+s)}function G(a,s){for(var p=a.split(" "),f=0;f<p.length;f++)p[f]&&!B(p[f]).test(s)&&(s+=" "+p[f]);return s}var ie=function(a){a.select()};_?ie=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:u&&(ie=function(a){try{a.select()}catch{}});function X(a){return a.display.wrapper.ownerDocument}function le(a){return X(a).defaultView}function be(a){var s=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,s)}}function ce(a,s,p){s||(s={});for(var f in a)a.hasOwnProperty(f)&&(p!==!1||!s.hasOwnProperty(f))&&(s[f]=a[f]);return s}function de(a,s,p,f,v){s==null&&(s=a.search(/[^\s\u00a0]/),s==-1&&(s=a.length));for(var V=f||0,P=v||0;;){var j=a.indexOf(" ",V);if(j<0||j>=s)return P+(s-V);P+=j-V,P+=p-P%p,V=j+1}}var pe=function(){this.id=null,this.f=null,this.time=0,this.handler=be(this.onTimeout,this)};pe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},pe.prototype.set=function(a,s){this.f=s;var p=+new Date+a;(!this.id||p<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=p)};function se(a,s){for(var p=0;p<a.length;++p)if(a[p]==s)return p;return-1}var ge=50,ye={toString:function(){return"CodeMirror.Pass"}},D={scroll:!1},W={origin:"*mouse"},Y={origin:"+move"};function q(a,s,p){for(var f=0,v=0;;){var V=a.indexOf(" ",f);V==-1&&(V=a.length);var P=V-f;if(V==a.length||v+P>=s)return f+Math.min(P,s-v);if(v+=V-f,v+=p-v%p,f=V+1,v>=s)return f}}var ee=[""];function oe(a){for(;ee.length<=a;)ee.push(he(ee)+" ");return ee[a]}function he(a){return a[a.length-1]}function Ae(a,s){for(var p=[],f=0;f<a.length;f++)p[f]=s(a[f],f);return p}function Me(a,s,p){for(var f=0,v=p(s);f<a.length&&p(a[f])<=v;)f++;a.splice(f,0,s)}function Le(){}function fe(a,s){var p;return Object.create?p=Object.create(a):(Le.prototype=a,p=new Le),s&&ce(s,p),p}var ke=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function we(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ke.test(a))}function He(a,s){return s?s.source.indexOf("\\w")>-1&&we(a)?!0:s.test(a):we(a)}function et(a){for(var s in a)if(a.hasOwnProperty(s)&&a[s])return!1;return!0}var _e=/[\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 Oe(a){return a.charCodeAt(0)>=768&&_e.test(a)}function Ke(a,s,p){for(;(p<0?s>0:s<a.length)&&Oe(a.charAt(s));)s+=p;return s}function Re(a,s,p){for(var f=s>p?-1:1;;){if(s==p)return s;var v=(s+p)/2,V=f<0?Math.ceil(v):Math.floor(v);if(V==s)return a(V)?s:p;a(V)?p=V:s=V+f}}function mt(a,s,p,f){if(!a)return f(s,p,"ltr",0);for(var v=!1,V=0;V<a.length;++V){var P=a[V];(P.from<p&&P.to>s||s==p&&P.to==s)&&(f(Math.max(P.from,s),Math.min(P.to,p),P.level==1?"rtl":"ltr",V),v=!0)}v||f(s,p,"ltr")}var Ze=null;function De(a,s,p){var f;Ze=null;for(var v=0;v<a.length;++v){var V=a[v];if(V.from<s&&V.to>s)return v;V.to==s&&(V.from!=V.to&&p=="before"?f=v:Ze=v),V.from==s&&(V.from!=V.to&&p!="before"?f=v:Ze=v)}return f!=null?f:Ze}var Pe=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function p(Z){return Z<=247?a.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?s.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var f=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,V=/[LRr]/,P=/[Lb1n]/,j=/[1n]/;function K(Z,ne,re){this.level=Z,this.from=ne,this.to=re}return function(Z,ne){var re=ne=="ltr"?"L":"R";if(Z.length==0||ne=="ltr"&&!f.test(Z))return!1;for(var ve=Z.length,me=[],Se=0;Se<ve;++Se)me.push(p(Z.charCodeAt(Se)));for(var Ne=0,Ve=re;Ne<ve;++Ne){var Ie=me[Ne];Ie=="m"?me[Ne]=Ve:Ve=Ie}for(var Ue=0,Fe=re;Ue<ve;++Ue){var Ge=me[Ue];Ge=="1"&&Fe=="r"?me[Ue]="n":V.test(Ge)&&(Fe=Ge,Ge=="r"&&(me[Ue]="R"))}for(var nt=1,qe=me[0];nt<ve-1;++nt){var pt=me[nt];pt=="+"&&qe=="1"&&me[nt+1]=="1"?me[nt]="1":pt==","&&qe==me[nt+1]&&(qe=="1"||qe=="n")&&(me[nt]=qe),qe=pt}for(var Nt=0;Nt<ve;++Nt){var en=me[Nt];if(en==",")me[Nt]="N";else if(en=="%"){var $t=void 0;for($t=Nt+1;$t<ve&&me[$t]=="%";++$t);for(var Vn=Nt&&me[Nt-1]=="!"||$t<ve&&me[$t]=="1"?"1":"N",wn=Nt;wn<$t;++wn)me[wn]=Vn;Nt=$t-1}}for(var Ut=0,Cn=re;Ut<ve;++Ut){var rn=me[Ut];Cn=="L"&&rn=="1"?me[Ut]="L":V.test(rn)&&(Cn=rn)}for(var Yt=0;Yt<ve;++Yt)if(v.test(me[Yt])){var Ht=void 0;for(Ht=Yt+1;Ht<ve&&v.test(me[Ht]);++Ht);for(var Pt=(Yt?me[Yt-1]:re)=="L",_n=(Ht<ve?me[Ht]:re)=="L",To=Pt==_n?Pt?"L":"R":re,or=Yt;or<Ht;++or)me[or]=To;Yt=Ht-1}for(var sn=[],_i,tn=0;tn<ve;)if(P.test(me[tn])){var pp=tn;for(++tn;tn<ve&&P.test(me[tn]);++tn);sn.push(new K(0,pp,tn))}else{var Fi=tn,kr=sn.length,Nr=ne=="rtl"?1:0;for(++tn;tn<ve&&me[tn]!="L";++tn);for(var pn=Fi;pn<tn;)if(j.test(me[pn])){Fi<pn&&(sn.splice(kr,0,new K(1,Fi,pn)),kr+=Nr);var Do=pn;for(++pn;pn<tn&&j.test(me[pn]);++pn);sn.splice(kr,0,new K(2,Do,pn)),kr+=Nr,Fi=pn}else++pn;Fi<tn&&sn.splice(kr,0,new K(1,Fi,tn))}return ne=="ltr"&&(sn[0].level==1&&(_i=Z.match(/^\s+/))&&(sn[0].from=_i[0].length,sn.unshift(new K(0,0,_i[0].length))),he(sn).level==1&&(_i=Z.match(/\s+$/))&&(he(sn).to-=_i[0].length,sn.push(new K(0,ve-_i[0].length,ve)))),ne=="rtl"?sn.reverse():sn}}();function tt(a,s){var p=a.order;return p==null&&(p=a.order=Pe(a.text,s)),p}var $e=[],Ce=function(a,s,p){if(a.addEventListener)a.addEventListener(s,p,!1);else if(a.attachEvent)a.attachEvent("on"+s,p);else{var f=a._handlers||(a._handlers={});f[s]=(f[s]||$e).concat(p)}};function Xe(a,s){return a._handlers&&a._handlers[s]||$e}function Ye(a,s,p){if(a.removeEventListener)a.removeEventListener(s,p,!1);else if(a.detachEvent)a.detachEvent("on"+s,p);else{var f=a._handlers,v=f&&f[s];if(v){var V=se(v,p);V>-1&&(f[s]=v.slice(0,V).concat(v.slice(V+1)))}}}function Qe(a,s){var p=Xe(a,s);if(!!p.length)for(var f=Array.prototype.slice.call(arguments,2),v=0;v<p.length;++v)p[v].apply(null,f)}function ct(a,s,p){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),Qe(a,p||s.type,a,s),Gi(s)||s.codemirrorIgnore}function gn(a){var s=a._handlers&&a._handlers.cursorActivity;if(!!s)for(var p=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),f=0;f<s.length;++f)se(p,s[f])==-1&&p.push(s[f])}function Rt(a,s){return Xe(a,s).length>0}function Tt(a){a.prototype.on=function(s,p){Ce(this,s,p)},a.prototype.off=function(s,p){Ye(this,s,p)}}function bt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Gn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Gi(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function ei(a){bt(a),Gn(a)}function vn(a){return a.target||a.srcElement}function pa(a){var s=a.which;return s==null&&(a.button&1?s=1:a.button&2?s=3:a.button&4&&(s=2)),T&&a.ctrlKey&&s==1&&(s=3),s}var Cf=function(){if(u&&h<9)return!1;var a=R("div");return"draggable"in a||"dragDrop"in a}(),Kn;function _f(a){if(Kn==null){var s=R("span","\u200B");H(a,R("span",[s,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Kn=s.offsetWidth<=1&&s.offsetHeight>2&&!(u&&h<8))}var p=Kn?R("span","\u200B"):R("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return p.setAttribute("cm-text",""),p}var so;function Cs(a){if(so!=null)return so;var s=H(a,document.createTextNode("A\u062EA")),p=$(s,0,1).getBoundingClientRect(),f=$(s,1,2).getBoundingClientRect();return U(a),!p||p.left==p.right?!1:so=f.right-p.right<3}var ha=`
|
||
|
||
b`.split(/\n/).length!=3?function(a){for(var s=0,p=[],f=a.length;s<=f;){var v=a.indexOf(`
|
||
`,s);v==-1&&(v=a.length);var V=a.slice(s,a.charAt(v-1)=="\r"?v-1:v),P=V.indexOf("\r");P!=-1?(p.push(V.slice(0,P)),s+=P+1):(p.push(V),s=v+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Ki=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var s;try{s=a.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=a?!1:s.compareEndPoints("StartToEnd",s)!=0},gi=function(){var a=R("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),vi=null;function _s(a){if(vi!=null)return vi;var s=H(a,R("span","x")),p=s.getBoundingClientRect(),f=$(s,0,1).getBoundingClientRect();return vi=Math.abs(p.left-f.left)>1}var ti={},Yi={};function Es(a,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),ti[a]=s}function co(a,s){Yi[a]=s}function Tn(a){if(typeof a=="string"&&Yi.hasOwnProperty(a))a=Yi[a];else if(a&&typeof a.name=="string"&&Yi.hasOwnProperty(a.name)){var s=Yi[a.name];typeof s=="string"&&(s={name:s}),a=fe(s,a),a.name=s.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Tn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Tn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Ti(a,s){s=Tn(s);var p=ti[s.name];if(!p)return Ti(a,"text/plain");var f=p(a,s);if(Qi.hasOwnProperty(s.name)){var v=Qi[s.name];for(var V in v)!v.hasOwnProperty(V)||(f.hasOwnProperty(V)&&(f["_"+V]=f[V]),f[V]=v[V])}if(f.name=s.name,s.helperType&&(f.helperType=s.helperType),s.modeProps)for(var P in s.modeProps)f[P]=s.modeProps[P];return f}var Qi={};function Ss(a,s){var p=Qi.hasOwnProperty(a)?Qi[a]:Qi[a]={};ce(s,p)}function Di(a,s){if(s===!0)return s;if(a.copyState)return a.copyState(s);var p={};for(var f in s){var v=s[f];v instanceof Array&&(v=v.concat([])),p[f]=v}return p}function Ji(a,s){for(var p;a.innerMode&&(p=a.innerMode(s),!(!p||p.mode==a));)s=p.state,a=p.mode;return p||{mode:a,state:s}}function ma(a,s,p){return a.startState?a.startState(s,p):!0}var Ft=function(a,s,p){this.pos=this.start=0,this.string=a,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(a){var s=this.string.charAt(this.pos),p;if(typeof a=="string"?p=s==a:p=s&&(a.test?a.test(s):a(s)),p)return++this.pos,s},Ft.prototype.eatWhile=function(a){for(var s=this.pos;this.eat(a););return this.pos>s},Ft.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(a){var s=this.string.indexOf(a,this.pos);if(s>-1)return this.pos=s,!0},Ft.prototype.backUp=function(a){this.pos-=a},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(a,s,p){if(typeof a=="string"){var f=function(P){return p?P.toLowerCase():P},v=this.string.substr(this.pos,a.length);if(f(v)==f(a))return s!==!1&&(this.pos+=a.length),!0}else{var V=this.string.slice(this.pos).match(a);return V&&V.index>0?null:(V&&s!==!1&&(this.pos+=V[0].length),V)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(a,s){this.lineStart+=a;try{return s()}finally{this.lineStart-=a}},Ft.prototype.lookAhead=function(a){var s=this.lineOracle;return s&&s.lookAhead(a)},Ft.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Je(a,s){if(s-=a.first,s<0||s>=a.size)throw new Error("There is no line "+(s+a.first)+" in the document.");for(var p=a;!p.lines;)for(var f=0;;++f){var v=p.children[f],V=v.chunkSize();if(s<V){p=v;break}s-=V}return p.lines[s]}function Vi(a,s,p){var f=[],v=s.line;return a.iter(s.line,p.line+1,function(V){var P=V.text;v==p.line&&(P=P.slice(0,p.ch)),v==s.line&&(P=P.slice(s.ch)),f.push(P),++v}),f}function uo(a,s,p){var f=[];return a.iter(s,p,function(v){f.push(v.text)}),f}function Yn(a,s){var p=s-a.height;if(p)for(var f=a;f;f=f.parent)f.height+=p}function wt(a){if(a.parent==null)return null;for(var s=a.parent,p=se(s.lines,a),f=s.parent;f;s=f,f=f.parent)for(var v=0;f.children[v]!=s;++v)p+=f.children[v].chunkSize();return p+s.first}function yi(a,s){var p=a.first;e:do{for(var f=0;f<a.children.length;++f){var v=a.children[f],V=v.height;if(s<V){a=v;continue e}s-=V,p+=v.chunkSize()}return p}while(!a.lines);for(var P=0;P<a.lines.length;++P){var j=a.lines[P],K=j.height;if(s<K)break;s-=K}return p+P}function te(a,s){return s>=a.first&&s<a.first+a.size}function ae(a,s){return String(a.lineNumberFormatter(s+a.firstLineNumber))}function ue(a,s,p){if(p===void 0&&(p=null),!(this instanceof ue))return new ue(a,s,p);this.line=a,this.ch=s,this.sticky=p}function Ee(a,s){return a.line-s.line||a.ch-s.ch}function ot(a,s){return a.sticky==s.sticky&&Ee(a,s)==0}function ht(a){return ue(a.line,a.ch)}function yt(a,s){return Ee(a,s)<0?s:a}function Kt(a,s){return Ee(a,s)<0?a:s}function Pn(a,s){return Math.max(a.first,Math.min(s,a.first+a.size-1))}function at(a,s){if(s.line<a.first)return ue(a.first,0);var p=a.first+a.size-1;return s.line>p?ue(p,Je(a,p).text.length):j8(s,Je(a,s.line).text.length)}function j8(a,s){var p=a.ch;return p==null||p>s?ue(a.line,s):p<0?ue(a.line,0):a}function xy(a,s){for(var p=[],f=0;f<s.length;f++)p[f]=at(a,s[f]);return p}var As=function(a,s){this.state=a,this.lookAhead=s},bi=function(a,s,p,f){this.state=s,this.doc=a,this.line=p,this.maxLookAhead=f||0,this.baseTokens=null,this.baseTokenPos=1};bi.prototype.lookAhead=function(a){var s=this.doc.getLine(this.line+a);return s!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),s},bi.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},bi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bi.fromSaved=function(a,s,p){return s instanceof As?new bi(a,Di(a.mode,s.state),p,s.lookAhead):new bi(a,Di(a.mode,s),p)},bi.prototype.save=function(a){var s=a!==!1?Di(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new As(s,this.maxLookAhead):s};function ky(a,s,p,f){var v=[a.state.modeGen],V={};By(a,s.text,a.doc.mode,p,function(Z,ne){return v.push(Z,ne)},V,f);for(var P=p.state,j=function(Z){p.baseTokens=v;var ne=a.state.overlays[Z],re=1,ve=0;p.state=!0,By(a,s.text,ne.mode,p,function(me,Se){for(var Ne=re;ve<me;){var Ve=v[re];Ve>me&&v.splice(re,1,me,v[re+1],Ve),re+=2,ve=Math.min(me,Ve)}if(!!Se)if(ne.opaque)v.splice(Ne,re-Ne,me,"overlay "+Se),re=Ne+2;else for(;Ne<re;Ne+=2){var Ie=v[Ne+1];v[Ne+1]=(Ie?Ie+" ":"")+"overlay "+Se}},V),p.state=P,p.baseTokens=null,p.baseTokenPos=1},K=0;K<a.state.overlays.length;++K)j(K);return{styles:v,classes:V.bgClass||V.textClass?V:null}}function Ny(a,s,p){if(!s.styles||s.styles[0]!=a.state.modeGen){var f=ga(a,wt(s)),v=s.text.length>a.options.maxHighlightLength&&Di(a.doc.mode,f.state),V=ky(a,s,f);v&&(f.state=v),s.stateAfter=f.save(!v),s.styles=V.styles,V.classes?s.styleClasses=V.classes:s.styleClasses&&(s.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return s.styles}function ga(a,s,p){var f=a.doc,v=a.display;if(!f.mode.startState)return new bi(f,!0,s);var V=z8(a,s,p),P=V>f.first&&Je(f,V-1).stateAfter,j=P?bi.fromSaved(f,P,V):new bi(f,ma(f.mode),V);return f.iter(V,s,function(K){Ef(a,K.text,j);var Z=j.line;K.stateAfter=Z==s-1||Z%5==0||Z>=v.viewFrom&&Z<v.viewTo?j.save():null,j.nextLine()}),p&&(f.modeFrontier=j.line),j}function Ef(a,s,p,f){var v=a.doc.mode,V=new Ft(s,a.options.tabSize,p);for(V.start=V.pos=f||0,s==""&&Ty(v,p.state);!V.eol();)Sf(v,V,p.state),V.start=V.pos}function Ty(a,s){if(a.blankLine)return a.blankLine(s);if(!!a.innerMode){var p=Ji(a,s);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}function Sf(a,s,p,f){for(var v=0;v<10;v++){f&&(f[0]=Ji(a,p).mode);var V=a.token(s,p);if(s.pos>s.start)return V}throw new Error("Mode "+a.name+" failed to advance stream.")}var Dy=function(a,s,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=s||null,this.state=p};function Vy(a,s,p,f){var v=a.doc,V=v.mode,P;s=at(v,s);var j=Je(v,s.line),K=ga(a,s.line,p),Z=new Ft(j.text,a.options.tabSize,K),ne;for(f&&(ne=[]);(f||Z.pos<s.ch)&&!Z.eol();)Z.start=Z.pos,P=Sf(V,Z,K.state),f&&ne.push(new Dy(Z,P,Di(v.mode,K.state)));return f?ne:new Dy(Z,P,K.state)}function Oy(a,s){if(a)for(;;){var p=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!p)break;a=a.slice(0,p.index)+a.slice(p.index+p[0].length);var f=p[1]?"bgClass":"textClass";s[f]==null?s[f]=p[2]:new RegExp("(?:^|\\s)"+p[2]+"(?:$|\\s)").test(s[f])||(s[f]+=" "+p[2])}return a}function By(a,s,p,f,v,V,P){var j=p.flattenSpans;j==null&&(j=a.options.flattenSpans);var K=0,Z=null,ne=new Ft(s,a.options.tabSize,f),re,ve=a.options.addModeClass&&[null];for(s==""&&Oy(Ty(p,f.state),V);!ne.eol();){if(ne.pos>a.options.maxHighlightLength?(j=!1,P&&Ef(a,s,f,ne.pos),ne.pos=s.length,re=null):re=Oy(Sf(p,ne,f.state,ve),V),ve){var me=ve[0].name;me&&(re="m-"+(re?me+" "+re:me))}if(!j||Z!=re){for(;K<ne.start;)K=Math.min(ne.start,K+5e3),v(K,Z);Z=re}ne.start=ne.pos}for(;K<ne.pos;){var Se=Math.min(ne.pos,K+5e3);v(Se,Z),K=Se}}function z8(a,s,p){for(var f,v,V=a.doc,P=p?-1:s-(a.doc.mode.innerMode?1e3:100),j=s;j>P;--j){if(j<=V.first)return V.first;var K=Je(V,j-1),Z=K.stateAfter;if(Z&&(!p||j+(Z instanceof As?Z.lookAhead:0)<=V.modeFrontier))return j;var ne=de(K.text,null,a.options.tabSize);(v==null||f>ne)&&(v=j-1,f=ne)}return v}function U8(a,s){if(a.modeFrontier=Math.min(a.modeFrontier,s),!(a.highlightFrontier<s-10)){for(var p=a.first,f=s-1;f>p;f--){var v=Je(a,f).stateAfter;if(v&&(!(v instanceof As)||f+v.lookAhead<s)){p=f+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}var Ry=!1,Oi=!1;function H8(){Ry=!0}function W8(){Oi=!0}function xs(a,s,p){this.marker=a,this.from=s,this.to=p}function va(a,s){if(a)for(var p=0;p<a.length;++p){var f=a[p];if(f.marker==s)return f}}function G8(a,s){for(var p,f=0;f<a.length;++f)a[f]!=s&&(p||(p=[])).push(a[f]);return p}function K8(a,s,p){var f=p&&window.WeakSet&&(p.markedSpans||(p.markedSpans=new WeakSet));f&&a.markedSpans&&f.has(a.markedSpans)?a.markedSpans.push(s):(a.markedSpans=a.markedSpans?a.markedSpans.concat([s]):[s],f&&f.add(a.markedSpans)),s.marker.attachLine(a)}function Y8(a,s,p){var f;if(a)for(var v=0;v<a.length;++v){var V=a[v],P=V.marker,j=V.from==null||(P.inclusiveLeft?V.from<=s:V.from<s);if(j||V.from==s&&P.type=="bookmark"&&(!p||!V.marker.insertLeft)){var K=V.to==null||(P.inclusiveRight?V.to>=s:V.to>s);(f||(f=[])).push(new xs(P,V.from,K?null:V.to))}}return f}function Q8(a,s,p){var f;if(a)for(var v=0;v<a.length;++v){var V=a[v],P=V.marker,j=V.to==null||(P.inclusiveRight?V.to>=s:V.to>s);if(j||V.from==s&&P.type=="bookmark"&&(!p||V.marker.insertLeft)){var K=V.from==null||(P.inclusiveLeft?V.from<=s:V.from<s);(f||(f=[])).push(new xs(P,K?null:V.from-s,V.to==null?null:V.to-s))}}return f}function Af(a,s){if(s.full)return null;var p=te(a,s.from.line)&&Je(a,s.from.line).markedSpans,f=te(a,s.to.line)&&Je(a,s.to.line).markedSpans;if(!p&&!f)return null;var v=s.from.ch,V=s.to.ch,P=Ee(s.from,s.to)==0,j=Y8(p,v,P),K=Q8(f,V,P),Z=s.text.length==1,ne=he(s.text).length+(Z?v:0);if(j)for(var re=0;re<j.length;++re){var ve=j[re];if(ve.to==null){var me=va(K,ve.marker);me?Z&&(ve.to=me.to==null?null:me.to+ne):ve.to=v}}if(K)for(var Se=0;Se<K.length;++Se){var Ne=K[Se];if(Ne.to!=null&&(Ne.to+=ne),Ne.from==null){var Ve=va(j,Ne.marker);Ve||(Ne.from=ne,Z&&(j||(j=[])).push(Ne))}else Ne.from+=ne,Z&&(j||(j=[])).push(Ne)}j&&(j=$y(j)),K&&K!=j&&(K=$y(K));var Ie=[j];if(!Z){var Ue=s.text.length-2,Fe;if(Ue>0&&j)for(var Ge=0;Ge<j.length;++Ge)j[Ge].to==null&&(Fe||(Fe=[])).push(new xs(j[Ge].marker,null,null));for(var nt=0;nt<Ue;++nt)Ie.push(Fe);Ie.push(K)}return Ie}function $y(a){for(var s=0;s<a.length;++s){var p=a[s];p.from!=null&&p.from==p.to&&p.marker.clearWhenEmpty!==!1&&a.splice(s--,1)}return a.length?a:null}function J8(a,s,p){var f=null;if(a.iter(s.line,p.line+1,function(me){if(me.markedSpans)for(var Se=0;Se<me.markedSpans.length;++Se){var Ne=me.markedSpans[Se].marker;Ne.readOnly&&(!f||se(f,Ne)==-1)&&(f||(f=[])).push(Ne)}}),!f)return null;for(var v=[{from:s,to:p}],V=0;V<f.length;++V)for(var P=f[V],j=P.find(0),K=0;K<v.length;++K){var Z=v[K];if(!(Ee(Z.to,j.from)<0||Ee(Z.from,j.to)>0)){var ne=[K,1],re=Ee(Z.from,j.from),ve=Ee(Z.to,j.to);(re<0||!P.inclusiveLeft&&!re)&&ne.push({from:Z.from,to:j.from}),(ve>0||!P.inclusiveRight&&!ve)&&ne.push({from:j.to,to:Z.to}),v.splice.apply(v,ne),K+=ne.length-3}}return v}function Iy(a){var s=a.markedSpans;if(!!s){for(var p=0;p<s.length;++p)s[p].marker.detachLine(a);a.markedSpans=null}}function Fy(a,s){if(!!s){for(var p=0;p<s.length;++p)s[p].marker.attachLine(a);a.markedSpans=s}}function ks(a){return a.inclusiveLeft?-1:0}function Ns(a){return a.inclusiveRight?1:0}function xf(a,s){var p=a.lines.length-s.lines.length;if(p!=0)return p;var f=a.find(),v=s.find(),V=Ee(f.from,v.from)||ks(a)-ks(s);if(V)return-V;var P=Ee(f.to,v.to)||Ns(a)-Ns(s);return P||s.id-a.id}function Py(a,s){var p=Oi&&a.markedSpans,f;if(p)for(var v=void 0,V=0;V<p.length;++V)v=p[V],v.marker.collapsed&&(s?v.from:v.to)==null&&(!f||xf(f,v.marker)<0)&&(f=v.marker);return f}function My(a){return Py(a,!0)}function Ts(a){return Py(a,!1)}function X8(a,s){var p=Oi&&a.markedSpans,f;if(p)for(var v=0;v<p.length;++v){var V=p[v];V.marker.collapsed&&(V.from==null||V.from<s)&&(V.to==null||V.to>s)&&(!f||xf(f,V.marker)<0)&&(f=V.marker)}return f}function Ly(a,s,p,f,v){var V=Je(a,s),P=Oi&&V.markedSpans;if(P)for(var j=0;j<P.length;++j){var K=P[j];if(!!K.marker.collapsed){var Z=K.marker.find(0),ne=Ee(Z.from,p)||ks(K.marker)-ks(v),re=Ee(Z.to,f)||Ns(K.marker)-Ns(v);if(!(ne>=0&&re<=0||ne<=0&&re>=0)&&(ne<=0&&(K.marker.inclusiveRight&&v.inclusiveLeft?Ee(Z.to,p)>=0:Ee(Z.to,p)>0)||ne>=0&&(K.marker.inclusiveRight&&v.inclusiveLeft?Ee(Z.from,f)<=0:Ee(Z.from,f)<0)))return!0}}}function ni(a){for(var s;s=My(a);)a=s.find(-1,!0).line;return a}function Z8(a){for(var s;s=Ts(a);)a=s.find(1,!0).line;return a}function q8(a){for(var s,p;s=Ts(a);)a=s.find(1,!0).line,(p||(p=[])).push(a);return p}function kf(a,s){var p=Je(a,s),f=ni(p);return p==f?s:wt(f)}function jy(a,s){if(s>a.lastLine())return s;var p=Je(a,s),f;if(!Xi(a,p))return s;for(;f=Ts(p);)p=f.find(1,!0).line;return wt(p)+1}function Xi(a,s){var p=Oi&&s.markedSpans;if(p){for(var f=void 0,v=0;v<p.length;++v)if(f=p[v],!!f.marker.collapsed){if(f.from==null)return!0;if(!f.marker.widgetNode&&f.from==0&&f.marker.inclusiveLeft&&Nf(a,s,f))return!0}}}function Nf(a,s,p){if(p.to==null){var f=p.marker.find(1,!0);return Nf(a,f.line,va(f.line.markedSpans,p.marker))}if(p.marker.inclusiveRight&&p.to==s.text.length)return!0;for(var v=void 0,V=0;V<s.markedSpans.length;++V)if(v=s.markedSpans[V],v.marker.collapsed&&!v.marker.widgetNode&&v.from==p.to&&(v.to==null||v.to!=p.from)&&(v.marker.inclusiveLeft||p.marker.inclusiveRight)&&Nf(a,s,v))return!0}function Bi(a){a=ni(a);for(var s=0,p=a.parent,f=0;f<p.lines.length;++f){var v=p.lines[f];if(v==a)break;s+=v.height}for(var V=p.parent;V;p=V,V=p.parent)for(var P=0;P<V.children.length;++P){var j=V.children[P];if(j==p)break;s+=j.height}return s}function Ds(a){if(a.height==0)return 0;for(var s=a.text.length,p,f=a;p=My(f);){var v=p.find(0,!0);f=v.from.line,s+=v.from.ch-v.to.ch}for(f=a;p=Ts(f);){var V=p.find(0,!0);s-=f.text.length-V.from.ch,f=V.to.line,s+=f.text.length-V.to.ch}return s}function Tf(a){var s=a.display,p=a.doc;s.maxLine=Je(p,p.first),s.maxLineLength=Ds(s.maxLine),s.maxLineChanged=!0,p.iter(function(f){var v=Ds(f);v>s.maxLineLength&&(s.maxLineLength=v,s.maxLine=f)})}var fo=function(a,s,p){this.text=a,Fy(this,s),this.height=p?p(this):1};fo.prototype.lineNo=function(){return wt(this)},Tt(fo);function e4(a,s,p,f){a.text=s,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Iy(a),Fy(a,p);var v=f?f(a):1;v!=a.height&&Yn(a,v)}function t4(a){a.parent=null,Iy(a)}var n4={},i4={};function zy(a,s){if(!a||/^\s*$/.test(a))return null;var p=s.addModeClass?i4:n4;return p[a]||(p[a]=a.replace(/\S+/g,"cm-$&"))}function Uy(a,s){var p=z("span",null,null,m?"padding-right: .1px":null),f={pre:z("pre",[p],"CodeMirror-line"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};s.measure={};for(var v=0;v<=(s.rest?s.rest.length:0);v++){var V=v?s.rest[v-1]:s.line,P=void 0;f.pos=0,f.addToken=o4,Cs(a.display.measure)&&(P=tt(V,a.doc.direction))&&(f.addToken=l4(f.addToken,P)),f.map=[];var j=s!=a.display.externalMeasured&&wt(V);s4(V,f,Ny(a,V,j)),V.styleClasses&&(V.styleClasses.bgClass&&(f.bgClass=G(V.styleClasses.bgClass,f.bgClass||"")),V.styleClasses.textClass&&(f.textClass=G(V.styleClasses.textClass,f.textClass||""))),f.map.length==0&&f.map.push(0,0,f.content.appendChild(_f(a.display.measure))),v==0?(s.measure.map=f.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(f.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(m){var K=f.content.lastChild;(/\bcm-tab\b/.test(K.className)||K.querySelector&&K.querySelector(".cm-tab"))&&(f.content.className="cm-tab-wrap-hack")}return Qe(a,"renderLine",a,s.line,f.pre),f.pre.className&&(f.textClass=G(f.pre.className,f.textClass||"")),f}function r4(a){var s=R("span","\u2022","cm-invalidchar");return s.title="\\u"+a.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function o4(a,s,p,f,v,V,P){if(!!s){var j=a.splitSpaces?a4(s,a.trailingSpace):s,K=a.cm.state.specialChars,Z=!1,ne;if(!K.test(s))a.col+=s.length,ne=document.createTextNode(j),a.map.push(a.pos,a.pos+s.length,ne),u&&h<9&&(Z=!0),a.pos+=s.length;else{ne=document.createDocumentFragment();for(var re=0;;){K.lastIndex=re;var ve=K.exec(s),me=ve?ve.index-re:s.length-re;if(me){var Se=document.createTextNode(j.slice(re,re+me));u&&h<9?ne.appendChild(R("span",[Se])):ne.appendChild(Se),a.map.push(a.pos,a.pos+me,Se),a.col+=me,a.pos+=me}if(!ve)break;re+=me+1;var Ne=void 0;if(ve[0]==" "){var Ve=a.cm.options.tabSize,Ie=Ve-a.col%Ve;Ne=ne.appendChild(R("span",oe(Ie),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),a.col+=Ie}else ve[0]=="\r"||ve[0]==`
|
||
`?(Ne=ne.appendChild(R("span",ve[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",ve[0]),a.col+=1):(Ne=a.cm.options.specialCharPlaceholder(ve[0]),Ne.setAttribute("cm-text",ve[0]),u&&h<9?ne.appendChild(R("span",[Ne])):ne.appendChild(Ne),a.col+=1);a.map.push(a.pos,a.pos+1,Ne),a.pos++}}if(a.trailingSpace=j.charCodeAt(s.length-1)==32,p||f||v||Z||V||P){var Ue=p||"";f&&(Ue+=f),v&&(Ue+=v);var Fe=R("span",[ne],Ue,V);if(P)for(var Ge in P)P.hasOwnProperty(Ge)&&Ge!="style"&&Ge!="class"&&Fe.setAttribute(Ge,P[Ge]);return a.content.appendChild(Fe)}a.content.appendChild(ne)}}function a4(a,s){if(a.length>1&&!/ /.test(a))return a;for(var p=s,f="",v=0;v<a.length;v++){var V=a.charAt(v);V==" "&&p&&(v==a.length-1||a.charCodeAt(v+1)==32)&&(V="\xA0"),f+=V,p=V==" "}return f}function l4(a,s){return function(p,f,v,V,P,j,K){v=v?v+" cm-force-border":"cm-force-border";for(var Z=p.pos,ne=Z+f.length;;){for(var re=void 0,ve=0;ve<s.length&&(re=s[ve],!(re.to>Z&&re.from<=Z));ve++);if(re.to>=ne)return a(p,f,v,V,P,j,K);a(p,f.slice(0,re.to-Z),v,V,null,j,K),V=null,f=f.slice(re.to-Z),Z=re.to}}}function Hy(a,s,p,f){var v=!f&&p.widgetNode;v&&a.map.push(a.pos,a.pos+s,v),!f&&a.cm.display.input.needsContentAttribute&&(v||(v=a.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",p.id)),v&&(a.cm.display.input.setUneditable(v),a.content.appendChild(v)),a.pos+=s,a.trailingSpace=!1}function s4(a,s,p){var f=a.markedSpans,v=a.text,V=0;if(!f){for(var P=1;P<p.length;P+=2)s.addToken(s,v.slice(V,V=p[P]),zy(p[P+1],s.cm.options));return}for(var j=v.length,K=0,Z=1,ne="",re,ve,me=0,Se,Ne,Ve,Ie,Ue;;){if(me==K){Se=Ne=Ve=ve="",Ue=null,Ie=null,me=1/0;for(var Fe=[],Ge=void 0,nt=0;nt<f.length;++nt){var qe=f[nt],pt=qe.marker;if(pt.type=="bookmark"&&qe.from==K&&pt.widgetNode)Fe.push(pt);else if(qe.from<=K&&(qe.to==null||qe.to>K||pt.collapsed&&qe.to==K&&qe.from==K)){if(qe.to!=null&&qe.to!=K&&me>qe.to&&(me=qe.to,Ne=""),pt.className&&(Se+=" "+pt.className),pt.css&&(ve=(ve?ve+";":"")+pt.css),pt.startStyle&&qe.from==K&&(Ve+=" "+pt.startStyle),pt.endStyle&&qe.to==me&&(Ge||(Ge=[])).push(pt.endStyle,qe.to),pt.title&&((Ue||(Ue={})).title=pt.title),pt.attributes)for(var Nt in pt.attributes)(Ue||(Ue={}))[Nt]=pt.attributes[Nt];pt.collapsed&&(!Ie||xf(Ie.marker,pt)<0)&&(Ie=qe)}else qe.from>K&&me>qe.from&&(me=qe.from)}if(Ge)for(var en=0;en<Ge.length;en+=2)Ge[en+1]==me&&(Ne+=" "+Ge[en]);if(!Ie||Ie.from==K)for(var $t=0;$t<Fe.length;++$t)Hy(s,0,Fe[$t]);if(Ie&&(Ie.from||0)==K){if(Hy(s,(Ie.to==null?j+1:Ie.to)-K,Ie.marker,Ie.from==null),Ie.to==null)return;Ie.to==K&&(Ie=!1)}}if(K>=j)break;for(var Vn=Math.min(j,me);;){if(ne){var wn=K+ne.length;if(!Ie){var Ut=wn>Vn?ne.slice(0,Vn-K):ne;s.addToken(s,Ut,re?re+Se:Se,Ve,K+Ut.length==me?Ne:"",ve,Ue)}if(wn>=Vn){ne=ne.slice(Vn-K),K=Vn;break}K=wn,Ve=""}ne=v.slice(V,V=p[Z++]),re=zy(p[Z++],s.cm.options)}}}function Wy(a,s,p){this.line=s,this.rest=q8(s),this.size=this.rest?wt(he(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Xi(a,s)}function Vs(a,s,p){for(var f=[],v,V=s;V<p;V=v){var P=new Wy(a.doc,Je(a.doc,V),V);v=V+P.size,f.push(P)}return f}var po=null;function d4(a){po?po.ops.push(a):a.ownsGroup=po={ops:[a],delayedCallbacks:[]}}function c4(a){var s=a.delayedCallbacks,p=0;do{for(;p<s.length;p++)s[p].call(null);for(var f=0;f<a.ops.length;f++){var v=a.ops[f];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(p<s.length)}function u4(a,s){var p=a.ownsGroup;if(!!p)try{c4(p)}finally{po=null,s(p)}}var ya=null;function Xt(a,s){var p=Xe(a,s);if(!!p.length){var f=Array.prototype.slice.call(arguments,2),v;po?v=po.delayedCallbacks:ya?v=ya:(v=ya=[],setTimeout(f4,0));for(var V=function(j){v.push(function(){return p[j].apply(null,f)})},P=0;P<p.length;++P)V(P)}}function f4(){var a=ya;ya=null;for(var s=0;s<a.length;++s)a[s]()}function Gy(a,s,p,f){for(var v=0;v<s.changes.length;v++){var V=s.changes[v];V=="text"?h4(a,s):V=="gutter"?Yy(a,s,p,f):V=="class"?Df(a,s):V=="widget"&&m4(a,s,f)}s.changes=null}function ba(a){return a.node==a.text&&(a.node=R("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),u&&h<8&&(a.node.style.zIndex=2)),a.node}function p4(a,s){var p=s.bgClass?s.bgClass+" "+(s.line.bgClass||""):s.line.bgClass;if(p&&(p+=" CodeMirror-linebackground"),s.background)p?s.background.className=p:(s.background.parentNode.removeChild(s.background),s.background=null);else if(p){var f=ba(s);s.background=f.insertBefore(R("div",null,p),f.firstChild),a.display.input.setUneditable(s.background)}}function Ky(a,s){var p=a.display.externalMeasured;return p&&p.line==s.line?(a.display.externalMeasured=null,s.measure=p.measure,p.built):Uy(a,s)}function h4(a,s){var p=s.text.className,f=Ky(a,s);s.text==s.node&&(s.node=f.pre),s.text.parentNode.replaceChild(f.pre,s.text),s.text=f.pre,f.bgClass!=s.bgClass||f.textClass!=s.textClass?(s.bgClass=f.bgClass,s.textClass=f.textClass,Df(a,s)):p&&(s.text.className=p)}function Df(a,s){p4(a,s),s.line.wrapClass?ba(s).className=s.line.wrapClass:s.node!=s.text&&(s.node.className="");var p=s.textClass?s.textClass+" "+(s.line.textClass||""):s.line.textClass;s.text.className=p||""}function Yy(a,s,p,f){if(s.gutter&&(s.node.removeChild(s.gutter),s.gutter=null),s.gutterBackground&&(s.node.removeChild(s.gutterBackground),s.gutterBackground=null),s.line.gutterClass){var v=ba(s);s.gutterBackground=R("div",null,"CodeMirror-gutter-background "+s.line.gutterClass,"left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px; width: "+f.gutterTotalWidth+"px"),a.display.input.setUneditable(s.gutterBackground),v.insertBefore(s.gutterBackground,s.text)}var V=s.line.gutterMarkers;if(a.options.lineNumbers||V){var P=ba(s),j=s.gutter=R("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?f.fixedPos:-f.gutterTotalWidth)+"px");if(j.setAttribute("aria-hidden","true"),a.display.input.setUneditable(j),P.insertBefore(j,s.text),s.line.gutterClass&&(j.className+=" "+s.line.gutterClass),a.options.lineNumbers&&(!V||!V["CodeMirror-linenumbers"])&&(s.lineNumber=j.appendChild(R("div",ae(a.options,p),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+f.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),V)for(var K=0;K<a.display.gutterSpecs.length;++K){var Z=a.display.gutterSpecs[K].className,ne=V.hasOwnProperty(Z)&&V[Z];ne&&j.appendChild(R("div",[ne],"CodeMirror-gutter-elt","left: "+f.gutterLeft[Z]+"px; width: "+f.gutterWidth[Z]+"px"))}}}function m4(a,s,p){s.alignable&&(s.alignable=null);for(var f=B("CodeMirror-linewidget"),v=s.node.firstChild,V=void 0;v;v=V)V=v.nextSibling,f.test(v.className)&&s.node.removeChild(v);Qy(a,s,p)}function g4(a,s,p,f){var v=Ky(a,s);return s.text=s.node=v.pre,v.bgClass&&(s.bgClass=v.bgClass),v.textClass&&(s.textClass=v.textClass),Df(a,s),Yy(a,s,p,f),Qy(a,s,f),s.node}function Qy(a,s,p){if(Jy(a,s.line,s,p,!0),s.rest)for(var f=0;f<s.rest.length;f++)Jy(a,s.rest[f],s,p,!1)}function Jy(a,s,p,f,v){if(!!s.widgets)for(var V=ba(p),P=0,j=s.widgets;P<j.length;++P){var K=j[P],Z=R("div",[K.node],"CodeMirror-linewidget"+(K.className?" "+K.className:""));K.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),v4(K,Z,p,f),a.display.input.setUneditable(Z),v&&K.above?V.insertBefore(Z,p.gutter||p.text):V.appendChild(Z),Xt(K,"redraw")}}function v4(a,s,p,f){if(a.noHScroll){(p.alignable||(p.alignable=[])).push(s);var v=f.wrapperWidth;s.style.left=f.fixedPos+"px",a.coverGutter||(v-=f.gutterTotalWidth,s.style.paddingLeft=f.gutterTotalWidth+"px"),s.style.width=v+"px"}a.coverGutter&&(s.style.zIndex=5,s.style.position="relative",a.noHScroll||(s.style.marginLeft=-f.gutterTotalWidth+"px"))}function wa(a){if(a.height!=null)return a.height;var s=a.doc.cm;if(!s)return 0;if(!S(document.body,a.node)){var p="position: relative;";a.coverGutter&&(p+="margin-left: -"+s.display.gutters.offsetWidth+"px;"),a.noHScroll&&(p+="width: "+s.display.wrapper.clientWidth+"px;"),H(s.display.measure,R("div",[a.node],null,p))}return a.height=a.node.parentNode.offsetHeight}function Ri(a,s){for(var p=vn(s);p!=a.wrapper;p=p.parentNode)if(!p||p.nodeType==1&&p.getAttribute("cm-ignore-events")=="true"||p.parentNode==a.sizer&&p!=a.mover)return!0}function Os(a){return a.lineSpace.offsetTop}function Vf(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Xy(a){if(a.cachedPaddingH)return a.cachedPaddingH;var s=H(a.measure,R("pre","x","CodeMirror-line-like")),p=window.getComputedStyle?window.getComputedStyle(s):s.currentStyle,f={left:parseInt(p.paddingLeft),right:parseInt(p.paddingRight)};return!isNaN(f.left)&&!isNaN(f.right)&&(a.cachedPaddingH=f),f}function wi(a){return ge-a.display.nativeBarWidth}function br(a){return a.display.scroller.clientWidth-wi(a)-a.display.barWidth}function Of(a){return a.display.scroller.clientHeight-wi(a)-a.display.barHeight}function y4(a,s,p){var f=a.options.lineWrapping,v=f&&br(a);if(!s.measure.heights||f&&s.measure.width!=v){var V=s.measure.heights=[];if(f){s.measure.width=v;for(var P=s.text.firstChild.getClientRects(),j=0;j<P.length-1;j++){var K=P[j],Z=P[j+1];Math.abs(K.bottom-Z.bottom)>2&&V.push((K.bottom+Z.top)/2-p.top)}}V.push(p.bottom-p.top)}}function Zy(a,s,p){if(a.line==s)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var f=0;f<a.rest.length;f++)if(a.rest[f]==s)return{map:a.measure.maps[f],cache:a.measure.caches[f]};for(var v=0;v<a.rest.length;v++)if(wt(a.rest[v])>p)return{map:a.measure.maps[v],cache:a.measure.caches[v],before:!0}}}function b4(a,s){s=ni(s);var p=wt(s),f=a.display.externalMeasured=new Wy(a.doc,s,p);f.lineN=p;var v=f.built=Uy(a,f);return f.text=v.pre,H(a.display.lineMeasure,v.pre),f}function qy(a,s,p,f){return Ci(a,ho(a,s),p,f)}function Bf(a,s){if(s>=a.display.viewFrom&&s<a.display.viewTo)return a.display.view[_r(a,s)];var p=a.display.externalMeasured;if(p&&s>=p.lineN&&s<p.lineN+p.size)return p}function ho(a,s){var p=wt(s),f=Bf(a,p);f&&!f.text?f=null:f&&f.changes&&(Gy(a,f,p,Pf(a)),a.curOp.forceUpdate=!0),f||(f=b4(a,s));var v=Zy(f,s,p);return{line:s,view:f,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function Ci(a,s,p,f,v){s.before&&(p=-1);var V=p+(f||""),P;return s.cache.hasOwnProperty(V)?P=s.cache[V]:(s.rect||(s.rect=s.view.text.getBoundingClientRect()),s.hasHeights||(y4(a,s.view,s.rect),s.hasHeights=!0),P=C4(a,s,p,f),P.bogus||(s.cache[V]=P)),{left:P.left,right:P.right,top:v?P.rtop:P.top,bottom:v?P.rbottom:P.bottom}}var e0={left:0,right:0,top:0,bottom:0};function t0(a,s,p){for(var f,v,V,P,j,K,Z=0;Z<a.length;Z+=3)if(j=a[Z],K=a[Z+1],s<j?(v=0,V=1,P="left"):s<K?(v=s-j,V=v+1):(Z==a.length-3||s==K&&a[Z+3]>s)&&(V=K-j,v=V-1,s>=K&&(P="right")),v!=null){if(f=a[Z+2],j==K&&p==(f.insertLeft?"left":"right")&&(P=p),p=="left"&&v==0)for(;Z&&a[Z-2]==a[Z-3]&&a[Z-1].insertLeft;)f=a[(Z-=3)+2],P="left";if(p=="right"&&v==K-j)for(;Z<a.length-3&&a[Z+3]==a[Z+4]&&!a[Z+5].insertLeft;)f=a[(Z+=3)+2],P="right";break}return{node:f,start:v,end:V,collapse:P,coverStart:j,coverEnd:K}}function w4(a,s){var p=e0;if(s=="left")for(var f=0;f<a.length&&(p=a[f]).left==p.right;f++);else for(var v=a.length-1;v>=0&&(p=a[v]).left==p.right;v--);return p}function C4(a,s,p,f){var v=t0(s.map,p,f),V=v.node,P=v.start,j=v.end,K=v.collapse,Z;if(V.nodeType==3){for(var ne=0;ne<4;ne++){for(;P&&Oe(s.line.text.charAt(v.coverStart+P));)--P;for(;v.coverStart+j<v.coverEnd&&Oe(s.line.text.charAt(v.coverStart+j));)++j;if(u&&h<9&&P==0&&j==v.coverEnd-v.coverStart?Z=V.parentNode.getBoundingClientRect():Z=w4($(V,P,j).getClientRects(),f),Z.left||Z.right||P==0)break;j=P,P=P-1,K="right"}u&&h<11&&(Z=_4(a.display.measure,Z))}else{P>0&&(K=f="right");var re;a.options.lineWrapping&&(re=V.getClientRects()).length>1?Z=re[f=="right"?re.length-1:0]:Z=V.getBoundingClientRect()}if(u&&h<9&&!P&&(!Z||!Z.left&&!Z.right)){var ve=V.parentNode.getClientRects()[0];ve?Z={left:ve.left,right:ve.left+go(a.display),top:ve.top,bottom:ve.bottom}:Z=e0}for(var me=Z.top-s.rect.top,Se=Z.bottom-s.rect.top,Ne=(me+Se)/2,Ve=s.view.measure.heights,Ie=0;Ie<Ve.length-1&&!(Ne<Ve[Ie]);Ie++);var Ue=Ie?Ve[Ie-1]:0,Fe=Ve[Ie],Ge={left:(K=="right"?Z.right:Z.left)-s.rect.left,right:(K=="left"?Z.left:Z.right)-s.rect.left,top:Ue,bottom:Fe};return!Z.left&&!Z.right&&(Ge.bogus=!0),a.options.singleCursorHeightPerLine||(Ge.rtop=me,Ge.rbottom=Se),Ge}function _4(a,s){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!_s(a))return s;var p=screen.logicalXDPI/screen.deviceXDPI,f=screen.logicalYDPI/screen.deviceYDPI;return{left:s.left*p,right:s.right*p,top:s.top*f,bottom:s.bottom*f}}function n0(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var s=0;s<a.rest.length;s++)a.measure.caches[s]={}}function i0(a){a.display.externalMeasure=null,U(a.display.lineMeasure);for(var s=0;s<a.display.view.length;s++)n0(a.display.view[s])}function Ca(a){i0(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function r0(a){return C&&x?-(a.body.getBoundingClientRect().left-parseInt(getComputedStyle(a.body).marginLeft)):a.defaultView.pageXOffset||(a.documentElement||a.body).scrollLeft}function o0(a){return C&&x?-(a.body.getBoundingClientRect().top-parseInt(getComputedStyle(a.body).marginTop)):a.defaultView.pageYOffset||(a.documentElement||a.body).scrollTop}function Rf(a){var s=ni(a),p=s.widgets,f=0;if(p)for(var v=0;v<p.length;++v)p[v].above&&(f+=wa(p[v]));return f}function Bs(a,s,p,f,v){if(!v){var V=Rf(s);p.top+=V,p.bottom+=V}if(f=="line")return p;f||(f="local");var P=Bi(s);if(f=="local"?P+=Os(a.display):P-=a.display.viewOffset,f=="page"||f=="window"){var j=a.display.lineSpace.getBoundingClientRect();P+=j.top+(f=="window"?0:o0(X(a)));var K=j.left+(f=="window"?0:r0(X(a)));p.left+=K,p.right+=K}return p.top+=P,p.bottom+=P,p}function a0(a,s,p){if(p=="div")return s;var f=s.left,v=s.top;if(p=="page")f-=r0(X(a)),v-=o0(X(a));else if(p=="local"||!p){var V=a.display.sizer.getBoundingClientRect();f+=V.left,v+=V.top}var P=a.display.lineSpace.getBoundingClientRect();return{left:f-P.left,top:v-P.top}}function Rs(a,s,p,f,v){return f||(f=Je(a.doc,s.line)),Bs(a,f,qy(a,f,s.ch,v),p)}function ii(a,s,p,f,v,V){f=f||Je(a.doc,s.line),v||(v=ho(a,f));function P(Se,Ne){var Ve=Ci(a,v,Se,Ne?"right":"left",V);return Ne?Ve.left=Ve.right:Ve.right=Ve.left,Bs(a,f,Ve,p)}var j=tt(f,a.doc.direction),K=s.ch,Z=s.sticky;if(K>=f.text.length?(K=f.text.length,Z="before"):K<=0&&(K=0,Z="after"),!j)return P(Z=="before"?K-1:K,Z=="before");function ne(Se,Ne,Ve){var Ie=j[Ne],Ue=Ie.level==1;return P(Ve?Se-1:Se,Ue!=Ve)}var re=De(j,K,Z),ve=Ze,me=ne(K,re,Z=="before");return ve!=null&&(me.other=ne(K,ve,Z!="before")),me}function l0(a,s){var p=0;s=at(a.doc,s),a.options.lineWrapping||(p=go(a.display)*s.ch);var f=Je(a.doc,s.line),v=Bi(f)+Os(a.display);return{left:p,right:p,top:v,bottom:v+f.height}}function $f(a,s,p,f,v){var V=ue(a,s,p);return V.xRel=v,f&&(V.outside=f),V}function If(a,s,p){var f=a.doc;if(p+=a.display.viewOffset,p<0)return $f(f.first,0,null,-1,-1);var v=yi(f,p),V=f.first+f.size-1;if(v>V)return $f(f.first+f.size-1,Je(f,V).text.length,null,1,1);s<0&&(s=0);for(var P=Je(f,v);;){var j=E4(a,P,v,s,p),K=X8(P,j.ch+(j.xRel>0||j.outside>0?1:0));if(!K)return j;var Z=K.find(1);if(Z.line==v)return Z;P=Je(f,v=Z.line)}}function s0(a,s,p,f){f-=Rf(s);var v=s.text.length,V=Re(function(P){return Ci(a,p,P-1).bottom<=f},v,0);return v=Re(function(P){return Ci(a,p,P).top>f},V,v),{begin:V,end:v}}function d0(a,s,p,f){p||(p=ho(a,s));var v=Bs(a,s,Ci(a,p,f),"line").top;return s0(a,s,p,v)}function Ff(a,s,p,f){return a.bottom<=p?!1:a.top>p?!0:(f?a.left:a.right)>s}function E4(a,s,p,f,v){v-=Bi(s);var V=ho(a,s),P=Rf(s),j=0,K=s.text.length,Z=!0,ne=tt(s,a.doc.direction);if(ne){var re=(a.options.lineWrapping?A4:S4)(a,s,p,V,ne,f,v);Z=re.level!=1,j=Z?re.from:re.to-1,K=Z?re.to:re.from-1}var ve=null,me=null,Se=Re(function(nt){var qe=Ci(a,V,nt);return qe.top+=P,qe.bottom+=P,Ff(qe,f,v,!1)?(qe.top<=v&&qe.left<=f&&(ve=nt,me=qe),!0):!1},j,K),Ne,Ve,Ie=!1;if(me){var Ue=f-me.left<me.right-f,Fe=Ue==Z;Se=ve+(Fe?0:1),Ve=Fe?"after":"before",Ne=Ue?me.left:me.right}else{!Z&&(Se==K||Se==j)&&Se++,Ve=Se==0?"after":Se==s.text.length?"before":Ci(a,V,Se-(Z?1:0)).bottom+P<=v==Z?"after":"before";var Ge=ii(a,ue(p,Se,Ve),"line",s,V);Ne=Ge.left,Ie=v<Ge.top?-1:v>=Ge.bottom?1:0}return Se=Ke(s.text,Se,1),$f(p,Se,Ve,Ie,f-Ne)}function S4(a,s,p,f,v,V,P){var j=Re(function(re){var ve=v[re],me=ve.level!=1;return Ff(ii(a,ue(p,me?ve.to:ve.from,me?"before":"after"),"line",s,f),V,P,!0)},0,v.length-1),K=v[j];if(j>0){var Z=K.level!=1,ne=ii(a,ue(p,Z?K.from:K.to,Z?"after":"before"),"line",s,f);Ff(ne,V,P,!0)&&ne.top>P&&(K=v[j-1])}return K}function A4(a,s,p,f,v,V,P){var j=s0(a,s,f,P),K=j.begin,Z=j.end;/\s/.test(s.text.charAt(Z-1))&&Z--;for(var ne=null,re=null,ve=0;ve<v.length;ve++){var me=v[ve];if(!(me.from>=Z||me.to<=K)){var Se=me.level!=1,Ne=Ci(a,f,Se?Math.min(Z,me.to)-1:Math.max(K,me.from)).right,Ve=Ne<V?V-Ne+1e9:Ne-V;(!ne||re>Ve)&&(ne=me,re=Ve)}}return ne||(ne=v[v.length-1]),ne.from<K&&(ne={from:K,to:ne.to,level:ne.level}),ne.to>Z&&(ne={from:ne.from,to:Z,level:ne.level}),ne}var wr;function mo(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(wr==null){wr=R("pre",null,"CodeMirror-line-like");for(var s=0;s<49;++s)wr.appendChild(document.createTextNode("x")),wr.appendChild(R("br"));wr.appendChild(document.createTextNode("x"))}H(a.measure,wr);var p=wr.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),U(a.measure),p||1}function go(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var s=R("span","xxxxxxxxxx"),p=R("pre",[s],"CodeMirror-line-like");H(a.measure,p);var f=s.getBoundingClientRect(),v=(f.right-f.left)/10;return v>2&&(a.cachedCharWidth=v),v||10}function Pf(a){for(var s=a.display,p={},f={},v=s.gutters.clientLeft,V=s.gutters.firstChild,P=0;V;V=V.nextSibling,++P){var j=a.display.gutterSpecs[P].className;p[j]=V.offsetLeft+V.clientLeft+v,f[j]=V.clientWidth}return{fixedPos:Mf(s),gutterTotalWidth:s.gutters.offsetWidth,gutterLeft:p,gutterWidth:f,wrapperWidth:s.wrapper.clientWidth}}function Mf(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function c0(a){var s=mo(a.display),p=a.options.lineWrapping,f=p&&Math.max(5,a.display.scroller.clientWidth/go(a.display)-3);return function(v){if(Xi(a.doc,v))return 0;var V=0;if(v.widgets)for(var P=0;P<v.widgets.length;P++)v.widgets[P].height&&(V+=v.widgets[P].height);return p?V+(Math.ceil(v.text.length/f)||1)*s:V+s}}function Lf(a){var s=a.doc,p=c0(a);s.iter(function(f){var v=p(f);v!=f.height&&Yn(f,v)})}function Cr(a,s,p,f){var v=a.display;if(!p&&vn(s).getAttribute("cm-not-content")=="true")return null;var V,P,j=v.lineSpace.getBoundingClientRect();try{V=s.clientX-j.left,P=s.clientY-j.top}catch{return null}var K=If(a,V,P),Z;if(f&&K.xRel>0&&(Z=Je(a.doc,K.line).text).length==K.ch){var ne=de(Z,Z.length,a.options.tabSize)-Z.length;K=ue(K.line,Math.max(0,Math.round((V-Xy(a.display).left)/go(a.display))-ne))}return K}function _r(a,s){if(s>=a.display.viewTo||(s-=a.display.viewFrom,s<0))return null;for(var p=a.display.view,f=0;f<p.length;f++)if(s-=p[f].size,s<0)return f}function yn(a,s,p,f){s==null&&(s=a.doc.first),p==null&&(p=a.doc.first+a.doc.size),f||(f=0);var v=a.display;if(f&&p<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>s)&&(v.updateLineNumbers=s),a.curOp.viewChanged=!0,s>=v.viewTo)Oi&&kf(a.doc,s)<v.viewTo&&qi(a);else if(p<=v.viewFrom)Oi&&jy(a.doc,p+f)>v.viewFrom?qi(a):(v.viewFrom+=f,v.viewTo+=f);else if(s<=v.viewFrom&&p>=v.viewTo)qi(a);else if(s<=v.viewFrom){var V=$s(a,p,p+f,1);V?(v.view=v.view.slice(V.index),v.viewFrom=V.lineN,v.viewTo+=f):qi(a)}else if(p>=v.viewTo){var P=$s(a,s,s,-1);P?(v.view=v.view.slice(0,P.index),v.viewTo=P.lineN):qi(a)}else{var j=$s(a,s,s,-1),K=$s(a,p,p+f,1);j&&K?(v.view=v.view.slice(0,j.index).concat(Vs(a,j.lineN,K.lineN)).concat(v.view.slice(K.index)),v.viewTo+=f):qi(a)}var Z=v.externalMeasured;Z&&(p<Z.lineN?Z.lineN+=f:s<Z.lineN+Z.size&&(v.externalMeasured=null))}function Zi(a,s,p){a.curOp.viewChanged=!0;var f=a.display,v=a.display.externalMeasured;if(v&&s>=v.lineN&&s<v.lineN+v.size&&(f.externalMeasured=null),!(s<f.viewFrom||s>=f.viewTo)){var V=f.view[_r(a,s)];if(V.node!=null){var P=V.changes||(V.changes=[]);se(P,p)==-1&&P.push(p)}}}function qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function $s(a,s,p,f){var v=_r(a,s),V,P=a.display.view;if(!Oi||p==a.doc.first+a.doc.size)return{index:v,lineN:p};for(var j=a.display.viewFrom,K=0;K<v;K++)j+=P[K].size;if(j!=s){if(f>0){if(v==P.length-1)return null;V=j+P[v].size-s,v++}else V=j-s;s+=V,p+=V}for(;kf(a.doc,p)!=p;){if(v==(f<0?0:P.length-1))return null;p+=f*P[v-(f<0?1:0)].size,v+=f}return{index:v,lineN:p}}function x4(a,s,p){var f=a.display,v=f.view;v.length==0||s>=f.viewTo||p<=f.viewFrom?(f.view=Vs(a,s,p),f.viewFrom=s):(f.viewFrom>s?f.view=Vs(a,s,f.viewFrom).concat(f.view):f.viewFrom<s&&(f.view=f.view.slice(_r(a,s))),f.viewFrom=s,f.viewTo<p?f.view=f.view.concat(Vs(a,f.viewTo,p)):f.viewTo>p&&(f.view=f.view.slice(0,_r(a,p)))),f.viewTo=p}function u0(a){for(var s=a.display.view,p=0,f=0;f<s.length;f++){var v=s[f];!v.hidden&&(!v.node||v.changes)&&++p}return p}function _a(a){a.display.input.showSelection(a.display.input.prepareSelection())}function f0(a,s){s===void 0&&(s=!0);var p=a.doc,f={},v=f.cursors=document.createDocumentFragment(),V=f.selection=document.createDocumentFragment(),P=a.options.$customCursor;P&&(s=!0);for(var j=0;j<p.sel.ranges.length;j++)if(!(!s&&j==p.sel.primIndex)){var K=p.sel.ranges[j];if(!(K.from().line>=a.display.viewTo||K.to().line<a.display.viewFrom)){var Z=K.empty();if(P){var ne=P(a,K);ne&&jf(a,ne,v)}else(Z||a.options.showCursorWhenSelecting)&&jf(a,K.head,v);Z||k4(a,K,V)}}return f}function jf(a,s,p){var f=ii(a,s,"div",null,null,!a.options.singleCursorHeightPerLine),v=p.appendChild(R("div","\xA0","CodeMirror-cursor"));if(v.style.left=f.left+"px",v.style.top=f.top+"px",v.style.height=Math.max(0,f.bottom-f.top)*a.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(a.getWrapperElement().className)){var V=Rs(a,s,"div",null,null),P=V.right-V.left;v.style.width=(P>0?P:a.defaultCharWidth())+"px"}if(f.other){var j=p.appendChild(R("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));j.style.display="",j.style.left=f.other.left+"px",j.style.top=f.other.top+"px",j.style.height=(f.other.bottom-f.other.top)*.85+"px"}}function Is(a,s){return a.top-s.top||a.left-s.left}function k4(a,s,p){var f=a.display,v=a.doc,V=document.createDocumentFragment(),P=Xy(a.display),j=P.left,K=Math.max(f.sizerWidth,br(a)-f.sizer.offsetLeft)-P.right,Z=v.direction=="ltr";function ne(Fe,Ge,nt,qe){Ge<0&&(Ge=0),Ge=Math.round(Ge),qe=Math.round(qe),V.appendChild(R("div",null,"CodeMirror-selected","position: absolute; left: "+Fe+`px;
|
||
top: `+Ge+"px; width: "+(nt==null?K-Fe:nt)+`px;
|
||
height: `+(qe-Ge)+"px"))}function re(Fe,Ge,nt){var qe=Je(v,Fe),pt=qe.text.length,Nt,en;function $t(Ut,Cn){return Rs(a,ue(Fe,Ut),"div",qe,Cn)}function Vn(Ut,Cn,rn){var Yt=d0(a,qe,null,Ut),Ht=Cn=="ltr"==(rn=="after")?"left":"right",Pt=rn=="after"?Yt.begin:Yt.end-(/\s/.test(qe.text.charAt(Yt.end-1))?2:1);return $t(Pt,Ht)[Ht]}var wn=tt(qe,v.direction);return mt(wn,Ge||0,nt==null?pt:nt,function(Ut,Cn,rn,Yt){var Ht=rn=="ltr",Pt=$t(Ut,Ht?"left":"right"),_n=$t(Cn-1,Ht?"right":"left"),To=Ge==null&&Ut==0,or=nt==null&&Cn==pt,sn=Yt==0,_i=!wn||Yt==wn.length-1;if(_n.top-Pt.top<=3){var tn=(Z?To:or)&&sn,pp=(Z?or:To)&&_i,Fi=tn?j:(Ht?Pt:_n).left,kr=pp?K:(Ht?_n:Pt).right;ne(Fi,Pt.top,kr-Fi,Pt.bottom)}else{var Nr,pn,Do,hp;Ht?(Nr=Z&&To&&sn?j:Pt.left,pn=Z?K:Vn(Ut,rn,"before"),Do=Z?j:Vn(Cn,rn,"after"),hp=Z&&or&&_i?K:_n.right):(Nr=Z?Vn(Ut,rn,"before"):j,pn=!Z&&To&&sn?K:Pt.right,Do=!Z&&or&&_i?j:_n.left,hp=Z?Vn(Cn,rn,"after"):K),ne(Nr,Pt.top,pn-Nr,Pt.bottom),Pt.bottom<_n.top&&ne(j,Pt.bottom,null,_n.top),ne(Do,_n.top,hp-Do,_n.bottom)}(!Nt||Is(Pt,Nt)<0)&&(Nt=Pt),Is(_n,Nt)<0&&(Nt=_n),(!en||Is(Pt,en)<0)&&(en=Pt),Is(_n,en)<0&&(en=_n)}),{start:Nt,end:en}}var ve=s.from(),me=s.to();if(ve.line==me.line)re(ve.line,ve.ch,me.ch);else{var Se=Je(v,ve.line),Ne=Je(v,me.line),Ve=ni(Se)==ni(Ne),Ie=re(ve.line,ve.ch,Ve?Se.text.length+1:null).end,Ue=re(me.line,Ve?0:null,me.ch).start;Ve&&(Ie.top<Ue.top-2?(ne(Ie.right,Ie.top,null,Ie.bottom),ne(j,Ue.top,Ue.left,Ue.bottom)):ne(Ie.right,Ie.top,Ue.left-Ie.right,Ie.bottom)),Ie.bottom<Ue.top&&ne(j,Ie.bottom,null,Ue.top)}p.appendChild(V)}function zf(a){if(!!a.state.focused){var s=a.display;clearInterval(s.blinker);var p=!0;s.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?s.blinker=setInterval(function(){a.hasFocus()||vo(a),s.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(s.cursorDiv.style.visibility="hidden")}}function p0(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||Hf(a))}function Uf(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&vo(a))},100)}function Hf(a,s){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Qe(a,"focus",a,s),a.state.focused=!0,Q(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),m&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),zf(a))}function vo(a,s){a.state.delayingBlurEvent||(a.state.focused&&(Qe(a,"blur",a,s),a.state.focused=!1,L(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Fs(a){for(var s=a.display,p=s.lineDiv.offsetTop,f=Math.max(0,s.scroller.getBoundingClientRect().top),v=s.lineDiv.getBoundingClientRect().top,V=0,P=0;P<s.view.length;P++){var j=s.view[P],K=a.options.lineWrapping,Z=void 0,ne=0;if(!j.hidden){if(v+=j.line.height,u&&h<8){var re=j.node.offsetTop+j.node.offsetHeight;Z=re-p,p=re}else{var ve=j.node.getBoundingClientRect();Z=ve.bottom-ve.top,!K&&j.text.firstChild&&(ne=j.text.firstChild.getBoundingClientRect().right-ve.left-1)}var me=j.line.height-Z;if((me>.005||me<-.005)&&(v<f&&(V-=me),Yn(j.line,Z),h0(j.line),j.rest))for(var Se=0;Se<j.rest.length;Se++)h0(j.rest[Se]);if(ne>a.display.sizerWidth){var Ne=Math.ceil(ne/go(a.display));Ne>a.display.maxLineLength&&(a.display.maxLineLength=Ne,a.display.maxLine=j.line,a.display.maxLineChanged=!0)}}}Math.abs(V)>2&&(s.scroller.scrollTop+=V)}function h0(a){if(a.widgets)for(var s=0;s<a.widgets.length;++s){var p=a.widgets[s],f=p.node.parentNode;f&&(p.height=f.offsetHeight)}}function Ps(a,s,p){var f=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;f=Math.floor(f-Os(a));var v=p&&p.bottom!=null?p.bottom:f+a.wrapper.clientHeight,V=yi(s,f),P=yi(s,v);if(p&&p.ensure){var j=p.ensure.from.line,K=p.ensure.to.line;j<V?(V=j,P=yi(s,Bi(Je(s,j))+a.wrapper.clientHeight)):Math.min(K,s.lastLine())>=P&&(V=yi(s,Bi(Je(s,K))-a.wrapper.clientHeight),P=K)}return{from:V,to:Math.max(P,V+1)}}function N4(a,s){if(!ct(a,"scrollCursorIntoView")){var p=a.display,f=p.sizer.getBoundingClientRect(),v=null,V=p.wrapper.ownerDocument;if(s.top+f.top<0?v=!0:s.bottom+f.top>(V.defaultView.innerHeight||V.documentElement.clientHeight)&&(v=!1),v!=null&&!g){var P=R("div","\u200B",null,`position: absolute;
|
||
top: `+(s.top-p.viewOffset-Os(a.display))+`px;
|
||
height: `+(s.bottom-s.top+wi(a)+p.barHeight)+`px;
|
||
left: `+s.left+"px; width: "+Math.max(2,s.right-s.left)+"px;");a.display.lineSpace.appendChild(P),P.scrollIntoView(v),a.display.lineSpace.removeChild(P)}}}function T4(a,s,p,f){f==null&&(f=0);var v;!a.options.lineWrapping&&s==p&&(p=s.sticky=="before"?ue(s.line,s.ch+1,"before"):s,s=s.ch?ue(s.line,s.sticky=="before"?s.ch-1:s.ch,"after"):s);for(var V=0;V<5;V++){var P=!1,j=ii(a,s),K=!p||p==s?j:ii(a,p);v={left:Math.min(j.left,K.left),top:Math.min(j.top,K.top)-f,right:Math.max(j.left,K.left),bottom:Math.max(j.bottom,K.bottom)+f};var Z=Wf(a,v),ne=a.doc.scrollTop,re=a.doc.scrollLeft;if(Z.scrollTop!=null&&(Sa(a,Z.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(P=!0)),Z.scrollLeft!=null&&(Er(a,Z.scrollLeft),Math.abs(a.doc.scrollLeft-re)>1&&(P=!0)),!P)break}return v}function D4(a,s){var p=Wf(a,s);p.scrollTop!=null&&Sa(a,p.scrollTop),p.scrollLeft!=null&&Er(a,p.scrollLeft)}function Wf(a,s){var p=a.display,f=mo(a.display);s.top<0&&(s.top=0);var v=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,V=Of(a),P={};s.bottom-s.top>V&&(s.bottom=s.top+V);var j=a.doc.height+Vf(p),K=s.top<f,Z=s.bottom>j-f;if(s.top<v)P.scrollTop=K?0:s.top;else if(s.bottom>v+V){var ne=Math.min(s.top,(Z?j:s.bottom)-V);ne!=v&&(P.scrollTop=ne)}var re=a.options.fixedGutter?0:p.gutters.offsetWidth,ve=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-re,me=br(a)-p.gutters.offsetWidth,Se=s.right-s.left>me;return Se&&(s.right=s.left+me),s.left<10?P.scrollLeft=0:s.left<ve?P.scrollLeft=Math.max(0,s.left+re-(Se?0:10)):s.right>me+ve-3&&(P.scrollLeft=s.right+(Se?0:10)-me),P}function Gf(a,s){s!=null&&(Ms(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+s)}function yo(a){Ms(a);var s=a.getCursor();a.curOp.scrollToPos={from:s,to:s,margin:a.options.cursorScrollMargin}}function Ea(a,s,p){(s!=null||p!=null)&&Ms(a),s!=null&&(a.curOp.scrollLeft=s),p!=null&&(a.curOp.scrollTop=p)}function V4(a,s){Ms(a),a.curOp.scrollToPos=s}function Ms(a){var s=a.curOp.scrollToPos;if(s){a.curOp.scrollToPos=null;var p=l0(a,s.from),f=l0(a,s.to);m0(a,p,f,s.margin)}}function m0(a,s,p,f){var v=Wf(a,{left:Math.min(s.left,p.left),top:Math.min(s.top,p.top)-f,right:Math.max(s.right,p.right),bottom:Math.max(s.bottom,p.bottom)+f});Ea(a,v.scrollLeft,v.scrollTop)}function Sa(a,s){Math.abs(a.doc.scrollTop-s)<2||(i||Yf(a,{top:s}),g0(a,s,!0),i&&Yf(a),ka(a,100))}function g0(a,s,p){s=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,s)),!(a.display.scroller.scrollTop==s&&!p)&&(a.doc.scrollTop=s,a.display.scrollbars.setScrollTop(s),a.display.scroller.scrollTop!=s&&(a.display.scroller.scrollTop=s))}function Er(a,s,p,f){s=Math.max(0,Math.min(s,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?s==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-s)<2)&&!f)&&(a.doc.scrollLeft=s,C0(a),a.display.scroller.scrollLeft!=s&&(a.display.scroller.scrollLeft=s),a.display.scrollbars.setScrollLeft(s))}function Aa(a){var s=a.display,p=s.gutters.offsetWidth,f=Math.round(a.doc.height+Vf(a.display));return{clientHeight:s.scroller.clientHeight,viewHeight:s.wrapper.clientHeight,scrollWidth:s.scroller.scrollWidth,clientWidth:s.scroller.clientWidth,viewWidth:s.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:f,scrollHeight:f+wi(a)+s.barHeight,nativeBarWidth:s.nativeBarWidth,gutterWidth:p}}var Sr=function(a,s,p){this.cm=p;var f=this.vert=R("div",[R("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=R("div",[R("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=v.tabIndex=-1,a(f),a(v),Ce(f,"scroll",function(){f.clientHeight&&s(f.scrollTop,"vertical")}),Ce(v,"scroll",function(){v.clientWidth&&s(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sr.prototype.update=function(a){var s=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,f=a.nativeBarWidth;if(p){this.vert.style.display="block",this.vert.style.bottom=s?f+"px":"0";var v=a.viewHeight-(s?f:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(s){this.horiz.style.display="block",this.horiz.style.right=p?f+"px":"0",this.horiz.style.left=a.barLeft+"px";var V=a.viewWidth-a.barLeft-(p?f:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+V)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(f==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?f:0,bottom:s?f:0}},Sr.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sr.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sr.prototype.zeroWidthHack=function(){var a=T&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new pe,this.disableVert=new pe},Sr.prototype.enableZeroWidthBar=function(a,s,p){a.style.visibility="";function f(){var v=a.getBoundingClientRect(),V=p=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);V!=a?a.style.visibility="hidden":s.set(1e3,f)}s.set(1e3,f)},Sr.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var xa=function(){};xa.prototype.update=function(){return{bottom:0,right:0}},xa.prototype.setScrollLeft=function(){},xa.prototype.setScrollTop=function(){},xa.prototype.clear=function(){};function bo(a,s){s||(s=Aa(a));var p=a.display.barWidth,f=a.display.barHeight;v0(a,s);for(var v=0;v<4&&p!=a.display.barWidth||f!=a.display.barHeight;v++)p!=a.display.barWidth&&a.options.lineWrapping&&Fs(a),v0(a,Aa(a)),p=a.display.barWidth,f=a.display.barHeight}function v0(a,s){var p=a.display,f=p.scrollbars.update(s);p.sizer.style.paddingRight=(p.barWidth=f.right)+"px",p.sizer.style.paddingBottom=(p.barHeight=f.bottom)+"px",p.heightForcer.style.borderBottom=f.bottom+"px solid transparent",f.right&&f.bottom?(p.scrollbarFiller.style.display="block",p.scrollbarFiller.style.height=f.bottom+"px",p.scrollbarFiller.style.width=f.right+"px"):p.scrollbarFiller.style.display="",f.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display="block",p.gutterFiller.style.height=f.bottom+"px",p.gutterFiller.style.width=s.gutterWidth+"px"):p.gutterFiller.style.display=""}var y0={native:Sr,null:xa};function b0(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&L(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new y0[a.options.scrollbarStyle](function(s){a.display.wrapper.insertBefore(s,a.display.scrollbarFiller),Ce(s,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),s.setAttribute("cm-not-content","true")},function(s,p){p=="horizontal"?Er(a,s):Sa(a,s)},a),a.display.scrollbars.addClass&&Q(a.display.wrapper,a.display.scrollbars.addClass)}var O4=0;function Ar(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++O4,markArrays:null},d4(a.curOp)}function xr(a){var s=a.curOp;s&&u4(s,function(p){for(var f=0;f<p.ops.length;f++)p.ops[f].cm.curOp=null;B4(p)})}function B4(a){for(var s=a.ops,p=0;p<s.length;p++)R4(s[p]);for(var f=0;f<s.length;f++)$4(s[f]);for(var v=0;v<s.length;v++)I4(s[v]);for(var V=0;V<s.length;V++)F4(s[V]);for(var P=0;P<s.length;P++)P4(s[P])}function R4(a){var s=a.cm,p=s.display;L4(s),a.updateMaxLine&&Tf(s),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<p.viewFrom||a.scrollToPos.to.line>=p.viewTo)||p.maxLineChanged&&s.options.lineWrapping,a.update=a.mustUpdate&&new Ls(s,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function $4(a){a.updatedDisplay=a.mustUpdate&&Kf(a.cm,a.update)}function I4(a){var s=a.cm,p=s.display;a.updatedDisplay&&Fs(s),a.barMeasure=Aa(s),p.maxLineChanged&&!s.options.lineWrapping&&(a.adjustWidthTo=qy(s,p.maxLine,p.maxLine.text.length).left+3,s.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+wi(s)+s.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-br(s))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}function F4(a){var s=a.cm;a.adjustWidthTo!=null&&(s.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<s.doc.scrollLeft&&Er(s,Math.min(s.display.scroller.scrollLeft,a.maxScrollLeft),!0),s.display.maxLineChanged=!1);var p=a.focus&&a.focus==J(X(s));a.preparedSelection&&s.display.input.showSelection(a.preparedSelection,p),(a.updatedDisplay||a.startHeight!=s.doc.height)&&bo(s,a.barMeasure),a.updatedDisplay&&Jf(s,a.barMeasure),a.selectionChanged&&zf(s),s.state.focused&&a.updateInput&&s.display.input.reset(a.typing),p&&p0(a.cm)}function P4(a){var s=a.cm,p=s.display,f=s.doc;if(a.updatedDisplay&&w0(s,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&g0(s,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Er(s,a.scrollLeft,!0,!0),a.scrollToPos){var v=T4(s,at(f,a.scrollToPos.from),at(f,a.scrollToPos.to),a.scrollToPos.margin);N4(s,v)}var V=a.maybeHiddenMarkers,P=a.maybeUnhiddenMarkers;if(V)for(var j=0;j<V.length;++j)V[j].lines.length||Qe(V[j],"hide");if(P)for(var K=0;K<P.length;++K)P[K].lines.length&&Qe(P[K],"unhide");p.wrapper.offsetHeight&&(f.scrollTop=s.display.scroller.scrollTop),a.changeObjs&&Qe(s,"changes",s,a.changeObjs),a.update&&a.update.finish()}function Dn(a,s){if(a.curOp)return s();Ar(a);try{return s()}finally{xr(a)}}function Zt(a,s){return function(){if(a.curOp)return s.apply(a,arguments);Ar(a);try{return s.apply(a,arguments)}finally{xr(a)}}}function fn(a){return function(){if(this.curOp)return a.apply(this,arguments);Ar(this);try{return a.apply(this,arguments)}finally{xr(this)}}}function qt(a){return function(){var s=this.cm;if(!s||s.curOp)return a.apply(this,arguments);Ar(s);try{return a.apply(this,arguments)}finally{xr(s)}}}function ka(a,s){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(s,be(M4,a))}function M4(a){var s=a.doc;if(!(s.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,f=ga(a,s.highlightFrontier),v=[];s.iter(f.line,Math.min(s.first+s.size,a.display.viewTo+500),function(V){if(f.line>=a.display.viewFrom){var P=V.styles,j=V.text.length>a.options.maxHighlightLength?Di(s.mode,f.state):null,K=ky(a,V,f,!0);j&&(f.state=j),V.styles=K.styles;var Z=V.styleClasses,ne=K.classes;ne?V.styleClasses=ne:Z&&(V.styleClasses=null);for(var re=!P||P.length!=V.styles.length||Z!=ne&&(!Z||!ne||Z.bgClass!=ne.bgClass||Z.textClass!=ne.textClass),ve=0;!re&&ve<P.length;++ve)re=P[ve]!=V.styles[ve];re&&v.push(f.line),V.stateAfter=f.save(),f.nextLine()}else V.text.length<=a.options.maxHighlightLength&&Ef(a,V.text,f),V.stateAfter=f.line%5==0?f.save():null,f.nextLine();if(+new Date>p)return ka(a,a.options.workDelay),!0}),s.highlightFrontier=f.line,s.modeFrontier=Math.max(s.modeFrontier,f.line),v.length&&Dn(a,function(){for(var V=0;V<v.length;V++)Zi(a,v[V],"text")})}}var Ls=function(a,s,p){var f=a.display;this.viewport=s,this.visible=Ps(f,a.doc,s),this.editorIsHidden=!f.wrapper.offsetWidth,this.wrapperHeight=f.wrapper.clientHeight,this.wrapperWidth=f.wrapper.clientWidth,this.oldDisplayWidth=br(a),this.force=p,this.dims=Pf(a),this.events=[]};Ls.prototype.signal=function(a,s){Rt(a,s)&&this.events.push(arguments)},Ls.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Qe.apply(null,this.events[a])};function L4(a){var s=a.display;!s.scrollbarsClipped&&s.scroller.offsetWidth&&(s.nativeBarWidth=s.scroller.offsetWidth-s.scroller.clientWidth,s.heightForcer.style.height=wi(a)+"px",s.sizer.style.marginBottom=-s.nativeBarWidth+"px",s.sizer.style.borderRightWidth=wi(a)+"px",s.scrollbarsClipped=!0)}function j4(a){if(a.hasFocus())return null;var s=J(X(a));if(!s||!S(a.display.lineDiv,s))return null;var p={activeElt:s};if(window.getSelection){var f=le(a).getSelection();f.anchorNode&&f.extend&&S(a.display.lineDiv,f.anchorNode)&&(p.anchorNode=f.anchorNode,p.anchorOffset=f.anchorOffset,p.focusNode=f.focusNode,p.focusOffset=f.focusOffset)}return p}function z4(a){if(!(!a||!a.activeElt||a.activeElt==J(a.activeElt.ownerDocument))&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&S(document.body,a.anchorNode)&&S(document.body,a.focusNode))){var s=a.activeElt.ownerDocument,p=s.defaultView.getSelection(),f=s.createRange();f.setEnd(a.anchorNode,a.anchorOffset),f.collapse(!1),p.removeAllRanges(),p.addRange(f),p.extend(a.focusNode,a.focusOffset)}}function Kf(a,s){var p=a.display,f=a.doc;if(s.editorIsHidden)return qi(a),!1;if(!s.force&&s.visible.from>=p.viewFrom&&s.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&u0(a)==0)return!1;_0(a)&&(qi(a),s.dims=Pf(a));var v=f.first+f.size,V=Math.max(s.visible.from-a.options.viewportMargin,f.first),P=Math.min(v,s.visible.to+a.options.viewportMargin);p.viewFrom<V&&V-p.viewFrom<20&&(V=Math.max(f.first,p.viewFrom)),p.viewTo>P&&p.viewTo-P<20&&(P=Math.min(v,p.viewTo)),Oi&&(V=kf(a.doc,V),P=jy(a.doc,P));var j=V!=p.viewFrom||P!=p.viewTo||p.lastWrapHeight!=s.wrapperHeight||p.lastWrapWidth!=s.wrapperWidth;x4(a,V,P),p.viewOffset=Bi(Je(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+"px";var K=u0(a);if(!j&&K==0&&!s.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var Z=j4(a);return K>4&&(p.lineDiv.style.display="none"),U4(a,p.updateLineNumbers,s.dims),K>4&&(p.lineDiv.style.display=""),p.renderedView=p.view,z4(Z),U(p.cursorDiv),U(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,j&&(p.lastWrapHeight=s.wrapperHeight,p.lastWrapWidth=s.wrapperWidth,ka(a,400)),p.updateLineNumbers=null,!0}function w0(a,s){for(var p=s.viewport,f=!0;;f=!1){if(!f||!a.options.lineWrapping||s.oldDisplayWidth==br(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+Vf(a.display)-Of(a),p.top)}),s.visible=Ps(a.display,a.doc,p),s.visible.from>=a.display.viewFrom&&s.visible.to<=a.display.viewTo)break}else f&&(s.visible=Ps(a.display,a.doc,p));if(!Kf(a,s))break;Fs(a);var v=Aa(a);_a(a),bo(a,v),Jf(a,v),s.force=!1}s.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(s.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Yf(a,s){var p=new Ls(a,s);if(Kf(a,p)){Fs(a),w0(a,p);var f=Aa(a);_a(a),bo(a,f),Jf(a,f),p.finish()}}function U4(a,s,p){var f=a.display,v=a.options.lineNumbers,V=f.lineDiv,P=V.firstChild;function j(Se){var Ne=Se.nextSibling;return m&&T&&a.display.currentWheelTarget==Se?Se.style.display="none":Se.parentNode.removeChild(Se),Ne}for(var K=f.view,Z=f.viewFrom,ne=0;ne<K.length;ne++){var re=K[ne];if(!re.hidden)if(!re.node||re.node.parentNode!=V){var ve=g4(a,re,Z,p);V.insertBefore(ve,P)}else{for(;P!=re.node;)P=j(P);var me=v&&s!=null&&s<=Z&&re.lineNumber;re.changes&&(se(re.changes,"gutter")>-1&&(me=!1),Gy(a,re,Z,p)),me&&(U(re.lineNumber),re.lineNumber.appendChild(document.createTextNode(ae(a.options,Z)))),P=re.node.nextSibling}Z+=re.size}for(;P;)P=j(P)}function Qf(a){var s=a.gutters.offsetWidth;a.sizer.style.marginLeft=s+"px",Xt(a,"gutterChanged",a)}function Jf(a,s){a.display.sizer.style.minHeight=s.docHeight+"px",a.display.heightForcer.style.top=s.docHeight+"px",a.display.gutters.style.height=s.docHeight+a.display.barHeight+wi(a)+"px"}function C0(a){var s=a.display,p=s.view;if(!(!s.alignWidgets&&(!s.gutters.firstChild||!a.options.fixedGutter))){for(var f=Mf(s)-s.scroller.scrollLeft+a.doc.scrollLeft,v=s.gutters.offsetWidth,V=f+"px",P=0;P<p.length;P++)if(!p[P].hidden){a.options.fixedGutter&&(p[P].gutter&&(p[P].gutter.style.left=V),p[P].gutterBackground&&(p[P].gutterBackground.style.left=V));var j=p[P].alignable;if(j)for(var K=0;K<j.length;K++)j[K].style.left=V}a.options.fixedGutter&&(s.gutters.style.left=f+v+"px")}}function _0(a){if(!a.options.lineNumbers)return!1;var s=a.doc,p=ae(a.options,s.first+s.size-1),f=a.display;if(p.length!=f.lineNumChars){var v=f.measure.appendChild(R("div",[R("div",p)],"CodeMirror-linenumber CodeMirror-gutter-elt")),V=v.firstChild.offsetWidth,P=v.offsetWidth-V;return f.lineGutter.style.width="",f.lineNumInnerWidth=Math.max(V,f.lineGutter.offsetWidth-P)+1,f.lineNumWidth=f.lineNumInnerWidth+P,f.lineNumChars=f.lineNumInnerWidth?p.length:-1,f.lineGutter.style.width=f.lineNumWidth+"px",Qf(a.display),!0}return!1}function Xf(a,s){for(var p=[],f=!1,v=0;v<a.length;v++){var V=a[v],P=null;if(typeof V!="string"&&(P=V.style,V=V.className),V=="CodeMirror-linenumbers")if(s)f=!0;else continue;p.push({className:V,style:P})}return s&&!f&&p.push({className:"CodeMirror-linenumbers",style:null}),p}function E0(a){var s=a.gutters,p=a.gutterSpecs;U(s),a.lineGutter=null;for(var f=0;f<p.length;++f){var v=p[f],V=v.className,P=v.style,j=s.appendChild(R("div",null,"CodeMirror-gutter "+V));P&&(j.style.cssText=P),V=="CodeMirror-linenumbers"&&(a.lineGutter=j,j.style.width=(a.lineNumWidth||1)+"px")}s.style.display=p.length?"":"none",Qf(a)}function Na(a){E0(a.display),yn(a),C0(a)}function H4(a,s,p,f){var v=this;this.input=p,v.scrollbarFiller=R("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=R("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=z("div",null,"CodeMirror-code"),v.selectionDiv=R("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=R("div",null,"CodeMirror-cursors"),v.measure=R("div",null,"CodeMirror-measure"),v.lineMeasure=R("div",null,"CodeMirror-measure"),v.lineSpace=z("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var V=z("div",[v.lineSpace],"CodeMirror-lines");v.mover=R("div",[V],null,"position: relative"),v.sizer=R("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=R("div",null,null,"position: absolute; height: "+ge+"px; width: 1px;"),v.gutters=R("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=R("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=R("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),v.wrapper.setAttribute("translate","no"),u&&h<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!m&&!(i&&k)&&(v.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(v.wrapper):a(v.wrapper)),v.viewFrom=v.viewTo=s.first,v.reportedViewFrom=v.reportedViewTo=s.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=Xf(f.gutters,f.lineNumbers),E0(v),p.init(v)}var js=0,$i=null;u?$i=-.53:i?$i=15:C?$i=-.7:E&&($i=-1/3);function S0(a){var s=a.wheelDeltaX,p=a.wheelDeltaY;return s==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(s=a.detail),p==null&&a.detail&&a.axis==a.VERTICAL_AXIS?p=a.detail:p==null&&(p=a.wheelDelta),{x:s,y:p}}function W4(a){var s=S0(a);return s.x*=$i,s.y*=$i,s}function A0(a,s){C&&A==102&&(a.display.chromeScrollHack==null?a.display.sizer.style.pointerEvents="none":clearTimeout(a.display.chromeScrollHack),a.display.chromeScrollHack=setTimeout(function(){a.display.chromeScrollHack=null,a.display.sizer.style.pointerEvents=""},100));var p=S0(s),f=p.x,v=p.y,V=$i;s.deltaMode===0&&(f=s.deltaX,v=s.deltaY,V=1);var P=a.display,j=P.scroller,K=j.scrollWidth>j.clientWidth,Z=j.scrollHeight>j.clientHeight;if(!!(f&&K||v&&Z)){if(v&&T&&m){e:for(var ne=s.target,re=P.view;ne!=j;ne=ne.parentNode)for(var ve=0;ve<re.length;ve++)if(re[ve].node==ne){a.display.currentWheelTarget=ne;break e}}if(f&&!i&&!w&&V!=null){v&&Z&&Sa(a,Math.max(0,j.scrollTop+v*V)),Er(a,Math.max(0,j.scrollLeft+f*V)),(!v||v&&Z)&&bt(s),P.wheelStartX=null;return}if(v&&V!=null){var me=v*V,Se=a.doc.scrollTop,Ne=Se+P.wrapper.clientHeight;me<0?Se=Math.max(0,Se+me-50):Ne=Math.min(a.doc.height,Ne+me+50),Yf(a,{top:Se,bottom:Ne})}js<20&&s.deltaMode!==0&&(P.wheelStartX==null?(P.wheelStartX=j.scrollLeft,P.wheelStartY=j.scrollTop,P.wheelDX=f,P.wheelDY=v,setTimeout(function(){if(P.wheelStartX!=null){var Ve=j.scrollLeft-P.wheelStartX,Ie=j.scrollTop-P.wheelStartY,Ue=Ie&&P.wheelDY&&Ie/P.wheelDY||Ve&&P.wheelDX&&Ve/P.wheelDX;P.wheelStartX=P.wheelStartY=null,Ue&&($i=($i*js+Ue)/(js+1),++js)}},200)):(P.wheelDX+=f,P.wheelDY+=v))}}var Mn=function(a,s){this.ranges=a,this.primIndex=s};Mn.prototype.primary=function(){return this.ranges[this.primIndex]},Mn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var s=0;s<this.ranges.length;s++){var p=this.ranges[s],f=a.ranges[s];if(!ot(p.anchor,f.anchor)||!ot(p.head,f.head))return!1}return!0},Mn.prototype.deepCopy=function(){for(var a=[],s=0;s<this.ranges.length;s++)a[s]=new Ct(ht(this.ranges[s].anchor),ht(this.ranges[s].head));return new Mn(a,this.primIndex)},Mn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Mn.prototype.contains=function(a,s){s||(s=a);for(var p=0;p<this.ranges.length;p++){var f=this.ranges[p];if(Ee(s,f.from())>=0&&Ee(a,f.to())<=0)return p}return-1};var Ct=function(a,s){this.anchor=a,this.head=s};Ct.prototype.from=function(){return Kt(this.anchor,this.head)},Ct.prototype.to=function(){return yt(this.anchor,this.head)},Ct.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ri(a,s,p){var f=a&&a.options.selectionsMayTouch,v=s[p];s.sort(function(ve,me){return Ee(ve.from(),me.from())}),p=se(s,v);for(var V=1;V<s.length;V++){var P=s[V],j=s[V-1],K=Ee(j.to(),P.from());if(f&&!P.empty()?K>0:K>=0){var Z=Kt(j.from(),P.from()),ne=yt(j.to(),P.to()),re=j.empty()?P.from()==P.head:j.from()==j.head;V<=p&&--p,s.splice(--V,2,new Ct(re?ne:Z,re?Z:ne))}}return new Mn(s,p)}function er(a,s){return new Mn([new Ct(a,s||a)],0)}function tr(a){return a.text?ue(a.from.line+a.text.length-1,he(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function x0(a,s){if(Ee(a,s.from)<0)return a;if(Ee(a,s.to)<=0)return tr(s);var p=a.line+s.text.length-(s.to.line-s.from.line)-1,f=a.ch;return a.line==s.to.line&&(f+=tr(s).ch-s.to.ch),ue(p,f)}function Zf(a,s){for(var p=[],f=0;f<a.sel.ranges.length;f++){var v=a.sel.ranges[f];p.push(new Ct(x0(v.anchor,s),x0(v.head,s)))}return ri(a.cm,p,a.sel.primIndex)}function k0(a,s,p){return a.line==s.line?ue(p.line,a.ch-s.ch+p.ch):ue(p.line+(a.line-s.line),a.ch)}function G4(a,s,p){for(var f=[],v=ue(a.first,0),V=v,P=0;P<s.length;P++){var j=s[P],K=k0(j.from,v,V),Z=k0(tr(j),v,V);if(v=j.to,V=Z,p=="around"){var ne=a.sel.ranges[P],re=Ee(ne.head,ne.anchor)<0;f[P]=new Ct(re?Z:K,re?K:Z)}else f[P]=new Ct(K,K)}return new Mn(f,a.sel.primIndex)}function qf(a){a.doc.mode=Ti(a.options,a.doc.modeOption),Ta(a)}function Ta(a){a.doc.iter(function(s){s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,ka(a,100),a.state.modeGen++,a.curOp&&yn(a)}function N0(a,s){return s.from.ch==0&&s.to.ch==0&&he(s.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ep(a,s,p,f){function v(Ue){return p?p[Ue]:null}function V(Ue,Fe,Ge){e4(Ue,Fe,Ge,f),Xt(Ue,"change",Ue,s)}function P(Ue,Fe){for(var Ge=[],nt=Ue;nt<Fe;++nt)Ge.push(new fo(Z[nt],v(nt),f));return Ge}var j=s.from,K=s.to,Z=s.text,ne=Je(a,j.line),re=Je(a,K.line),ve=he(Z),me=v(Z.length-1),Se=K.line-j.line;if(s.full)a.insert(0,P(0,Z.length)),a.remove(Z.length,a.size-Z.length);else if(N0(a,s)){var Ne=P(0,Z.length-1);V(re,re.text,me),Se&&a.remove(j.line,Se),Ne.length&&a.insert(j.line,Ne)}else if(ne==re)if(Z.length==1)V(ne,ne.text.slice(0,j.ch)+ve+ne.text.slice(K.ch),me);else{var Ve=P(1,Z.length-1);Ve.push(new fo(ve+ne.text.slice(K.ch),me,f)),V(ne,ne.text.slice(0,j.ch)+Z[0],v(0)),a.insert(j.line+1,Ve)}else if(Z.length==1)V(ne,ne.text.slice(0,j.ch)+Z[0]+re.text.slice(K.ch),v(0)),a.remove(j.line+1,Se);else{V(ne,ne.text.slice(0,j.ch)+Z[0],v(0)),V(re,ve+re.text.slice(K.ch),me);var Ie=P(1,Z.length-1);Se>1&&a.remove(j.line+1,Se-1),a.insert(j.line+1,Ie)}Xt(a,"change",a,s)}function nr(a,s,p){function f(v,V,P){if(v.linked)for(var j=0;j<v.linked.length;++j){var K=v.linked[j];if(K.doc!=V){var Z=P&&K.sharedHist;p&&!Z||(s(K.doc,Z),f(K.doc,v,Z))}}}f(a,null,!0)}function T0(a,s){if(s.cm)throw new Error("This document is already in use.");a.doc=s,s.cm=a,Lf(a),qf(a),D0(a),a.options.direction=s.direction,a.options.lineWrapping||Tf(a),a.options.mode=s.modeOption,yn(a)}function D0(a){(a.doc.direction=="rtl"?Q:L)(a.display.lineDiv,"CodeMirror-rtl")}function K4(a){Dn(a,function(){D0(a),yn(a)})}function zs(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}function tp(a,s){var p={from:ht(s.from),to:tr(s),text:Vi(a,s.from,s.to)};return B0(a,p,s.from.line,s.to.line+1),nr(a,function(f){return B0(f,p,s.from.line,s.to.line+1)},!0),p}function V0(a){for(;a.length;){var s=he(a);if(s.ranges)a.pop();else break}}function Y4(a,s){if(s)return V0(a.done),he(a.done);if(a.done.length&&!he(a.done).ranges)return he(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),he(a.done)}function O0(a,s,p,f){var v=a.history;v.undone.length=0;var V=+new Date,P,j;if((v.lastOp==f||v.lastOrigin==s.origin&&s.origin&&(s.origin.charAt(0)=="+"&&v.lastModTime>V-(a.cm?a.cm.options.historyEventDelay:500)||s.origin.charAt(0)=="*"))&&(P=Y4(v,v.lastOp==f)))j=he(P.changes),Ee(s.from,s.to)==0&&Ee(s.from,j.to)==0?j.to=tr(s):P.changes.push(tp(a,s));else{var K=he(v.done);for((!K||!K.ranges)&&Us(a.sel,v.done),P={changes:[tp(a,s)],generation:v.generation},v.done.push(P);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(p),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=V,v.lastOp=v.lastSelOp=f,v.lastOrigin=v.lastSelOrigin=s.origin,j||Qe(a,"historyAdded")}function Q4(a,s,p,f){var v=s.charAt(0);return v=="*"||v=="+"&&p.ranges.length==f.ranges.length&&p.somethingSelected()==f.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function J4(a,s,p,f){var v=a.history,V=f&&f.origin;p==v.lastSelOp||V&&v.lastSelOrigin==V&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==V||Q4(a,V,he(v.done),s))?v.done[v.done.length-1]=s:Us(s,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=V,v.lastSelOp=p,f&&f.clearRedo!==!1&&V0(v.undone)}function Us(a,s){var p=he(s);p&&p.ranges&&p.equals(a)||s.push(a)}function B0(a,s,p,f){var v=s["spans_"+a.id],V=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,f),function(P){P.markedSpans&&((v||(v=s["spans_"+a.id]={}))[V]=P.markedSpans),++V})}function X4(a){if(!a)return null;for(var s,p=0;p<a.length;++p)a[p].marker.explicitlyCleared?s||(s=a.slice(0,p)):s&&s.push(a[p]);return s?s.length?s:null:a}function Z4(a,s){var p=s["spans_"+a.id];if(!p)return null;for(var f=[],v=0;v<s.text.length;++v)f.push(X4(p[v]));return f}function R0(a,s){var p=Z4(a,s),f=Af(a,s);if(!p)return f;if(!f)return p;for(var v=0;v<p.length;++v){var V=p[v],P=f[v];if(V&&P){e:for(var j=0;j<P.length;++j){for(var K=P[j],Z=0;Z<V.length;++Z)if(V[Z].marker==K.marker)continue e;V.push(K)}}else P&&(p[v]=P)}return p}function wo(a,s,p){for(var f=[],v=0;v<a.length;++v){var V=a[v];if(V.ranges){f.push(p?Mn.prototype.deepCopy.call(V):V);continue}var P=V.changes,j=[];f.push({changes:j});for(var K=0;K<P.length;++K){var Z=P[K],ne=void 0;if(j.push({from:Z.from,to:Z.to,text:Z.text}),s)for(var re in Z)(ne=re.match(/^spans_(\d+)$/))&&se(s,Number(ne[1]))>-1&&(he(j)[re]=Z[re],delete Z[re])}}return f}function np(a,s,p,f){if(f){var v=a.anchor;if(p){var V=Ee(s,v)<0;V!=Ee(p,v)<0?(v=s,s=p):V!=Ee(s,p)<0&&(s=p)}return new Ct(v,s)}else return new Ct(p||s,s)}function Hs(a,s,p,f,v){v==null&&(v=a.cm&&(a.cm.display.shift||a.extend)),ln(a,new Mn([np(a.sel.primary(),s,p,v)],0),f)}function $0(a,s,p){for(var f=[],v=a.cm&&(a.cm.display.shift||a.extend),V=0;V<a.sel.ranges.length;V++)f[V]=np(a.sel.ranges[V],s[V],null,v);var P=ri(a.cm,f,a.sel.primIndex);ln(a,P,p)}function ip(a,s,p,f){var v=a.sel.ranges.slice(0);v[s]=p,ln(a,ri(a.cm,v,a.sel.primIndex),f)}function I0(a,s,p,f){ln(a,er(s,p),f)}function q4(a,s,p){var f={ranges:s.ranges,update:function(v){this.ranges=[];for(var V=0;V<v.length;V++)this.ranges[V]=new Ct(at(a,v[V].anchor),at(a,v[V].head))},origin:p&&p.origin};return Qe(a,"beforeSelectionChange",a,f),a.cm&&Qe(a.cm,"beforeSelectionChange",a.cm,f),f.ranges!=s.ranges?ri(a.cm,f.ranges,f.ranges.length-1):s}function F0(a,s,p){var f=a.history.done,v=he(f);v&&v.ranges?(f[f.length-1]=s,Ws(a,s,p)):ln(a,s,p)}function ln(a,s,p){Ws(a,s,p),J4(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}function Ws(a,s,p){(Rt(a,"beforeSelectionChange")||a.cm&&Rt(a.cm,"beforeSelectionChange"))&&(s=q4(a,s,p));var f=p&&p.bias||(Ee(s.primary().head,a.sel.primary().head)<0?-1:1);P0(a,L0(a,s,f,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption("readOnly")!="nocursor"&&yo(a.cm)}function P0(a,s){s.equals(a.sel)||(a.sel=s,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,gn(a.cm)),Xt(a,"cursorActivity",a))}function M0(a){P0(a,L0(a,a.sel,null,!1))}function L0(a,s,p,f){for(var v,V=0;V<s.ranges.length;V++){var P=s.ranges[V],j=s.ranges.length==a.sel.ranges.length&&a.sel.ranges[V],K=Gs(a,P.anchor,j&&j.anchor,p,f),Z=P.head==P.anchor?K:Gs(a,P.head,j&&j.head,p,f);(v||K!=P.anchor||Z!=P.head)&&(v||(v=s.ranges.slice(0,V)),v[V]=new Ct(K,Z))}return v?ri(a.cm,v,s.primIndex):s}function Co(a,s,p,f,v){var V=Je(a,s.line);if(V.markedSpans)for(var P=0;P<V.markedSpans.length;++P){var j=V.markedSpans[P],K=j.marker,Z="selectLeft"in K?!K.selectLeft:K.inclusiveLeft,ne="selectRight"in K?!K.selectRight:K.inclusiveRight;if((j.from==null||(Z?j.from<=s.ch:j.from<s.ch))&&(j.to==null||(ne?j.to>=s.ch:j.to>s.ch))){if(v&&(Qe(K,"beforeCursorEnter"),K.explicitlyCleared))if(V.markedSpans){--P;continue}else break;if(!K.atomic)continue;if(p){var re=K.find(f<0?1:-1),ve=void 0;if((f<0?ne:Z)&&(re=j0(a,re,-f,re&&re.line==s.line?V:null)),re&&re.line==s.line&&(ve=Ee(re,p))&&(f<0?ve<0:ve>0))return Co(a,re,s,f,v)}var me=K.find(f<0?-1:1);return(f<0?Z:ne)&&(me=j0(a,me,f,me.line==s.line?V:null)),me?Co(a,me,s,f,v):null}}return s}function Gs(a,s,p,f,v){var V=f||1,P=Co(a,s,p,V,v)||!v&&Co(a,s,p,V,!0)||Co(a,s,p,-V,v)||!v&&Co(a,s,p,-V,!0);return P||(a.cantEdit=!0,ue(a.first,0))}function j0(a,s,p,f){return p<0&&s.ch==0?s.line>a.first?at(a,ue(s.line-1)):null:p>0&&s.ch==(f||Je(a,s.line)).text.length?s.line<a.first+a.size-1?ue(s.line+1,0):null:new ue(s.line,s.ch+p)}function z0(a){a.setSelection(ue(a.firstLine(),0),ue(a.lastLine()),D)}function U0(a,s,p){var f={canceled:!1,from:s.from,to:s.to,text:s.text,origin:s.origin,cancel:function(){return f.canceled=!0}};return p&&(f.update=function(v,V,P,j){v&&(f.from=at(a,v)),V&&(f.to=at(a,V)),P&&(f.text=P),j!==void 0&&(f.origin=j)}),Qe(a,"beforeChange",a,f),a.cm&&Qe(a.cm,"beforeChange",a.cm,f),f.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:f.from,to:f.to,text:f.text,origin:f.origin}}function _o(a,s,p){if(a.cm){if(!a.cm.curOp)return Zt(a.cm,_o)(a,s,p);if(a.cm.state.suppressEdits)return}if(!((Rt(a,"beforeChange")||a.cm&&Rt(a.cm,"beforeChange"))&&(s=U0(a,s,!0),!s))){var f=Ry&&!p&&J8(a,s.from,s.to);if(f)for(var v=f.length-1;v>=0;--v)H0(a,{from:f[v].from,to:f[v].to,text:v?[""]:s.text,origin:s.origin});else H0(a,s)}}function H0(a,s){if(!(s.text.length==1&&s.text[0]==""&&Ee(s.from,s.to)==0)){var p=Zf(a,s);O0(a,s,p,a.cm?a.cm.curOp.id:NaN),Da(a,s,p,Af(a,s));var f=[];nr(a,function(v,V){!V&&se(f,v.history)==-1&&(Y0(v.history,s),f.push(v.history)),Da(v,s,null,Af(v,s))})}}function Ks(a,s,p){var f=a.cm&&a.cm.state.suppressEdits;if(!(f&&!p)){for(var v=a.history,V,P=a.sel,j=s=="undo"?v.done:v.undone,K=s=="undo"?v.undone:v.done,Z=0;Z<j.length&&(V=j[Z],!(p?V.ranges&&!V.equals(a.sel):!V.ranges));Z++);if(Z!=j.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(V=j.pop(),V.ranges){if(Us(V,K),p&&!V.equals(a.sel)){ln(a,V,{clearRedo:!1});return}P=V}else if(f){j.push(V);return}else break;var ne=[];Us(P,K),K.push({changes:ne,generation:v.generation}),v.generation=V.generation||++v.maxGeneration;for(var re=Rt(a,"beforeChange")||a.cm&&Rt(a.cm,"beforeChange"),ve=function(Ne){var Ve=V.changes[Ne];if(Ve.origin=s,re&&!U0(a,Ve,!1))return j.length=0,{};ne.push(tp(a,Ve));var Ie=Ne?Zf(a,Ve):he(j);Da(a,Ve,Ie,R0(a,Ve)),!Ne&&a.cm&&a.cm.scrollIntoView({from:Ve.from,to:tr(Ve)});var Ue=[];nr(a,function(Fe,Ge){!Ge&&se(Ue,Fe.history)==-1&&(Y0(Fe.history,Ve),Ue.push(Fe.history)),Da(Fe,Ve,null,R0(Fe,Ve))})},me=V.changes.length-1;me>=0;--me){var Se=ve(me);if(Se)return Se.v}}}}function W0(a,s){if(s!=0&&(a.first+=s,a.sel=new Mn(Ae(a.sel.ranges,function(v){return new Ct(ue(v.anchor.line+s,v.anchor.ch),ue(v.head.line+s,v.head.ch))}),a.sel.primIndex),a.cm)){yn(a.cm,a.first,a.first-s,s);for(var p=a.cm.display,f=p.viewFrom;f<p.viewTo;f++)Zi(a.cm,f,"gutter")}}function Da(a,s,p,f){if(a.cm&&!a.cm.curOp)return Zt(a.cm,Da)(a,s,p,f);if(s.to.line<a.first){W0(a,s.text.length-1-(s.to.line-s.from.line));return}if(!(s.from.line>a.lastLine())){if(s.from.line<a.first){var v=s.text.length-1-(a.first-s.from.line);W0(a,v),s={from:ue(a.first,0),to:ue(s.to.line+v,s.to.ch),text:[he(s.text)],origin:s.origin}}var V=a.lastLine();s.to.line>V&&(s={from:s.from,to:ue(V,Je(a,V).text.length),text:[s.text[0]],origin:s.origin}),s.removed=Vi(a,s.from,s.to),p||(p=Zf(a,s)),a.cm?e5(a.cm,s,f):ep(a,s,f),Ws(a,p,D),a.cantEdit&&Gs(a,ue(a.firstLine(),0))&&(a.cantEdit=!1)}}function e5(a,s,p){var f=a.doc,v=a.display,V=s.from,P=s.to,j=!1,K=V.line;a.options.lineWrapping||(K=wt(ni(Je(f,V.line))),f.iter(K,P.line+1,function(me){if(me==v.maxLine)return j=!0,!0})),f.sel.contains(s.from,s.to)>-1&&gn(a),ep(f,s,p,c0(a)),a.options.lineWrapping||(f.iter(K,V.line+s.text.length,function(me){var Se=Ds(me);Se>v.maxLineLength&&(v.maxLine=me,v.maxLineLength=Se,v.maxLineChanged=!0,j=!1)}),j&&(a.curOp.updateMaxLine=!0)),U8(f,V.line),ka(a,400);var Z=s.text.length-(P.line-V.line)-1;s.full?yn(a):V.line==P.line&&s.text.length==1&&!N0(a.doc,s)?Zi(a,V.line,"text"):yn(a,V.line,P.line+1,Z);var ne=Rt(a,"changes"),re=Rt(a,"change");if(re||ne){var ve={from:V,to:P,text:s.text,removed:s.removed,origin:s.origin};re&&Xt(a,"change",a,ve),ne&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(ve)}a.display.selForContextMenu=null}function Eo(a,s,p,f,v){var V;f||(f=p),Ee(f,p)<0&&(V=[f,p],p=V[0],f=V[1]),typeof s=="string"&&(s=a.splitLines(s)),_o(a,{from:p,to:f,text:s,origin:v})}function G0(a,s,p,f){p<a.line?a.line+=f:s<a.line&&(a.line=s,a.ch=0)}function K0(a,s,p,f){for(var v=0;v<a.length;++v){var V=a[v],P=!0;if(V.ranges){V.copied||(V=a[v]=V.deepCopy(),V.copied=!0);for(var j=0;j<V.ranges.length;j++)G0(V.ranges[j].anchor,s,p,f),G0(V.ranges[j].head,s,p,f);continue}for(var K=0;K<V.changes.length;++K){var Z=V.changes[K];if(p<Z.from.line)Z.from=ue(Z.from.line+f,Z.from.ch),Z.to=ue(Z.to.line+f,Z.to.ch);else if(s<=Z.to.line){P=!1;break}}P||(a.splice(0,v+1),v=0)}}function Y0(a,s){var p=s.from.line,f=s.to.line,v=s.text.length-(f-p)-1;K0(a.done,p,f,v),K0(a.undone,p,f,v)}function Va(a,s,p,f){var v=s,V=s;return typeof s=="number"?V=Je(a,Pn(a,s)):v=wt(s),v==null?null:(f(V,v)&&a.cm&&Zi(a.cm,v,p),V)}function Oa(a){this.lines=a,this.parent=null;for(var s=0,p=0;p<a.length;++p)a[p].parent=this,s+=a[p].height;this.height=s}Oa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,s){for(var p=a,f=a+s;p<f;++p){var v=this.lines[p];this.height-=v.height,t4(v),Xt(v,"delete")}this.lines.splice(a,s)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,s,p){this.height+=p,this.lines=this.lines.slice(0,a).concat(s).concat(this.lines.slice(a));for(var f=0;f<s.length;++f)s[f].parent=this},iterN:function(a,s,p){for(var f=a+s;a<f;++a)if(p(this.lines[a]))return!0}};function Ba(a){this.children=a;for(var s=0,p=0,f=0;f<a.length;++f){var v=a[f];s+=v.chunkSize(),p+=v.height,v.parent=this}this.size=s,this.height=p,this.parent=null}Ba.prototype={chunkSize:function(){return this.size},removeInner:function(a,s){this.size-=s;for(var p=0;p<this.children.length;++p){var f=this.children[p],v=f.chunkSize();if(a<v){var V=Math.min(s,v-a),P=f.height;if(f.removeInner(a,V),this.height-=P-f.height,v==V&&(this.children.splice(p--,1),f.parent=null),(s-=V)==0)break;a=0}else a-=v}if(this.size-s<25&&(this.children.length>1||!(this.children[0]instanceof Oa))){var j=[];this.collapse(j),this.children=[new Oa(j)],this.children[0].parent=this}},collapse:function(a){for(var s=0;s<this.children.length;++s)this.children[s].collapse(a)},insertInner:function(a,s,p){this.size+=s.length,this.height+=p;for(var f=0;f<this.children.length;++f){var v=this.children[f],V=v.chunkSize();if(a<=V){if(v.insertInner(a,s,p),v.lines&&v.lines.length>50){for(var P=v.lines.length%25+25,j=P;j<v.lines.length;){var K=new Oa(v.lines.slice(j,j+=25));v.height-=K.height,this.children.splice(++f,0,K),K.parent=this}v.lines=v.lines.slice(0,P),this.maybeSpill()}break}a-=V}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var s=a.children.splice(a.children.length-5,5),p=new Ba(s);if(a.parent){a.size-=p.size,a.height-=p.height;var v=se(a.parent.children,a);a.parent.children.splice(v+1,0,p)}else{var f=new Ba(a.children);f.parent=a,a.children=[f,p],a=f}p.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,s,p){for(var f=0;f<this.children.length;++f){var v=this.children[f],V=v.chunkSize();if(a<V){var P=Math.min(s,V-a);if(v.iterN(a,P,p))return!0;if((s-=P)==0)break;a=0}else a-=V}}};var Ra=function(a,s,p){if(p)for(var f in p)p.hasOwnProperty(f)&&(this[f]=p[f]);this.doc=a,this.node=s};Ra.prototype.clear=function(){var a=this.doc.cm,s=this.line.widgets,p=this.line,f=wt(p);if(!(f==null||!s)){for(var v=0;v<s.length;++v)s[v]==this&&s.splice(v--,1);s.length||(p.widgets=null);var V=wa(this);Yn(p,Math.max(0,p.height-V)),a&&(Dn(a,function(){Q0(a,p,-V),Zi(a,f,"widget")}),Xt(a,"lineWidgetCleared",a,this,f))}},Ra.prototype.changed=function(){var a=this,s=this.height,p=this.doc.cm,f=this.line;this.height=null;var v=wa(this)-s;!v||(Xi(this.doc,f)||Yn(f,f.height+v),p&&Dn(p,function(){p.curOp.forceUpdate=!0,Q0(p,f,v),Xt(p,"lineWidgetChanged",p,a,wt(f))}))},Tt(Ra);function Q0(a,s,p){Bi(s)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Gf(a,p)}function t5(a,s,p,f){var v=new Ra(a,p,f),V=a.cm;return V&&v.noHScroll&&(V.display.alignWidgets=!0),Va(a,s,"widget",function(P){var j=P.widgets||(P.widgets=[]);if(v.insertAt==null?j.push(v):j.splice(Math.min(j.length,Math.max(0,v.insertAt)),0,v),v.line=P,V&&!Xi(a,P)){var K=Bi(P)<a.scrollTop;Yn(P,P.height+wa(v)),K&&Gf(V,v.height),V.curOp.forceUpdate=!0}return!0}),V&&Xt(V,"lineWidgetAdded",V,v,typeof s=="number"?s:wt(s)),v}var J0=0,ir=function(a,s){this.lines=[],this.type=s,this.doc=a,this.id=++J0};ir.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,s=a&&!a.curOp;if(s&&Ar(a),Rt(this,"clear")){var p=this.find();p&&Xt(this,"clear",p.from,p.to)}for(var f=null,v=null,V=0;V<this.lines.length;++V){var P=this.lines[V],j=va(P.markedSpans,this);a&&!this.collapsed?Zi(a,wt(P),"text"):a&&(j.to!=null&&(v=wt(P)),j.from!=null&&(f=wt(P))),P.markedSpans=G8(P.markedSpans,j),j.from==null&&this.collapsed&&!Xi(this.doc,P)&&a&&Yn(P,mo(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var K=0;K<this.lines.length;++K){var Z=ni(this.lines[K]),ne=Ds(Z);ne>a.display.maxLineLength&&(a.display.maxLine=Z,a.display.maxLineLength=ne,a.display.maxLineChanged=!0)}f!=null&&a&&this.collapsed&&yn(a,f,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&M0(a.doc)),a&&Xt(a,"markerCleared",a,this,f,v),s&&xr(a),this.parent&&this.parent.clear()}},ir.prototype.find=function(a,s){a==null&&this.type=="bookmark"&&(a=1);for(var p,f,v=0;v<this.lines.length;++v){var V=this.lines[v],P=va(V.markedSpans,this);if(P.from!=null&&(p=ue(s?V:wt(V),P.from),a==-1))return p;if(P.to!=null&&(f=ue(s?V:wt(V),P.to),a==1))return f}return p&&{from:p,to:f}},ir.prototype.changed=function(){var a=this,s=this.find(-1,!0),p=this,f=this.doc.cm;!s||!f||Dn(f,function(){var v=s.line,V=wt(s.line),P=Bf(f,V);if(P&&(n0(P),f.curOp.selectionChanged=f.curOp.forceUpdate=!0),f.curOp.updateMaxLine=!0,!Xi(p.doc,v)&&p.height!=null){var j=p.height;p.height=null;var K=wa(p)-j;K&&Yn(v,v.height+K)}Xt(f,"markerChanged",f,a)})},ir.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(!s.maybeHiddenMarkers||se(s.maybeHiddenMarkers,this)==-1)&&(s.maybeUnhiddenMarkers||(s.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ir.prototype.detachLine=function(a){if(this.lines.splice(se(this.lines,a),1),!this.lines.length&&this.doc.cm){var s=this.doc.cm.curOp;(s.maybeHiddenMarkers||(s.maybeHiddenMarkers=[])).push(this)}},Tt(ir);function So(a,s,p,f,v){if(f&&f.shared)return n5(a,s,p,f,v);if(a.cm&&!a.cm.curOp)return Zt(a.cm,So)(a,s,p,f,v);var V=new ir(a,v),P=Ee(s,p);if(f&&ce(f,V,!1),P>0||P==0&&V.clearWhenEmpty!==!1)return V;if(V.replacedWith&&(V.collapsed=!0,V.widgetNode=z("span",[V.replacedWith],"CodeMirror-widget"),f.handleMouseEvents||V.widgetNode.setAttribute("cm-ignore-events","true"),f.insertLeft&&(V.widgetNode.insertLeft=!0)),V.collapsed){if(Ly(a,s.line,s,p,V)||s.line!=p.line&&Ly(a,p.line,s,p,V))throw new Error("Inserting collapsed marker partially overlapping an existing one");W8()}V.addToHistory&&O0(a,{from:s,to:p,origin:"markText"},a.sel,NaN);var j=s.line,K=a.cm,Z;if(a.iter(j,p.line+1,function(re){K&&V.collapsed&&!K.options.lineWrapping&&ni(re)==K.display.maxLine&&(Z=!0),V.collapsed&&j!=s.line&&Yn(re,0),K8(re,new xs(V,j==s.line?s.ch:null,j==p.line?p.ch:null),a.cm&&a.cm.curOp),++j}),V.collapsed&&a.iter(s.line,p.line+1,function(re){Xi(a,re)&&Yn(re,0)}),V.clearOnEnter&&Ce(V,"beforeCursorEnter",function(){return V.clear()}),V.readOnly&&(H8(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),V.collapsed&&(V.id=++J0,V.atomic=!0),K){if(Z&&(K.curOp.updateMaxLine=!0),V.collapsed)yn(K,s.line,p.line+1);else if(V.className||V.startStyle||V.endStyle||V.css||V.attributes||V.title)for(var ne=s.line;ne<=p.line;ne++)Zi(K,ne,"text");V.atomic&&M0(K.doc),Xt(K,"markerAdded",K,V)}return V}var $a=function(a,s){this.markers=a,this.primary=s;for(var p=0;p<a.length;++p)a[p].parent=this};$a.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Xt(this,"clear")}},$a.prototype.find=function(a,s){return this.primary.find(a,s)},Tt($a);function n5(a,s,p,f,v){f=ce(f),f.shared=!1;var V=[So(a,s,p,f,v)],P=V[0],j=f.widgetNode;return nr(a,function(K){j&&(f.widgetNode=j.cloneNode(!0)),V.push(So(K,at(K,s),at(K,p),f,v));for(var Z=0;Z<K.linked.length;++Z)if(K.linked[Z].isParent)return;P=he(V)}),new $a(V,P)}function X0(a){return a.findMarks(ue(a.first,0),a.clipPos(ue(a.lastLine())),function(s){return s.parent})}function i5(a,s){for(var p=0;p<s.length;p++){var f=s[p],v=f.find(),V=a.clipPos(v.from),P=a.clipPos(v.to);if(Ee(V,P)){var j=So(a,V,P,f.primary,f.primary.type);f.markers.push(j),j.parent=f}}}function r5(a){for(var s=function(f){var v=a[f],V=[v.primary.doc];nr(v.primary.doc,function(K){return V.push(K)});for(var P=0;P<v.markers.length;P++){var j=v.markers[P];se(V,j.doc)==-1&&(j.parent=null,v.markers.splice(P--,1))}},p=0;p<a.length;p++)s(p)}var o5=0,bn=function(a,s,p,f,v){if(!(this instanceof bn))return new bn(a,s,p,f,v);p==null&&(p=0),Ba.call(this,[new Oa([new fo("",null)])]),this.first=p,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=p;var V=ue(p,0);this.sel=er(V),this.history=new zs(null),this.id=++o5,this.modeOption=s,this.lineSep=f,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ep(this,{from:V,to:V,text:a}),ln(this,er(V),D)};bn.prototype=fe(Ba.prototype,{constructor:bn,iter:function(a,s,p){p?this.iterN(a-this.first,s-a,p):this.iterN(this.first,this.first+this.size,a)},insert:function(a,s){for(var p=0,f=0;f<s.length;++f)p+=s[f].height;this.insertInner(a-this.first,s,p)},remove:function(a,s){this.removeInner(a-this.first,s)},getValue:function(a){var s=uo(this,this.first,this.first+this.size);return a===!1?s:s.join(a||this.lineSeparator())},setValue:qt(function(a){var s=ue(this.first,0),p=this.first+this.size-1;_o(this,{from:s,to:ue(p,Je(this,p).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Ea(this.cm,0,0),ln(this,er(s),D)}),replaceRange:function(a,s,p,f){s=at(this,s),p=p?at(this,p):s,Eo(this,a,s,p,f)},getRange:function(a,s,p){var f=Vi(this,at(this,a),at(this,s));return p===!1?f:p===""?f.join(""):f.join(p||this.lineSeparator())},getLine:function(a){var s=this.getLineHandle(a);return s&&s.text},getLineHandle:function(a){if(te(this,a))return Je(this,a)},getLineNumber:function(a){return wt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Je(this,a)),ni(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return at(this,a)},getCursor:function(a){var s=this.sel.primary(),p;return a==null||a=="head"?p=s.head:a=="anchor"?p=s.anchor:a=="end"||a=="to"||a===!1?p=s.to():p=s.from(),p},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:qt(function(a,s,p){I0(this,at(this,typeof a=="number"?ue(a,s||0):a),null,p)}),setSelection:qt(function(a,s,p){I0(this,at(this,a),at(this,s||a),p)}),extendSelection:qt(function(a,s,p){Hs(this,at(this,a),s&&at(this,s),p)}),extendSelections:qt(function(a,s){$0(this,xy(this,a),s)}),extendSelectionsBy:qt(function(a,s){var p=Ae(this.sel.ranges,a);$0(this,xy(this,p),s)}),setSelections:qt(function(a,s,p){if(!!a.length){for(var f=[],v=0;v<a.length;v++)f[v]=new Ct(at(this,a[v].anchor),at(this,a[v].head||a[v].anchor));s==null&&(s=Math.min(a.length-1,this.sel.primIndex)),ln(this,ri(this.cm,f,s),p)}}),addSelection:qt(function(a,s,p){var f=this.sel.ranges.slice(0);f.push(new Ct(at(this,a),at(this,s||a))),ln(this,ri(this.cm,f,f.length-1),p)}),getSelection:function(a){for(var s=this.sel.ranges,p,f=0;f<s.length;f++){var v=Vi(this,s[f].from(),s[f].to());p=p?p.concat(v):v}return a===!1?p:p.join(a||this.lineSeparator())},getSelections:function(a){for(var s=[],p=this.sel.ranges,f=0;f<p.length;f++){var v=Vi(this,p[f].from(),p[f].to());a!==!1&&(v=v.join(a||this.lineSeparator())),s[f]=v}return s},replaceSelection:function(a,s,p){for(var f=[],v=0;v<this.sel.ranges.length;v++)f[v]=a;this.replaceSelections(f,s,p||"+input")},replaceSelections:qt(function(a,s,p){for(var f=[],v=this.sel,V=0;V<v.ranges.length;V++){var P=v.ranges[V];f[V]={from:P.from(),to:P.to(),text:this.splitLines(a[V]),origin:p}}for(var j=s&&s!="end"&&G4(this,f,s),K=f.length-1;K>=0;K--)_o(this,f[K]);j?F0(this,j):this.cm&&yo(this.cm)}),undo:qt(function(){Ks(this,"undo")}),redo:qt(function(){Ks(this,"redo")}),undoSelection:qt(function(){Ks(this,"undo",!0)}),redoSelection:qt(function(){Ks(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,s=0,p=0,f=0;f<a.done.length;f++)a.done[f].ranges||++s;for(var v=0;v<a.undone.length;v++)a.undone[v].ranges||++p;return{undo:s,redo:p}},clearHistory:function(){var a=this;this.history=new zs(this.history),nr(this,function(s){return s.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:wo(this.history.done),undone:wo(this.history.undone)}},setHistory:function(a){var s=this.history=new zs(this.history);s.done=wo(a.done.slice(0),null,!0),s.undone=wo(a.undone.slice(0),null,!0)},setGutterMarker:qt(function(a,s,p){return Va(this,a,"gutter",function(f){var v=f.gutterMarkers||(f.gutterMarkers={});return v[s]=p,!p&&et(v)&&(f.gutterMarkers=null),!0})}),clearGutter:qt(function(a){var s=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&Va(s,p,"gutter",function(){return p.gutterMarkers[a]=null,et(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var s;if(typeof a=="number"){if(!te(this,a)||(s=a,a=Je(this,a),!a))return null}else if(s=wt(a),s==null)return null;return{line:s,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:qt(function(a,s,p){return Va(this,a,s=="gutter"?"gutter":"class",function(f){var v=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass";if(!f[v])f[v]=p;else{if(B(p).test(f[v]))return!1;f[v]+=" "+p}return!0})}),removeLineClass:qt(function(a,s,p){return Va(this,a,s=="gutter"?"gutter":"class",function(f){var v=s=="text"?"textClass":s=="background"?"bgClass":s=="gutter"?"gutterClass":"wrapClass",V=f[v];if(V)if(p==null)f[v]=null;else{var P=V.match(B(p));if(!P)return!1;var j=P.index+P[0].length;f[v]=V.slice(0,P.index)+(!P.index||j==V.length?"":" ")+V.slice(j)||null}else return!1;return!0})}),addLineWidget:qt(function(a,s,p){return t5(this,a,s,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,s,p){return So(this,at(this,a),at(this,s),p,p&&p.type||"range")},setBookmark:function(a,s){var p={replacedWith:s&&(s.nodeType==null?s.widget:s),insertLeft:s&&s.insertLeft,clearWhenEmpty:!1,shared:s&&s.shared,handleMouseEvents:s&&s.handleMouseEvents};return a=at(this,a),So(this,a,a,p,"bookmark")},findMarksAt:function(a){a=at(this,a);var s=[],p=Je(this,a.line).markedSpans;if(p)for(var f=0;f<p.length;++f){var v=p[f];(v.from==null||v.from<=a.ch)&&(v.to==null||v.to>=a.ch)&&s.push(v.marker.parent||v.marker)}return s},findMarks:function(a,s,p){a=at(this,a),s=at(this,s);var f=[],v=a.line;return this.iter(a.line,s.line+1,function(V){var P=V.markedSpans;if(P)for(var j=0;j<P.length;j++){var K=P[j];!(K.to!=null&&v==a.line&&a.ch>=K.to||K.from==null&&v!=a.line||K.from!=null&&v==s.line&&K.from>=s.ch)&&(!p||p(K.marker))&&f.push(K.marker.parent||K.marker)}++v}),f},getAllMarks:function(){var a=[];return this.iter(function(s){var p=s.markedSpans;if(p)for(var f=0;f<p.length;++f)p[f].from!=null&&a.push(p[f].marker)}),a},posFromIndex:function(a){var s,p=this.first,f=this.lineSeparator().length;return this.iter(function(v){var V=v.text.length+f;if(V>a)return s=a,!0;a-=V,++p}),at(this,ue(p,s))},indexFromPos:function(a){a=at(this,a);var s=a.ch;if(a.line<this.first||a.ch<0)return 0;var p=this.lineSeparator().length;return this.iter(this.first,a.line,function(f){s+=f.text.length+p}),s},copy:function(a){var s=new bn(uo(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return s.scrollTop=this.scrollTop,s.scrollLeft=this.scrollLeft,s.sel=this.sel,s.extend=!1,a&&(s.history.undoDepth=this.history.undoDepth,s.setHistory(this.getHistory())),s},linkedDoc:function(a){a||(a={});var s=this.first,p=this.first+this.size;a.from!=null&&a.from>s&&(s=a.from),a.to!=null&&a.to<p&&(p=a.to);var f=new bn(uo(this,s,p),a.mode||this.modeOption,s,this.lineSep,this.direction);return a.sharedHist&&(f.history=this.history),(this.linked||(this.linked=[])).push({doc:f,sharedHist:a.sharedHist}),f.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],i5(f,X0(this)),f},unlinkDoc:function(a){if(a instanceof Ot&&(a=a.doc),this.linked)for(var s=0;s<this.linked.length;++s){var p=this.linked[s];if(p.doc==a){this.linked.splice(s,1),a.unlinkDoc(this),r5(X0(this));break}}if(a.history==this.history){var f=[a.id];nr(a,function(v){return f.push(v.id)},!0),a.history=new zs(null),a.history.done=wo(this.history.done,f),a.history.undone=wo(this.history.undone,f)}},iterLinkedDocs:function(a){nr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):ha(a)},lineSeparator:function(){return this.lineSep||`
|
||
`},setDirection:qt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(s){return s.order=null}),this.cm&&K4(this.cm))})}),bn.prototype.eachLine=bn.prototype.iter;var Z0=0;function a5(a){var s=this;if(q0(s),!(ct(s,a)||Ri(s.display,a))){bt(a),u&&(Z0=+new Date);var p=Cr(s,a,!0),f=a.dataTransfer.files;if(!(!p||s.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var v=f.length,V=Array(v),P=0,j=function(){++P==v&&Zt(s,function(){p=at(s.doc,p);var me={from:p,to:p,text:s.doc.splitLines(V.filter(function(Se){return Se!=null}).join(s.doc.lineSeparator())),origin:"paste"};_o(s.doc,me),F0(s.doc,er(at(s.doc,p),at(s.doc,tr(me))))})()},K=function(me,Se){if(s.options.allowDropFileTypes&&se(s.options.allowDropFileTypes,me.type)==-1){j();return}var Ne=new FileReader;Ne.onerror=function(){return j()},Ne.onload=function(){var Ve=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ve)){j();return}V[Se]=Ve,j()},Ne.readAsText(me)},Z=0;Z<f.length;Z++)K(f[Z],Z);else{if(s.state.draggingText&&s.doc.sel.contains(p)>-1){s.state.draggingText(a),setTimeout(function(){return s.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var re;if(s.state.draggingText&&!s.state.draggingText.copy&&(re=s.listSelections()),Ws(s.doc,er(p,p)),re)for(var ve=0;ve<re.length;++ve)Eo(s.doc,"",re[ve].anchor,re[ve].head,"drag");s.replaceSelection(ne,"around","paste"),s.display.input.focus()}}catch{}}}}function l5(a,s){if(u&&(!a.state.draggingText||+new Date-Z0<100)){ei(s);return}if(!(ct(a,s)||Ri(a.display,s))&&(s.dataTransfer.setData("Text",a.getSelection()),s.dataTransfer.effectAllowed="copyMove",s.dataTransfer.setDragImage&&!E)){var p=R("img",null,null,"position: fixed; left: 0; top: 0;");p.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",w&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),s.dataTransfer.setDragImage(p,0,0),w&&p.parentNode.removeChild(p)}}function s5(a,s){var p=Cr(a,s);if(!!p){var f=document.createDocumentFragment();jf(a,p,f),a.display.dragCursor||(a.display.dragCursor=R("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),H(a.display.dragCursor,f)}}function q0(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function eb(a){if(!!document.getElementsByClassName){for(var s=document.getElementsByClassName("CodeMirror"),p=[],f=0;f<s.length;f++){var v=s[f].CodeMirror;v&&p.push(v)}p.length&&p[0].operation(function(){for(var V=0;V<p.length;V++)a(p[V])})}}var tb=!1;function d5(){tb||(c5(),tb=!0)}function c5(){var a;Ce(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,eb(u5)},100))}),Ce(window,"blur",function(){return eb(vo)})}function u5(a){var s=a.display;s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.scrollbarsClipped=!1,a.setSize()}for(var rr={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"},Ia=0;Ia<10;Ia++)rr[Ia+48]=rr[Ia+96]=String(Ia);for(var Ys=65;Ys<=90;Ys++)rr[Ys]=String.fromCharCode(Ys);for(var Fa=1;Fa<=12;Fa++)rr[Fa+111]=rr[Fa+63235]="F"+Fa;var Ii={};Ii.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"},Ii.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"},Ii.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"},Ii.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"]},Ii.default=T?Ii.macDefault:Ii.pcDefault;function f5(a){var s=a.split(/-(?!$)/);a=s[s.length-1];for(var p,f,v,V,P=0;P<s.length-1;P++){var j=s[P];if(/^(cmd|meta|m)$/i.test(j))V=!0;else if(/^a(lt)?$/i.test(j))p=!0;else if(/^(c|ctrl|control)$/i.test(j))f=!0;else if(/^s(hift)?$/i.test(j))v=!0;else throw new Error("Unrecognized modifier name: "+j)}return p&&(a="Alt-"+a),f&&(a="Ctrl-"+a),V&&(a="Cmd-"+a),v&&(a="Shift-"+a),a}function p5(a){var s={};for(var p in a)if(a.hasOwnProperty(p)){var f=a[p];if(/^(name|fallthrough|(de|at)tach)$/.test(p))continue;if(f=="..."){delete a[p];continue}for(var v=Ae(p.split(" "),f5),V=0;V<v.length;V++){var P=void 0,j=void 0;V==v.length-1?(j=v.join(" "),P=f):(j=v.slice(0,V+1).join(" "),P="...");var K=s[j];if(!K)s[j]=P;else if(K!=P)throw new Error("Inconsistent bindings for "+j)}delete a[p]}for(var Z in s)a[Z]=s[Z];return a}function Ao(a,s,p,f){s=Qs(s);var v=s.call?s.call(a,f):s[a];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&p(v))return"handled";if(s.fallthrough){if(Object.prototype.toString.call(s.fallthrough)!="[object Array]")return Ao(a,s.fallthrough,p,f);for(var V=0;V<s.fallthrough.length;V++){var P=Ao(a,s.fallthrough[V],p,f);if(P)return P}}}function nb(a){var s=typeof a=="string"?a:rr[a.keyCode];return s=="Ctrl"||s=="Alt"||s=="Shift"||s=="Mod"}function ib(a,s,p){var f=a;return s.altKey&&f!="Alt"&&(a="Alt-"+a),(M?s.metaKey:s.ctrlKey)&&f!="Ctrl"&&(a="Ctrl-"+a),(M?s.ctrlKey:s.metaKey)&&f!="Mod"&&(a="Cmd-"+a),!p&&s.shiftKey&&f!="Shift"&&(a="Shift-"+a),a}function rb(a,s){if(w&&a.keyCode==34&&a.char)return!1;var p=rr[a.keyCode];return p==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(p=a.code),ib(p,a,s))}function Qs(a){return typeof a=="string"?Ii[a]:a}function xo(a,s){for(var p=a.doc.sel.ranges,f=[],v=0;v<p.length;v++){for(var V=s(p[v]);f.length&&Ee(V.from,he(f).to)<=0;){var P=f.pop();if(Ee(P.from,V.from)<0){V.from=P.from;break}}f.push(V)}Dn(a,function(){for(var j=f.length-1;j>=0;j--)Eo(a.doc,"",f[j].from,f[j].to,"+delete");yo(a)})}function rp(a,s,p){var f=Ke(a.text,s+p,p);return f<0||f>a.text.length?null:f}function op(a,s,p){var f=rp(a,s.ch,p);return f==null?null:new ue(s.line,f,p<0?"after":"before")}function ap(a,s,p,f,v){if(a){s.doc.direction=="rtl"&&(v=-v);var V=tt(p,s.doc.direction);if(V){var P=v<0?he(V):V[0],j=v<0==(P.level==1),K=j?"after":"before",Z;if(P.level>0||s.doc.direction=="rtl"){var ne=ho(s,p);Z=v<0?p.text.length-1:0;var re=Ci(s,ne,Z).top;Z=Re(function(ve){return Ci(s,ne,ve).top==re},v<0==(P.level==1)?P.from:P.to-1,Z),K=="before"&&(Z=rp(p,Z,1))}else Z=v<0?P.to:P.from;return new ue(f,Z,K)}}return new ue(f,v<0?p.text.length:0,v<0?"before":"after")}function h5(a,s,p,f){var v=tt(s,a.doc.direction);if(!v)return op(s,p,f);p.ch>=s.text.length?(p.ch=s.text.length,p.sticky="before"):p.ch<=0&&(p.ch=0,p.sticky="after");var V=De(v,p.ch,p.sticky),P=v[V];if(a.doc.direction=="ltr"&&P.level%2==0&&(f>0?P.to>p.ch:P.from<p.ch))return op(s,p,f);var j=function(Ie,Ue){return rp(s,Ie instanceof ue?Ie.ch:Ie,Ue)},K,Z=function(Ie){return a.options.lineWrapping?(K=K||ho(a,s),d0(a,s,K,Ie)):{begin:0,end:s.text.length}},ne=Z(p.sticky=="before"?j(p,-1):p.ch);if(a.doc.direction=="rtl"||P.level==1){var re=P.level==1==f<0,ve=j(p,re?1:-1);if(ve!=null&&(re?ve<=P.to&&ve<=ne.end:ve>=P.from&&ve>=ne.begin)){var me=re?"before":"after";return new ue(p.line,ve,me)}}var Se=function(Ie,Ue,Fe){for(var Ge=function(Nt,en){return en?new ue(p.line,j(Nt,1),"before"):new ue(p.line,Nt,"after")};Ie>=0&&Ie<v.length;Ie+=Ue){var nt=v[Ie],qe=Ue>0==(nt.level!=1),pt=qe?Fe.begin:j(Fe.end,-1);if(nt.from<=pt&&pt<nt.to||(pt=qe?nt.from:j(nt.to,-1),Fe.begin<=pt&&pt<Fe.end))return Ge(pt,qe)}},Ne=Se(V+f,f,ne);if(Ne)return Ne;var Ve=f>0?ne.end:j(ne.begin,-1);return Ve!=null&&!(f>0&&Ve==s.text.length)&&(Ne=Se(f>0?0:v.length-1,f,Z(Ve)),Ne)?Ne:null}var Pa={selectAll:z0,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),D)},killLine:function(a){return xo(a,function(s){if(s.empty()){var p=Je(a.doc,s.head.line).text.length;return s.head.ch==p&&s.head.line<a.lastLine()?{from:s.head,to:ue(s.head.line+1,0)}:{from:s.head,to:ue(s.head.line,p)}}else return{from:s.from(),to:s.to()}})},deleteLine:function(a){return xo(a,function(s){return{from:ue(s.from().line,0),to:at(a.doc,ue(s.to().line+1,0))}})},delLineLeft:function(a){return xo(a,function(s){return{from:ue(s.from().line,0),to:s.from()}})},delWrappedLineLeft:function(a){return xo(a,function(s){var p=a.charCoords(s.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return{from:f,to:s.from()}})},delWrappedLineRight:function(a){return xo(a,function(s){var p=a.charCoords(s.head,"div").top+5,f=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div");return{from:s.from(),to:f}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ue(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ue(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(s){return ob(a,s.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(s){return ab(a,s.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(s){return m5(a,s.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},"div")},Y)},goLineLeft:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5;return a.coordsChar({left:0,top:p},"div")},Y)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(s){var p=a.cursorCoords(s.head,"div").top+5,f=a.coordsChar({left:0,top:p},"div");return f.ch<a.getLine(f.line).search(/\S/)?ab(a,s.head):f},Y)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var s=[],p=a.listSelections(),f=a.options.tabSize,v=0;v<p.length;v++){var V=p[v].from(),P=de(a.getLine(V.line),V.ch,f);s.push(oe(f-P%f))}a.replaceSelections(s)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Dn(a,function(){for(var s=a.listSelections(),p=[],f=0;f<s.length;f++)if(!!s[f].empty()){var v=s[f].head,V=Je(a.doc,v.line).text;if(V){if(v.ch==V.length&&(v=new ue(v.line,v.ch-1)),v.ch>0)v=new ue(v.line,v.ch+1),a.replaceRange(V.charAt(v.ch-1)+V.charAt(v.ch-2),ue(v.line,v.ch-2),v,"+transpose");else if(v.line>a.doc.first){var P=Je(a.doc,v.line-1).text;P&&(v=new ue(v.line,1),a.replaceRange(V.charAt(0)+a.doc.lineSeparator()+P.charAt(P.length-1),ue(v.line-1,P.length-1),v,"+transpose"))}}p.push(new Ct(v,v))}a.setSelections(p)})},newlineAndIndent:function(a){return Dn(a,function(){for(var s=a.listSelections(),p=s.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),s[p].anchor,s[p].head,"+input");s=a.listSelections();for(var f=0;f<s.length;f++)a.indentLine(s[f].from().line,null,!0);yo(a)})},openLine:function(a){return a.replaceSelection(`
|
||
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ob(a,s){var p=Je(a.doc,s),f=ni(p);return f!=p&&(s=wt(f)),ap(!0,a,f,s,1)}function m5(a,s){var p=Je(a.doc,s),f=Z8(p);return f!=p&&(s=wt(f)),ap(!0,a,p,s,-1)}function ab(a,s){var p=ob(a,s.line),f=Je(a.doc,p.line),v=tt(f,a.doc.direction);if(!v||v[0].level==0){var V=Math.max(p.ch,f.text.search(/\S/)),P=s.line==p.line&&s.ch<=V&&s.ch;return ue(p.line,P?0:V,p.sticky)}return p}function Js(a,s,p){if(typeof s=="string"&&(s=Pa[s],!s))return!1;a.display.input.ensurePolled();var f=a.display.shift,v=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),v=s(a)!=ye}finally{a.display.shift=f,a.state.suppressEdits=!1}return v}function g5(a,s,p){for(var f=0;f<a.state.keyMaps.length;f++){var v=Ao(s,a.state.keyMaps[f],p,a);if(v)return v}return a.options.extraKeys&&Ao(s,a.options.extraKeys,p,a)||Ao(s,a.options.keyMap,p,a)}var v5=new pe;function Ma(a,s,p,f){var v=a.state.keySeq;if(v){if(nb(s))return"handled";if(/\'$/.test(s)?a.state.keySeq=null:v5.set(50,function(){a.state.keySeq==v&&(a.state.keySeq=null,a.display.input.reset())}),lb(a,v+" "+s,p,f))return!0}return lb(a,s,p,f)}function lb(a,s,p,f){var v=g5(a,s,f);return v=="multi"&&(a.state.keySeq=s),v=="handled"&&Xt(a,"keyHandled",a,s,p),(v=="handled"||v=="multi")&&(bt(p),zf(a)),!!v}function sb(a,s){var p=rb(s,!0);return p?s.shiftKey&&!a.state.keySeq?Ma(a,"Shift-"+p,s,function(f){return Js(a,f,!0)})||Ma(a,p,s,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Js(a,f)}):Ma(a,p,s,function(f){return Js(a,f)}):!1}function y5(a,s,p){return Ma(a,"'"+p+"'",s,function(f){return Js(a,f,!0)})}var lp=null;function db(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&(s.curOp.focus=J(X(s)),!ct(s,a))){u&&h<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;s.display.shift=p==16||a.shiftKey;var f=sb(s,a);w&&(lp=f?p:null,!f&&p==88&&!gi&&(T?a.metaKey:a.ctrlKey)&&s.replaceSelection("",null,"cut")),i&&!T&&!f&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(s.display.lineDiv.className)&&b5(s)}}function b5(a){var s=a.display.lineDiv;Q(s,"CodeMirror-crosshair");function p(f){(f.keyCode==18||!f.altKey)&&(L(s,"CodeMirror-crosshair"),Ye(document,"keyup",p),Ye(document,"mouseover",p))}Ce(document,"keyup",p),Ce(document,"mouseover",p)}function cb(a){a.keyCode==16&&(this.doc.sel.shift=!1),ct(this,a)}function ub(a){var s=this;if(!(a.target&&a.target!=s.display.input.getField())&&!(Ri(s.display,a)||ct(s,a)||a.ctrlKey&&!a.altKey||T&&a.metaKey)){var p=a.keyCode,f=a.charCode;if(w&&p==lp){lp=null,bt(a);return}if(!(w&&(!a.which||a.which<10)&&sb(s,a))){var v=String.fromCharCode(f==null?p:f);v!="\b"&&(y5(s,a,v)||s.display.input.onKeyPress(a))}}}var w5=400,sp=function(a,s,p){this.time=a,this.pos=s,this.button=p};sp.prototype.compare=function(a,s,p){return this.time+w5>a&&Ee(s,this.pos)==0&&p==this.button};var La,ja;function C5(a,s){var p=+new Date;return ja&&ja.compare(p,a,s)?(La=ja=null,"triple"):La&&La.compare(p,a,s)?(ja=new sp(p,a,s),La=null,"double"):(La=new sp(p,a,s),ja=null,"single")}function fb(a){var s=this,p=s.display;if(!(ct(s,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,Ri(p,a)){m||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!dp(s,a)){var f=Cr(s,a),v=pa(a),V=f?C5(f,v):"single";le(s).focus(),v==1&&s.state.selectingText&&s.state.selectingText(a),!(f&&_5(s,v,f,V,a))&&(v==1?f?S5(s,f,V,a):vn(a)==p.scroller&&bt(a):v==2?(f&&Hs(s.doc,f),setTimeout(function(){return p.input.focus()},20)):v==3&&(N?s.display.input.onContextMenu(a):Uf(s)))}}}function _5(a,s,p,f,v){var V="Click";return f=="double"?V="Double"+V:f=="triple"&&(V="Triple"+V),V=(s==1?"Left":s==2?"Middle":"Right")+V,Ma(a,ib(V,v),v,function(P){if(typeof P=="string"&&(P=Pa[P]),!P)return!1;var j=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),j=P(a,p)!=ye}finally{a.state.suppressEdits=!1}return j})}function E5(a,s,p){var f=a.getOption("configureMouse"),v=f?f(a,s,p):{};if(v.unit==null){var V=O?p.shiftKey&&p.metaKey:p.altKey;v.unit=V?"rectangle":s=="single"?"char":s=="double"?"word":"line"}return(v.extend==null||a.doc.extend)&&(v.extend=a.doc.extend||p.shiftKey),v.addNew==null&&(v.addNew=T?p.metaKey:p.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(T?p.altKey:p.ctrlKey)),v}function S5(a,s,p,f){u?setTimeout(be(p0,a),0):a.curOp.focus=J(X(a));var v=E5(a,p,f),V=a.doc.sel,P;a.options.dragDrop&&Cf&&!a.isReadOnly()&&p=="single"&&(P=V.contains(s))>-1&&(Ee((P=V.ranges[P]).from(),s)<0||s.xRel>0)&&(Ee(P.to(),s)>0||s.xRel<0)?A5(a,f,s,v):x5(a,f,s,v)}function A5(a,s,p,f){var v=a.display,V=!1,P=Zt(a,function(Z){m&&(v.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:Uf(a)),Ye(v.wrapper.ownerDocument,"mouseup",P),Ye(v.wrapper.ownerDocument,"mousemove",j),Ye(v.scroller,"dragstart",K),Ye(v.scroller,"drop",P),V||(bt(Z),f.addNew||Hs(a.doc,p,null,null,f.extend),m&&!E||u&&h==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),j=function(Z){V=V||Math.abs(s.clientX-Z.clientX)+Math.abs(s.clientY-Z.clientY)>=10},K=function(){return V=!0};m&&(v.scroller.draggable=!0),a.state.draggingText=P,P.copy=!f.moveOnDrag,Ce(v.wrapper.ownerDocument,"mouseup",P),Ce(v.wrapper.ownerDocument,"mousemove",j),Ce(v.scroller,"dragstart",K),Ce(v.scroller,"drop",P),a.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function pb(a,s,p){if(p=="char")return new Ct(s,s);if(p=="word")return a.findWordAt(s);if(p=="line")return new Ct(ue(s.line,0),at(a.doc,ue(s.line+1,0)));var f=p(a,s);return new Ct(f.from,f.to)}function x5(a,s,p,f){u&&Uf(a);var v=a.display,V=a.doc;bt(s);var P,j,K=V.sel,Z=K.ranges;if(f.addNew&&!f.extend?(j=V.sel.contains(p),j>-1?P=Z[j]:P=new Ct(p,p)):(P=V.sel.primary(),j=V.sel.primIndex),f.unit=="rectangle")f.addNew||(P=new Ct(p,p)),p=Cr(a,s,!0,!0),j=-1;else{var ne=pb(a,p,f.unit);f.extend?P=np(P,ne.anchor,ne.head,f.extend):P=ne}f.addNew?j==-1?(j=Z.length,ln(V,ri(a,Z.concat([P]),j),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[j].empty()&&f.unit=="char"&&!f.extend?(ln(V,ri(a,Z.slice(0,j).concat(Z.slice(j+1)),0),{scroll:!1,origin:"*mouse"}),K=V.sel):ip(V,j,P,W):(j=0,ln(V,new Mn([P],0),W),K=V.sel);var re=p;function ve(Fe){if(Ee(re,Fe)!=0)if(re=Fe,f.unit=="rectangle"){for(var Ge=[],nt=a.options.tabSize,qe=de(Je(V,p.line).text,p.ch,nt),pt=de(Je(V,Fe.line).text,Fe.ch,nt),Nt=Math.min(qe,pt),en=Math.max(qe,pt),$t=Math.min(p.line,Fe.line),Vn=Math.min(a.lastLine(),Math.max(p.line,Fe.line));$t<=Vn;$t++){var wn=Je(V,$t).text,Ut=q(wn,Nt,nt);Nt==en?Ge.push(new Ct(ue($t,Ut),ue($t,Ut))):wn.length>Ut&&Ge.push(new Ct(ue($t,Ut),ue($t,q(wn,en,nt))))}Ge.length||Ge.push(new Ct(p,p)),ln(V,ri(a,K.ranges.slice(0,j).concat(Ge),j),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Fe)}else{var Cn=P,rn=pb(a,Fe,f.unit),Yt=Cn.anchor,Ht;Ee(rn.anchor,Yt)>0?(Ht=rn.head,Yt=Kt(Cn.from(),rn.anchor)):(Ht=rn.anchor,Yt=yt(Cn.to(),rn.head));var Pt=K.ranges.slice(0);Pt[j]=k5(a,new Ct(at(V,Yt),Ht)),ln(V,ri(a,Pt,j),W)}}var me=v.wrapper.getBoundingClientRect(),Se=0;function Ne(Fe){var Ge=++Se,nt=Cr(a,Fe,!0,f.unit=="rectangle");if(!!nt)if(Ee(nt,re)!=0){a.curOp.focus=J(X(a)),ve(nt);var qe=Ps(v,V);(nt.line>=qe.to||nt.line<qe.from)&&setTimeout(Zt(a,function(){Se==Ge&&Ne(Fe)}),150)}else{var pt=Fe.clientY<me.top?-20:Fe.clientY>me.bottom?20:0;pt&&setTimeout(Zt(a,function(){Se==Ge&&(v.scroller.scrollTop+=pt,Ne(Fe))}),50)}}function Ve(Fe){a.state.selectingText=!1,Se=1/0,Fe&&(bt(Fe),v.input.focus()),Ye(v.wrapper.ownerDocument,"mousemove",Ie),Ye(v.wrapper.ownerDocument,"mouseup",Ue),V.history.lastSelOrigin=null}var Ie=Zt(a,function(Fe){Fe.buttons===0||!pa(Fe)?Ve(Fe):Ne(Fe)}),Ue=Zt(a,Ve);a.state.selectingText=Ue,Ce(v.wrapper.ownerDocument,"mousemove",Ie),Ce(v.wrapper.ownerDocument,"mouseup",Ue)}function k5(a,s){var p=s.anchor,f=s.head,v=Je(a.doc,p.line);if(Ee(p,f)==0&&p.sticky==f.sticky)return s;var V=tt(v);if(!V)return s;var P=De(V,p.ch,p.sticky),j=V[P];if(j.from!=p.ch&&j.to!=p.ch)return s;var K=P+(j.from==p.ch==(j.level!=1)?0:1);if(K==0||K==V.length)return s;var Z;if(f.line!=p.line)Z=(f.line-p.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var ne=De(V,f.ch,f.sticky),re=ne-P||(f.ch-p.ch)*(j.level==1?-1:1);ne==K-1||ne==K?Z=re<0:Z=re>0}var ve=V[K+(Z?-1:0)],me=Z==(ve.level==1),Se=me?ve.from:ve.to,Ne=me?"after":"before";return p.ch==Se&&p.sticky==Ne?s:new Ct(new ue(p.line,Se,Ne),f)}function hb(a,s,p,f){var v,V;if(s.touches)v=s.touches[0].clientX,V=s.touches[0].clientY;else try{v=s.clientX,V=s.clientY}catch{return!1}if(v>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;f&&bt(s);var P=a.display,j=P.lineDiv.getBoundingClientRect();if(V>j.bottom||!Rt(a,p))return Gi(s);V-=j.top-P.viewOffset;for(var K=0;K<a.display.gutterSpecs.length;++K){var Z=P.gutters.childNodes[K];if(Z&&Z.getBoundingClientRect().right>=v){var ne=yi(a.doc,V),re=a.display.gutterSpecs[K];return Qe(a,p,a,ne,re.className,s),Gi(s)}}}function dp(a,s){return hb(a,s,"gutterClick",!0)}function mb(a,s){Ri(a.display,s)||N5(a,s)||ct(a,s,"contextmenu")||N||a.display.input.onContextMenu(s)}function N5(a,s){return Rt(a,"gutterContextMenu")?hb(a,s,"gutterContextMenu",!1):!1}function gb(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ca(a)}var ko={toString:function(){return"CodeMirror.Init"}},vb={},Xs={};function T5(a){var s=a.optionHandlers;function p(f,v,V,P){a.defaults[f]=v,V&&(s[f]=P?function(j,K,Z){Z!=ko&&V(j,K,Z)}:V)}a.defineOption=p,a.Init=ko,p("value","",function(f,v){return f.setValue(v)},!0),p("mode",null,function(f,v){f.doc.modeOption=v,qf(f)},!0),p("indentUnit",2,qf,!0),p("indentWithTabs",!1),p("smartIndent",!0),p("tabSize",4,function(f){Ta(f),Ca(f),yn(f)},!0),p("lineSeparator",null,function(f,v){if(f.doc.lineSep=v,!!v){var V=[],P=f.doc.first;f.doc.iter(function(K){for(var Z=0;;){var ne=K.text.indexOf(v,Z);if(ne==-1)break;Z=ne+v.length,V.push(ue(P,ne))}P++});for(var j=V.length-1;j>=0;j--)Eo(f.doc,v,V[j],ue(V[j].line,V[j].ch+v.length))}}),p("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(f,v,V){f.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),V!=ko&&f.refresh()}),p("specialCharPlaceholder",r4,function(f){return f.refresh()},!0),p("electricChars",!0),p("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),p("spellcheck",!1,function(f,v){return f.getInputField().spellcheck=v},!0),p("autocorrect",!1,function(f,v){return f.getInputField().autocorrect=v},!0),p("autocapitalize",!1,function(f,v){return f.getInputField().autocapitalize=v},!0),p("rtlMoveVisually",!F),p("wholeLineUpdateBefore",!0),p("theme","default",function(f){gb(f),Na(f)},!0),p("keyMap","default",function(f,v,V){var P=Qs(v),j=V!=ko&&Qs(V);j&&j.detach&&j.detach(f,P),P.attach&&P.attach(f,j||null)}),p("extraKeys",null),p("configureMouse",null),p("lineWrapping",!1,V5,!0),p("gutters",[],function(f,v){f.display.gutterSpecs=Xf(v,f.options.lineNumbers),Na(f)},!0),p("fixedGutter",!0,function(f,v){f.display.gutters.style.left=v?Mf(f.display)+"px":"0",f.refresh()},!0),p("coverGutterNextToScrollbar",!1,function(f){return bo(f)},!0),p("scrollbarStyle","native",function(f){b0(f),bo(f),f.display.scrollbars.setScrollTop(f.doc.scrollTop),f.display.scrollbars.setScrollLeft(f.doc.scrollLeft)},!0),p("lineNumbers",!1,function(f,v){f.display.gutterSpecs=Xf(f.options.gutters,v),Na(f)},!0),p("firstLineNumber",1,Na,!0),p("lineNumberFormatter",function(f){return f},Na,!0),p("showCursorWhenSelecting",!1,_a,!0),p("resetSelectionOnContextMenu",!0),p("lineWiseCopyCut",!0),p("pasteLinesPerSelection",!0),p("selectionsMayTouch",!1),p("readOnly",!1,function(f,v){v=="nocursor"&&(vo(f),f.display.input.blur()),f.display.input.readOnlyChanged(v)}),p("screenReaderLabel",null,function(f,v){v=v===""?null:v,f.display.input.screenReaderLabelChanged(v)}),p("disableInput",!1,function(f,v){v||f.display.input.reset()},!0),p("dragDrop",!0,D5),p("allowDropFileTypes",null),p("cursorBlinkRate",530),p("cursorScrollMargin",0),p("cursorHeight",1,_a,!0),p("singleCursorHeightPerLine",!0,_a,!0),p("workTime",100),p("workDelay",100),p("flattenSpans",!0,Ta,!0),p("addModeClass",!1,Ta,!0),p("pollInterval",100),p("undoDepth",200,function(f,v){return f.doc.history.undoDepth=v}),p("historyEventDelay",1250),p("viewportMargin",10,function(f){return f.refresh()},!0),p("maxHighlightLength",1e4,Ta,!0),p("moveInputWithCursor",!0,function(f,v){v||f.display.input.resetPosition()}),p("tabindex",null,function(f,v){return f.display.input.getField().tabIndex=v||""}),p("autofocus",null),p("direction","ltr",function(f,v){return f.doc.setDirection(v)},!0),p("phrases",null)}function D5(a,s,p){var f=p&&p!=ko;if(!s!=!f){var v=a.display.dragFunctions,V=s?Ce:Ye;V(a.display.scroller,"dragstart",v.start),V(a.display.scroller,"dragenter",v.enter),V(a.display.scroller,"dragover",v.over),V(a.display.scroller,"dragleave",v.leave),V(a.display.scroller,"drop",v.drop)}}function V5(a){a.options.lineWrapping?(Q(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(L(a.display.wrapper,"CodeMirror-wrap"),Tf(a)),Lf(a),yn(a),Ca(a),setTimeout(function(){return bo(a)},100)}function Ot(a,s){var p=this;if(!(this instanceof Ot))return new Ot(a,s);this.options=s=s?ce(s):{},ce(vb,s,!1);var f=s.value;typeof f=="string"?f=new bn(f,s.mode,null,s.lineSeparator,s.direction):s.mode&&(f.modeOption=s.mode),this.doc=f;var v=new Ot.inputStyles[s.inputStyle](this),V=this.display=new H4(a,f,v,s);V.wrapper.CodeMirror=this,gb(this),s.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),b0(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 pe,keySeq:null,specialChars:null},s.autofocus&&!k&&V.input.focus(),u&&h<11&&setTimeout(function(){return p.display.input.reset(!0)},20),O5(this),d5(),Ar(this),this.curOp.forceUpdate=!0,T0(this,f),s.autofocus&&!k||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&Hf(p)},20):vo(this);for(var P in Xs)Xs.hasOwnProperty(P)&&Xs[P](this,s[P],ko);_0(this),s.finishInit&&s.finishInit(this);for(var j=0;j<cp.length;++j)cp[j](this);xr(this),m&&s.lineWrapping&&getComputedStyle(V.lineDiv).textRendering=="optimizelegibility"&&(V.lineDiv.style.textRendering="auto")}Ot.defaults=vb,Ot.optionHandlers=Xs;function O5(a){var s=a.display;Ce(s.scroller,"mousedown",Zt(a,fb)),u&&h<11?Ce(s.scroller,"dblclick",Zt(a,function(K){if(!ct(a,K)){var Z=Cr(a,K);if(!(!Z||dp(a,K)||Ri(a.display,K))){bt(K);var ne=a.findWordAt(Z);Hs(a.doc,ne.anchor,ne.head)}}})):Ce(s.scroller,"dblclick",function(K){return ct(a,K)||bt(K)}),Ce(s.scroller,"contextmenu",function(K){return mb(a,K)}),Ce(s.input.getField(),"contextmenu",function(K){s.scroller.contains(K.target)||mb(a,K)});var p,f={end:0};function v(){s.activeTouch&&(p=setTimeout(function(){return s.activeTouch=null},1e3),f=s.activeTouch,f.end=+new Date)}function V(K){if(K.touches.length!=1)return!1;var Z=K.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function P(K,Z){if(Z.left==null)return!0;var ne=Z.left-K.left,re=Z.top-K.top;return ne*ne+re*re>20*20}Ce(s.scroller,"touchstart",function(K){if(!ct(a,K)&&!V(K)&&!dp(a,K)){s.input.ensurePolled(),clearTimeout(p);var Z=+new Date;s.activeTouch={start:Z,moved:!1,prev:Z-f.end<=300?f:null},K.touches.length==1&&(s.activeTouch.left=K.touches[0].pageX,s.activeTouch.top=K.touches[0].pageY)}}),Ce(s.scroller,"touchmove",function(){s.activeTouch&&(s.activeTouch.moved=!0)}),Ce(s.scroller,"touchend",function(K){var Z=s.activeTouch;if(Z&&!Ri(s,K)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var ne=a.coordsChar(s.activeTouch,"page"),re;!Z.prev||P(Z,Z.prev)?re=new Ct(ne,ne):!Z.prev.prev||P(Z,Z.prev.prev)?re=a.findWordAt(ne):re=new Ct(ue(ne.line,0),at(a.doc,ue(ne.line+1,0))),a.setSelection(re.anchor,re.head),a.focus(),bt(K)}v()}),Ce(s.scroller,"touchcancel",v),Ce(s.scroller,"scroll",function(){s.scroller.clientHeight&&(Sa(a,s.scroller.scrollTop),Er(a,s.scroller.scrollLeft,!0),Qe(a,"scroll",a))}),Ce(s.scroller,"mousewheel",function(K){return A0(a,K)}),Ce(s.scroller,"DOMMouseScroll",function(K){return A0(a,K)}),Ce(s.wrapper,"scroll",function(){return s.wrapper.scrollTop=s.wrapper.scrollLeft=0}),s.dragFunctions={enter:function(K){ct(a,K)||ei(K)},over:function(K){ct(a,K)||(s5(a,K),ei(K))},start:function(K){return l5(a,K)},drop:Zt(a,a5),leave:function(K){ct(a,K)||q0(a)}};var j=s.input.getField();Ce(j,"keyup",function(K){return cb.call(a,K)}),Ce(j,"keydown",Zt(a,db)),Ce(j,"keypress",Zt(a,ub)),Ce(j,"focus",function(K){return Hf(a,K)}),Ce(j,"blur",function(K){return vo(a,K)})}var cp=[];Ot.defineInitHook=function(a){return cp.push(a)};function za(a,s,p,f){var v=a.doc,V;p==null&&(p="add"),p=="smart"&&(v.mode.indent?V=ga(a,s).state:p="prev");var P=a.options.tabSize,j=Je(v,s),K=de(j.text,null,P);j.stateAfter&&(j.stateAfter=null);var Z=j.text.match(/^\s*/)[0],ne;if(!f&&!/\S/.test(j.text))ne=0,p="not";else if(p=="smart"&&(ne=v.mode.indent(V,j.text.slice(Z.length),j.text),ne==ye||ne>150)){if(!f)return;p="prev"}p=="prev"?s>v.first?ne=de(Je(v,s-1).text,null,P):ne=0:p=="add"?ne=K+a.options.indentUnit:p=="subtract"?ne=K-a.options.indentUnit:typeof p=="number"&&(ne=K+p),ne=Math.max(0,ne);var re="",ve=0;if(a.options.indentWithTabs)for(var me=Math.floor(ne/P);me;--me)ve+=P,re+=" ";if(ve<ne&&(re+=oe(ne-ve)),re!=Z)return Eo(v,re,ue(s,0),ue(s,Z.length),"+input"),j.stateAfter=null,!0;for(var Se=0;Se<v.sel.ranges.length;Se++){var Ne=v.sel.ranges[Se];if(Ne.head.line==s&&Ne.head.ch<Z.length){var Ve=ue(s,Z.length);ip(v,Se,new Ct(Ve,Ve));break}}}var oi=null;function Zs(a){oi=a}function up(a,s,p,f,v){var V=a.doc;a.display.shift=!1,f||(f=V.sel);var P=+new Date-200,j=v=="paste"||a.state.pasteIncoming>P,K=ha(s),Z=null;if(j&&f.ranges.length>1)if(oi&&oi.text.join(`
|
||
`)==s){if(f.ranges.length%oi.text.length==0){Z=[];for(var ne=0;ne<oi.text.length;ne++)Z.push(V.splitLines(oi.text[ne]))}}else K.length==f.ranges.length&&a.options.pasteLinesPerSelection&&(Z=Ae(K,function(Ie){return[Ie]}));for(var re=a.curOp.updateInput,ve=f.ranges.length-1;ve>=0;ve--){var me=f.ranges[ve],Se=me.from(),Ne=me.to();me.empty()&&(p&&p>0?Se=ue(Se.line,Se.ch-p):a.state.overwrite&&!j?Ne=ue(Ne.line,Math.min(Je(V,Ne.line).text.length,Ne.ch+he(K).length)):j&&oi&&oi.lineWise&&oi.text.join(`
|
||
`)==K.join(`
|
||
`)&&(Se=Ne=ue(Se.line,0)));var Ve={from:Se,to:Ne,text:Z?Z[ve%Z.length]:K,origin:v||(j?"paste":a.state.cutIncoming>P?"cut":"+input")};_o(a.doc,Ve),Xt(a,"inputRead",a,Ve)}s&&!j&&bb(a,s),yo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=re),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function yb(a,s){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!s.isReadOnly()&&!s.options.disableInput&&s.hasFocus()&&Dn(s,function(){return up(s,p,0,null,"paste")}),!0}function bb(a,s){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,f=p.ranges.length-1;f>=0;f--){var v=p.ranges[f];if(!(v.head.ch>100||f&&p.ranges[f-1].head.line==v.head.line)){var V=a.getModeAt(v.head),P=!1;if(V.electricChars){for(var j=0;j<V.electricChars.length;j++)if(s.indexOf(V.electricChars.charAt(j))>-1){P=za(a,v.head.line,"smart");break}}else V.electricInput&&V.electricInput.test(Je(a.doc,v.head.line).text.slice(0,v.head.ch))&&(P=za(a,v.head.line,"smart"));P&&Xt(a,"electricInput",a,v.head.line)}}}function wb(a){for(var s=[],p=[],f=0;f<a.doc.sel.ranges.length;f++){var v=a.doc.sel.ranges[f].head.line,V={anchor:ue(v,0),head:ue(v+1,0)};p.push(V),s.push(a.getRange(V.anchor,V.head))}return{text:s,ranges:p}}function Cb(a,s,p,f){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",f?"":"off"),a.setAttribute("spellcheck",!!s)}function _b(){var a=R("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),s=R("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?a.style.width="1000px":a.setAttribute("wrap","off"),_&&(a.style.border="1px solid black"),Cb(a),s}function B5(a){var s=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){le(this).focus(),this.display.input.focus()},setOption:function(f,v){var V=this.options,P=V[f];V[f]==v&&f!="mode"||(V[f]=v,s.hasOwnProperty(f)&&Zt(this,s[f])(this,v,P),Qe(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,v){this.state.keyMaps[v?"push":"unshift"](Qs(f))},removeKeyMap:function(f){for(var v=this.state.keyMaps,V=0;V<v.length;++V)if(v[V]==f||v[V].name==f)return v.splice(V,1),!0},addOverlay:fn(function(f,v){var V=f.token?f:a.getMode(this.options,f);if(V.startState)throw new Error("Overlays may not be stateful.");Me(this.state.overlays,{mode:V,modeSpec:f,opaque:v&&v.opaque,priority:v&&v.priority||0},function(P){return P.priority}),this.state.modeGen++,yn(this)}),removeOverlay:fn(function(f){for(var v=this.state.overlays,V=0;V<v.length;++V){var P=v[V].modeSpec;if(P==f||typeof f=="string"&&P.name==f){v.splice(V,1),this.state.modeGen++,yn(this);return}}}),indentLine:fn(function(f,v,V){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),te(this.doc,f)&&za(this,f,v,V)}),indentSelection:fn(function(f){for(var v=this.doc.sel.ranges,V=-1,P=0;P<v.length;P++){var j=v[P];if(j.empty())j.head.line>V&&(za(this,j.head.line,f,!0),V=j.head.line,P==this.doc.sel.primIndex&&yo(this));else{var K=j.from(),Z=j.to(),ne=Math.max(V,K.line);V=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var re=ne;re<V;++re)za(this,re,f);var ve=this.doc.sel.ranges;K.ch==0&&v.length==ve.length&&ve[P].from().ch>0&&ip(this.doc,P,new Ct(K,ve[P].to()),D)}}}),getTokenAt:function(f,v){return Vy(this,f,v)},getLineTokens:function(f,v){return Vy(this,ue(f),v,!0)},getTokenTypeAt:function(f){f=at(this.doc,f);var v=Ny(this,Je(this.doc,f.line)),V=0,P=(v.length-1)/2,j=f.ch,K;if(j==0)K=v[2];else for(;;){var Z=V+P>>1;if((Z?v[Z*2-1]:0)>=j)P=Z;else if(v[Z*2+1]<j)V=Z+1;else{K=v[Z*2+2];break}}var ne=K?K.indexOf("overlay "):-1;return ne<0?K:ne==0?null:K.slice(0,ne-1)},getModeAt:function(f){var v=this.doc.mode;return v.innerMode?a.innerMode(v,this.getTokenAt(f).state).mode:v},getHelper:function(f,v){return this.getHelpers(f,v)[0]},getHelpers:function(f,v){var V=[];if(!p.hasOwnProperty(v))return V;var P=p[v],j=this.getModeAt(f);if(typeof j[v]=="string")P[j[v]]&&V.push(P[j[v]]);else if(j[v])for(var K=0;K<j[v].length;K++){var Z=P[j[v][K]];Z&&V.push(Z)}else j.helperType&&P[j.helperType]?V.push(P[j.helperType]):P[j.name]&&V.push(P[j.name]);for(var ne=0;ne<P._global.length;ne++){var re=P._global[ne];re.pred(j,this)&&se(V,re.val)==-1&&V.push(re.val)}return V},getStateAfter:function(f,v){var V=this.doc;return f=Pn(V,f==null?V.first+V.size-1:f),ga(this,f+1,v).state},cursorCoords:function(f,v){var V,P=this.doc.sel.primary();return f==null?V=P.head:typeof f=="object"?V=at(this.doc,f):V=f?P.from():P.to(),ii(this,V,v||"page")},charCoords:function(f,v){return Rs(this,at(this.doc,f),v||"page")},coordsChar:function(f,v){return f=a0(this,f,v||"page"),If(this,f.left,f.top)},lineAtHeight:function(f,v){return f=a0(this,{top:f,left:0},v||"page").top,yi(this.doc,f+this.display.viewOffset)},heightAtLine:function(f,v,V){var P=!1,j;if(typeof f=="number"){var K=this.doc.first+this.doc.size-1;f<this.doc.first?f=this.doc.first:f>K&&(f=K,P=!0),j=Je(this.doc,f)}else j=f;return Bs(this,j,{top:0,left:0},v||"page",V||P).top+(P?this.doc.height-Bi(j):0)},defaultTextHeight:function(){return mo(this.display)},defaultCharWidth:function(){return go(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(f,v,V,P,j){var K=this.display;f=ii(this,at(this.doc,f));var Z=f.bottom,ne=f.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),K.sizer.appendChild(v),P=="over")Z=f.top;else if(P=="above"||P=="near"){var re=Math.max(K.wrapper.clientHeight,this.doc.height),ve=Math.max(K.sizer.clientWidth,K.lineSpace.clientWidth);(P=="above"||f.bottom+v.offsetHeight>re)&&f.top>v.offsetHeight?Z=f.top-v.offsetHeight:f.bottom+v.offsetHeight<=re&&(Z=f.bottom),ne+v.offsetWidth>ve&&(ne=ve-v.offsetWidth)}v.style.top=Z+"px",v.style.left=v.style.right="",j=="right"?(ne=K.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(j=="left"?ne=0:j=="middle"&&(ne=(K.sizer.clientWidth-v.offsetWidth)/2),v.style.left=ne+"px"),V&&D4(this,{left:ne,top:Z,right:ne+v.offsetWidth,bottom:Z+v.offsetHeight})},triggerOnKeyDown:fn(db),triggerOnKeyPress:fn(ub),triggerOnKeyUp:cb,triggerOnMouseDown:fn(fb),execCommand:function(f){if(Pa.hasOwnProperty(f))return Pa[f].call(null,this)},triggerElectric:fn(function(f){bb(this,f)}),findPosH:function(f,v,V,P){var j=1;v<0&&(j=-1,v=-v);for(var K=at(this.doc,f),Z=0;Z<v&&(K=fp(this.doc,K,j,V,P),!K.hitSide);++Z);return K},moveH:fn(function(f,v){var V=this;this.extendSelectionsBy(function(P){return V.display.shift||V.doc.extend||P.empty()?fp(V.doc,P.head,f,v,V.options.rtlMoveVisually):f<0?P.from():P.to()},Y)}),deleteH:fn(function(f,v){var V=this.doc.sel,P=this.doc;V.somethingSelected()?P.replaceSelection("",null,"+delete"):xo(this,function(j){var K=fp(P,j.head,f,v,!1);return f<0?{from:K,to:j.head}:{from:j.head,to:K}})}),findPosV:function(f,v,V,P){var j=1,K=P;v<0&&(j=-1,v=-v);for(var Z=at(this.doc,f),ne=0;ne<v;++ne){var re=ii(this,Z,"div");if(K==null?K=re.left:re.left=K,Z=Eb(this,re,j,V),Z.hitSide)break}return Z},moveV:fn(function(f,v){var V=this,P=this.doc,j=[],K=!this.display.shift&&!P.extend&&P.sel.somethingSelected();if(P.extendSelectionsBy(function(ne){if(K)return f<0?ne.from():ne.to();var re=ii(V,ne.head,"div");ne.goalColumn!=null&&(re.left=ne.goalColumn),j.push(re.left);var ve=Eb(V,re,f,v);return v=="page"&&ne==P.sel.primary()&&Gf(V,Rs(V,ve,"div").top-re.top),ve},Y),j.length)for(var Z=0;Z<P.sel.ranges.length;Z++)P.sel.ranges[Z].goalColumn=j[Z]}),findWordAt:function(f){var v=this.doc,V=Je(v,f.line).text,P=f.ch,j=f.ch;if(V){var K=this.getHelper(f,"wordChars");(f.sticky=="before"||j==V.length)&&P?--P:++j;for(var Z=V.charAt(P),ne=He(Z,K)?function(re){return He(re,K)}:/\s/.test(Z)?function(re){return/\s/.test(re)}:function(re){return!/\s/.test(re)&&!He(re)};P>0&&ne(V.charAt(P-1));)--P;for(;j<V.length&&ne(V.charAt(j));)++j}return new Ct(ue(f.line,P),ue(f.line,j))},toggleOverwrite:function(f){f!=null&&f==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Q(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),Qe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==J(X(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:fn(function(f,v){Ea(this,f,v)}),getScrollInfo:function(){var f=this.display.scroller;return{left:f.scrollLeft,top:f.scrollTop,height:f.scrollHeight-wi(this)-this.display.barHeight,width:f.scrollWidth-wi(this)-this.display.barWidth,clientHeight:Of(this),clientWidth:br(this)}},scrollIntoView:fn(function(f,v){f==null?(f={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof f=="number"?f={from:ue(f,0),to:null}:f.from==null&&(f={from:f,to:null}),f.to||(f.to=f.from),f.margin=v||0,f.from.line!=null?V4(this,f):m0(this,f.from,f.to,f.margin)}),setSize:fn(function(f,v){var V=this,P=function(K){return typeof K=="number"||/^\d+$/.test(String(K))?K+"px":K};f!=null&&(this.display.wrapper.style.width=P(f)),v!=null&&(this.display.wrapper.style.height=P(v)),this.options.lineWrapping&&i0(this);var j=this.display.viewFrom;this.doc.iter(j,this.display.viewTo,function(K){if(K.widgets){for(var Z=0;Z<K.widgets.length;Z++)if(K.widgets[Z].noHScroll){Zi(V,j,"widget");break}}++j}),this.curOp.forceUpdate=!0,Qe(this,"refresh",this)}),operation:function(f){return Dn(this,f)},startOperation:function(){return Ar(this)},endOperation:function(){return xr(this)},refresh:fn(function(){var f=this.display.cachedTextHeight;yn(this),this.curOp.forceUpdate=!0,Ca(this),Ea(this,this.doc.scrollLeft,this.doc.scrollTop),Qf(this.display),(f==null||Math.abs(f-mo(this.display))>.5||this.options.lineWrapping)&&Lf(this),Qe(this,"refresh",this)}),swapDoc:fn(function(f){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),T0(this,f),Ca(this),this.display.input.reset(),Ea(this,f.scrollLeft,f.scrollTop),this.curOp.forceScroll=!0,Xt(this,"swapDoc",this,v),v}),phrase:function(f){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,f)?v[f]:f},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}},Tt(a),a.registerHelper=function(f,v,V){p.hasOwnProperty(f)||(p[f]=a[f]={_global:[]}),p[f][v]=V},a.registerGlobalHelper=function(f,v,V,P){a.registerHelper(f,v,P),p[f]._global.push({pred:V,val:P})}}function fp(a,s,p,f,v){var V=s,P=p,j=Je(a,s.line),K=v&&a.direction=="rtl"?-p:p;function Z(){var Ue=s.line+K;return Ue<a.first||Ue>=a.first+a.size?!1:(s=new ue(Ue,s.ch,s.sticky),j=Je(a,Ue))}function ne(Ue){var Fe;if(f=="codepoint"){var Ge=j.text.charCodeAt(s.ch+(p>0?0:-1));if(isNaN(Ge))Fe=null;else{var nt=p>0?Ge>=55296&&Ge<56320:Ge>=56320&&Ge<57343;Fe=new ue(s.line,Math.max(0,Math.min(j.text.length,s.ch+p*(nt?2:1))),-p)}}else v?Fe=h5(a.cm,j,s,p):Fe=op(j,s,p);if(Fe==null)if(!Ue&&Z())s=ap(v,a.cm,j,s.line,K);else return!1;else s=Fe;return!0}if(f=="char"||f=="codepoint")ne();else if(f=="column")ne(!0);else if(f=="word"||f=="group")for(var re=null,ve=f=="group",me=a.cm&&a.cm.getHelper(s,"wordChars"),Se=!0;!(p<0&&!ne(!Se));Se=!1){var Ne=j.text.charAt(s.ch)||`
|
||
`,Ve=He(Ne,me)?"w":ve&&Ne==`
|
||
`?"n":!ve||/\s/.test(Ne)?null:"p";if(ve&&!Se&&!Ve&&(Ve="s"),re&&re!=Ve){p<0&&(p=1,ne(),s.sticky="after");break}if(Ve&&(re=Ve),p>0&&!ne(!Se))break}var Ie=Gs(a,s,V,P,!0);return ot(V,Ie)&&(Ie.hitSide=!0),Ie}function Eb(a,s,p,f){var v=a.doc,V=s.left,P;if(f=="page"){var j=Math.min(a.display.wrapper.clientHeight,le(a).innerHeight||v(a).documentElement.clientHeight),K=Math.max(j-.5*mo(a.display),3);P=(p>0?s.bottom:s.top)+p*K}else f=="line"&&(P=p>0?s.bottom+3:s.top-3);for(var Z;Z=If(a,V,P),!!Z.outside;){if(p<0?P<=0:P>=v.height){Z.hitSide=!0;break}P+=p*5}return Z}var St=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};St.prototype.init=function(a){var s=this,p=this,f=p.cm,v=p.div=a.lineDiv;v.contentEditable=!0,Cb(v,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function V(j){for(var K=j.target;K;K=K.parentNode){if(K==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(K.className))break}return!1}Ce(v,"paste",function(j){!V(j)||ct(f,j)||yb(j,f)||h<=11&&setTimeout(Zt(f,function(){return s.updateFromDOM()}),20)}),Ce(v,"compositionstart",function(j){s.composing={data:j.data,done:!1}}),Ce(v,"compositionupdate",function(j){s.composing||(s.composing={data:j.data,done:!1})}),Ce(v,"compositionend",function(j){s.composing&&(j.data!=s.composing.data&&s.readFromDOMSoon(),s.composing.done=!0)}),Ce(v,"touchstart",function(){return p.forceCompositionEnd()}),Ce(v,"input",function(){s.composing||s.readFromDOMSoon()});function P(j){if(!(!V(j)||ct(f,j))){if(f.somethingSelected())Zs({lineWise:!1,text:f.getSelections()}),j.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var K=wb(f);Zs({lineWise:!0,text:K.text}),j.type=="cut"&&f.operation(function(){f.setSelections(K.ranges,0,D),f.replaceSelection("",null,"cut")})}else return;if(j.clipboardData){j.clipboardData.clearData();var Z=oi.text.join(`
|
||
`);if(j.clipboardData.setData("Text",Z),j.clipboardData.getData("Text")==Z){j.preventDefault();return}}var ne=_b(),re=ne.firstChild;f.display.lineSpace.insertBefore(ne,f.display.lineSpace.firstChild),re.value=oi.text.join(`
|
||
`);var ve=J(v.ownerDocument);ie(re),setTimeout(function(){f.display.lineSpace.removeChild(ne),ve.focus(),ve==v&&p.showPrimarySelection()},50)}}Ce(v,"copy",P),Ce(v,"cut",P)},St.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},St.prototype.prepareSelection=function(){var a=f0(this.cm,!1);return a.focus=J(this.div.ownerDocument)==this.div,a},St.prototype.showSelection=function(a,s){!a||!this.cm.display.view.length||((a.focus||s)&&this.showPrimarySelection(),this.showMultipleSelections(a))},St.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},St.prototype.showPrimarySelection=function(){var a=this.getSelection(),s=this.cm,p=s.doc.sel.primary(),f=p.from(),v=p.to();if(s.display.viewTo==s.display.viewFrom||f.line>=s.display.viewTo||v.line<s.display.viewFrom){a.removeAllRanges();return}var V=qs(s,a.anchorNode,a.anchorOffset),P=qs(s,a.focusNode,a.focusOffset);if(!(V&&!V.bad&&P&&!P.bad&&Ee(Kt(V,P),f)==0&&Ee(yt(V,P),v)==0)){var j=s.display.view,K=f.line>=s.display.viewFrom&&Sb(s,f)||{node:j[0].measure.map[2],offset:0},Z=v.line<s.display.viewTo&&Sb(s,v);if(!Z){var ne=j[j.length-1].measure,re=ne.maps?ne.maps[ne.maps.length-1]:ne.map;Z={node:re[re.length-1],offset:re[re.length-2]-re[re.length-3]}}if(!K||!Z){a.removeAllRanges();return}var ve=a.rangeCount&&a.getRangeAt(0),me;try{me=$(K.node,K.offset,Z.offset,Z.node)}catch{}me&&(!i&&s.state.focused?(a.collapse(K.node,K.offset),me.collapsed||(a.removeAllRanges(),a.addRange(me))):(a.removeAllRanges(),a.addRange(me)),ve&&a.anchorNode==null?a.addRange(ve):i&&this.startGracePeriod()),this.rememberSelection()}},St.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},St.prototype.showMultipleSelections=function(a){H(this.cm.display.cursorDiv,a.cursors),H(this.cm.display.selectionDiv,a.selection)},St.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},St.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var s=a.getRangeAt(0).commonAncestorContainer;return S(this.div,s)},St.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||J(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},St.prototype.blur=function(){this.div.blur()},St.prototype.getField=function(){return this.div},St.prototype.supportsTouch=function(){return!0},St.prototype.receivedFocus=function(){var a=this,s=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):Dn(this.cm,function(){return s.cm.curOp.selectionChanged=!0});function p(){s.cm.state.focused&&(s.pollSelection(),s.polling.set(s.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},St.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},St.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),s=this.cm;if(x&&C&&this.cm.display.gutterSpecs.length&&R5(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=qs(s,a.anchorNode,a.anchorOffset),f=qs(s,a.focusNode,a.focusOffset);p&&f&&Dn(s,function(){ln(s.doc,er(p,f),D),(p.bad||f.bad)&&(s.curOp.selectionChanged=!0)})}}},St.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,s=a.display,p=a.doc.sel.primary(),f=p.from(),v=p.to();if(f.ch==0&&f.line>a.firstLine()&&(f=ue(f.line-1,Je(a.doc,f.line-1).length)),v.ch==Je(a.doc,v.line).text.length&&v.line<a.lastLine()&&(v=ue(v.line+1,0)),f.line<s.viewFrom||v.line>s.viewTo-1)return!1;var V,P,j;f.line==s.viewFrom||(V=_r(a,f.line))==0?(P=wt(s.view[0].line),j=s.view[0].node):(P=wt(s.view[V].line),j=s.view[V-1].node.nextSibling);var K=_r(a,v.line),Z,ne;if(K==s.view.length-1?(Z=s.viewTo-1,ne=s.lineDiv.lastChild):(Z=wt(s.view[K+1].line)-1,ne=s.view[K+1].node.previousSibling),!j)return!1;for(var re=a.doc.splitLines($5(a,j,ne,P,Z)),ve=Vi(a.doc,ue(P,0),ue(Z,Je(a.doc,Z).text.length));re.length>1&&ve.length>1;)if(he(re)==he(ve))re.pop(),ve.pop(),Z--;else if(re[0]==ve[0])re.shift(),ve.shift(),P++;else break;for(var me=0,Se=0,Ne=re[0],Ve=ve[0],Ie=Math.min(Ne.length,Ve.length);me<Ie&&Ne.charCodeAt(me)==Ve.charCodeAt(me);)++me;for(var Ue=he(re),Fe=he(ve),Ge=Math.min(Ue.length-(re.length==1?me:0),Fe.length-(ve.length==1?me:0));Se<Ge&&Ue.charCodeAt(Ue.length-Se-1)==Fe.charCodeAt(Fe.length-Se-1);)++Se;if(re.length==1&&ve.length==1&&P==f.line)for(;me&&me>f.ch&&Ue.charCodeAt(Ue.length-Se-1)==Fe.charCodeAt(Fe.length-Se-1);)me--,Se++;re[re.length-1]=Ue.slice(0,Ue.length-Se).replace(/^\u200b+/,""),re[0]=re[0].slice(me).replace(/\u200b+$/,"");var nt=ue(P,me),qe=ue(Z,ve.length?he(ve).length-Se:0);if(re.length>1||re[0]||Ee(nt,qe))return Eo(a.doc,re,nt,qe,"+input"),!0},St.prototype.ensurePolled=function(){this.forceCompositionEnd()},St.prototype.reset=function(){this.forceCompositionEnd()},St.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},St.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},St.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Dn(this.cm,function(){return yn(a.cm)})},St.prototype.setUneditable=function(a){a.contentEditable="false"},St.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Zt(this.cm,up)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},St.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},St.prototype.onContextMenu=function(){},St.prototype.resetPosition=function(){},St.prototype.needsContentAttribute=!0;function Sb(a,s){var p=Bf(a,s.line);if(!p||p.hidden)return null;var f=Je(a.doc,s.line),v=Zy(p,f,s.line),V=tt(f,a.doc.direction),P="left";if(V){var j=De(V,s.ch);P=j%2?"right":"left"}var K=t0(v.map,s.ch,P);return K.offset=K.collapse=="right"?K.end:K.start,K}function R5(a){for(var s=a;s;s=s.parentNode)if(/CodeMirror-gutter-wrapper/.test(s.className))return!0;return!1}function No(a,s){return s&&(a.bad=!0),a}function $5(a,s,p,f,v){var V="",P=!1,j=a.doc.lineSeparator(),K=!1;function Z(me){return function(Se){return Se.id==me}}function ne(){P&&(V+=j,K&&(V+=j),P=K=!1)}function re(me){me&&(ne(),V+=me)}function ve(me){if(me.nodeType==1){var Se=me.getAttribute("cm-text");if(Se){re(Se);return}var Ne=me.getAttribute("cm-marker"),Ve;if(Ne){var Ie=a.findMarks(ue(f,0),ue(v+1,0),Z(+Ne));Ie.length&&(Ve=Ie[0].find(0))&&re(Vi(a.doc,Ve.from,Ve.to).join(j));return}if(me.getAttribute("contenteditable")=="false")return;var Ue=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;Ue&&ne();for(var Fe=0;Fe<me.childNodes.length;Fe++)ve(me.childNodes[Fe]);/^(pre|p)$/i.test(me.nodeName)&&(K=!0),Ue&&(P=!0)}else me.nodeType==3&&re(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ve(s),s!=p;)s=s.nextSibling,K=!1;return V}function qs(a,s,p){var f;if(s==a.display.lineDiv){if(f=a.display.lineDiv.childNodes[p],!f)return No(a.clipPos(ue(a.display.viewTo-1)),!0);s=null,p=0}else for(f=s;;f=f.parentNode){if(!f||f==a.display.lineDiv)return null;if(f.parentNode&&f.parentNode==a.display.lineDiv)break}for(var v=0;v<a.display.view.length;v++){var V=a.display.view[v];if(V.node==f)return I5(V,s,p)}}function I5(a,s,p){var f=a.text.firstChild,v=!1;if(!s||!S(f,s))return No(ue(wt(a.line),0),!0);if(s==f&&(v=!0,s=f.childNodes[p],p=0,!s)){var V=a.rest?he(a.rest):a.line;return No(ue(wt(V),V.text.length),v)}var P=s.nodeType==3?s:null,j=s;for(!P&&s.childNodes.length==1&&s.firstChild.nodeType==3&&(P=s.firstChild,p&&(p=P.nodeValue.length));j.parentNode!=f;)j=j.parentNode;var K=a.measure,Z=K.maps;function ne(Ve,Ie,Ue){for(var Fe=-1;Fe<(Z?Z.length:0);Fe++)for(var Ge=Fe<0?K.map:Z[Fe],nt=0;nt<Ge.length;nt+=3){var qe=Ge[nt+2];if(qe==Ve||qe==Ie){var pt=wt(Fe<0?a.line:a.rest[Fe]),Nt=Ge[nt]+Ue;return(Ue<0||qe!=Ve)&&(Nt=Ge[nt+(Ue?1:0)]),ue(pt,Nt)}}}var re=ne(P,j,p);if(re)return No(re,v);for(var ve=j.nextSibling,me=P?P.nodeValue.length-p:0;ve;ve=ve.nextSibling){if(re=ne(ve,ve.firstChild,0),re)return No(ue(re.line,re.ch-me),v);me+=ve.textContent.length}for(var Se=j.previousSibling,Ne=p;Se;Se=Se.previousSibling){if(re=ne(Se,Se.firstChild,-1),re)return No(ue(re.line,re.ch+Ne),v);Ne+=Se.textContent.length}}var zt=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new pe,this.hasSelection=!1,this.composing=null};zt.prototype.init=function(a){var s=this,p=this,f=this.cm;this.createField(a);var v=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),_&&(v.style.width="0px"),Ce(v,"input",function(){u&&h>=9&&s.hasSelection&&(s.hasSelection=null),p.poll()}),Ce(v,"paste",function(P){ct(f,P)||yb(P,f)||(f.state.pasteIncoming=+new Date,p.fastPoll())});function V(P){if(!ct(f,P)){if(f.somethingSelected())Zs({lineWise:!1,text:f.getSelections()});else if(f.options.lineWiseCopyCut){var j=wb(f);Zs({lineWise:!0,text:j.text}),P.type=="cut"?f.setSelections(j.ranges,null,D):(p.prevInput="",v.value=j.text.join(`
|
||
`),ie(v))}else return;P.type=="cut"&&(f.state.cutIncoming=+new Date)}}Ce(v,"cut",V),Ce(v,"copy",V),Ce(a.scroller,"paste",function(P){if(!(Ri(a,P)||ct(f,P))){if(!v.dispatchEvent){f.state.pasteIncoming=+new Date,p.focus();return}var j=new Event("paste");j.clipboardData=P.clipboardData,v.dispatchEvent(j)}}),Ce(a.lineSpace,"selectstart",function(P){Ri(a,P)||bt(P)}),Ce(v,"compositionstart",function(){var P=f.getCursor("from");p.composing&&p.composing.range.clear(),p.composing={start:P,range:f.markText(P,f.getCursor("to"),{className:"CodeMirror-composing"})}}),Ce(v,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},zt.prototype.createField=function(a){this.wrapper=_b(),this.textarea=this.wrapper.firstChild},zt.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},zt.prototype.prepareSelection=function(){var a=this.cm,s=a.display,p=a.doc,f=f0(a);if(a.options.moveInputWithCursor){var v=ii(a,p.sel.primary().head,"div"),V=s.wrapper.getBoundingClientRect(),P=s.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(s.wrapper.clientHeight-10,v.top+P.top-V.top)),f.teLeft=Math.max(0,Math.min(s.wrapper.clientWidth-10,v.left+P.left-V.left))}return f},zt.prototype.showSelection=function(a){var s=this.cm,p=s.display;H(p.cursorDiv,a.cursors),H(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},zt.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var s=this.cm;if(s.somethingSelected()){this.prevInput="";var p=s.getSelection();this.textarea.value=p,s.state.focused&&ie(this.textarea),u&&h>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",u&&h>=9&&(this.hasSelection=null))}},zt.prototype.getField=function(){return this.textarea},zt.prototype.supportsTouch=function(){return!1},zt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||J(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},zt.prototype.blur=function(){this.textarea.blur()},zt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zt.prototype.receivedFocus=function(){this.slowPoll()},zt.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},zt.prototype.fastPoll=function(){var a=!1,s=this;s.pollingFast=!0;function p(){var f=s.poll();!f&&!a?(a=!0,s.polling.set(60,p)):(s.pollingFast=!1,s.slowPoll())}s.polling.set(20,p)},zt.prototype.poll=function(){var a=this,s=this.cm,p=this.textarea,f=this.prevInput;if(this.contextMenuPending||!s.state.focused||Ki(p)&&!f&&!this.composing||s.isReadOnly()||s.options.disableInput||s.state.keySeq)return!1;var v=p.value;if(v==f&&!s.somethingSelected())return!1;if(u&&h>=9&&this.hasSelection===v||T&&/[\uf700-\uf7ff]/.test(v))return s.display.input.reset(),!1;if(s.doc.sel==s.display.selForContextMenu){var V=v.charCodeAt(0);if(V==8203&&!f&&(f="\u200B"),V==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,j=Math.min(f.length,v.length);P<j&&f.charCodeAt(P)==v.charCodeAt(P);)++P;return Dn(s,function(){up(s,v.slice(P),f.length-P,null,a.composing?"*compose":null),v.length>1e3||v.indexOf(`
|
||
`)>-1?p.value=a.prevInput="":a.prevInput=v,a.composing&&(a.composing.range.clear(),a.composing.range=s.markText(a.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zt.prototype.onKeyPress=function(){u&&h>=9&&(this.hasSelection=null),this.fastPoll()},zt.prototype.onContextMenu=function(a){var s=this,p=s.cm,f=p.display,v=s.textarea;s.contextMenuPending&&s.contextMenuPending();var V=Cr(p,a),P=f.scroller.scrollTop;if(!V||w)return;var j=p.options.resetSelectionOnContextMenu;j&&p.doc.sel.contains(V)==-1&&Zt(p,ln)(p.doc,er(V),D);var K=v.style.cssText,Z=s.wrapper.style.cssText,ne=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||
top: `+(a.clientY-ne.top-5)+"px; left: "+(a.clientX-ne.left-5)+`px;
|
||
z-index: 1000; background: `+(u?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var re;m&&(re=v.ownerDocument.defaultView.scrollY),f.input.focus(),m&&v.ownerDocument.defaultView.scrollTo(null,re),f.input.reset(),p.somethingSelected()||(v.value=s.prevInput=" "),s.contextMenuPending=me,f.selForContextMenu=p.doc.sel,clearTimeout(f.detectingSelectAll);function ve(){if(v.selectionStart!=null){var Ne=p.somethingSelected(),Ve="\u200B"+(Ne?v.value:"");v.value="\u21DA",v.value=Ve,s.prevInput=Ne?"":"\u200B",v.selectionStart=1,v.selectionEnd=Ve.length,f.selForContextMenu=p.doc.sel}}function me(){if(s.contextMenuPending==me&&(s.contextMenuPending=!1,s.wrapper.style.cssText=Z,v.style.cssText=K,u&&h<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=P),v.selectionStart!=null)){(!u||u&&h<9)&&ve();var Ne=0,Ve=function(){f.selForContextMenu==p.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&s.prevInput=="\u200B"?Zt(p,z0)(p):Ne++<10?f.detectingSelectAll=setTimeout(Ve,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Ve,200)}}if(u&&h>=9&&ve(),N){ei(a);var Se=function(){Ye(window,"mouseup",Se),setTimeout(me,20)};Ce(window,"mouseup",Se)}else setTimeout(me,50)},zt.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},zt.prototype.setUneditable=function(){},zt.prototype.needsContentAttribute=!1;function F5(a,s){if(s=s?ce(s):{},s.value=a.value,!s.tabindex&&a.tabIndex&&(s.tabindex=a.tabIndex),!s.placeholder&&a.placeholder&&(s.placeholder=a.placeholder),s.autofocus==null){var p=J(a.ownerDocument);s.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function f(){a.value=j.getValue()}var v;if(a.form&&(Ce(a.form,"submit",f),!s.leaveSubmitMethodAlone)){var V=a.form;v=V.submit;try{var P=V.submit=function(){f(),V.submit=v,V.submit(),V.submit=P}}catch{}}s.finishInit=function(K){K.save=f,K.getTextArea=function(){return a},K.toTextArea=function(){K.toTextArea=isNaN,f(),a.parentNode.removeChild(K.getWrapperElement()),a.style.display="",a.form&&(Ye(a.form,"submit",f),!s.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=v))}},a.style.display="none";var j=Ot(function(K){return a.parentNode.insertBefore(K,a.nextSibling)},s);return j}function P5(a){a.off=Ye,a.on=Ce,a.wheelEventPixels=W4,a.Doc=bn,a.splitLines=ha,a.countColumn=de,a.findColumn=q,a.isWordChar=we,a.Pass=ye,a.signal=Qe,a.Line=fo,a.changeEnd=tr,a.scrollbarModel=y0,a.Pos=ue,a.cmpPos=Ee,a.modes=ti,a.mimeModes=Yi,a.resolveMode=Tn,a.getMode=Ti,a.modeExtensions=Qi,a.extendMode=Ss,a.copyState=Di,a.startState=ma,a.innerMode=Ji,a.commands=Pa,a.keyMap=Ii,a.keyName=rb,a.isModifierKey=nb,a.lookupKey=Ao,a.normalizeKeyMap=p5,a.StringStream=Ft,a.SharedTextMarker=$a,a.TextMarker=ir,a.LineWidget=Ra,a.e_preventDefault=bt,a.e_stopPropagation=Gn,a.e_stop=ei,a.addClass=Q,a.contains=S,a.rmClass=L,a.keyNames=rr}T5(Ot),B5(Ot);var M5="iter insert remove copy getEditor constructor".split(" ");for(var ed in bn.prototype)bn.prototype.hasOwnProperty(ed)&&se(M5,ed)<0&&(Ot.prototype[ed]=function(a){return function(){return a.apply(this.doc,arguments)}}(bn.prototype[ed]));return Tt(bn),Ot.inputStyles={textarea:zt,contenteditable:St},Ot.defineMode=function(a){!Ot.defaults.mode&&a!="null"&&(Ot.defaults.mode=a),Es.apply(this,arguments)},Ot.defineMIME=co,Ot.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Ot.defineMIME("text/plain","null"),Ot.defineExtension=function(a,s){Ot.prototype[a]=s},Ot.defineDocExtension=function(a,s){bn.prototype[a]=s},Ot.fromTextArea=F5,P5(Ot),Ot.version="6.65.7",Ot})}(Tu)),Tu.exports}var ki=Zr();(function(e,t){(function(r){r(Zr())})(function(r){r.defineMode("javascript",function(o,i){var l=o.indentUnit,d=i.statementIndent,c=i.jsonld,u=i.json||c,h=i.trackScope!==!1,m=i.typescript,y=i.wordCharacters||/[\w$\xa1-\uffff]/,C=function(){function te(Kt){return{type:Kt,style:"keyword"}}var ae=te("keyword a"),ue=te("keyword b"),Ee=te("keyword c"),ot=te("keyword d"),ht=te("operator"),yt={type:"atom",style:"atom"};return{if:te("if"),while:ae,with:ae,else:ue,do:ue,try:ue,finally:ue,return:ot,break:ot,continue:ot,new:te("new"),delete:Ee,void:Ee,throw:Ee,debugger:te("debugger"),var:te("var"),const:te("var"),let:te("var"),function:te("function"),catch:te("catch"),for:te("for"),switch:te("switch"),case:te("case"),default:te("default"),in:ht,typeof:ht,instanceof:ht,true:yt,false:yt,null:yt,undefined:yt,NaN:yt,Infinity:yt,this:te("this"),class:te("class"),super:te("atom"),yield:Ee,export:te("export"),import:te("import"),extends:Ee,await:Ee}}(),A=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function E(te){for(var ae=!1,ue,Ee=!1;(ue=te.next())!=null;){if(!ae){if(ue=="/"&&!Ee)return;ue=="["?Ee=!0:Ee&&ue=="]"&&(Ee=!1)}ae=!ae&&ue=="\\"}}var b,g;function _(te,ae,ue){return b=te,g=ue,ae}function x(te,ae){var ue=te.next();if(ue=='"'||ue=="'")return ae.tokenize=k(ue),ae.tokenize(te,ae);if(ue=="."&&te.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return _("number","number");if(ue=="."&&te.match(".."))return _("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ue))return _(ue);if(ue=="="&&te.eat(">"))return _("=>","operator");if(ue=="0"&&te.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return _("number","number");if(/\d/.test(ue))return te.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),_("number","number");if(ue=="/")return te.eat("*")?(ae.tokenize=T,T(te,ae)):te.eat("/")?(te.skipToEnd(),_("comment","comment")):yi(te,ae,1)?(E(te),te.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),_("regexp","string-2")):(te.eat("="),_("operator","operator",te.current()));if(ue=="`")return ae.tokenize=O,O(te,ae);if(ue=="#"&&te.peek()=="!")return te.skipToEnd(),_("meta","meta");if(ue=="#"&&te.eatWhile(y))return _("variable","property");if(ue=="<"&&te.match("!--")||ue=="-"&&te.match("->")&&!/\S/.test(te.string.slice(0,te.start)))return te.skipToEnd(),_("comment","comment");if(A.test(ue))return(ue!=">"||!ae.lexical||ae.lexical.type!=">")&&(te.eat("=")?(ue=="!"||ue=="=")&&te.eat("="):/[<>*+\-|&?]/.test(ue)&&(te.eat(ue),ue==">"&&te.eat(ue))),ue=="?"&&te.eat(".")?_("."):_("operator","operator",te.current());if(y.test(ue)){te.eatWhile(y);var Ee=te.current();if(ae.lastType!="."){if(C.propertyIsEnumerable(Ee)){var ot=C[Ee];return _(ot.type,ot.style,Ee)}if(Ee=="async"&&te.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return _("async","keyword",Ee)}return _("variable","variable",Ee)}}function k(te){return function(ae,ue){var Ee=!1,ot;if(c&&ae.peek()=="@"&&ae.match(w))return ue.tokenize=x,_("jsonld-keyword","meta");for(;(ot=ae.next())!=null&&!(ot==te&&!Ee);)Ee=!Ee&&ot=="\\";return Ee||(ue.tokenize=x),_("string","string")}}function T(te,ae){for(var ue=!1,Ee;Ee=te.next();){if(Ee=="/"&&ue){ae.tokenize=x;break}ue=Ee=="*"}return _("comment","comment")}function O(te,ae){for(var ue=!1,Ee;(Ee=te.next())!=null;){if(!ue&&(Ee=="`"||Ee=="$"&&te.eat("{"))){ae.tokenize=x;break}ue=!ue&&Ee=="\\"}return _("quasi","string-2",te.current())}var F="([{}])";function I(te,ae){ae.fatArrowAt&&(ae.fatArrowAt=null);var ue=te.string.indexOf("=>",te.start);if(!(ue<0)){if(m){var Ee=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(te.string.slice(te.start,ue));Ee&&(ue=Ee.index)}for(var ot=0,ht=!1,yt=ue-1;yt>=0;--yt){var Kt=te.string.charAt(yt),Pn=F.indexOf(Kt);if(Pn>=0&&Pn<3){if(!ot){++yt;break}if(--ot==0){Kt=="("&&(ht=!0);break}}else if(Pn>=3&&Pn<6)++ot;else if(y.test(Kt))ht=!0;else if(/["'\/`]/.test(Kt))for(;;--yt){if(yt==0)return;var at=te.string.charAt(yt-1);if(at==Kt&&te.string.charAt(yt-2)!="\\"){yt--;break}}else if(ht&&!ot){++yt;break}}ht&&!ot&&(ae.fatArrowAt=yt)}}var M={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function N(te,ae,ue,Ee,ot,ht){this.indented=te,this.column=ae,this.type=ue,this.prev=ot,this.info=ht,Ee!=null&&(this.align=Ee)}function B(te,ae){if(!h)return!1;for(var ue=te.localVars;ue;ue=ue.next)if(ue.name==ae)return!0;for(var Ee=te.context;Ee;Ee=Ee.prev)for(var ue=Ee.vars;ue;ue=ue.next)if(ue.name==ae)return!0}function L(te,ae,ue,Ee,ot){var ht=te.cc;for(U.state=te,U.stream=ot,U.marked=null,U.cc=ht,U.style=ae,te.lexical.hasOwnProperty("align")||(te.lexical.align=!0);;){var yt=ht.length?ht.pop():u?ye:se;if(yt(ue,Ee)){for(;ht.length&&ht[ht.length-1].lex;)ht.pop()();return U.marked?U.marked:ue=="variable"&&B(te,Ee)?"variable-2":ae}}}var U={state:null,column:null,marked:null,cc:null};function H(){for(var te=arguments.length-1;te>=0;te--)U.cc.push(arguments[te])}function R(){return H.apply(null,arguments),!0}function z(te,ae){for(var ue=ae;ue;ue=ue.next)if(ue.name==te)return!0;return!1}function $(te){var ae=U.state;if(U.marked="def",!!h){if(ae.context){if(ae.lexical.info=="var"&&ae.context&&ae.context.block){var ue=S(te,ae.context);if(ue!=null){ae.context=ue;return}}else if(!z(te,ae.localVars)){ae.localVars=new G(te,ae.localVars);return}}i.globalVars&&!z(te,ae.globalVars)&&(ae.globalVars=new G(te,ae.globalVars))}}function S(te,ae){if(ae)if(ae.block){var ue=S(te,ae.prev);return ue?ue==ae.prev?ae:new Q(ue,ae.vars,!0):null}else return z(te,ae.vars)?ae:new Q(ae.prev,new G(te,ae.vars),!1);else return null}function J(te){return te=="public"||te=="private"||te=="protected"||te=="abstract"||te=="readonly"}function Q(te,ae,ue){this.prev=te,this.vars=ae,this.block=ue}function G(te,ae){this.name=te,this.next=ae}var ie=new G("this",new G("arguments",null));function X(){U.state.context=new Q(U.state.context,U.state.localVars,!1),U.state.localVars=ie}function le(){U.state.context=new Q(U.state.context,U.state.localVars,!0),U.state.localVars=null}X.lex=le.lex=!0;function be(){U.state.localVars=U.state.context.vars,U.state.context=U.state.context.prev}be.lex=!0;function ce(te,ae){var ue=function(){var Ee=U.state,ot=Ee.indented;if(Ee.lexical.type=="stat")ot=Ee.lexical.indented;else for(var ht=Ee.lexical;ht&&ht.type==")"&&ht.align;ht=ht.prev)ot=ht.indented;Ee.lexical=new N(ot,U.stream.column(),te,null,Ee.lexical,ae)};return ue.lex=!0,ue}function de(){var te=U.state;te.lexical.prev&&(te.lexical.type==")"&&(te.indented=te.lexical.indented),te.lexical=te.lexical.prev)}de.lex=!0;function pe(te){function ae(ue){return ue==te?R():te==";"||ue=="}"||ue==")"||ue=="]"?H():R(ae)}return ae}function se(te,ae){return te=="var"?R(ce("vardef",ae),ei,pe(";"),de):te=="keyword a"?R(ce("form"),W,se,de):te=="keyword b"?R(ce("form"),se,de):te=="keyword d"?U.stream.match(/^\s*$/,!1)?R():R(ce("stat"),q,pe(";"),de):te=="debugger"?R(pe(";")):te=="{"?R(ce("}"),le,Ze,de,be):te==";"?R():te=="if"?(U.state.lexical.info=="else"&&U.state.cc[U.state.cc.length-1]==de&&U.state.cc.pop()(),R(ce("form"),W,se,de,so)):te=="function"?R(gi):te=="for"?R(ce("form"),le,Cs,se,be,de):te=="class"||m&&ae=="interface"?(U.marked="keyword",R(ce("form",te=="class"?te:ae),Es,de)):te=="variable"?m&&ae=="declare"?(U.marked="keyword",R(se)):m&&(ae=="module"||ae=="enum"||ae=="type")&&U.stream.match(/^\s*\w/,!1)?(U.marked="keyword",ae=="enum"?R(uo):ae=="type"?R(_s,pe("operator"),Ce,pe(";")):R(ce("form"),vn,pe("{"),ce("}"),Ze,de,de)):m&&ae=="namespace"?(U.marked="keyword",R(ce("form"),ye,se,de)):m&&ae=="abstract"?(U.marked="keyword",R(se)):R(ce("stat"),He):te=="switch"?R(ce("form"),W,pe("{"),ce("}","switch"),le,Ze,de,de,be):te=="case"?R(ye,pe(":")):te=="default"?R(pe(":")):te=="catch"?R(ce("form"),X,ge,se,de,be):te=="export"?R(ce("stat"),Qi,de):te=="import"?R(ce("stat"),Di,de):te=="async"?R(se):ae=="@"?R(ye,se):H(ce("stat"),ye,pe(";"),de)}function ge(te){if(te=="(")return R(ti,pe(")"))}function ye(te,ae){return Y(te,ae,!1)}function D(te,ae){return Y(te,ae,!0)}function W(te){return te!="("?H():R(ce(")"),q,pe(")"),de)}function Y(te,ae,ue){if(U.state.fatArrowAt==U.stream.start){var Ee=ue?Le:Me;if(te=="(")return R(X,ce(")"),Re(ti,")"),de,pe("=>"),Ee,be);if(te=="variable")return H(X,vn,pe("=>"),Ee,be)}var ot=ue?oe:ee;return M.hasOwnProperty(te)?R(ot):te=="function"?R(gi,ot):te=="class"||m&&ae=="interface"?(U.marked="keyword",R(ce("form"),Yi,de)):te=="keyword c"||te=="async"?R(ue?D:ye):te=="("?R(ce(")"),q,pe(")"),de,ot):te=="operator"||te=="spread"?R(ue?D:ye):te=="["?R(ce("]"),Vi,de,ot):te=="{"?mt(_e,"}",null,ot):te=="quasi"?H(he,ot):te=="new"?R(fe(ue)):R()}function q(te){return te.match(/[;\}\)\],]/)?H():H(ye)}function ee(te,ae){return te==","?R(q):oe(te,ae,!1)}function oe(te,ae,ue){var Ee=ue==!1?ee:oe,ot=ue==!1?ye:D;if(te=="=>")return R(X,ue?Le:Me,be);if(te=="operator")return/\+\+|--/.test(ae)||m&&ae=="!"?R(Ee):m&&ae=="<"&&U.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?R(ce(">"),Re(Ce,">"),de,Ee):ae=="?"?R(ye,pe(":"),ot):R(ot);if(te=="quasi")return H(he,Ee);if(te!=";"){if(te=="(")return mt(D,")","call",Ee);if(te==".")return R(et,Ee);if(te=="[")return R(ce("]"),q,pe("]"),de,Ee);if(m&&ae=="as")return U.marked="keyword",R(Ce,Ee);if(te=="regexp")return U.state.lastType=U.marked="operator",U.stream.backUp(U.stream.pos-U.stream.start-1),R(ot)}}function he(te,ae){return te!="quasi"?H():ae.slice(ae.length-2)!="${"?R(he):R(q,Ae)}function Ae(te){if(te=="}")return U.marked="string-2",U.state.tokenize=O,R(he)}function Me(te){return I(U.stream,U.state),H(te=="{"?se:ye)}function Le(te){return I(U.stream,U.state),H(te=="{"?se:D)}function fe(te){return function(ae){return ae=="."?R(te?we:ke):ae=="variable"&&m?R(bt,te?oe:ee):H(te?D:ye)}}function ke(te,ae){if(ae=="target")return U.marked="keyword",R(ee)}function we(te,ae){if(ae=="target")return U.marked="keyword",R(oe)}function He(te){return te==":"?R(de,se):H(ee,pe(";"),de)}function et(te){if(te=="variable")return U.marked="property",R()}function _e(te,ae){if(te=="async")return U.marked="property",R(_e);if(te=="variable"||U.style=="keyword"){if(U.marked="property",ae=="get"||ae=="set")return R(Oe);var ue;return m&&U.state.fatArrowAt==U.stream.start&&(ue=U.stream.match(/^\s*:\s*/,!1))&&(U.state.fatArrowAt=U.stream.pos+ue[0].length),R(Ke)}else{if(te=="number"||te=="string")return U.marked=c?"property":U.style+" property",R(Ke);if(te=="jsonld-keyword")return R(Ke);if(m&&J(ae))return U.marked="keyword",R(_e);if(te=="[")return R(ye,De,pe("]"),Ke);if(te=="spread")return R(D,Ke);if(ae=="*")return U.marked="keyword",R(_e);if(te==":")return H(Ke)}}function Oe(te){return te!="variable"?H(Ke):(U.marked="property",R(gi))}function Ke(te){if(te==":")return R(D);if(te=="(")return H(gi)}function Re(te,ae,ue){function Ee(ot,ht){if(ue?ue.indexOf(ot)>-1:ot==","){var yt=U.state.lexical;return yt.info=="call"&&(yt.pos=(yt.pos||0)+1),R(function(Kt,Pn){return Kt==ae||Pn==ae?H():H(te)},Ee)}return ot==ae||ht==ae?R():ue&&ue.indexOf(";")>-1?H(te):R(pe(ae))}return function(ot,ht){return ot==ae||ht==ae?R():H(te,Ee)}}function mt(te,ae,ue){for(var Ee=3;Ee<arguments.length;Ee++)U.cc.push(arguments[Ee]);return R(ce(ae,ue),Re(te,ae),de)}function Ze(te){return te=="}"?R():H(se,Ze)}function De(te,ae){if(m){if(te==":")return R(Ce);if(ae=="?")return R(De)}}function Pe(te,ae){if(m&&(te==":"||ae=="in"))return R(Ce)}function tt(te){if(m&&te==":")return U.stream.match(/^\s*\w+\s+is\b/,!1)?R(ye,$e,Ce):R(Ce)}function $e(te,ae){if(ae=="is")return U.marked="keyword",R()}function Ce(te,ae){if(ae=="keyof"||ae=="typeof"||ae=="infer"||ae=="readonly")return U.marked="keyword",R(ae=="typeof"?D:Ce);if(te=="variable"||ae=="void")return U.marked="type",R(Tt);if(ae=="|"||ae=="&")return R(Ce);if(te=="string"||te=="number"||te=="atom")return R(Tt);if(te=="[")return R(ce("]"),Re(Ce,"]",","),de,Tt);if(te=="{")return R(ce("}"),Ye,de,Tt);if(te=="(")return R(Re(Rt,")"),Xe,Tt);if(te=="<")return R(Re(Ce,">"),Ce);if(te=="quasi")return H(ct,Tt)}function Xe(te){if(te=="=>")return R(Ce)}function Ye(te){return te.match(/[\}\)\]]/)?R():te==","||te==";"?R(Ye):H(Qe,Ye)}function Qe(te,ae){if(te=="variable"||U.style=="keyword")return U.marked="property",R(Qe);if(ae=="?"||te=="number"||te=="string")return R(Qe);if(te==":")return R(Ce);if(te=="[")return R(pe("variable"),Pe,pe("]"),Qe);if(te=="(")return H(vi,Qe);if(!te.match(/[;\}\)\],]/))return R()}function ct(te,ae){return te!="quasi"?H():ae.slice(ae.length-2)!="${"?R(ct):R(Ce,gn)}function gn(te){if(te=="}")return U.marked="string-2",U.state.tokenize=O,R(ct)}function Rt(te,ae){return te=="variable"&&U.stream.match(/^\s*[?:]/,!1)||ae=="?"?R(Rt):te==":"?R(Ce):te=="spread"?R(Rt):H(Ce)}function Tt(te,ae){if(ae=="<")return R(ce(">"),Re(Ce,">"),de,Tt);if(ae=="|"||te=="."||ae=="&")return R(Ce);if(te=="[")return R(Ce,pe("]"),Tt);if(ae=="extends"||ae=="implements")return U.marked="keyword",R(Ce);if(ae=="?")return R(Ce,pe(":"),Ce)}function bt(te,ae){if(ae=="<")return R(ce(">"),Re(Ce,">"),de,Tt)}function Gn(){return H(Ce,Gi)}function Gi(te,ae){if(ae=="=")return R(Ce)}function ei(te,ae){return ae=="enum"?(U.marked="keyword",R(uo)):H(vn,De,Kn,_f)}function vn(te,ae){if(m&&J(ae))return U.marked="keyword",R(vn);if(te=="variable")return $(ae),R();if(te=="spread")return R(vn);if(te=="[")return mt(Cf,"]");if(te=="{")return mt(pa,"}")}function pa(te,ae){return te=="variable"&&!U.stream.match(/^\s*:/,!1)?($(ae),R(Kn)):(te=="variable"&&(U.marked="property"),te=="spread"?R(vn):te=="}"?H():te=="["?R(ye,pe("]"),pe(":"),pa):R(pe(":"),vn,Kn))}function Cf(){return H(vn,Kn)}function Kn(te,ae){if(ae=="=")return R(D)}function _f(te){if(te==",")return R(ei)}function so(te,ae){if(te=="keyword b"&&ae=="else")return R(ce("form","else"),se,de)}function Cs(te,ae){if(ae=="await")return R(Cs);if(te=="(")return R(ce(")"),ha,de)}function ha(te){return te=="var"?R(ei,Ki):te=="variable"?R(Ki):H(Ki)}function Ki(te,ae){return te==")"?R():te==";"?R(Ki):ae=="in"||ae=="of"?(U.marked="keyword",R(ye,Ki)):H(ye,Ki)}function gi(te,ae){if(ae=="*")return U.marked="keyword",R(gi);if(te=="variable")return $(ae),R(gi);if(te=="(")return R(X,ce(")"),Re(ti,")"),de,tt,se,be);if(m&&ae=="<")return R(ce(">"),Re(Gn,">"),de,gi)}function vi(te,ae){if(ae=="*")return U.marked="keyword",R(vi);if(te=="variable")return $(ae),R(vi);if(te=="(")return R(X,ce(")"),Re(ti,")"),de,tt,be);if(m&&ae=="<")return R(ce(">"),Re(Gn,">"),de,vi)}function _s(te,ae){if(te=="keyword"||te=="variable")return U.marked="type",R(_s);if(ae=="<")return R(ce(">"),Re(Gn,">"),de)}function ti(te,ae){return ae=="@"&&R(ye,ti),te=="spread"?R(ti):m&&J(ae)?(U.marked="keyword",R(ti)):m&&te=="this"?R(De,Kn):H(vn,De,Kn)}function Yi(te,ae){return te=="variable"?Es(te,ae):co(te,ae)}function Es(te,ae){if(te=="variable")return $(ae),R(co)}function co(te,ae){if(ae=="<")return R(ce(">"),Re(Gn,">"),de,co);if(ae=="extends"||ae=="implements"||m&&te==",")return ae=="implements"&&(U.marked="keyword"),R(m?Ce:ye,co);if(te=="{")return R(ce("}"),Tn,de)}function Tn(te,ae){if(te=="async"||te=="variable"&&(ae=="static"||ae=="get"||ae=="set"||m&&J(ae))&&U.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return U.marked="keyword",R(Tn);if(te=="variable"||U.style=="keyword")return U.marked="property",R(Ti,Tn);if(te=="number"||te=="string")return R(Ti,Tn);if(te=="[")return R(ye,De,pe("]"),Ti,Tn);if(ae=="*")return U.marked="keyword",R(Tn);if(m&&te=="(")return H(vi,Tn);if(te==";"||te==",")return R(Tn);if(te=="}")return R();if(ae=="@")return R(ye,Tn)}function Ti(te,ae){if(ae=="!"||ae=="?")return R(Ti);if(te==":")return R(Ce,Kn);if(ae=="=")return R(D);var ue=U.state.lexical.prev,Ee=ue&&ue.info=="interface";return H(Ee?vi:gi)}function Qi(te,ae){return ae=="*"?(U.marked="keyword",R(Je,pe(";"))):ae=="default"?(U.marked="keyword",R(ye,pe(";"))):te=="{"?R(Re(Ss,"}"),Je,pe(";")):H(se)}function Ss(te,ae){if(ae=="as")return U.marked="keyword",R(pe("variable"));if(te=="variable")return H(D,Ss)}function Di(te){return te=="string"?R():te=="("?H(ye):te=="."?H(ee):H(Ji,ma,Je)}function Ji(te,ae){return te=="{"?mt(Ji,"}"):(te=="variable"&&$(ae),ae=="*"&&(U.marked="keyword"),R(Ft))}function ma(te){if(te==",")return R(Ji,ma)}function Ft(te,ae){if(ae=="as")return U.marked="keyword",R(Ji)}function Je(te,ae){if(ae=="from")return U.marked="keyword",R(ye)}function Vi(te){return te=="]"?R():H(Re(D,"]"))}function uo(){return H(ce("form"),vn,pe("{"),ce("}"),Re(Yn,"}"),de,de)}function Yn(){return H(vn,Kn)}function wt(te,ae){return te.lastType=="operator"||te.lastType==","||A.test(ae.charAt(0))||/[,.]/.test(ae.charAt(0))}function yi(te,ae,ue){return ae.tokenize==x&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ae.lastType)||ae.lastType=="quasi"&&/\{\s*$/.test(te.string.slice(0,te.pos-(ue||0)))}return{startState:function(te){var ae={tokenize:x,lastType:"sof",cc:[],lexical:new N((te||0)-l,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Q(null,null,!1),indented:te||0};return i.globalVars&&typeof i.globalVars=="object"&&(ae.globalVars=i.globalVars),ae},token:function(te,ae){if(te.sol()&&(ae.lexical.hasOwnProperty("align")||(ae.lexical.align=!1),ae.indented=te.indentation(),I(te,ae)),ae.tokenize!=T&&te.eatSpace())return null;var ue=ae.tokenize(te,ae);return b=="comment"?ue:(ae.lastType=b=="operator"&&(g=="++"||g=="--")?"incdec":b,L(ae,ue,b,g,te))},indent:function(te,ae){if(te.tokenize==T||te.tokenize==O)return r.Pass;if(te.tokenize!=x)return 0;var ue=ae&&ae.charAt(0),Ee=te.lexical,ot;if(!/^\s*else\b/.test(ae))for(var ht=te.cc.length-1;ht>=0;--ht){var yt=te.cc[ht];if(yt==de)Ee=Ee.prev;else if(yt!=so&&yt!=be)break}for(;(Ee.type=="stat"||Ee.type=="form")&&(ue=="}"||(ot=te.cc[te.cc.length-1])&&(ot==ee||ot==oe)&&!/^[,\.=+\-*:?[\(]/.test(ae));)Ee=Ee.prev;d&&Ee.type==")"&&Ee.prev.type=="stat"&&(Ee=Ee.prev);var Kt=Ee.type,Pn=ue==Kt;return Kt=="vardef"?Ee.indented+(te.lastType=="operator"||te.lastType==","?Ee.info.length+1:0):Kt=="form"&&ue=="{"?Ee.indented:Kt=="form"?Ee.indented+l:Kt=="stat"?Ee.indented+(wt(te,ae)?d||l:0):Ee.info=="switch"&&!Pn&&i.doubleIndentSwitch!=!1?Ee.indented+(/^(?:case|default)\b/.test(ae)?l:2*l):Ee.align?Ee.column+(Pn?0:1):Ee.indented+(Pn?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:c,jsonMode:u,expressionAllowed:yi,skipExpression:function(te){L(te,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})(),function(e,t){(function(r){r(Zr())})(function(r){var o="CodeMirror-hint",i="CodeMirror-hint-active";r.showHint=function(g,_,x){if(!_)return g.showHint(x);x&&x.async&&(_.async=!0);var k={hint:_};if(x)for(var T in x)k[T]=x[T];return g.showHint(k)},r.defineExtension("showHint",function(g){g=u(this,this.getCursor("start"),g);var _=this.listSelections();if(!(_.length>1)){if(this.somethingSelected()){if(!g.hint.supportsSelection)return;for(var x=0;x<_.length;x++)if(_[x].head.line!=_[x].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var k=this.state.completionActive=new l(this,g);!k.options.hint||(r.signal(this,"startCompletion",this),k.update(!0))}}),r.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function l(g,_){if(this.cm=g,this.options=_,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 x=this;g.on("cursorActivity",this.activityFunc=function(){x.cursorActivity()})}}var d=window.requestAnimationFrame||function(g){return setTimeout(g,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;l.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&&r.signal(this.data,"close"),this.widget&&this.widget.close(),r.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(g,_){var x=g.list[_],k=this;this.cm.operation(function(){x.hint?x.hint(k.cm,g,x):k.cm.replaceRange(h(x),x.from||g.from,x.to||g.to,"complete"),r.signal(g,"pick",x),k.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 _=this.cm.getCursor(),x=this.cm.getLine(_.line);if(_.line!=this.startPos.line||x.length-_.ch!=this.startLen-this.startPos.ch||_.ch<g.ch||this.cm.somethingSelected()||!_.ch||this.options.closeCharacters.test(x.charAt(_.ch-1)))this.close();else{var k=this;this.debounce=d(function(){k.update()}),this.widget&&this.widget.disable()}},update:function(g){if(this.tick!=null){var _=this,x=++this.tick;w(this.options.hint,this.cm,this.options,function(k){_.tick==x&&_.finishUpdate(k,g)})}},finishUpdate:function(g,_){this.data&&r.signal(this.data,"update");var x=this.widget&&this.widget.picked||_&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=g,g&&g.list.length&&(x&&g.list.length==1?this.pick(g,0):(this.widget=new C(this,g),r.signal(g,"shown")))}};function u(g,_,x){var k=g.options.hintOptions,T={};for(var O in b)T[O]=b[O];if(k)for(var O in k)k[O]!==void 0&&(T[O]=k[O]);if(x)for(var O in x)x[O]!==void 0&&(T[O]=x[O]);return T.hint.resolve&&(T.hint=T.hint.resolve(g,_)),T}function h(g){return typeof g=="string"?g:g.text}function m(g,_){var x={Up:function(){_.moveFocus(-1)},Down:function(){_.moveFocus(1)},PageUp:function(){_.moveFocus(-_.menuSize()+1,!0)},PageDown:function(){_.moveFocus(_.menuSize()-1,!0)},Home:function(){_.setFocus(0)},End:function(){_.setFocus(_.length-1)},Enter:_.pick,Tab:_.pick,Esc:_.close},k=/Mac/.test(navigator.platform);k&&(x["Ctrl-P"]=function(){_.moveFocus(-1)},x["Ctrl-N"]=function(){_.moveFocus(1)});var T=g.options.customKeys,O=T?{}:x;function F(N,B){var L;typeof B!="string"?L=function(U){return B(U,_)}:x.hasOwnProperty(B)?L=x[B]:L=B,O[N]=L}if(T)for(var I in T)T.hasOwnProperty(I)&&F(I,T[I]);var M=g.options.extraKeys;if(M)for(var I in M)M.hasOwnProperty(I)&&F(I,M[I]);return O}function y(g,_){for(;_&&_!=g;){if(_.nodeName.toUpperCase()==="LI"&&_.parentNode==g)return _;_=_.parentNode}}function C(g,_){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=g,this.data=_,this.picked=!1;var x=this,k=g.cm,T=k.getInputField().ownerDocument,O=T.defaultView||T.parentWindow,F=this.hints=T.createElement("ul");F.setAttribute("role","listbox"),F.setAttribute("aria-expanded","true"),F.id=this.id;var I=g.cm.options.theme;F.className="CodeMirror-hints "+I,this.selectedHint=_.selectedHint||0;for(var M=_.list,N=0;N<M.length;++N){var B=F.appendChild(T.createElement("li")),L=M[N],U=o+(N!=this.selectedHint?"":" "+i);L.className!=null&&(U=L.className+" "+U),B.className=U,N==this.selectedHint&&B.setAttribute("aria-selected","true"),B.id=this.id+"-"+N,B.setAttribute("role","option"),L.render?L.render(B,_,L):B.appendChild(T.createTextNode(L.displayText||h(L))),B.hintId=N}var H=g.options.container||T.body,R=k.cursorCoords(g.options.alignWithWord?_.from:null),z=R.left,$=R.bottom,S=!0,J=0,Q=0;if(H!==T.body){var G=["absolute","relative","fixed"].indexOf(O.getComputedStyle(H).position)!==-1,ie=G?H:H.offsetParent,X=ie.getBoundingClientRect(),le=T.body.getBoundingClientRect();J=X.left-le.left-ie.scrollLeft,Q=X.top-le.top-ie.scrollTop}F.style.left=z-J+"px",F.style.top=$-Q+"px";var be=O.innerWidth||Math.max(T.body.offsetWidth,T.documentElement.offsetWidth),ce=O.innerHeight||Math.max(T.body.offsetHeight,T.documentElement.offsetHeight);H.appendChild(F),k.getInputField().setAttribute("aria-autocomplete","list"),k.getInputField().setAttribute("aria-owns",this.id),k.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var de=g.options.moveOnOverlap?F.getBoundingClientRect():new DOMRect,pe=g.options.paddingForScrollbar?F.scrollHeight>F.clientHeight+1:!1,se;setTimeout(function(){se=k.getScrollInfo()});var ge=de.bottom-ce;if(ge>0){var ye=de.bottom-de.top,D=R.top-(R.bottom-de.top);if(D-ye>0)F.style.top=($=R.top-ye-Q)+"px",S=!1;else if(ye>ce){F.style.height=ce-5+"px",F.style.top=($=R.bottom-de.top-Q)+"px";var W=k.getCursor();_.from.ch!=W.ch&&(R=k.cursorCoords(W),F.style.left=(z=R.left-J)+"px",de=F.getBoundingClientRect())}}var Y=de.right-be;if(pe&&(Y+=k.display.nativeBarWidth),Y>0&&(de.right-de.left>be&&(F.style.width=be-5+"px",Y-=de.right-de.left-be),F.style.left=(z=Math.max(R.left-Y-J,0))+"px"),pe)for(var q=F.firstChild;q;q=q.nextSibling)q.style.paddingRight=k.display.nativeBarWidth+"px";if(k.addKeyMap(this.keyMap=m(g,{moveFocus:function(he,Ae){x.changeActive(x.selectedHint+he,Ae)},setFocus:function(he){x.changeActive(he)},menuSize:function(){return x.screenAmount()},length:M.length,close:function(){g.close()},pick:function(){x.pick()},data:_})),g.options.closeOnUnfocus){var ee;k.on("blur",this.onBlur=function(){ee=setTimeout(function(){g.close()},100)}),k.on("focus",this.onFocus=function(){clearTimeout(ee)})}k.on("scroll",this.onScroll=function(){var he=k.getScrollInfo(),Ae=k.getWrapperElement().getBoundingClientRect();se||(se=k.getScrollInfo());var Me=$+se.top-he.top,Le=Me-(O.pageYOffset||(T.documentElement||T.body).scrollTop);if(S||(Le+=F.offsetHeight),Le<=Ae.top||Le>=Ae.bottom)return g.close();F.style.top=Me+"px",F.style.left=z+se.left-he.left+"px"}),r.on(F,"dblclick",function(he){var Ae=y(F,he.target||he.srcElement);Ae&&Ae.hintId!=null&&(x.changeActive(Ae.hintId),x.pick())}),r.on(F,"click",function(he){var Ae=y(F,he.target||he.srcElement);Ae&&Ae.hintId!=null&&(x.changeActive(Ae.hintId),g.options.completeOnSingleClick&&x.pick())}),r.on(F,"mousedown",function(){setTimeout(function(){k.focus()},20)});var oe=this.getSelectedHintRange();return(oe.from!==0||oe.to!==0)&&this.scrollToActive(),r.signal(_,"select",M[this.selectedHint],F.childNodes[this.selectedHint]),!0}C.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 _=this.completion.cm;this.completion.options.closeOnUnfocus&&(_.off("blur",this.onBlur),_.off("focus",this.onFocus)),_.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,_){if(g>=this.data.list.length?g=_?this.data.list.length-1:0:g<0&&(g=_?0:this.data.list.length-1),this.selectedHint!=g){var x=this.hints.childNodes[this.selectedHint];x&&(x.className=x.className.replace(" "+i,""),x.removeAttribute("aria-selected")),x=this.hints.childNodes[this.selectedHint=g],x.className+=" "+i,x.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",x.id),this.scrollToActive(),r.signal(this.data,"select",this.data.list[this.selectedHint],x)}},scrollToActive:function(){var g=this.getSelectedHintRange(),_=this.hints.childNodes[g.from],x=this.hints.childNodes[g.to],k=this.hints.firstChild;_.offsetTop<this.hints.scrollTop?this.hints.scrollTop=_.offsetTop-k.offsetTop:x.offsetTop+x.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=x.offsetTop+x.offsetHeight-this.hints.clientHeight+k.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 A(g,_){if(!g.somethingSelected())return _;for(var x=[],k=0;k<_.length;k++)_[k].supportsSelection&&x.push(_[k]);return x}function w(g,_,x,k){if(g.async)g(_,k,x);else{var T=g(_,x);T&&T.then?T.then(k):k(T)}}function E(g,_){var x=g.getHelpers(_,"hint"),k;if(x.length){var T=function(O,F,I){var M=A(O,x);function N(B){if(B==M.length)return F(null);w(M[B],O,I,function(L){L&&L.list.length>0?F(L):N(B+1)})}N(0)};return T.async=!0,T.supportsSelection=!0,T}else return(k=g.getHelper(g.getCursor(),"hintWords"))?function(O){return r.hint.fromList(O,{words:k})}:r.hint.anyword?function(O,F){return r.hint.anyword(O,F)}:function(){}}r.registerHelper("hint","auto",{resolve:E}),r.registerHelper("hint","fromList",function(g,_){var x=g.getCursor(),k=g.getTokenAt(x),T,O=r.Pos(x.line,k.start),F=x;k.start<x.ch&&/\w/.test(k.string.charAt(x.ch-k.start-1))?T=k.string.substr(0,x.ch-k.start):(T="",O=x);for(var I=[],M=0;M<_.words.length;M++){var N=_.words[M];N.slice(0,T.length)==T&&I.push(N)}if(I.length)return{list:I,from:O,to:F}}),r.commands.autocomplete=r.showHint;var b={hint:r.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};r.defineOption("hintOptions",null)})}(),function(e,t){(function(r){r(Zr())})(function(r){var o=r.Pos;function i(g,_){for(var x=0,k=g.length;x<k;++x)_(g[x])}function l(g,_){if(!Array.prototype.indexOf){for(var x=g.length;x--;)if(g[x]===_)return!0;return!1}return g.indexOf(_)!=-1}function d(g,_,x,k){var T=g.getCursor(),O=x(g,T);if(!/\b(?:string|comment)\b/.test(O.type)){var F=r.innerMode(g.getMode(),O.state);if(F.mode.helperType!=="json"){O.state=F.state,/^[\w$_]*$/.test(O.string)?O.end>T.ch&&(O.end=T.ch,O.string=O.string.slice(0,T.ch-O.start)):O={start:T.ch,end:T.ch,string:"",state:O.state,type:O.string=="."?"property":null};for(var I=O;I.type=="property";){if(I=x(g,o(T.line,I.start)),I.string!=".")return;if(I=x(g,o(T.line,I.start)),!M)var M=[];M.push(I)}return{list:b(O,M,_,k),from:o(T.line,O.start),to:o(T.line,O.end)}}}}function c(g,_){return d(g,A,function(x,k){return x.getTokenAt(k)},_)}r.registerHelper("hint","javascript",c);function u(g,_){var x=g.getTokenAt(_);return _.ch==x.start+1&&x.string.charAt(0)=="."?(x.end=x.start,x.string=".",x.type="property"):/^\.[\w$_]*$/.test(x.string)&&(x.type="property",x.start++,x.string=x.string.replace(/\./,"")),x}function h(g,_){return d(g,w,u,_)}r.registerHelper("hint","coffeescript",h);var m="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(" "),C="prototype apply call bind".split(" "),A="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(" "),w="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 E(g,_){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var x in g)_(x);else for(var k=g;k;k=Object.getPrototypeOf(k))Object.getOwnPropertyNames(k).forEach(_)}function b(g,_,x,k){var T=[],O=g.string,F=k&&k.globalScope||window;function I(R){R.lastIndexOf(O,0)==0&&!l(T,R)&&T.push(R)}function M(R){typeof R=="string"?i(m,I):R instanceof Array?i(y,I):R instanceof Function&&i(C,I),E(R,I)}if(_&&_.length){var N=_.pop(),B;for(N.type&&N.type.indexOf("variable")===0?(k&&k.additionalContext&&(B=k.additionalContext[N.string]),(!k||k.useGlobalScope!==!1)&&(B=B||F[N.string])):N.type=="string"?B="":N.type=="atom"?B=1:N.type=="function"&&(F.jQuery!=null&&(N.string=="$"||N.string=="jQuery")&&typeof F.jQuery=="function"?B=F.jQuery():F._!=null&&N.string=="_"&&typeof F._=="function"&&(B=F._()));B!=null&&_.length;)B=B[_.pop().string];B!=null&&M(B)}else{for(var L=g.state.localVars;L;L=L.next)I(L.name);for(var U=g.state.context;U;U=U.prev)for(var L=U.vars;L;L=L.next)I(L.name);for(var L=g.state.globalVars;L;L=L.next)I(L.name);if(k&&k.additionalContext!=null)for(var H in k.additionalContext)I(H);(!k||k.useGlobalScope!==!1)&&M(F),i(x,I)}return T}})}();const mj="",nD="[[FORM-CREATE-PREFIX-",iD="-FORM-CREATE-SUFFIX]]",rD=n.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(e){e!=this.value&&(!e||!e.__json||e.__json&&e.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},argStr(){return(this.args||[]).map(e=>typeof e=="string"?e:e.name).join(", ")},argList(){return this.args.map(e=>typeof e=="string"?{name:e,type:"string"}:e)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const e=this.editor.getValue()||"";if(e.trim()==="")this.fn="";else{let t;try{t=new Function("return function ("+this.argStr+`){
|
||
`+e+`
|
||
}`)()}catch(r){return console.error(r),dn(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+e:this.fn=nD+t+iD}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(e){const t=e.indexOf("{"),r=e.lastIndexOf("}");return t===-1||r===-1||t>=r?e:e.slice(t+1,r).replace(/^\n+|\n+$/g,"")},tidyValue(){let e=this.modelValue||"";return e.__json&&(e=e.__json),this.fnx&&typeof e=="string"&&e.indexOf("$FNX:")===0&&(e=e.slice(5)),typeof e=="function"?e=this.trimString(En(e)).trim():this.body||(e=this.trimString(e).trim()),this.value=e,e},load(){this.$nextTick(()=>{let e=this.tidyValue();this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:e})),this.editor.on("inputRead",(t,r)=>{r.keyCode===32&&r.ctrlKey&&ki.showHint(t,ki.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),oD={class:"_fd-fn"},aD={class:"_fd-fn-tip"},lD={class:"cm-keyword"},sD={key:0},dD={class:"_fd-fn-arg"},cD={ref:"editor",class:"_fd-fn-editor"};function uD(e,t,r,o,i,l){const d=n.resolveComponent("el-table-column"),c=n.resolveComponent("el-table"),u=n.resolveComponent("el-popover"),h=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",oD,[n.createElementVNode("div",aD,[t[2]||(t[2]=n.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),n.createElementVNode("div",lD,[n.createElementVNode("span",null,[n.createTextVNode("function "+n.toDisplayString(e.name)+"(",1),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.argList,(m,y)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createTextVNode(n.toDisplayString(y>0?", ":""),1),m.type==="string"?(n.openBlock(),n.createElementBlock("span",sD,n.toDisplayString(m.name),1)):(n.openBlock(),n.createBlock(u,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:m.name,content:m.info||""},{reference:n.withCtx(()=>[n.createElementVNode("span",dD,[n.createTextVNode(n.toDisplayString(m.name),1),t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),default:n.withCtx(()=>[m.columns?(n.openBlock(),n.createBlock(c,{key:0,data:m.columns,border:""},{default:n.withCtx(()=>[n.createVNode(d,{width:"120",property:"label",label:e.t("props.field")},null,8,["label"]),n.createVNode(d,{property:"info",label:e.t("event.info")},null,8,["label"]),n.createVNode(d,{width:"80",property:"type",label:e.t("event.type")},null,8,["label"])]),_:2},1032,["data"])):n.createCommentVNode("",!0)]),_:2},1032,["title","content"]))],64))),256)),t[1]||(t[1]=n.createTextVNode(") {"))])])]),n.createElementVNode("div",cD,null,512),t[3]||(t[3]=n.createElementVNode("div",{class:"_fd-fn-tip"},[n.createElementVNode("div",{class:"_fd-fn-ind"}),n.createElementVNode("div",{class:"cm-keyword"},"}")],-1)),e.visible&&e.button?(n.openBlock(),n.createBlock(h,{key:0,type:"primary",size:"small",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)])}const Ni=Te(rD,[["render",uD]]),gj="",fD=n.defineComponent({name:"ConditionInput",inject:["designer"],emits:["update:modelValue","change"],props:{type:String,options:Array,props:Object,modelValue:[String,Number,Array,Object,Boolean]},watch:{modelValue(){this.value=this.modelValue||void 0}},data(){return{value:this.modelValue||void 0}},methods:{onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}},created(){}}),pD={class:"_fd-cdi-input"};function hD(e,t,r,o,i,l){const d=n.resolveComponent("el-cascader"),c=n.resolveComponent("el-input-number"),u=n.resolveComponent("el-option"),h=n.resolveComponent("el-select"),m=n.resolveComponent("el-switch"),y=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",pD,[e.type==="cascader"?(n.openBlock(),n.createBlock(d,n.mergeProps({key:0,size:"default",props:{checkStrictly:!0,emitPath:!1}},e.props||{},{options:e.options,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=C=>e.value=C),onChange:e.onInput}),null,16,["options","modelValue","onChange"])):e.type==="number"?(n.openBlock(),n.createBlock(c,n.mergeProps({key:1,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=C=>e.value=C),onChange:e.onInput}),null,16,["modelValue","onChange"])):e.type==="select"?(n.openBlock(),n.createBlock(h,n.mergeProps({key:2,size:"default",filterable:"","allow-create":"","default-first-option":""},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=C=>e.value=C),onChange:e.onInput}),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,C=>(n.openBlock(),n.createBlock(u,{label:C.label,value:C.value,key:C.value},null,8,["label","value"]))),128))]),_:1},16,["modelValue","onChange"])):e.type==="switch"?(n.openBlock(),n.createBlock(m,n.mergeProps({key:3,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=C=>e.value=C),onChange:e.onInput}),null,16,["modelValue","onChange"])):(n.openBlock(),n.createBlock(y,n.mergeProps({key:4,size:"default"},e.props||{},{modelValue:e.value,"onUpdate:modelValue":t[4]||(t[4]=C=>e.value=C),onBlur:e.onInput}),null,16,["modelValue","onBlur"]))])}const mD=Te(fD,[["render",hD]]),vj="",gD=n.defineComponent({name:"PatternInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String},data(){return{value:this.modelValue||"",options:[{label:"\u90AE\u7BB1",value:"^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$"},{label:"\u57DF\u540D",value:"^((http:\\/\\/)|(https:\\/\\/))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(\\/)$"},{label:"\u624B\u673A\u53F7",value:"^(?:(?:\\+|00)86)?1[3-9]\\d{9}$"},{label:"\u5EA7\u673A\u7535\u8BDD",value:"^(?:(?:\\d{3}-)?\\d{8}|^(?:\\d{4}-)?\\d{7,8})(?:-\\d+)?$"},{label:"\u8EAB\u4EFD\u8BC1\u53F7",value:"^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0[1-9]|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$"},{label:"\u94F6\u884C\u5361\u53F7",value:"^[1-9]\\d{9,29}$"},{label:"\u8F66\u724C\u53F7",value:"^[\u4EAC\u6D25\u6CAA\u6E1D\u5180\u8C6B\u4E91\u8FBD\u9ED1\u6E58\u7696\u9C81\u65B0\u82CF\u6D59\u8D63\u9102\u6842\u7518\u664B\u8499\u9655\u5409\u95FD\u8D35\u7CA4\u9752\u85CF\u5DDD\u5B81\u743C\u4F7F\u9886][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9\u6302\u5B66\u8B66\u6E2F\u6FB3]$"},{label:"\u4E2D\u6587",value:"^(?:[\\u3400-\\u4DB5\\u4E00-\\u9FEA\\uFA0E\\uFA0F\\uFA11\\uFA13\\uFA14\\uFA1F\\uFA21\\uFA23\\uFA24\\uFA27-\\uFA29]|[\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872\\uD874-\\uD879][\\uDC00-\\uDFFF]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1\\uDEB0-\\uDFFF]|\\uD87A[\\uDC00-\\uDFE0])+$"},{label:"\u6570\u5B57",value:"^\\d+$"},{label:"\u6574\u6570",value:"^(?:0|(?:-?[1-9]\\d*))$"},{label:"\u6B63\u6574\u6570",value:"^\\+?[1-9]\\d*$"},{label:"\u8D1F\u6574\u6570",value:"^-[1-9]\\d*$"},{label:"\u6D6E\u70B9\u6570",value:"^(-?[1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u6B63\u6D6E\u70B9\u6570",value:"^([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u8D1F\u6D6E\u70B9\u6570",value:"^-([1-9]\\d*\\.\\d+|-?0\\.\\d*[1-9])$"},{label:"\u82F1\u6587\u5B57\u6BCD",value:"^[a-zA-Z]+$"},{label:"\u6570\u5B57\u548C\u5B57\u6BCD",value:"^[A-Za-z0-9]+$"}]}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}}),vD={class:"_fd-pattern-input"};function yD(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),h=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",vD,[n.createVNode(h,{size:e.size,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=m=>e.value=m),onBlur:e.onInput,clearable:""},{append:n.withCtx(()=>[n.createVNode(u,{size:"default",trigger:"click","popper-class":"_fd-pattern-popper"},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,m=>(n.openBlock(),n.createBlock(d,{key:m.value,onClick:y=>e.setValue(m.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["size","modelValue","onBlur"])])}const Du=Te(gD,[["render",yD]]),yj="",bD=n.defineComponent({name:"RuleSelect",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[String,Number,Array],onlyField:Boolean,valueType:String,size:String,multiple:Boolean},computed:{activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t},tree(){var o,i,l;const e=this.designer.setupState.activePage;let t=[];e.default?t=this.getFields(this.designer.setupState.treeInfo):t=this.getFields(e.main.field&&e.main===this.activeRule?this.designer.setupState.treeInfo:this.designer.setupState.treeInfo[0].children);let r=(o=this.activeRule)==null?void 0:o.__fc__.parent;for(;r;)if(r.rule===e.main)r=void 0;else if(r.rule._menu&&["array","object","scope"].indexOf(r.rule._menu.subForm)>-1){const d=this.getFields(this.designer.setupState.findTree(r.rule._fc_id));d.length&&t.unshift({value:"___subform",disabled:!0,label:((l=(i=r.refRule)==null?void 0:i.__$title)==null?void 0:l.value)||r.rule.title||r.rule._menu.label,children:d}),r=void 0}else r=r.parent;return t}},methods:{getFields(e,t=[]){const r=[];return e.forEach(({rule:o,children:i})=>{var c,u,h;const l=[...t];o.field&&l.push(o);const d=["array","scope"].indexOf(o._menu.subForm)>-1?[]:this.getFields(i||[],l);if(!this.onlyField||this.onlyField&&o.field){const m={value:t.length?t.map(y=>y[this.valueType||"_fc_id"]).join(".")+"."+o[this.valueType||"_fc_id"]:o[this.valueType||"_fc_id"],label:(((h=(u=(c=o==null?void 0:o.__fc__)==null?void 0:c.refRule)==null?void 0:u.__$title)==null?void 0:h.value)||o.title||"").trim()||o.props&&o.props.label||this.t("com."+(o._menu&&o._menu.name)+".name")||o._menu&&o._menu.label||o.type,rule:o,parent:t};d.length&&(m.children=d),r.push(m)}else r.push(...d)}),r},input(e){this.$emit("update:modelValue",e),this.$emit("change",e)}}}),wD={key:0,class:"_fd-rule-select-node"};function CD(e,t,r,o,i,l){const d=n.resolveComponent("el-tree-select");return n.openBlock(),n.createBlock(d,{class:"_fd-rule-select",modelValue:e.modelValue,"onUpdate:modelValue":e.input,size:e.size,multiple:e.multiple,checkStrictly:"",showCheckbox:e.multiple,data:e.tree},{default:n.withCtx(({data:c})=>[c.value==="___subform"?(n.openBlock(),n.createElementBlock("div",wD,[n.createElementVNode("div",null,n.toDisplayString(c.label),1),n.createElementVNode("span",null,n.toDisplayString(e.t("props.subform")),1)])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(c.label),1)],64))]),_:1},8,["modelValue","onUpdate:modelValue","size","multiple","showCheckbox","data"])}const Vu=Te(bD,[["render",CD]]),bj="",_D=n.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(e){typeof e=="number"?this.type="2":typeof e=="boolean"?this.type="3":this.type="1",this.value=e==null?"":""+e},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...e){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...e)},updateValue(e){const t=this.toValue(e);this.$emit("update:modelValue",t),this.$emit("change",t)},toValue(e){return this.type==="1"?""+e:this.type==="2"?parseFloat(e)||0:e==="true"}}});function ED(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(u,n.mergeProps({class:"_fd-value-input",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=h=>e.value=h),onBlur:e.onBlur},e.$attrs),n.createSlots({prepend:n.withCtx(()=>[n.createVNode(c,{modelValue:e.type,"onUpdate:modelValue":t[0]||(t[0]=h=>e.type=h),style:{width:"60px"}},{default:n.withCtx(()=>[n.createVNode(d,{label:e.t("validate.types.string"),value:"1"},null,8,["label"]),n.createVNode(d,{label:e.t("validate.types.number"),value:"2"},null,8,["label"]),n.createVNode(d,{label:e.t("validate.types.boolean"),value:"3"},null,8,["label"])]),_:1},8,["modelValue"])]),_:2},[e.$slots.append?{name:"append",fn:n.withCtx(()=>[n.renderSlot(e.$slots,"append")]),key:"0"}:void 0]),1040,["modelValue","onBlur"])}const Kl=Te(_D,[["render",ED]]),wj="",SD=n.defineComponent({name:"Warning",props:{tooltip:String},data(){return{}}}),AD=["innerHTML"],xD={key:0,class:"_fd-warning-text"},kD={key:1,class:"fc-icon icon-question"};function ND(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip");return n.openBlock(),n.createBlock(d,{effect:"dark",placement:"top-start","popper-class":"_fd-warning-pop"},{content:n.withCtx(()=>[n.createElementVNode("span",{innerHTML:e.tooltip},null,8,AD)]),default:n.withCtx(()=>[e.$slots.default?(n.openBlock(),n.createElementBlock("span",xD,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("i",kD))]),_:3})}const Xn=Te(SD,[["render",ND]]),Cj="",TD=n.defineComponent({name:"VariableConfig",components:{Warning:Xn},emits:["submit","confirm"],props:{popover:Boolean},inject:["designer"],data(){return{visible:!1,activeIdx:0,variable:"",value:{},fields:[],expandedKeys:["$topForm","$cookie","$localStorage","$sessionStorage","$globalData","$var"]}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventNum(){return((this.activeRule||{})._loadData||[]).length},treeInfo(){var i,l,d,c,u,h;const e=this.toObject(this.designer.setupState.varList||[]),t=[{id:"$topForm",label:this.t("computed.form"),driver:!0,children:this.getFormTree(this.designer.setupState.treeInfo)},{id:"$cookie",label:"cookie"},{id:"$localStorage",label:"localStorage"},{id:"$sessionStorage",label:"sessionStorage"},{id:"$globalData",label:this.t("props.globalData"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalData||{}).map(m=>({label:this.designer.setupState.formOptions.globalData[m].label,id:m}))},{id:"$var",label:this.t("computed.variable.title"),driver:!0,children:Object.keys(this.designer.setupState.formOptions.globalVariable||{}).map(m=>({label:this.designer.setupState.formOptions.globalVariable[m].label,id:m}))}],r=this.designer.setupState.activePage;!r.default&&r.main.field&&r.main!==this.activeRule&&(t[0].id="$scopeForm",t[0].children.length&&(t[0].children=t[0].children[0].children));let o=(i=this.activeRule)==null?void 0:i.__fc__.parent;for(;o;)if(o.rule===r.main)o=void 0;else if(o.rule._menu&&["array","object","scope"].indexOf(o.rule._menu.subForm)>-1){const m=this.getFormTree(this.designer.setupState.findTree(o.rule._fc_id));m.length&&t.unshift({id:"$form",driver:!0,label:((d=(l=o.refRule)==null?void 0:l.__$title)==null?void 0:d.value)||o.rule.title||o.rule._menu.label,children:m}),o=void 0}else o=o.parent;if(this.designer.setupState.getConfig("showLanguage")!==!1){let m=((c=this.designer.setupState.formOptions)==null?void 0:c.language)||{},y=m[((h=(u=this.designer.props)==null?void 0:u.locale)==null?void 0:h.name)||"zh-cn"]||m[Object.keys(m)[0]]||{};t.push({id:"$t",label:this.t("language.name"),driver:!0,children:Object.keys(y).map(C=>({label:y[C],id:C}))})}return e.$cookie&&(t[1]={...t[1],...e.$cookie}),e.$localStorage&&(t[2]={...t[2],...e.$localStorage}),e.$sessionStorage&&(t[3]={...t[3],...e.$sessionStorage}),e.$globalData&&e.$globalData.children&&(t[4].children=Object.values({...this.toObject(t[4].children),...this.toObject(e.$globalData.children||[])})),e.$var&&e.$var.children&&(t[5].children=Object.values({...this.toObject(t[5].children),...this.toObject(e.$var.children||[])})),delete e.$cookie,delete e.$localStorage,delete e.$sessionStorage,delete e.$globalData,delete e.$var,t.push(...Object.values(e)),t}},watch:{visible(e){e&&(this.updateFields(),this.activeIdx=0)}},methods:{openVariableConfig(){this.designer.setupState.openGlobalVariableDialog()},toObject(e){const t={};return e&&e.forEach(r=>{t[r.id]=r}),t},nodeClick(e,t){if((this.popover||this.fields[this.activeIdx])&&!e.driver){let r=e.id;for(t=t.parent;t.level>=1;)r=t.data.id+"."+r,t=t.parent;this.popover?this.variable=r:this.fields[this.activeIdx].value=r}},getTitle(e){var t,r,o;return(((o=(r=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:r.__$title)==null?void 0:o.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},getFormTree(e){const t=[];return e.forEach(({rule:r,children:o})=>{var l,d,c;const i=r.field&&(!r._menu||r._menu.subForm!=="object")?[]:this.getFormTree(o||[]);if(r.field){const u={id:r.field,label:((c=(d=(l=r==null?void 0:r.__fc__)==null?void 0:l.refRule)==null?void 0:d.__$title)==null?void 0:c.value)||r.title,rule:r};i.length&&(u.children=i),t.push(u)}else t.push(...i)}),t},tranField(e){return e.indexOf("formCreate")===0?e=Ha(e.replace("formCreate","")):e="props."+e,e.replaceAll(">",".")},updateFields(){const e=this.designer.setupState,t=[],r={};(e.activeRule._loadData||[]).forEach(l=>{r[l.to]=l.attr});const o=[];e.activeRule.field&&o.push({label:this.t("computed.value.name"),attach:!0,modify:!0,field:"value"});const i=e.propsForm.api.model();Object.keys(i).forEach(l=>{if(l&&(l[0]!=="_"||i[l]._fc_important_prop)&&i[l].title&&i[l]._fc_important_prop!==!1&&!i[l].hidden&&i[l].display!==!1){const d=typeof i[l]._fc_important_prop=="string"?i[l]._fc_important_prop:l;(i[l]._fc_important_prop===!0?o:t).push({label:i[l].title,modify:d==="formCreateChild",field:this.tranField(d)})}}),t.unshift(...o),t.forEach(l=>{l.value=r[l.field]||""}),this.fields=t},open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.activeIdx=e)},submit(){const e=[];this.fields.forEach(t=>{let r=(t.value||"").trim();if(r){const o={attr:r,to:t.field};t.modify&&(o.modify=!0),e.push(o)}}),this.designer.setupState.activeRule._loadData=e,this.visible=!1},confirm(){const e=(this.variable||"").trim();e&&(this.$emit("confirm",`{{${e}}}`),this.$refs.pop.hide(),this.variable="")}}}),DD={class:"_fd-variable"},VD={style:{width:"230px"}},OD={class:"_fd-variable-item-label"},BD={class:"_fd-variable-info"};function RD(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("el-header"),u=n.resolveComponent("el-tree"),h=n.resolveComponent("el-main"),m=n.resolveComponent("el-container"),y=n.resolveComponent("el-popover"),C=n.resolveComponent("el-badge"),A=n.resolveComponent("Warning"),w=n.resolveComponent("el-aside"),E=n.resolveComponent("el-button"),b=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",DD,[e.popover?(n.openBlock(),n.createBlock(y,{key:0,ref:"pop",placement:"bottom",width:330,"hide-after":0,trigger:"click",persistent:!1,"popper-class":"_fd-variable-pop"},{reference:n.withCtx(()=>t[7]||(t[7]=[n.createElementVNode("i",{class:"fc-icon icon-variable",style:{cursor:"pointer"}},null,-1)])),default:n.withCtx(()=>[n.createVNode(m,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(c,{height:"55px",class:"_fd-variable-pop-header"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",modelValue:e.variable,"onUpdate:modelValue":t[1]||(t[1]=g=>e.variable=g)},{prefix:n.withCtx(()=>t[8]||(t[8]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[9]||(t[9]=[n.createTextVNode(" }} ")])),append:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=(...g)=>e.confirm&&e.confirm(...g))},n.toDisplayString(e.t("props.append")),1)]),_:1},8,["modelValue"]),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[2]||(t[2]=(...g)=>e.openVariableConfig&&e.openVariableConfig(...g))})]),_:1}),n.createVNode(h,null,{default:n.withCtx(()=>[n.createVNode(u,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,indent:10,"node-key":"id",onNodeClick:e.nodeClick},{default:n.withCtx(({node:g,data:_})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-pop-node",{disabled:_.disabled}])},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((_.label||"").trim()||(_.rule?e.getTitle(_.rule):_.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(_.id),1)],2)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1})]),_:1})]),_:1},512)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(C,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-variable-btn",onClick:t[3]||(t[3]=(...g)=>e.open&&e.open(...g))},[t[10]||(t[10]=n.createElementVNode("i",{class:"fc-icon icon-variable"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind")),1)])]),_:1},8,["value","hidden"]),n.createVNode(b,{class:"_fd-variable-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=g=>e.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.bind"))+" ",1),n.createVNode(A,{tooltip:e.t("warning.variable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(E,{size:"default",onClick:t[5]||(t[5]=g=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(E,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-variable-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-variable-l"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createElementVNode("div",VD,n.toDisplayString(e.t("computed.variable.attr")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("computed.variable.bind")),1)]),_:1}),n.createVNode(h,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fields,(g,_)=>(n.openBlock(),n.createElementBlock("div",{key:g.label,class:n.normalizeClass(["_fd-variable-item",{active:_===e.activeIdx,"_fd-variable-top":g.attach===!0}])},[n.createElementVNode("div",OD,n.toDisplayString(g.label),1),t[13]||(t[13]=n.createElementVNode("div",null,"=",-1)),n.createVNode(d,{modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,placeholder:"_",onFocus:x=>e.activeIdx=_,clearable:""},{prefix:n.withCtx(()=>t[11]||(t[11]=[n.createElementVNode("span",null,"{{",-1)])),suffix:n.withCtx(()=>t[12]||(t[12]=[n.createTextVNode(" }} ")])),_:2},1032,["modelValue","onUpdate:modelValue","onFocus"])],2))),128))]),_:1})]),_:1})]),_:1}),n.createVNode(w,{style:{width:"328px"}},{default:n.withCtx(()=>[n.createVNode(m,{class:"_fd-variable-r"},{default:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.list"))+" ",1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[4]||(t[4]=(...g)=>e.openVariableConfig&&e.openVariableConfig(...g))})]),_:1}),n.createVNode(h,null,{default:n.withCtx(()=>[n.createElementVNode("div",BD,n.toDisplayString(e.t("warning.variableInfo")),1),n.createVNode(u,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,"node-key":"id",indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:g,data:_})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-variable-node",{disabled:_.disabled}])},[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString((_.label||"").trim()||(_.rule?e.getTitle(_.rule):_.id)),1)]),n.createElementVNode("span",null,n.toDisplayString(_.id),1)],2)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])],64))])}const ra=Te(TD,[["render",RD]]),_j="",qr={input:["==","!=","on","notOn","empty","notEmpty","pattern"],select:["==","!=","on","notOn","empty","notEmpty"],switch:["==","!="],number:["==","!=",">",">=","<","<=","empty","notEmpty"]};qr.cascader=qr.select;const gg=n.defineComponent({name:"ConditionGroup",components:{VariableConfig:ra,ValueInput:Kl,RuleSelect:Vu,PatternInput:Du,ConditionInput:mD},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:[Object,Array]},computed:{formulaLabel(){return["==","!=","on","notOn","empty","notEmpty","pattern",">",">=","<","<="].reduce((e,t)=>(e[t]=this.t("computed.formulas."+t),e),{})},activeRule(){return this.designer.setupState.activeRule},rules(){var r;let e=(r=this.activeRule)==null?void 0:r.__fc__.parent,t=[];for(;e;)if(e.rule._menu&&e.rule._menu.subForm){t=this.getFields(this.designer.setupState.findTree(e.rule._fc_id));break}else e=e.parent;return[...t,...this.getFields(this.designer.setupState.treeInfo)]},t(){return this.designer.setupState.t}},data(){return{mode:"AND",list:[],ConditionGroup:n.markRaw(gg)}},methods:{selectVar(e,t){e.field=t.slice(2,-2),this.changeField(e)},addItem(){this.list.push({type:"field"})},addItemGroup(){this.list.push({mode:"AND"})},removeItem(e){this.list.splice(e,1),this.onInput()},changeType(e){e.field="",e.input=null,e.formula=null},changeField(e){e.field?(e.condition="==",e.type==="field"?this.tidyItem(e):(e.input=!0,e.formula=qr.select.map(t=>({label:this.formulaLabel[t],value:t})))):(e.input=null,e.formula=null),this.onInput()},getFields(e,t=[]){const r=[];return e.forEach(({rule:o,children:i})=>{const l=[...t];o.field&&l.push(o);const d=this.getFields(i||[],l);if(o.field){const c={field:o.field,value:t.length?t.map(u=>u.field).join(".")+"."+o.field:o.field,label:o.title,rule:o};r.push(c,...d)}else r.push(...d)}),r},tidyValue(){let e=this.modelValue;e&&(Array.isArray(e)&&(e={mode:"AND",group:e}),this.mode=e.mode==="OR"?"OR":"AND",this.list=(e.group||[]).map(t=>t.mode!=null?t:this.tidyItem({...t}))),this.list.length||this.list.push({type:"field"},{type:"field"})},tidyItem(e){return e.variable?(e.input=!0,e.field=e.variable,e.formula=qr.select.map(t=>({label:this.formulaLabel[t],value:t})),e.type="variable",e):(e.type="field",this.rules.forEach(t=>{if(t.value===e.field||t.field===e.field){const r=t.rule._menu.condition,o=r?dt.Function(r)?r(t.rule):dt.String(r)?{type:r}:{...r}:{type:"input"};o.options&&(o.options=dt.String(o.options)?Rr(t.rule.__fc__.prop,o.options):o.options),e.formula=(qr[o.type]||qr.input).map(i=>({label:this.formulaLabel[i],value:i})),e.var=!!e.compare,e.input=o}}),e)},onInput(){let e=[];this.list.forEach(t=>{if(t.field&&t.condition&&(t.compare||["empty","notEmpty"].indexOf(t.condition)>-1||t.value!=null&&t.value!=="")){const r={[t.type]:t.field,condition:t.condition};t.compare&&t.var?r.compare=t.compare:r.value=t.value,e.push(r)}else t.group&&e.push(t)}),e.length===1&&e[0].mode!=null?e=e[0]:e=e.length>0?{mode:this.mode,group:e}:void 0,!(!e&&(!this.modelValue||!this.modelValue.group))&&(this.$emit("update:modelValue",e),this.$emit("change",e))}},created(){this.tidyValue()}}),$D=gg,ID={class:"_fd-cdg-input"},FD={class:"_fd-cdg-item"},PD={class:"_fd-cdg-and"},MD={class:"_fd-cdg-options"},LD=["onClick"],jD={key:3,class:"_fd-cfg-value"},zD=["onClick"],UD={class:"_fd-cdg-btns"};function HD(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("ConditionGroup",!0),h=n.resolveComponent("VariableConfig"),m=n.resolveComponent("el-input"),y=n.resolveComponent("RuleSelect"),C=n.resolveComponent("ValueInput"),A=n.resolveComponent("PatternInput"),w=n.resolveComponent("ConditionInput"),E=n.resolveComponent("el-checkbox"),b=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",ID,[n.createElementVNode("div",FD,[n.createElementVNode("div",PD,[e.list.length>0?(n.openBlock(),n.createBlock(c,{key:0,size:"default",modelValue:e.mode,"onUpdate:modelValue":t[0]||(t[0]=g=>e.mode=g),onChange:e.onInput},{default:n.withCtx(()=>[n.createVNode(d,{label:"AND",value:"AND"}),n.createVNode(d,{label:"OR",value:"OR"})]),_:1},8,["modelValue","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",MD,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(g,_)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[g.mode!=null?(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option is-group",key:g.field+"a"+_+e.list.length},[n.createVNode(u,{modelValue:e.list[_],"onUpdate:modelValue":x=>e.list[_]=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-add-circle",{disabled:e.list.length===1}]),onClick:x=>e.removeItem(_)},null,10,LD)])):(n.openBlock(),n.createElementBlock("div",{class:"_fd-cdg-option",key:_},[n.createVNode(c,{style:{width:"85px"},size:"default",modelValue:g.type,"onUpdate:modelValue":x=>g.type=x,onChange:x=>e.changeType(g)},{default:n.withCtx(()=>[n.createVNode(d,{label:e.t("props.field"),value:"field"},null,8,["label"]),n.createVNode(d,{label:e.t("props.variable"),value:"variable"},null,8,["label"])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),g.type==="variable"?(n.openBlock(),n.createBlock(m,{class:"_fd-cdg-variable",size:"default",modelValue:g.field,"onUpdate:modelValue":x=>g.field=x,clearable:"",onChange:x=>e.changeField(g),key:"variable"},{suffix:n.withCtx(()=>[n.createVNode(h,{popover:"",onConfirm:x=>e.selectVar(g,x)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(y,{class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:g.field,"onUpdate:modelValue":x=>g.field=x,clearable:"",multiple:!1,onChange:x=>e.changeField(g),key:"field"},null,8,["modelValue","onUpdate:modelValue","onChange"])),g.formula?(n.openBlock(),n.createBlock(c,{key:2,class:"_fd-cdg-term",size:"default",modelValue:g.condition,"onUpdate:modelValue":x=>g.condition=x,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(g.formula,x=>(n.openBlock(),n.createBlock(d,{key:x.value,label:x.label,value:x.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):n.createCommentVNode("",!0),g.input&&["empty","notEmpty"].indexOf(g.condition)===-1?(n.openBlock(),n.createElementBlock("div",jD,[g.var?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-cdg-field",size:"default",onlyField:"",valueType:"field",modelValue:g.compare,"onUpdate:modelValue":x=>g.compare=x,clearable:"",multiple:!1,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):g.type==="variable"?(n.openBlock(),n.createBlock(C,{key:1,size:"default",modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):g.condition==="pattern"?(n.openBlock(),n.createBlock(A,{size:"default",key:g.field,modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(w,n.mergeProps({key:3,ref_for:!0},g.input,{key:g.field,modelValue:g.value,"onUpdate:modelValue":x=>g.value=x,onChange:e.onInput}),null,16,["modelValue","onUpdate:modelValue","onChange"])),n.createVNode(E,{modelValue:g.var,"onUpdate:modelValue":x=>g.var=x,size:"default",label:e.t("props.field")},null,8,["modelValue","onUpdate:modelValue","label"])])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:x=>e.removeItem(_)},null,8,zD)]))],64))),256))])]),n.createElementVNode("div",UD,[n.createVNode(b,{link:"",type:"primary",onClick:e.addItem},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addCondition")),1)]),_:1},8,["onClick"]),n.createVNode(b,{link:"",type:"primary",onClick:e.addItemGroup},{default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("computed.addGroup")),1)]),_:1},8,["onClick"])])])}const WD=Te($D,[["render",HD]]),Ej="",GD=n.defineComponent({name:"ComputedConfig",components:{Warning:Xn,RuleSelect:Vu,ConditionGroup:WD},props:{modelValue:[String,Object,Array],type:String,title:String,name:String,btn:String,validLabel:String,invertLabel:String},inject:["designer"],data(){const e=(t,r,o,i=[])=>{const l=[];return t.forEach(({rule:d,children:c})=>{var y,C,A;const u=[...i];let h=o;d.field&&(u.push(d),h||(h=d.field===r&&this.type==="value"));const m=e(c||[],r,h,u);if(d.field){const w={value:d.field,label:((A=(C=(y=d==null?void 0:d.__fc__)==null?void 0:y.refRule)==null?void 0:C.__$title)==null?void 0:A.value)||d.title,rule:d,parent:i,formula:!0};m.length&&(w.children=m),l.push(w)}else l.push(...m)}),l};return{editor:null,visible:!1,expandedKeys:["_form","_formula","_subform"],err:"",status:"computed",value:"",condition:void 0,formulaInfo:"",formulaExample:"",oldValue:"",invert:!1,linkage:"",getFields:e}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},activeRule(){return this.designer.setupState.activeRule},treeInfo(){var i,l,d;let e=(i=this.activeRule)==null?void 0:i.__fc__.parent;const t=this.designer.setupState.activePage;let r=[];t.default?r=this.getFields(this.designer.setupState.treeInfo,this.activeRule.field):r=this.getFields(t.main.field&&t.main===this.activeRule?this.designer.setupState.treeInfo:this.designer.setupState.treeInfo[0].children,this.activeRule.field);const o=[{id:"_form",label:this.t("computed.form"),children:r},{id:"_formula",label:this.t("computed.formula"),children:kh.map(c=>({label:this.t("formula."+c.key),children:c.children.map(u=>({label:u,info:this.t("formula."+u),example:_c[u]||"",formula:!0}))}))}];for(;e;)if(e.rule===t.main)e=void 0;else if(e.rule._menu&&["array","object"].indexOf(e.rule._menu.subForm)>-1){const c=this.getFields(this.designer.setupState.findTree(e.rule._fc_id),this.activeRule.field);c.length&&o.unshift({id:"_subform",label:((d=(l=e==null?void 0:e.refRule)==null?void 0:l.__$title)==null?void 0:d.value)||e.rule.title||e.rule._menu.label,children:c}),e=void 0}else e=e.parent;return o}},watch:{visible(e){e&&this.update()},status(e){e==="computed"&&this.load()}},beforeUnmount(){document.querySelector("._fd-comp-script")&&document.querySelector("._fd-comp-script").removeEventListener("mouseover",this.spanOver)},methods:{update(){this.linkage="",this.type==="value"||this.modelValue&&dt.String(this.modelValue)?(this.status="computed",this.load(),this.condition=void 0):(this.status="condition",this.condition=this.modelValue?rt(this.modelValue):void 0,this.condition&&(this.invert=this.condition.invert===!0,this.linkage=this.condition.linkage||""))},getTitle(e){var t,r,o;return(((o=(r=(t=e==null?void 0:e.__fc__)==null?void 0:t.refRule)==null?void 0:r.__$title)==null?void 0:o.value)||e.title||"").trim()||e._menu&&e._menu.label||e.field||e._fc_id},setField(e){e.disabled!==!0&&this.markRule(`"${e.rule.field}"`,this.getTitle(e.rule),"id")},spanOver(e){if(e.target.classList.contains("cm-keyword")){const t=e.target.innerText.trim();this.formulaInfo=this.t("formula."+t)||"",this.formulaExample=_c[t]||""}},nodeOver(e){this.formulaInfo=e.info||"",this.formulaExample=e.example||""},markRule(e,t,r){const o=this.editor.getValue();if(o){const d=this.editor.getCursor().ch;[" ","(",",",")","{","}","[","]"].indexOf(o.substr(d-1,1))===-1&&this.editor.replaceRange(" ",this.editor.getCursor())}this.editor.replaceRange(e,this.editor.getCursor());const i=this.editor.getCursor(),l=document.createElement("span");l.innerText=t,l.classList.add("cm-fc-"+r),this.editor.markText({line:i.line,ch:i.ch-e.length},i,{replacedWith:l})},nodeClick(e){if(!(!e.formula||e.disabled===!0)){if(e.rule){const t=[],r=[];let o=!1;if(e.parent.forEach(i=>{i._menu&&i._menu.subForm==="array"&&(o=!0),t.push(i.field),r.push(this.getTitle(i))}),o)return this.setColumn(e);t.push(e.rule.field),r.push(this.getTitle(e.rule)),this.markRule(t.join("."),r.join("."),"field")}else this.editor.replaceRange(e.label+"()",this.editor.getCursor()),this.editor.moveH(-1,"char");this.editor.focus()}},setColumn(e){let t=!1;const r=[],o=[],i=[];e.parent.forEach(l=>{t?i.push(l):(t=l._menu&&l._menu.subForm==="array",r.push(l.field),o.push(this.getTitle(l)))}),i.push(e.rule),i.reverse().forEach(l=>{this.nodeClick({label:"COLUMN",formula:!0}),this.editor.replaceRange(",",this.editor.getCursor()),this.setField({rule:l}),this.editor.moveH(-1-l.field.length-2,"char")}),this.markRule(r.join("."),o.join("."),"field")},submit(){if(this.status==="computed"){const e=this.editor.getValue().trim();(this.oldValue!==e||!dt.String(this.modelValue))&&(this.oldValue=e,this.$emit("update:modelValue",e))}else{let e=this.condition?{...this.condition}:this.condition;e&&(this.type==="linkage"?this.linkage?e.linkage=this.linkage:e="":this.invert?e.invert=!0:delete e.invert),this.$emit("update:modelValue",e||"")}this.visible=!1},setValue(e){const t=this.designer.setupState.fields().map(Ep);e=e.replace(new RegExp(`["'](${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])["']`,"g"),r=>"__var___"+r+"__var__"),e=e.replace(new RegExp(`(?<!__var___")(${t.join("|")})(\\.(${t.join("|")}))*(?![a-zA-Z0-9_$])`,"g"),r=>"__var___"+r+"__var__"),e.split("__var__").forEach(r=>{let o;if(r.indexOf("_")===0){r=r.slice(1);const i=["'",'"'].indexOf(r[0])>-1;i&&(r=r.slice(1).slice(0,-1));let l=0;if(r.indexOf(".")>-1){const d=r.split(".");r=d.pop(),l=d.length}if(o=this.designer.setupState.dragForm.api.all().filter(d=>d&&d.field===r)[0],o){if(i)this.setField({rule:o});else{const d=[o.field],c=[this.getTitle(o)];let u=o.__fc__.parent;for(;u&&l>0;)u.input&&(l--,d.unshift(u.rule.field),c.unshift(this.getTitle(u.rule))),u=u.parent;this.markRule(d.join("."),c.join("."),"field")}return}}this.editor.replaceRange(r,this.editor.getCursor())})},load(){this.value=dt.String(this.modelValue)?this.modelValue:"",this.oldValue=this.value,this.err=this.formulaInfo="",this.$nextTick(()=>{document.querySelector("._fd-comp-script").addEventListener("mouseover",this.spanOver),this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"fcComputedMode",line:!0,tabSize:2,lineWrapping:!0,value:"",extraKeys:{Enter:function(){return!1}}})),this.setValue(this.value||""),this.editor.on("beforeChange",(e,t)=>{if(t.origin==="paste"){const r=t.text[0]||"";r&&this.setValue(r),t.cancel()}}),this.editor})}}}),KD={class:"_fd-computed"},YD={class:"_fd-comp-title"},QD={class:"_fd-comp-title",style:{"margin-top":"30px"}},JD={class:"_fd-comp-linkage"},XD={class:"_fd-comp-title",style:{"margin-top":"30px"}},ZD=["onMouseover"],qD={key:0,class:"_group"},eV={key:1,class:"_subform"},tV=["onClick"],nV={key:0,ref:"editor",class:"_fd-comp-script"},iV={key:0,class:"_fd-comp-info"},rV={key:0},oV={key:1},aV={key:2,style:{color:"#f56c6c"}};function lV(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-tab-pane"),m=n.resolveComponent("el-tabs"),y=n.resolveComponent("ConditionGroup"),C=n.resolveComponent("RuleSelect"),A=n.resolveComponent("el-radio"),w=n.resolveComponent("el-radio-group"),E=n.resolveComponent("el-main"),b=n.resolveComponent("el-container"),g=n.resolveComponent("el-tree"),_=n.resolveComponent("el-aside"),x=n.resolveComponent("el-header"),k=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",KD,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=T=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.btn||e.title),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(k,{class:"_fd-comp-dialog _fd-config-dialog",title:e.title,modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=T=>e.visible=T),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[5]||(t[5]=T=>e.visible=!1),size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.type!=="value"?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-preview-tabs",modelValue:e.status,"onUpdate:modelValue":t[1]||(t[1]=T=>e.status=T)},{default:n.withCtx(()=>[n.createVNode(h,{name:"condition"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.type==="linkage"?e.t("computed.value.title"):e.t("computed.condition"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedCondition")},null,8,["tooltip"])]),_:1}),n.createVNode(h,{name:"computed"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.name"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.computedFormula")},null,8,["tooltip"])]),_:1})]),_:1},8,["modelValue"])):n.createCommentVNode("",!0),e.status==="condition"?(n.openBlock(),n.createBlock(b,{key:1,class:"_fd-comp-condition"},{default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",YD,n.toDisplayString(e.t("computed.setting")),1),e.visible?(n.openBlock(),n.createBlock(y,{key:0,modelValue:e.condition,"onUpdate:modelValue":t[2]||(t[2]=T=>e.condition=T),ref:"condition"},null,8,["modelValue"])):n.createCommentVNode("",!0),e.type==="linkage"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",QD,n.toDisplayString(e.t("computed.linkage.trigger")),1),n.createElementVNode("div",JD,[n.createTextVNode(n.toDisplayString(e.t("computed.linkage.info.0"))+" ",1),n.createVNode(C,{modelValue:e.linkage,"onUpdate:modelValue":t[3]||(t[3]=T=>e.linkage=T),size:"small",onlyField:"",valueType:"field",clearable:""},null,8,["modelValue"]),n.createTextVNode(" "+n.toDisplayString(e.t("computed.linkage.info.1")),1)])],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[n.createElementVNode("div",XD,n.toDisplayString(e.t("computed.invert")),1),n.createVNode(w,{modelValue:e.invert,"onUpdate:modelValue":t[4]||(t[4]=T=>e.invert=T)},{default:n.withCtx(()=>[n.createVNode(A,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.invertLabel),1)]),_:1}),n.createVNode(A,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.validLabel),1)]),_:1})]),_:1},8,["modelValue"])],64))]),_:1})]),_:1})):(n.openBlock(),n.createBlock(b,{key:2,class:"_fd-comp-con"},{default:n.withCtx(()=>[n.createVNode(_,null,{default:n.withCtx(()=>[n.createVNode(g,{ref:"treeRef",data:e.treeInfo,"default-expanded-keys":e.expandedKeys,"expand-on-click-node":!1,"node-key":"id",indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:T,data:O})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-comp-node",{disabled:O.disabled}]),onMouseover:F=>e.nodeOver(O)},[n.createElementVNode("div",null,[O.rule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[O.rule._menu.subForm==="object"?(n.openBlock(),n.createElementBlock("span",qD,"{ "+n.toDisplayString(e.t("props.group"))+" }",1)):n.createCommentVNode("",!0),O.rule._menu.subForm==="array"?(n.openBlock(),n.createElementBlock("span",eV,"[ "+n.toDisplayString(e.t("props.collection"))+" ]",1)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(O.rule?e.getTitle(O.rule):(O.label||"").trim()),1)]),O.rule?(n.openBlock(),n.createElementBlock("span",{key:0,class:"_fd-comp-id",onClick:n.withModifiers(F=>e.setField(O),["stop"])}," ID ",8,tV)):n.createCommentVNode("",!0)],42,ZD)]),_:1},8,["data","default-expanded-keys","onNodeClick"])]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(b,{class:"_fd-comp-r"},{default:n.withCtx(()=>[n.createVNode(x,{class:"_fd-comp-head",height:"40px"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.name||e.title),1)]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",nV,null,512)):n.createCommentVNode("",!0)]),_:1}),e.formulaInfo||e.err?(n.openBlock(),n.createElementBlock("div",iV,[e.formulaInfo?(n.openBlock(),n.createElementBlock("div",rV,n.toDisplayString(e.t("computed.formulaInfo"))+": "+n.toDisplayString(e.formulaInfo),1)):n.createCommentVNode("",!0),e.formulaExample?(n.openBlock(),n.createElementBlock("div",oV,n.toDisplayString(e.t("computed.formulaExample"))+": "+n.toDisplayString(e.formulaExample),1)):n.createCommentVNode("",!0),e.err?(n.openBlock(),n.createElementBlock("div",aV,n.toDisplayString(e.t("validate.message"))+": "+n.toDisplayString(e.err),1)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1}))]),_:1},8,["title","modelValue"])])}const vg=Te(GD,[["render",lV]]),Sj="",Yl="$FNX:",yg=e=>dt.String(e)&&e.indexOf(Yl)===0,sV=n.defineComponent({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:"",hook:{type:Boolean,default:!0},eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{Warning:Xn,ComputedConfig:vg,FnEditor:Ni,fcDraggable:jr,DragForm:ze.$form()},data(){return{visible:!1,activeData:null,activeBehavior:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:[],cus:!1,cusValue:"",eventType:"fn",eventKey:"",eventStr:"",eventNum:0,id:0,form:{rule:[],options:{form:{labelPosition:"right",size:"small",labelWidth:"auto"},appendValue:!1,submitBtn:!1},api:{},formData:{}}}},computed:{useEventKeys(){const e={};return this.event.forEach(t=>{e[t.name]=!0}),Object.keys(e)},behaviorMenu(){const e=[];return Nh.forEach(t=>{e.push({label:t.key,children:t.children.map(r=>({label:r,value:r}))})}),e},t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},eventInfo(){const e={};return this.eventName.forEach(t=>{e[t]=this.t("com."+this.componentName+".event."+t)||this.t("eventInfo."+t)||""}),this.hookList.forEach(t=>{e[t]=this.t("eventInfo."+t)||""}),e},globalEvent(){return this.designer.setupState.formOptions.globalEvent||{}},options(){return Object.keys(this.globalEvent).map(e=>({label:this.globalEvent[e].label,value:"$GLOBAL:"+e}))},fnArgs(){return[on(this.t)]}},watch:{visible(e){e?this.init():(this.destroy(),this.closeCus())}},methods:{openConfig(){this.designer.setupState.openGlobalEventDialog()},addCus(){const e=this.cusValue&&this.cusValue.trim();e&&(this.closeCus(),this.add(e))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFnStr(e){if(yg(e))return e.replace(Yl,"");if(dt.Function(e)){const t=e.__json||"";return t?yg(t)?t.replace(Yl,""):t:""+e}else if(e&&e.indexOf("$GLOBAL:")===0)return e},parseBehavior(e){if(e.id=this.id++,e.method==="callback"){const t=this.loadFnStr(e.callback);t&&(e.callback=t)}return e},init(){const e=this.activeRule?rt(this.activeRule.$behavior||{}):{},t=this.activeRule?{...this.activeRule.hook||{}}:{},r={...rt(this.modelValue||{})};Object.keys(t).forEach(i=>{r["hook_"+i]=t[i]});const o=[];Object.keys(r).forEach(i=>{(Array.isArray(r[i])?r[i]:[r[i]]).forEach(d=>{const c={name:i,id:this.id++},u=this.loadFnStr(d);u&&(c.handle=u),c.behaviors=(e[i]||[]).map(this.parseBehavior),delete e[i],o.push(c)})}),Object.keys(e).forEach(i=>{o.push({name:i,id:this.id++,handle:"",behaviors:(e[i]||[]).map(this.parseBehavior)})}),this.event=o,this.eventNum=o.length},getValue(){const e={},t={},r={};let o=0;return this.event.forEach(i=>{let l=!1;if(i.handle){l=!0;let d=e;const c=i.handle.indexOf("$GLOBAL:")!==0?Yl+i.handle:i.handle;i.name.indexOf("hook_")>-1?r[i.name.replace("hook_","")]=c:(d[i.name]||(d[i.name]=[]),d[i.name].push(c))}i.behaviors&&i.behaviors.length&&(l=!0,t[i.name]=i.behaviors.map(d=>(delete d.id,d))),l&&o++}),Object.keys(e).forEach(i=>{e[i]=e[i].length===1?e[i][0]:e[i]}),{on:e,behaviors:t,hooks:r,num:o}},add(e){this.event.push({name:e,id:this.id++,behaviors:[]}),this.activeData||this.edit(this.event.length-1)},edit(e){this.defActive!==this.event[e].id&&(this.destroy(),this.activeData=this.event[e],this.val=this.activeData.handle||"",this.eventType=this.val.indexOf("$GLOBAL:")===0?"event":"fn",this.eventType==="event"?(this.eventKey=this.val,this.eventStr=""):(this.eventStr=this.val,this.eventKey=""),this.defActive=this.activeData.id)},rm(e){this.event.splice(e,1),(this.activeData&&this.defActive===this.activeData.id||this.activeBehavior&&e===this.activeBehavior.pid)&&this.destroy()},save(){return new Promise(e=>{if(this.activeData){let t=this.eventKey;if(this.eventType!=="event"){if(!this.$refs.fn.save())return!1;t=this.eventStr}this.activeData.handle=t,this.destroy(),e()}else if(this.activeBehavior){const t=r=>{this.activeBehavior.config={...r||{}};const o={...this.activeBehavior},i=o.pid;Object.keys(o.config).length||delete o.config,delete o.pid,this.event[i].behaviors.forEach((l,d)=>{l.id===o.id&&(this.event[i].behaviors[d]=o)})};this.form.rule&&this.form.rule.length?this.form.api.validate().then(()=>{t(this.form.formData),this.destroy(),e()}).catch(()=>{}):(t(),this.destroy(),e())}else e()})},addBehavior(e){this.event[e].behaviors.push({method:"openModel",id:this.id++,ignoreError:!1,stopPropagation:"",expression:""}),!this.activeData&&!this.activeBehavior&&this.editBehavior(e,this.event[e].behaviors.length-1)},editBehavior(e,t){this.destroy(),this.activeBehavior=rt(this.event[e].behaviors[t]),this.activeBehavior.pid=e,this.defActive=this.activeBehavior.id,this.updateBehaviorForm()},updateBehaviorForm(){let e=Th[this.activeBehavior.method];dt.Function(e)&&(e=e(this.designer.setupState));const t=r=>{r.field&&!r.title&&(r.title=this.t("behavior."+this.activeBehavior.method+".props."+r.field)||this.t("behavior.props."+r.field)||this.t("props."+r.field),r.warning=this.t("behavior."+this.activeBehavior.method+".warning."+r.field))};e?(this.form.rule=e.map(r=>(t(r),r.control&&r.control.forEach(o=>{o.rule&&o.rule.forEach(i=>{t(i)})}),r)),this.$nextTick(()=>{this.form.api.setValue(this.activeBehavior.config||{})})):this.clearBehaviorForm()},clearBehaviorForm(){this.form.rule=[],this.form.formData={}},rmBehavior(e,t){this.event[e].behaviors.splice(t,1),this.activeBehavior&&this.defActive===this.activeBehavior.id&&this.destroy()},handleSelect(e){this.activeBehavior.method!==e&&(this.activeBehavior.method=e,this.updateBehaviorForm())},destroy(){this.activeBehavior=null,this.activeData=null,this.val=null,this.defActive=null,this.clearBehaviorForm()},close(){this.destroy()},submit(){this.save().then(()=>{const{on:e,behaviors:t,num:r,hooks:o}=this.getValue();this.$emit("update:modelValue",e),this.activeRule.$behavior=t,this.activeRule.hook=o,this.visible=!1,this.eventNum=r})}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}},created(){this.init()}}),dV={class:"_fd-event"},cV={class:"_fd-event-item"},uV={key:0,class:"_fd-label"},fV={class:"_fd-event-item"},pV={class:"_fd-label"},hV={class:"_fd-menu"},mV=["onClick"],gV={class:"_fd-event-method"},vV={key:0,class:"_fd-label"},yV=["onClick"],bV=["onClick"],wV={class:"_fd-event-behaviors"},CV=["onClick"],_V={class:"_fd-event-behavior-label"},EV=["onClick"],SV={class:"_fd-event-behavior-info"},AV={key:0,class:"_fd-menu-item",style:{"padding-left":"10px"}},xV={class:"_fd-event-title"},kV={class:"_fd-event-select"},NV={class:"_fd-event-behavior-title"},TV={class:"_fd-event-behavior-title"},DV={key:0,class:"_fd-event-behavior-title"},VV={class:"_fd-event-behavior-title"},OV={class:"_fd-form-item-warning"},BV={class:"_fd-form-item-warning"},RV={class:"_fd-form-item-warning"};function $V(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-dropdown-item"),h=n.resolveComponent("el-dropdown-menu"),m=n.resolveComponent("el-dropdown"),y=n.resolveComponent("el-header"),C=n.resolveComponent("el-tooltip"),A=n.resolveComponent("fcDraggable"),w=n.resolveComponent("el-input"),E=n.resolveComponent("el-main"),b=n.resolveComponent("el-container"),g=n.resolveComponent("el-aside"),_=n.resolveComponent("FnEditor"),x=n.resolveComponent("el-tab-pane"),k=n.resolveComponent("el-option"),T=n.resolveComponent("el-select"),O=n.resolveComponent("el-tabs"),F=n.resolveComponent("el-menu-item"),I=n.resolveComponent("el-sub-menu"),M=n.resolveComponent("el-menu"),N=n.resolveComponent("Warning"),B=n.resolveComponent("DragForm"),L=n.resolveComponent("el-radio-button"),U=n.resolveComponent("el-radio-group"),H=n.resolveComponent("el-form-item"),R=n.resolveComponent("ComputedConfig"),z=n.resolveComponent("el-form"),$=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",dV,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",size:"small",onClick:t[0]||(t[0]=S=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),n.createVNode($,{class:"_fd-event-dialog _fd-config-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[14]||(t[14]=S=>e.visible=S),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[13]||(t[13]=S=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(b,{class:"_fd-event-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(g,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(b,{class:"_fd-event-l"},{default:n.withCtx(()=>[n.createVNode(y,{class:"_fd-event-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(m,{"popper-class":"_fd-event-dropdown",trigger:"click",size:"default",placement:"bottom-start"},{dropdown:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.eventName,S=>(n.openBlock(),n.createBlock(u,{key:S,onClick:J=>e.add(S),disabled:e.useEventKeys.indexOf(S)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",cV,[n.createElementVNode("span",null,n.toDisplayString(S),1),e.eventInfo[S]?(n.openBlock(),n.createElementBlock("span",uV,n.toDisplayString(e.eventInfo[S]),1)):n.createCommentVNode("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.hookList,(S,J)=>(n.openBlock(),n.createBlock(u,{divided:e.eventName.length>0&&!J,onClick:Q=>e.add(S),disabled:e.useEventKeys.indexOf(S)>-1},{default:n.withCtx(()=>[n.createElementVNode("div",fV,[n.createElementVNode("div",null,n.toDisplayString(S),1),n.createElementVNode("span",pV,n.toDisplayString(e.eventInfo[S]),1)])]),_:2},1032,["divided","onClick","disabled"]))),256)),n.createVNode(u,{divided:e.eventName.length>0||e.hook,onClick:e.cusEvent},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(e.t("props.custom")),1)]),_:1},8,["divided","onClick"])]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1),t[15]||(t[15]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createElementVNode("div",hV,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(S,J)=>(n.openBlock(),n.createElementBlock("div",{key:S.id,class:n.normalizeClass(["_fd-menu-item",{"is-active":S.id===e.defActive}])},[n.createElementVNode("div",{class:"_fd-event-title",onClick:n.withModifiers(Q=>e.edit(J),["stop"])},[n.createElementVNode("div",gV,[n.createElementVNode("span",null,[t[16]||(t[16]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(S.name),1)]),e.eventInfo[S.name]?(n.openBlock(),n.createElementBlock("span",vV,n.toDisplayString(e.eventInfo[S.name]),1)):n.createCommentVNode("",!0)]),S.name!=="hook_load"?(n.openBlock(),n.createBlock(C,{key:0,effect:"dark",content:e.t("behavior.add"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-task-add",onClick:n.withModifiers(Q=>e.addBehavior(J),["stop"])},null,8,yV)]),_:2},1032,["content"])):n.createCommentVNode("",!0),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(Q=>e.rm(J),["stop"])},null,8,bV)],8,mV),n.createElementVNode("div",wV,[n.createVNode(A,{group:{name:"behavior",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",list:S.behaviors},{item:n.withCtx(({element:Q,index:G})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-event-behavior",{"is-active":Q.id===e.defActive}]),onClick:n.withModifiers(ie=>e.editBehavior(J,G),["stop"])},[n.createElementVNode("div",_V,[n.createElementVNode("div",null,[t[17]||(t[17]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString(e.t("behavior."+Q.method+".name")),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:n.withModifiers(ie=>e.rmBehavior(J,G),["stop"])},null,8,EV)]),n.createElementVNode("div",SV,n.toDisplayString(e.t("behavior."+Q.method+".info")||e.t("behavior."+Q.method+".name")),1)],10,CV)]),_:2},1032,["list"])])],2))),128)),e.cus?(n.openBlock(),n.createElementBlock("div",AV,[n.createElementVNode("div",xV,[n.createVNode(w,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[1]||(t[1]=S=>e.cusValue=S),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...S)=>e.addCus&&e.addCus(...S),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...S)=>e.closeCus&&e.closeCus(...S),["stop"]))})])])])):n.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1}),n.createVNode(E,null,{default:n.withCtx(()=>[n.createVNode(b,{class:"_fd-event-r"},{default:n.withCtx(()=>[e.activeData||e.activeBehavior?(n.openBlock(),n.createBlock(y,{key:0,class:"_fd-event-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(E,{key:1},{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(O,{modelValue:e.eventType,"onUpdate:modelValue":t[7]||(t[7]=S=>e.eventType=S),class:"_fc-tabs",key:e.activeData.key},{default:n.withCtx(()=>[n.createVNode(x,{label:e.t("props.custom"),name:"fn",lazy:""},{default:n.withCtx(()=>[n.createVNode(_,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[4]||(t[4]=S=>e.eventStr=S),body:"",name:e.activeData.name,args:e.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1},8,["label"]),n.createVNode(x,{label:e.t("form.globalEvent"),name:"event"},{default:n.withCtx(()=>[n.createElementVNode("div",kV,[n.createVNode(T,{modelValue:e.eventKey,"onUpdate:modelValue":t[5]||(t[5]=S=>e.eventKey=S),clearable:"",filterable:"",style:{width:"240px","margin-left":"15px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,S=>(n.openBlock(),n.createBlock(k,{key:S.value,label:S.label,value:S.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createElementVNode("span",{class:"_fc-manage-text",onClick:t[6]||(t[6]=(...S)=>e.openConfig&&e.openConfig(...S))},t[18]||(t[18]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])]),_:1},8,["label"])]),_:1},8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0),e.activeBehavior?(n.openBlock(),n.createBlock(E,{key:2,class:"is-behavior"},{default:n.withCtx(()=>[n.createVNode(g,{width:"220px",class:"_fd-event-behavior-list"},{default:n.withCtx(()=>[n.createElementVNode("div",NV,n.toDisplayString(e.t("behavior.props.execute")),1),n.createVNode(M,{defaultActive:e.activeBehavior.method,onSelect:e.handleSelect},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.behaviorMenu,S=>(n.openBlock(),n.createBlock(I,{index:S.label},{title:n.withCtx(()=>[n.createElementVNode("span",null,n.toDisplayString(e.t("props."+S.label)),1)]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(S.children,J=>(n.openBlock(),n.createBlock(F,{key:J.value,index:J.value},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior."+J.label+".name")),1)]),_:2},1032,["index"]))),128))]),_:2},1032,["index"]))),256))]),_:1},8,["defaultActive","onSelect"])]),_:1}),n.createVNode(E,{class:"_fd-event-behavior-con"},{default:n.withCtx(()=>[n.createElementVNode("div",TV,[n.createTextVNode(n.toDisplayString(e.t("behavior.props.info"))+" ",1),n.createElementVNode("div",null,n.toDisplayString(e.t("behavior."+e.activeBehavior.method+".info")||e.t("behavior."+e.activeBehavior.method+".name")),1)]),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createElementBlock("div",DV,n.toDisplayString(e.t("designer.rule")),1)):n.createCommentVNode("",!0),e.form.rule&&e.form.rule.length?(n.openBlock(),n.createBlock(B,{key:1,rule:e.form.rule,option:e.form.options,modelValue:e.form.formData,"onUpdate:modelValue":t[8]||(t[8]=S=>e.form.formData=S),api:e.form.api,"onUpdate:api":t[9]||(t[9]=S=>e.form.api=S)},{title:n.withCtx(S=>[S.rule.warning?(n.openBlock(),n.createBlock(N,{key:0,tooltip:S.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(S.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(S.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","api"])):n.createCommentVNode("",!0),n.createElementVNode("div",VV,n.toDisplayString(e.t("designer.advanced")),1),n.createVNode(z,{size:"small",labelWidth:"auto"},{default:n.withCtx(()=>[n.createVNode(H,{label:e.t("behavior.props.ignoreError")},{default:n.withCtx(()=>[n.createVNode(U,{modelValue:e.activeBehavior.ignoreError,"onUpdate:modelValue":t[10]||(t[10]=S=>e.activeBehavior.ignoreError=S)},{default:n.withCtx(()=>[n.createVNode(L,{value:!0},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.continue")),1)]),_:1}),n.createVNode(L,{value:!1},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("behavior.props.stop")),1)]),_:1})]),_:1},8,["modelValue"]),n.createElementVNode("div",OV,n.toDisplayString(e.t("warning.behaviorIgnoreError")),1)]),_:1},8,["label"]),n.createVNode(H,{label:e.t("behavior.props.expression")},{default:n.withCtx(()=>[n.createVNode(R,{modelValue:e.activeBehavior.expression,"onUpdate:modelValue":t[11]||(t[11]=S=>e.activeBehavior.expression=S),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.break"),validLabel:e.t("behavior.props.continue")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",BV,n.toDisplayString(e.t("warning.behaviorExpression")),1)]),_:1},8,["label"]),n.createVNode(H,{label:e.t("behavior.props.stopPropagation")},{default:n.withCtx(()=>[n.createVNode(R,{modelValue:e.activeBehavior.stopPropagation,"onUpdate:modelValue":t[12]||(t[12]=S=>e.activeBehavior.stopPropagation=S),title:e.t("behavior.props.setFormula"),invertLabel:e.t("behavior.props.continue"),validLabel:e.t("behavior.props.stop")},null,8,["modelValue","title","invertLabel","validLabel"]),n.createElementVNode("div",RV,n.toDisplayString(e.t("warning.behaviorStopPropagation")),1)]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const bg=Te(sV,[["render",$V]]),wg=n.defineComponent({name:"VNode",props:{fn:Function},render(){const e=this.fn();return Array.isArray(e)?n.h(n.Fragment,{},e):e}});/*!
|
||
Highlight.js v11.9.0 (git: b7ec4bfafc)
|
||
(c) 2006-2024 undefined and other contributors
|
||
License: BSD-3-Clause
|
||
*/function Cg(e){return e instanceof Map?e.clear=e.delete=e.set=()=>{throw Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=()=>{throw Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const r=e[t],o=typeof r;o!=="object"&&o!=="function"||Object.isFrozen(r)||Cg(r)}),e}class _g{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Eg(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Wi(e,...t){const r=Object.create(null);for(const o in e)r[o]=e[o];return t.forEach(o=>{for(const i in o)r[i]=o[i]}),r}const Sg=e=>!!e.scope;class IV{constructor(t,r){this.buffer="",this.classPrefix=r.classPrefix,t.walk(this)}addText(t){this.buffer+=Eg(t)}openNode(t){if(!Sg(t))return;const r=((o,{prefix:i})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const l=o.split(".");return[`${i}${l.shift()}`,...l.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${i}${o}`})(t.scope,{prefix:this.classPrefix});this.span(r)}closeNode(t){Sg(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Ag=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Ou{constructor(){this.rootNode=Ag(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const r=Ag({scope:t});this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,r){return typeof r=="string"?t.addText(r):r.children&&(t.openNode(r),r.children.forEach(o=>this._walk(t,o)),t.closeNode(r)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(r=>typeof r=="string")?t.children=[t.children.join("")]:t.children.forEach(r=>{Ou._collapse(r)}))}}class FV extends Ou{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,r){const o=t.root;r&&(o.scope="language:"+r),this.add(o)}toHTML(){return new IV(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function oa(e){return e?typeof e=="string"?e:e.source:null}function xg(e){return mr("(?=",e,")")}function PV(e){return mr("(?:",e,")*")}function MV(e){return mr("(?:",e,")?")}function mr(...e){return e.map(t=>oa(t)).join("")}function Bu(...e){return"("+((r=>{const o=r[r.length-1];return typeof o=="object"&&o.constructor===Object?(r.splice(r.length-1,1),o):{}})(e).capture?"":"?:")+e.map(r=>oa(r)).join("|")+")"}function kg(e){return RegExp(e.toString()+"|").exec("").length-1}const LV=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ru(e,{joinWith:t}){let r=0;return e.map(o=>{r+=1;const i=r;let l=oa(o),d="";for(;l.length>0;){const c=LV.exec(l);if(!c){d+=l;break}d+=l.substring(0,c.index),l=l.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+i):(d+=c[0],c[0]==="("&&r++)}return d}).map(o=>`(${o})`).join(t)}const Ng="[a-zA-Z]\\w*",$u="[a-zA-Z_]\\w*",Tg="\\b\\d+(\\.\\d+)?",Dg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Vg="\\b(0b[01]+)",aa={begin:"\\\\[\\s\\S]",relevance:0},jV={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[aa]},zV={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[aa]},Ql=(e,t,r={})=>{const o=Wi({scope:"comment",begin:e,end:t,contains:[]},r);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 i=Bu("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:mr(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),o},UV=Ql("//","$"),HV=Ql("/\\*","\\*/"),WV=Ql("#","$");var Jl=Object.freeze({__proto__:null,APOS_STRING_MODE:jV,BACKSLASH_ESCAPE:aa,BINARY_NUMBER_MODE:{scope:"number",begin:Vg,relevance:0},BINARY_NUMBER_RE:Vg,COMMENT:Ql,C_BLOCK_COMMENT_MODE:HV,C_LINE_COMMENT_MODE:UV,C_NUMBER_MODE:{scope:"number",begin:Dg,relevance:0},C_NUMBER_RE:Dg,END_SAME_AS_BEGIN:e=>Object.assign(e,{"on:begin":(t,r)=>{r.data._beginMatch=t[1]},"on:end":(t,r)=>{r.data._beginMatch!==t[1]&&r.ignoreMatch()}}),HASH_COMMENT_MODE:WV,IDENT_RE:Ng,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+$u,relevance:0},NUMBER_MODE:{scope:"number",begin:Tg,relevance:0},NUMBER_RE:Tg,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:zV,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[aa,{begin:/\[/,end:/\]/,relevance:0,contains:[aa]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=mr(t,/.*\b/,e.binary,/\b.*/)),Wi({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(r,o)=>{r.index!==0&&o.ignoreMatch()}},e)},TITLE_MODE:{scope:"title",begin:Ng,relevance:0},UNDERSCORE_IDENT_RE:$u,UNDERSCORE_TITLE_MODE:{scope:"title",begin:$u,relevance:0}});function GV(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function KV(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function YV(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=GV,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function QV(e,t){Array.isArray(e.illegal)&&(e.illegal=Bu(...e.illegal))}function JV(e,t){if(e.match){if(e.begin||e.end)throw Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function XV(e,t){e.relevance===void 0&&(e.relevance=1)}const ZV=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw Error("beforeMatch cannot be used with starts");const r=Object.assign({},e);Object.keys(e).forEach(o=>{delete e[o]}),e.keywords=r.keywords,e.begin=mr(r.beforeMatch,xg(r.begin)),e.starts={relevance:0,contains:[Object.assign(r,{endsParent:!0})]},e.relevance=0,delete r.beforeMatch},qV=["of","and","for","in","not","or","if","then","parent","list","value"],eO="keyword";function Og(e,t,r=eO){const o=Object.create(null);return typeof e=="string"?i(r,e.split(" ")):Array.isArray(e)?i(r,e):Object.keys(e).forEach(l=>{Object.assign(o,Og(e[l],t,l))}),o;function i(l,d){t&&(d=d.map(c=>c.toLowerCase())),d.forEach(c=>{const u=c.split("|");o[u[0]]=[l,tO(u[0],u[1])]})}}function tO(e,t){return t?Number(t):(r=>qV.includes(r.toLowerCase()))(e)?0:1}const Bg={},gr=e=>{console.error(e)},Rg=(e,...t)=>{console.log("WARN: "+e,...t)},eo=(e,t)=>{Bg[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Bg[`${e}/${t}`]=!0)},Xl=Error();function $g(e,t,{key:r}){let o=0;const i=e[r],l={},d={};for(let c=1;c<=t.length;c++)d[c+o]=i[c],l[c+o]=!0,o+=kg(t[c-1]);e[r]=d,e[r]._emit=l,e[r]._multi=!0}function nO(e){(t=>{t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)})(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),(t=>{if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw gr("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xl;if(typeof t.beginScope!="object"||t.beginScope===null)throw gr("beginScope must be object"),Xl;$g(t,t.begin,{key:"beginScope"}),t.begin=Ru(t.begin,{joinWith:""})}})(e),(t=>{if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw gr("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xl;if(typeof t.endScope!="object"||t.endScope===null)throw gr("endScope must be object"),Xl;$g(t,t.end,{key:"endScope"}),t.end=Ru(t.end,{joinWith:""})}})(e)}function iO(e){function t(i,l){return RegExp(oa(i),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(l?"g":""))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(l,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,l]),this.matchAt+=kg(l)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const l=this.regexes.map(d=>d[1]);this.matcherRe=t(Ru(l,{joinWith:"|"}),!0),this.lastIndex=0}exec(l){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(l);if(!d)return null;const c=d.findIndex((h,m)=>m>0&&h!==void 0),u=this.matchIndexes[c];return d.splice(0,c),Object.assign(d,u)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(l){if(this.multiRegexes[l])return this.multiRegexes[l];const d=new r;return this.rules.slice(l).forEach(([c,u])=>d.addRule(c,u)),d.compile(),this.multiRegexes[l]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(l,d){this.rules.push([l,d]),d.type==="begin"&&this.count++}exec(l){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let c=d.exec(l);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(l)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Wi(e.classNameAliases||{}),function i(l,d){const c=l;if(l.isCompiled)return c;[KV,JV,nO,ZV].forEach(h=>h(l,d)),e.compilerExtensions.forEach(h=>h(l,d)),l.__beforeBegin=null,[YV,QV,XV].forEach(h=>h(l,d)),l.isCompiled=!0;let u=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),u=l.keywords.$pattern,delete l.keywords.$pattern),u=u||/\w+/,l.keywords&&(l.keywords=Og(l.keywords,e.case_insensitive)),c.keywordPatternRe=t(u,!0),d&&(l.begin||(l.begin=/\B|\b/),c.beginRe=t(c.begin),l.end||l.endsWithParent||(l.end=/\B|\b/),l.end&&(c.endRe=t(c.end)),c.terminatorEnd=oa(c.end)||"",l.endsWithParent&&d.terminatorEnd&&(c.terminatorEnd+=(l.end?"|":"")+d.terminatorEnd)),l.illegal&&(c.illegalRe=t(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(h=>(m=>(m.variants&&!m.cachedVariants&&(m.cachedVariants=m.variants.map(y=>Wi(m,{variants:null},y))),m.cachedVariants?m.cachedVariants:Ig(m)?Wi(m,{starts:m.starts?Wi(m.starts):null}):Object.isFrozen(m)?Wi(m):m))(h==="self"?l:h))),l.contains.forEach(h=>{i(h,c)}),l.starts&&i(l.starts,d),c.matcher=(h=>{const m=new o;return h.contains.forEach(y=>m.addRule(y.begin,{rule:y,type:"begin"})),h.terminatorEnd&&m.addRule(h.terminatorEnd,{type:"end"}),h.illegal&&m.addRule(h.illegal,{type:"illegal"}),m})(c),c}(e)}function Ig(e){return!!e&&(e.endsWithParent||Ig(e.starts))}class rO extends Error{constructor(t,r){super(t),this.name="HTMLInjectionError",this.html=r}}const Iu=Eg,Fg=Wi,Pg=Symbol("nomatch"),Mg=e=>{const t=Object.create(null),r=Object.create(null),o=[];let i=!0;const l="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:FV};function u(x){return c.noHighlightRe.test(x)}function h(x,k,T){let O="",F="";typeof k=="object"?(O=x,T=k.ignoreIllegals,F=k.language):(eo("10.7.0","highlight(lang, code, ...args) has been deprecated."),eo("10.7.0",`Please use highlight(code, options) instead.
|
||
https://github.com/highlightjs/highlight.js/issues/2277`),F=x,O=k),T===void 0&&(T=!0);const I={code:O,language:F};_("before:highlight",I);const M=I.result?I.result:m(I.language,I.code,T);return M.code=I.code,_("after:highlight",M),M}function m(x,k,T,O){const F=Object.create(null);function I(){if(!G.keywords)return X.addText(le);let se=0;G.keywordPatternRe.lastIndex=0;let ge=G.keywordPatternRe.exec(le),ye="";for(;ge;){ye+=le.substring(se,ge.index);const W=S.case_insensitive?ge[0].toLowerCase():ge[0],Y=(D=W,G.keywords[D]);if(Y){const[q,ee]=Y;if(X.addText(ye),ye="",F[W]=(F[W]||0)+1,F[W]<=7&&(be+=ee),q.startsWith("_"))ye+=ge[0];else{const oe=S.classNameAliases[q]||q;N(ge[0],oe)}}else ye+=ge[0];se=G.keywordPatternRe.lastIndex,ge=G.keywordPatternRe.exec(le)}var D;ye+=le.substring(se),X.addText(ye)}function M(){G.subLanguage!=null?(()=>{if(le==="")return;let se=null;if(typeof G.subLanguage=="string"){if(!t[G.subLanguage])return X.addText(le);se=m(G.subLanguage,le,!0,ie[G.subLanguage]),ie[G.subLanguage]=se._top}else se=y(le,G.subLanguage.length?G.subLanguage:null);G.relevance>0&&(be+=se.relevance),X.__addSublanguage(se._emitter,se.language)})():I(),le=""}function N(se,ge){se!==""&&(X.startScope(ge),X.addText(se),X.endScope())}function B(se,ge){let ye=1;const D=ge.length-1;for(;ye<=D;){if(!se._emit[ye]){ye++;continue}const W=S.classNameAliases[se[ye]]||se[ye],Y=ge[ye];W?N(Y,W):(le=Y,I(),le=""),ye++}}function L(se,ge){return se.scope&&typeof se.scope=="string"&&X.openNode(S.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(N(le,S.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),le=""):se.beginScope._multi&&(B(se.beginScope,ge),le="")),G=Object.create(se,{parent:{value:G}}),G}function U(se,ge,ye){let D=((W,Y)=>{const q=W&&W.exec(Y);return q&&q.index===0})(se.endRe,ye);if(D){if(se["on:end"]){const W=new _g(se);se["on:end"](ge,W),W.isMatchIgnored&&(D=!1)}if(D){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return U(se.parent,ge,ye)}function H(se){return G.matcher.regexIndex===0?(le+=se[0],1):(pe=!0,0)}function R(se){const ge=se[0],ye=k.substring(se.index),D=U(G,se,ye);if(!D)return Pg;const W=G;G.endScope&&G.endScope._wrap?(M(),N(ge,G.endScope._wrap)):G.endScope&&G.endScope._multi?(M(),B(G.endScope,se)):W.skip?le+=ge:(W.returnEnd||W.excludeEnd||(le+=ge),M(),W.excludeEnd&&(le=ge));do G.scope&&X.closeNode(),G.skip||G.subLanguage||(be+=G.relevance),G=G.parent;while(G!==D.parent);return D.starts&&L(D.starts,se),W.returnEnd?0:ge.length}let z={};function $(se,ge){const ye=ge&&ge[0];if(le+=se,ye==null)return M(),0;if(z.type==="begin"&&ge.type==="end"&&z.index===ge.index&&ye===""){if(le+=k.slice(ge.index,ge.index+1),!i){const D=Error(`0 width match regex (${x})`);throw D.languageName=x,D.badRule=z.rule,D}return 1}if(z=ge,ge.type==="begin")return(D=>{const W=D[0],Y=D.rule,q=new _g(Y),ee=[Y.__beforeBegin,Y["on:begin"]];for(const oe of ee)if(oe&&(oe(D,q),q.isMatchIgnored))return H(W);return Y.skip?le+=W:(Y.excludeBegin&&(le+=W),M(),Y.returnBegin||Y.excludeBegin||(le=W)),L(Y,D),Y.returnBegin?0:W.length})(ge);if(ge.type==="illegal"&&!T){const D=Error('Illegal lexeme "'+ye+'" for mode "'+(G.scope||"<unnamed>")+'"');throw D.mode=G,D}if(ge.type==="end"){const D=R(ge);if(D!==Pg)return D}if(ge.type==="illegal"&&ye==="")return 1;if(de>1e5&&de>3*ge.index)throw Error("potential infinite loop, way more iterations than matches");return le+=ye,ye.length}const S=E(x);if(!S)throw gr(l.replace("{}",x)),Error('Unknown language: "'+x+'"');const J=iO(S);let Q="",G=O||J;const ie={},X=new c.__emitter(c);(()=>{const se=[];for(let ge=G;ge!==S;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>X.openNode(ge))})();let le="",be=0,ce=0,de=0,pe=!1;try{if(S.__emitTokens)S.__emitTokens(k,X);else{for(G.matcher.considerAll();;){de++,pe?pe=!1:G.matcher.considerAll(),G.matcher.lastIndex=ce;const se=G.matcher.exec(k);if(!se)break;const ge=$(k.substring(ce,se.index),se);ce=se.index+ge}$(k.substring(ce))}return X.finalize(),Q=X.toHTML(),{language:x,value:Q,relevance:be,illegal:!1,_emitter:X,_top:G}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:x,value:Iu(k),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:ce,context:k.slice(ce-100,ce+100),mode:se.mode,resultSoFar:Q},_emitter:X};if(i)return{language:x,value:Iu(k),illegal:!1,relevance:0,errorRaised:se,_emitter:X,_top:G};throw se}}function y(x,k){k=k||c.languages||Object.keys(t);const T=(B=>{const L={value:Iu(B),illegal:!1,relevance:0,_top:d,_emitter:new c.__emitter(c)};return L._emitter.addText(B),L})(x),O=k.filter(E).filter(g).map(B=>m(B,x,!1));O.unshift(T);const F=O.sort((B,L)=>{if(B.relevance!==L.relevance)return L.relevance-B.relevance;if(B.language&&L.language){if(E(B.language).supersetOf===L.language)return 1;if(E(L.language).supersetOf===B.language)return-1}return 0}),[I,M]=F,N=I;return N.secondBest=M,N}function C(x){let k=null;const T=(I=>{let M=I.className+" ";M+=I.parentNode?I.parentNode.className:"";const N=c.languageDetectRe.exec(M);if(N){const B=E(N[1]);return B||(Rg(l.replace("{}",N[1])),Rg("Falling back to no-highlight mode for this block.",I)),B?N[1]:"no-highlight"}return M.split(/\s+/).find(B=>u(B)||E(B))})(x);if(u(T))return;if(_("before:highlightElement",{el:x,language:T}),x.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",x);if(x.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(x)),c.throwUnescapedHTML))throw new rO("One of your code blocks includes unescaped HTML.",x.innerHTML);k=x;const O=k.textContent,F=T?h(O,{language:T,ignoreIllegals:!0}):y(O);x.innerHTML=F.value,x.dataset.highlighted="yes",((I,M,N)=>{const B=M&&r[M]||N;I.classList.add("hljs"),I.classList.add("language-"+B)})(x,T,F.language),x.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(x.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),_("after:highlightElement",{el:x,result:F,text:O})}let A=!1;function w(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(C):A=!0}function E(x){return x=(x||"").toLowerCase(),t[x]||t[r[x]]}function b(x,{languageName:k}){typeof x=="string"&&(x=[x]),x.forEach(T=>{r[T.toLowerCase()]=k})}function g(x){const k=E(x);return k&&!k.disableAutodetect}function _(x,k){const T=x;o.forEach(O=>{O[T]&&O[T](k)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{A&&w()},!1),Object.assign(e,{highlight:h,highlightAuto:y,highlightAll:w,highlightElement:C,highlightBlock:x=>(eo("10.7.0","highlightBlock will be removed entirely in v12.0"),eo("10.7.0","Please use highlightElement now."),C(x)),configure:x=>{c=Fg(c,x)},initHighlighting:()=>{w(),eo("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{w(),eo("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(x,k)=>{let T=null;try{T=k(e)}catch(O){if(gr("Language definition for '{}' could not be registered.".replace("{}",x)),!i)throw O;gr(O),T=d}T.name||(T.name=x),t[x]=T,T.rawDefinition=k.bind(null,e),T.aliases&&b(T.aliases,{languageName:x})},unregisterLanguage:x=>{delete t[x];for(const k of Object.keys(r))r[k]===x&&delete r[k]},listLanguages:()=>Object.keys(t),getLanguage:E,registerAliases:b,autoDetection:g,inherit:Fg,addPlugin:x=>{(k=>{k["before:highlightBlock"]&&!k["before:highlightElement"]&&(k["before:highlightElement"]=T=>{k["before:highlightBlock"](Object.assign({block:T.el},T))}),k["after:highlightBlock"]&&!k["after:highlightElement"]&&(k["after:highlightElement"]=T=>{k["after:highlightBlock"](Object.assign({block:T.el},T))})})(x),o.push(x)},removePlugin:x=>{const k=o.indexOf(x);k!==-1&&o.splice(k,1)}}),e.debugMode=()=>{i=!1},e.safeMode=()=>{i=!0},e.versionString="11.9.0",e.regex={concat:mr,lookahead:xg,either:Bu,optional:MV,anyNumberOfTimes:PV};for(const x in Jl)typeof Jl[x]=="object"&&Cg(Jl[x]);return Object.assign(e,Jl),e},to=Mg({});to.newInstance=()=>Mg({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var oO=(()=>e=>{const t=e.regex,r=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},i={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(i,{begin:/\(/,end:/\)/}),d=e.inherit(e.APOS_STRING_MODE,{className:"string"}),c=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={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:[i,c,d,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[i,l,c,d]}]}]},e.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:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(r,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:r,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(r,/>/))),contains:[{className:"name",begin:r,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})();/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var aO=(()=>{const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["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"],r=["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"],i=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["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(l,o,i);return u=>{const h=u.regex,m=e,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,G)=>{const ie=Q[0].length+Q.index,X=Q.input[ie];if(X==="<"||X===",")return void G.ignoreMatch();let le;X===">"&&(((ce,{after:de})=>{const pe="</"+ce[0].slice(1);return ce.input.indexOf(pe,de)!==-1})(Q,{after:ie})||G.ignoreMatch());const be=Q.input.substring(ie);((le=be.match(/^\s*=/))||(le=be.match(/^\s+extends\s+/))&&le.index===0)&&G.ignoreMatch()}},C={$pattern:e,keyword:t,literal:r,built_in:c,"variable.language":d},A="[0-9](_?[0-9])*",w=`\\.(${A})`,E="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${E})((${w})|\\.)?|(${w}))[eE][+-]?(${A})\\b`},{begin:`\\b(${E})\\b((${w})\\b|\\.)?|(${w})\\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:C,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},x={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"css"}},k={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[u.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},T={className:"string",begin:"`",end:"`",contains:[u.BACKSLASH_ESCAPE,g]},O={className:"comment",variants:[u.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:m+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),u.C_BLOCK_COMMENT_MODE,u.C_LINE_COMMENT_MODE]},F=[u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,_,x,k,T,{match:/\$\d+/},b];g.contains=F.concat({begin:/\{/,end:/\}/,keywords:C,contains:["self"].concat(F)});const I=[].concat(O,g.contains),M=I.concat([{begin:/\(/,end:/\)/,keywords:C,contains:["self"].concat(I)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:M},B={variants:[{match:[/class/,/\s+/,m,/\s+/,/extends/,/\s+/,h.concat(m,"(",h.concat(/\./,m),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,m],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:h.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,...i]}},U={variants:[{match:[/function/,/\s+/,m,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},H={match:h.concat(/\b/,(R=[...l,"super","import"],h.concat("(?!",R.join("|"),")")),m,h.lookahead(/\(/)),className:"title.function",relevance:0};var R;const z={begin:h.concat(/\./,h.lookahead(h.concat(m,/(?![0-9A-Za-z$_(])/))),end:m,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},$={match:[/get|set/,/\s+/,m,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},S="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+u.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,m,/\s*/,/=\s*/,/(async\s*)?/,h.lookahead(S)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:C,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[u.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},u.APOS_STRING_MODE,u.QUOTE_STRING_MODE,_,x,k,T,O,{match:/\$\d+/},b,L,{className:"attr",begin:m+h.lookahead(":"),relevance:0},J,{begin:"("+u.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[O,u.REGEXP_MODE,{className:"function",begin:S,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:u.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:C,contains:M}]}]},{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"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+u.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,u.inherit(u.TITLE_MODE,{begin:m,className:"title.function"})]},{match:/\.\.\./,relevance:0},z,{match:"\\$"+m,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},H,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},B,$,{match:/\$[(.]/}]}}})();const Aj="",lO=n.defineComponent({name:"ConfigItem",components:{Warning:Xn},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),sO={class:"_fd-config-item"},dO={class:"_fd-ci-head"},cO={key:0,class:"_fd-ci-con"},uO={key:1,class:"_fd-ci-info"};function fO(e,t,r,o,i,l){const d=n.resolveComponent("Warning");return n.openBlock(),n.createElementBlock("div",sO,[n.createElementVNode("div",dO,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-ci-label",e.$slots.append&&e.arrow!==!1?"is-arrow":""]),onClick:t[0]||(t[0]=c=>e.visit=e.$slots.append&&e.arrow!==!1&&!e.visit)},[e.warning?(n.openBlock(),n.createBlock(d,{key:0,tooltip:e.warning},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"label",{},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)])]),_:3},8,["tooltip"])):n.renderSlot(e.$slots,"label",{key:1},()=>[n.createElementVNode("span",null,n.toDisplayString(e.label),1)]),e.$slots.append&&e.arrow!==!1?(n.openBlock(),n.createElementBlock("i",{key:2,class:n.normalizeClass(["fc-icon icon-down",e.showAppend||e.visit?"down":""])},null,2)):n.createCommentVNode("",!0)],2),e.$slots.default||e.info?(n.openBlock(),n.createElementBlock("div",cO,[e.$slots.default?n.renderSlot(e.$slots,"default",{key:0}):(n.openBlock(),n.createElementBlock("span",uO,n.toDisplayString(e.info),1))])):n.createCommentVNode("",!0)]),e.showAppend||e.visit?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-ci-append",style:n.normalizeStyle("background:"+e.appendBackground)},[n.renderSlot(e.$slots,"append")],4)):n.createCommentVNode("",!0)])}const Fn=Te(lO,[["render",fO]]),xj="",pO=n.defineComponent({name:"PageInput",inject:["designer"],emits:["add","delete","change"],computed:{activePage(){return this.designer.setupState.activePage},pageData(){return this.designer.setupState.pageData},t(){return this.designer.setupState.t},containerList(){const e=this.designer.setupState.dragRuleList;return Object.keys(e).map(t=>{if(e[t].container)return e[t]}).filter(t=>!!t)}},methods:{copy(e){di(e)},getPageName(e){return this.t("com."+e.name+".name")||e.label},getPageLabel(e){return e.default?this.t("designer.main"):Rr(e.main,e.config.labelField,"")||this.getPageName(e.main._menu)}}}),hO={class:"_fd-page-input"},mO=["onClick"],gO={class:"_fd-page-label"},vO={key:0,class:"fc-icon icon-yes"},yO={key:0,class:"_fd-page-id"},bO=["onClick"],wO={key:0,class:"_fd-page-btns"},CO=["onClick"],_O=["onClick"];function EO(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),h=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",hO,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,(m,y)=>(n.openBlock(),n.createElementBlock("div",{key:m.main?m.main.name:"",class:n.normalizeClass(["_fd-page-item",{active:m===e.activePage}]),onClick:C=>e.$emit("change",y)},[n.createElementVNode("div",null,[n.createElementVNode("div",gO,[n.createElementVNode("span",null,n.toDisplayString(e.getPageLabel(m)),1),m===e.activePage?(n.openBlock(),n.createElementBlock("i",vO)):n.createCommentVNode("",!0)]),m.main?(n.openBlock(),n.createElementBlock("div",yO,[n.createTextVNode(" ID\uFF1A"+n.toDisplayString(m.main.name)+" ",1),n.createElementVNode("i",{onClick:n.withModifiers(C=>e.copy(m.main.name),["stop"]),class:"fc-icon icon-group"},null,8,bO)])):n.createCommentVNode("",!0)]),m.default?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",wO,[n.createElementVNode("div",{class:"_fd-page-copy",onClick:n.withModifiers(C=>e.$emit("copy",y),["stop"])},t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]),8,CO),n.createElementVNode("div",{class:"_fd-page-del",onClick:n.withModifiers(C=>e.$emit("delete",y),["stop"])},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,_O)]))],10,mO))),128)),n.createVNode(h,{size:"default",trigger:"click"},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.containerList,m=>(n.openBlock(),n.createBlock(c,{key:m.name,onClick:y=>e.$emit("add",m.name)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.getPageName(m)),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.addPage")),1),t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))]),_:1})]),_:1})])}const SO=Te(pO,[["render",EO]]);function Lg(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function la(e){let t=e.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return t.indexOf("-")===0&&(t=t.substr(1)),t}function jg(e,t,r){let o=e,i;return(t||"").split(".").forEach(l=>{i&&((!o[i]||typeof o[i]!="object")&&(o[i]={}),o=o[i]),i=l}),o[i]=r,o}var zg={exports:{}},sa={},Zl={exports:{}},Fu={},Pu={},Ug;function Mu(){if(Ug)return Pu;Ug=1;function e(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=[]}e.prototype.clone_empty=function(){var o=new e(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},e.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},e.prototype.has_match=function(o){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(o))return!0;return!1},e.prototype.set_indent=function(o,i){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.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)},e.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},e.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},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(o){this.__items.push(o);var i=o.lastIndexOf(`
|
||
`);i!==-1?this.__character_count=o.length-i:this.__character_count+=o.length},e.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.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 t(o,i){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)),i=i||"",o.indent_level>0&&(i=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}t.prototype.get_indent_size=function(o,i){var l=this.__base_string_length;return i=i||0,o<0&&(l=0),l+=o*this.__indent_size,l+=i,l},t.prototype.get_indent_string=function(o,i){var l=this.__base_string;return i=i||0,o<0&&(o=0,l=""),i+=o*this.__indent_size,this.__ensure_cache(i),l+=this.__cache[i],l},t.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var o=this.__cache.length,i=0,l="";this.__indent_size&&o>=this.__indent_size&&(i=Math.floor(o/this.__indent_size),o-=i*this.__indent_size,l=new Array(i+1).join(this.__indent_string)),o&&(l+=new Array(o+1).join(" ")),this.__cache.push(l)};function r(o,i){this.__indent_cache=new t(o,i),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 e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(o,i){return this.__indent_cache.get_indent_string(o,i)},r.prototype.get_indent_size=function(o,i){return this.__indent_cache.get_indent_size(o,i)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},r.prototype.get_code=function(o){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
|
||
`&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var l=this.__lines.join(`
|
||
`);return o!==`
|
||
`&&(l=l.replace(/[\n]/g,o)),l},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(o,i){return o=o||0,i=i||0,this.next_line.set_indent(o,i),this.__lines.length>1?(this.current_line.set_indent(o,i),!0):(this.current_line.set_indent(),!1)},r.prototype.add_raw_token=function(o){for(var i=0;i<o.newlines;i++)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},r.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()},r.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(" "))},r.prototype.remove_indent=function(o){for(var i=this.__lines.length;o<i;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},r.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},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(o,i){for(var l=this.__lines.length-2;l>=0;){var d=this.__lines[l];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==i){this.__lines.splice(l+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}l--}},Pu.Output=r,Pu}var Lu={},Hg;function Wg(){if(Hg)return Lu;Hg=1;function e(t,r,o,i){this.type=t,this.text=r,this.comments_before=null,this.newlines=o||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Lu.Token=e,Lu}var ju={},Gg;function Kg(){return Gg||(Gg=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\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",i="\\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",l="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",d="(?:"+l+"|["+t+o+"])",c="(?:"+l+"|["+r+o+i+"])*";e.identifier=new RegExp(d+c,"g"),e.identifierStart=new RegExp(d),e.identifierMatch=new RegExp("(?:"+l+"|["+r+o+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|
||
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(ju)),ju}var zu={},da={},Yg;function Uu(){if(Yg)return da;Yg=1;function e(o,i){this.raw_options=t(o,i),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","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(o,i){var l=this.raw_options[o],d=i||[];return typeof l=="object"?l!==null&&typeof l.concat=="function"&&(d=l.concat()):typeof l=="string"&&(d=l.split(/[^a-zA-Z0-9_\/\-]+/)),d},e.prototype._get_boolean=function(o,i){var l=this.raw_options[o],d=l===void 0?!!i:!!l;return d},e.prototype._get_characters=function(o,i){var l=this.raw_options[o],d=i||"";return typeof l=="string"&&(d=l.replace(/\\r/,"\r").replace(/\\n/,`
|
||
`).replace(/\\t/," ")),d},e.prototype._get_number=function(o,i){var l=this.raw_options[o];i=parseInt(i,10),isNaN(i)&&(i=0);var d=parseInt(l,10);return isNaN(d)&&(d=i),d},e.prototype._get_selection=function(o,i,l){var d=this._get_selection_list(o,i,l);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
||
`+i+`
|
||
You passed in: '`+this.raw_options[o]+"'");return d[0]},e.prototype._get_selection_list=function(o,i,l){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(l=l||[i[0]],!this._is_valid_selection(l,i))throw new Error("Invalid Default Value!");var d=this._get_array(o,l);if(!this._is_valid_selection(d,i))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
||
`+i+`
|
||
You passed in: '`+this.raw_options[o]+"'");return d},e.prototype._is_valid_selection=function(o,i){return o.length&&i.length&&!o.some(function(l){return i.indexOf(l)===-1})};function t(o,i){var l={};o=r(o);var d;for(d in o)d!==i&&(l[d]=o[d]);if(i&&o[i])for(d in o[i])l[d]=o[i][d];return l}function r(o){var i={},l;for(l in o){var d=l.replace(/-/g,"_");i[d]=o[l]}return i}return da.Options=e,da.normalizeOpts=r,da.mergeOpts=t,da}var Qg;function Jg(){if(Qg)return zu;Qg=1;var e=Uu().Options,t=["before-newline","after-newline","preserve-newline"];function r(o){e.call(this,o,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="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 l=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<l.length;d++)l[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=l[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",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return r.prototype=new e,zu.Options=r,zu}var no={},Hu={},Xg;function Wu(){if(Xg)return Hu;Xg=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(r){this.__input=r||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__input.charAt(this.__position),this.__position+=1),r},t.prototype.peek=function(r){var o=null;return r=r||0,r+=this.__position,r>=0&&r<this.__input_length&&(o=this.__input.charAt(r)),o},t.prototype.__match=function(r,o){r.lastIndex=o;var i=r.exec(this.__input);return i&&!(e&&r.sticky)&&i.index!==o&&(i=null),i},t.prototype.test=function(r,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(r,o):!1},t.prototype.testChar=function(r,o){var i=this.peek(o);return r.lastIndex=0,i!==null&&r.test(i)},t.prototype.match=function(r){var o=this.__match(r,this.__position);return o?this.__position+=o[0].length:o=null,o},t.prototype.read=function(r,o,i){var l="",d;return r&&(d=this.match(r),d&&(l+=d[0])),o&&(d||!r)&&(l+=this.readUntil(o,i)),l},t.prototype.readUntil=function(r,o){var i="",l=this.__position;r.lastIndex=this.__position;var d=r.exec(this.__input);return d?(l=d.index,o&&(l+=d[0].length)):l=this.__input_length,i=this.__input.substring(this.__position,l),this.__position=l,i},t.prototype.readUntilAfter=function(r){return this.readUntil(r,!0)},t.prototype.get_regexp=function(r,o){var i=null,l="g";return o&&e&&(l="y"),typeof r=="string"&&r!==""?i=new RegExp(r,l):r&&(i=new RegExp(r.source,l)),i},t.prototype.get_literal_regexp=function(r){return RegExp(r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(r){var o=this.__position,i=this.readUntilAfter(r);return this.__position=o,i},t.prototype.lookBack=function(r){var o=this.__position-1;return o>=r.length&&this.__input.substring(o-r.length,o).toLowerCase()===r},Hu.InputScanner=t,Hu}var ql={},Gu={},Zg;function AO(){if(Zg)return Gu;Zg=1;function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}return e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){var r=null;return t=t||0,t+=this.__position,t>=0&&t<this.__tokens_length&&(r=this.__tokens[t]),r},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},Gu.TokenStream=e,Gu}var Ku={},Yu={},qg;function es(){if(qg)return Yu;qg=1;function e(t,r){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,r&&(this._starting_pattern=this._input.get_regexp(r._starting_pattern,!0),this._match_pattern=this._input.get_regexp(r._match_pattern,!0),this._until_pattern=this._input.get_regexp(r._until_pattern),this._until_after=r._until_after)}return e.prototype.read=function(){var t=this._input.read(this._starting_pattern);return(!this._starting_pattern||t)&&(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(t){var r=this._create();return r._until_after=!0,r._until_pattern=this._input.get_regexp(t),r._update(),r},e.prototype.until=function(t){var r=this._create();return r._until_after=!1,r._until_pattern=this._input.get_regexp(t),r._update(),r},e.prototype.starting_with=function(t){var r=this._create();return r._starting_pattern=this._input.get_regexp(t,!0),r._update(),r},e.prototype.matching=function(t){var r=this._create();return r._match_pattern=this._input.get_regexp(t,!0),r._update(),r},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Yu.Pattern=e,Yu}var ev;function xO(){if(ev)return Ku;ev=1;var e=es().Pattern;function t(r,o){e.call(this,r,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 t.prototype=new e,t.prototype.__set_whitespace_patterns=function(r,o){r+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+r+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var r=this._input.read(this._match_pattern);if(r===" ")this.whitespace_before_token=" ";else if(r){var o=this.__split(this._newline_regexp,r);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return r},t.prototype.matching=function(r,o){var i=this._create();return i.__set_whitespace_patterns(r,o),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(r,o){r.lastIndex=0;for(var i=0,l=[],d=r.exec(o);d;)l.push(o.substring(i,d.index)),i=d.index+d[0].length,d=r.exec(o);return i<o.length?l.push(o.substring(i,o.length)):l.push(""),l},Ku.WhitespacePattern=t,Ku}var tv;function ts(){if(tv)return ql;tv=1;var e=Wu().InputScanner,t=Wg().Token,r=AO().TokenStream,o=xO().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},l=function(d,c){this._input=new e(d),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};return l.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var d,c=new t(i.START,""),u=null,h=[],m=new r;c.type!==i.EOF;){for(d=this._get_next_token(c,u);this._is_comment(d);)m.add(d),d=this._get_next_token(c,u);m.isEmpty()||(d.comments_before=m,m=new r),d.parent=u,this._is_opening(d)?(h.push(u),u=d):u&&this._is_closing(d,u)&&(d.opened=u,u.closed=d,u=h.pop(),d.parent=u),d.previous=c,c.next=d,this.__tokens.add(d),c=d}return this.__tokens},l.prototype._is_first_token=function(){return this.__tokens.isEmpty()},l.prototype._reset=function(){},l.prototype._get_next_token=function(d,c){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(i.RAW,u):this._create_token(i.EOF,"")},l.prototype._is_comment=function(d){return!1},l.prototype._is_opening=function(d){return!1},l.prototype._is_closing=function(d,c){return!1},l.prototype._create_token=function(d,c){var u=new t(d,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},l.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},ql.Tokenizer=l,ql.TOKEN=i,ql}var Qu={},nv;function Ju(){if(nv)return Qu;nv=1;function e(t,r){t=typeof t=="string"?t:t.source,r=typeof r=="string"?r:r.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+r,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+r,"g")}return e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var r={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(t);o;)r[o[1]]=o[2],o=this.__directive_pattern.exec(t);return r},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},Qu.Directives=e,Qu}var Xu={},iv;function rv(){if(iv)return Xu;iv=1;var e=es().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function r(o,i){e.call(this,o,i),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var l=new e(o);this.__patterns={handlebars_comment:l.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:l.starting_with(/{{{/).until_after(/}}}/),handlebars:l.starting_with(/{{/).until_after(/}}/),php:l.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:l.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:l.starting_with(/{%/).until_after(/%}/),django_value:l.starting_with(/{{/).until_after(/}}/),django_comment:l.starting_with(/{#/).until_after(/#}/),smarty:l.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:l.starting_with(/{\*/).until_after(/\*}/),smarty_literal:l.starting_with(/{literal}/).until_after(/{\/literal}/)}}return r.prototype=new e,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(o){var i=this._create();return i._disabled[o]=!0,i._update(),i},r.prototype.read_options=function(o){var i=this._create();for(var l in t)i._disabled[l]=o.templating.indexOf(l)===-1;return i._update(),i},r.prototype.exclude=function(o){var i=this._create();return i._excluded[o]=!0,i._update(),i},r.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 i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),o+=i,i=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},r.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.angular||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("|")+")")},r.prototype._read_template=function(){var o="",i=this._input.peek();if(i==="<"){var l=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&l==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&l==="%"&&(o=o||this.__patterns.erb.read())}else i==="{"&&(!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},Xu.TemplatablePattern=r,Xu}var ov;function ns(){if(ov)return no;ov=1;var e=Wu().InputScanner,t=ts().Tokenizer,r=ts().TOKEN,o=Ju().Directives,i=Kg(),l=es().Pattern,d=rv().TemplatablePattern;function c(O,F){return F.indexOf(O)!==-1}var u={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:r.START,RAW:r.RAW,EOF:r.EOF},h=new o(/\/\*/,/\*\//),m=/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]/,C=/[^\d\.]/,A=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),w=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";w=w.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),w="\\?\\.(?!\\d) "+w,w=w.replace(/ /g,"|");var E=new RegExp(w),b="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),g=b.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),_=new RegExp("^(?:"+g.join("|")+")$"),x,k=function(O,F){t.call(this,O,F),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var I=new l(this._input),M=new d(this._input).read_options(this._options);this.__patterns={template:M,identifier:M.starting_with(i.identifier).matching(i.identifierMatch),number:I.matching(m),punct:I.matching(E),comment:I.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:I.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:I.matching(/<!--/),html_comment_end:I.matching(/-->/),include:I.starting_with(/#include/).until_after(i.lineBreak),shebang:I.starting_with(/#!/).until_after(i.lineBreak),xml:I.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:M.until(/['\\\n\r\u2028\u2029]/),double_quote:M.until(/["\\\n\r\u2028\u2029]/),template_text:M.until(/[`\\$]/),template_expression:M.until(/[`}\\]/)}};k.prototype=new t,k.prototype._is_comment=function(O){return O.type===u.COMMENT||O.type===u.BLOCK_COMMENT||O.type===u.UNKNOWN},k.prototype._is_opening=function(O){return O.type===u.START_BLOCK||O.type===u.START_EXPR},k.prototype._is_closing=function(O,F){return(O.type===u.END_BLOCK||O.type===u.END_EXPR)&&F&&(O.text==="]"&&F.text==="["||O.text===")"&&F.text==="("||O.text==="}"&&F.text==="{")},k.prototype._reset=function(){x=!1},k.prototype._get_next_token=function(O,F){var I=null;this._readWhitespace();var M=this._input.peek();return M===null?this._create_token(u.EOF,""):(I=I||this._read_non_javascript(M),I=I||this._read_string(M),I=I||this._read_pair(M,this._input.peek(1)),I=I||this._read_word(O),I=I||this._read_singles(M),I=I||this._read_comment(M),I=I||this._read_regexp(M,O),I=I||this._read_xml(M,O),I=I||this._read_punctuation(),I=I||this._create_token(u.UNKNOWN,this._input.next()),I)},k.prototype._read_word=function(O){var F;if(F=this.__patterns.identifier.read(),F!=="")return F=F.replace(i.allLineBreaks,`
|
||
`),!(O.type===u.DOT||O.type===u.RESERVED&&(O.text==="set"||O.text==="get"))&&_.test(F)?(F==="in"||F==="of")&&(O.type===u.WORD||O.type===u.STRING)?this._create_token(u.OPERATOR,F):this._create_token(u.RESERVED,F):this._create_token(u.WORD,F);if(F=this.__patterns.number.read(),F!=="")return this._create_token(u.WORD,F)},k.prototype._read_singles=function(O){var F=null;return O==="("||O==="["?F=this._create_token(u.START_EXPR,O):O===")"||O==="]"?F=this._create_token(u.END_EXPR,O):O==="{"?F=this._create_token(u.START_BLOCK,O):O==="}"?F=this._create_token(u.END_BLOCK,O):O===";"?F=this._create_token(u.SEMICOLON,O):O==="."&&C.test(this._input.peek(1))?F=this._create_token(u.DOT,O):O===","&&(F=this._create_token(u.COMMA,O)),F&&this._input.next(),F},k.prototype._read_pair=function(O,F){var I=null;return O==="#"&&F==="{"&&(I=this._create_token(u.START_BLOCK,O+F)),I&&(this._input.next(),this._input.next()),I},k.prototype._read_punctuation=function(){var O=this.__patterns.punct.read();if(O!=="")return O==="="?this._create_token(u.EQUALS,O):O==="?."?this._create_token(u.DOT,O):this._create_token(u.OPERATOR,O)},k.prototype._read_non_javascript=function(O){var F="";if(O==="#"){if(this._is_first_token()&&(F=this.__patterns.shebang.read(),F))return this._create_token(u.UNKNOWN,F.trim()+`
|
||
`);if(F=this.__patterns.include.read(),F)return this._create_token(u.UNKNOWN,F.trim()+`
|
||
`);O=this._input.next();var I="#";if(this._input.hasNext()&&this._input.testChar(y)){do O=this._input.next(),I+=O;while(this._input.hasNext()&&O!=="#"&&O!=="=");return O==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(I+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(I+="{}",this._input.next(),this._input.next())),this._create_token(u.WORD,I)}this._input.back()}else if(O==="<"&&this._is_first_token()){if(F=this.__patterns.html_comment_start.read(),F){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)F+=this._input.next();return x=!0,this._create_token(u.COMMENT,F)}}else if(x&&O==="-"&&(F=this.__patterns.html_comment_end.read(),F))return x=!1,this._create_token(u.COMMENT,F);return null},k.prototype._read_comment=function(O){var F=null;if(O==="/"){var I="";if(this._input.peek(1)==="*"){I=this.__patterns.block_comment.read();var M=h.get_directives(I);M&&M.ignore==="start"&&(I+=h.readIgnored(this._input)),I=I.replace(i.allLineBreaks,`
|
||
`),F=this._create_token(u.BLOCK_COMMENT,I),F.directives=M}else this._input.peek(1)==="/"&&(I=this.__patterns.comment.read(),F=this._create_token(u.COMMENT,I))}return F},k.prototype._read_string=function(O){if(O==="`"||O==="'"||O==='"'){var F=this._input.next();return this.has_char_escapes=!1,O==="`"?F+=this._read_string_recursive("`",!0,"${"):F+=this._read_string_recursive(O),this.has_char_escapes&&this._options.unescape_strings&&(F=T(F)),this._input.peek()===O&&(F+=this._input.next()),F=F.replace(i.allLineBreaks,`
|
||
`),this._create_token(u.STRING,F)}return null},k.prototype._allow_regexp_or_xml=function(O){return O.type===u.RESERVED&&c(O.text,["return","case","throw","else","do","typeof","yield"])||O.type===u.END_EXPR&&O.text===")"&&O.opened.previous.type===u.RESERVED&&c(O.opened.previous.text,["if","while","for"])||c(O.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},k.prototype._read_regexp=function(O,F){if(O==="/"&&this._allow_regexp_or_xml(F)){for(var I=this._input.next(),M=!1,N=!1;this._input.hasNext()&&(M||N||this._input.peek()!==O)&&!this._input.testChar(i.newline);)I+=this._input.peek(),M?M=!1:(M=this._input.peek()==="\\",this._input.peek()==="["?N=!0:this._input.peek()==="]"&&(N=!1)),this._input.next();return this._input.peek()===O&&(I+=this._input.next(),I+=this._input.read(i.identifier)),this._create_token(u.STRING,I)}return null},k.prototype._read_xml=function(O,F){if(this._options.e4x&&O==="<"&&this._allow_regexp_or_xml(F)){var I="",M=this.__patterns.xml.read_match();if(M){for(var N=M[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=N.indexOf("{")===0,L=0;M;){var U=!!M[1],H=M[2],R=!!M[M.length-1]||H.slice(0,8)==="![CDATA[";if(!R&&(H===N||B&&H.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--L:++L),I+=M[0],L<=0)break;M=this.__patterns.xml.read_match()}return M||(I+=this._input.match(/[\s\S]*/g)[0]),I=I.replace(i.allLineBreaks,`
|
||
`),this._create_token(u.STRING,I)}}return null};function T(O){for(var F="",I=0,M=new e(O),N=null;M.hasNext();)if(N=M.match(/([\s]|[^\\]|\\\\)+/g),N&&(F+=N[0]),M.peek()==="\\"){if(M.next(),M.peek()==="x")N=M.match(/x([0-9A-Fa-f]{2})/g);else if(M.peek()==="u")N=M.match(/u([0-9A-Fa-f]{4})/g),N||(N=M.match(/u\{([0-9A-Fa-f]+)\}/g));else{F+="\\",M.hasNext()&&(F+=M.next());continue}if(!N||(I=parseInt(N[1],16),I>126&&I<=255&&N[0].indexOf("x")===0))return O;I>=0&&I<32||I>1114111?F+="\\"+N[0]:I===34||I===39||I===92?F+="\\"+String.fromCharCode(I):F+=String.fromCharCode(I)}return F}return k.prototype._read_string_recursive=function(O,F,I){var M,N;O==="'"?N=this.__patterns.single_quote:O==='"'?N=this.__patterns.double_quote:O==="`"?N=this.__patterns.template_text:O==="}"&&(N=this.__patterns.template_expression);for(var B=N.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===O||!F&&i.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(M=this._input.peek(),M==="x"||M==="u"?this.has_char_escapes=!0:M==="\r"&&this._input.peek(1)===`
|
||
`&&this._input.next(),L+=this._input.next()):I&&(I==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),I===L&&(O==="`"?L+=this._read_string_recursive("}",F,"`"):L+=this._read_string_recursive("`",F,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=N.read(),B+=L}return B},no.Tokenizer=k,no.TOKEN=u,no.positionable_operators=A.slice(),no.line_starters=b.slice(),no}var av;function kO(){if(av)return Fu;av=1;var e=Mu().Output,t=Wg().Token,r=Kg(),o=Jg().Options,i=ns().Tokenizer,l=ns().line_starters,d=ns().positionable_operators,c=ns().TOKEN;function u(N,B){return B.indexOf(N)!==-1}function h(N){return N.replace(/^\s+/g,"")}function m(N){for(var B={},L=0;L<N.length;L++)B[N[L].replace(/-/g,"_")]=N[L];return B}function y(N,B){return N&&N.type===c.RESERVED&&N.text===B}function C(N,B){return N&&N.type===c.RESERVED&&u(N.text,B)}var A=["case","return","do","if","throw","else","await","break","continue","async"],w=["before-newline","after-newline","preserve-newline"],E=m(w),b=[E.before_newline,E.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function _(N,B){B.multiline_frame||B.mode===g.ForInitializer||B.mode===g.Conditional||N.remove_indent(B.start_line_index)}function x(N){N=N.replace(r.allLineBreaks,`
|
||
`);for(var B=[],L=N.indexOf(`
|
||
`);L!==-1;)B.push(N.substring(0,L)),N=N.substring(L+1),L=N.indexOf(`
|
||
`);return N.length&&B.push(N),B}function k(N){return N===g.ArrayLiteral}function T(N){return u(N,[g.Expression,g.ForInitializer,g.Conditional])}function O(N,B){for(var L=0;L<N.length;L++){var U=N[L].trim();if(U.charAt(0)!==B)return!1}return!0}function F(N,B){for(var L=0,U=N.length,H;L<U;L++)if(H=N[L],H&&H.indexOf(B)!==0)return!1;return!0}function I(N,B){B=B||{},this._source_text=N||"",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(B)}I.prototype.create_flags=function(N,B){var L=0;N&&(L=N.indentation_level,!this._output.just_added_newline()&&N.line_indent_level>L&&(L=N.line_indent_level));var U={mode:B,parent:N,last_token:N?N.last_token:new t(c.START_BLOCK,""),last_word:N?N.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_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:N?N.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},I.prototype._reset=function(N){var B=N.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,B),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var L=new i(N,this._options);return this._tokens=L.tokenize(),N},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var N,B=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
|
||
`,B&&r.lineBreak.test(B||"")&&(L=B.match(r.lineBreak)[0]));for(var U=this._tokens.next();U;)this.handle_token(U),this._last_last_text=this._flags.last_token.text,this._flags.last_token=U,U=this._tokens.next();return N=this._output.get_code(L),N},I.prototype.handle_token=function(N,B){N.type===c.START_EXPR?this.handle_start_expr(N):N.type===c.END_EXPR?this.handle_end_expr(N):N.type===c.START_BLOCK?this.handle_start_block(N):N.type===c.END_BLOCK?this.handle_end_block(N):N.type===c.WORD?this.handle_word(N):N.type===c.RESERVED?this.handle_word(N):N.type===c.SEMICOLON?this.handle_semicolon(N):N.type===c.STRING?this.handle_string(N):N.type===c.EQUALS?this.handle_equals(N):N.type===c.OPERATOR?this.handle_operator(N):N.type===c.COMMA?this.handle_comma(N):N.type===c.BLOCK_COMMENT?this.handle_block_comment(N,B):N.type===c.COMMENT?this.handle_comment(N,B):N.type===c.DOT?this.handle_dot(N):N.type===c.EOF?this.handle_eof(N):N.type===c.UNKNOWN?this.handle_unknown(N,B):this.handle_unknown(N,B)},I.prototype.handle_whitespace_and_comments=function(N,B){var L=N.newlines,U=this._options.keep_array_indentation&&k(this._flags.mode);if(N.comments_before)for(var H=N.comments_before.next();H;)this.handle_whitespace_and_comments(H,B),this.handle_token(H,B),H=N.comments_before.next();if(U)for(var R=0;R<L;R+=1)this.print_newline(R>0,B);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,B);for(var z=1;z<L;z+=1)this.print_newline(!0,B)}};var M=["async","break","continue","return","throw","yield"];return I.prototype.allow_wrap_or_preserved_newline=function(N,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&N.newlines||B,U=u(this._flags.last_token.text,d)||u(N.text,d);if(U){var H=u(this._flags.last_token.text,d)&&u(this._options.operator_position,b)||u(N.text,d);L=L&&H}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(C(this._flags.last_token,M))return;this._output.set_wrap_point()}}},I.prototype.print_newline=function(N,B){if(!B&&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(N)&&(this._flags.multiline_frame=!0)},I.prototype.print_token_line_indentation=function(N){this._output.just_added_newline()&&(this._options.keep_array_indentation&&N.newlines&&(N.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(N.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))},I.prototype.print_token=function(N){if(this._output.raw){this._output.add_raw_token(N);return}if(this._options.comma_first&&N.previous&&N.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var B=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(B),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(N),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(N),this._output.non_breaking_space=!0,this._output.add_token(N.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},I.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.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))},I.prototype.set_mode=function(N){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,N),this._flags=this.create_flags(this._previous_flags,N),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},I.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&&_(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},I.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||C(this._flags.last_token,["get","set"]))},I.prototype.start_of_statement=function(N){var B=!1;return B=B||C(this._flags.last_token,["var","let","const"])&&N.type===c.WORD,B=B||y(this._flags.last_token,"do"),B=B||!(this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement)&&C(this._flags.last_token,M)&&!N.newlines,B=B||y(this._flags.last_token,"else")&&!(y(N,"if")&&!N.comments_before),B=B||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===g.ForInitializer||this._previous_flags.mode===g.Conditional),B=B||this._flags.last_token.type===c.WORD&&this._flags.mode===g.BlockStatement&&!this._flags.in_case&&!(N.text==="--"||N.text==="++")&&this._last_last_text!=="function"&&N.type!==c.WORD&&N.type!==c.RESERVED,B=B||this._flags.mode===g.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||C(this._flags.last_token,["get","set"])),B?(this.set_mode(g.Statement),this.indent(),this.handle_whitespace_and_comments(N,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(N,C(N,["do","for","if","while"])),!0):!1},I.prototype.handle_start_expr=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N);var B=g.Expression;if(N.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){C(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(N),this.set_mode(B),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}B=g.ArrayLiteral,k(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()),u(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,B=g.ForInitializer):u(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,B=g.Conditional):u(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&N.whitespace_before===""?this._output.space_before_token=!1:(u(this._flags.last_token.text,l)||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(N);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 U=this._tokens.peek(-4);C(L,["async","function"])||L.text==="*"&&C(U,["async","function"])?this._output.space_before_token=!0:this._flags.mode===g.ObjectLiteral?(L.text==="{"||L.text===","||L.text==="*"&&(U.text==="{"||U.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(N);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&u(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(N,N.newlines),this.print_token(N),this.set_mode(B),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},I.prototype.handle_end_expr=function(N){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(N,N.text==="]"&&k(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(N),this.restore_mode(),_(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)},I.prototype.handle_start_block=function(N){this.handle_whitespace_and_comments(N);var B=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&&(u(L.text,[":",","])&&u(B.type,[c.STRING,c.WORD,c.RESERVED])||u(B.text,["get","set","..."])&&u(L.type,[c.WORD,c.RESERVED]))?u(this._last_last_text,["class","interface"])&&!u(L.text,[":",","])?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):u(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||C(this._flags.last_token,["return","throw","import","default"])?this.set_mode(g.ObjectLiteral):this.set_mode(g.BlockStatement),this._flags.last_token&&C(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var U=!B.comments_before&&B.text==="}",H=U&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var R=0,z=null;this._flags.inline_frame=!0;do if(R+=1,z=this._tokens.peek(R-1),z.newlines){this._flags.inline_frame=!1;break}while(z.type!==c.EOF&&!(z.type===c.END_BLOCK&&z.opened===N))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&N.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(H||this._flags.last_token.type===c.EQUALS||C(this._flags.last_token,A)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(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(N),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&&(u(this._flags.last_token.type,[c.START_BLOCK,c.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(N),this.indent(),!U&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},I.prototype.handle_end_block=function(N){for(this.handle_whitespace_and_comments(N);this._flags.mode===g.Statement;)this.restore_mode();var B=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!B?this._output.space_before_token=!0:this._options.brace_style==="expand"?B||this.print_newline():B||(k(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(N)},I.prototype.handle_word=function(N){if(N.type===c.RESERVED){if(u(N.text,["set","get"])&&this._flags.mode!==g.ObjectLiteral)N.type=c.WORD;else if(N.text==="import"&&u(this._tokens.peek().text,["(","."]))N.type=c.WORD;else if(u(N.text,["as","from"])&&!this._flags.import_block)N.type=c.WORD;else if(this._flags.mode===g.ObjectLiteral){var B=this._tokens.peek();B.text===":"&&(N.type=c.WORD)}}if(this.start_of_statement(N)?C(this._flags.last_token,["var","let","const"])&&N.type===c.WORD&&(this._flags.declaration_statement=!0):N.newlines&&!T(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||!C(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(N),this.print_newline()):this.handle_whitespace_and_comments(N),this._flags.do_block&&!this._flags.do_while)if(y(N,"while")){this._output.space_before_token=!0,this.print_token(N),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(N,"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&&C(N,["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(N),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()&&!(u(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===g.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(N),y(N,"function")){(u(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(u(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!N.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?C(this._flags.last_token,["get","set","new","export"])||C(this._flags.last_token,M)?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&&(T(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(N),this._flags.last_word=N.text;return}var L="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?L="SPACE":C(N,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&N.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&&T(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==="*"&&(u(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&u(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"),C(N,l)&&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"),C(N,["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"&&N.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var U=this._output.current_line;U.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else L==="NEWLINE"?C(this._flags.last_token,A)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&C(N,["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||!C(N,["var","let","const"]))&&this._flags.last_token.text!==":"&&(y(N,"if")&&y(N.previous,"else")?this._output.space_before_token=!0:this.print_newline()):C(N,l)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():L==="SPACE"&&(this._output.space_before_token=!0);N.previous&&(N.previous.type===c.WORD||N.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(N),this._flags.last_word=N.text,N.type===c.RESERVED&&(N.text==="do"?this._flags.do_block=!0:N.text==="if"?this._flags.if_block=!0:N.text==="import"?this._flags.import_block=!0:this._flags.import_block&&y(N,"from")&&(this._flags.import_block=!1))},I.prototype.handle_semicolon=function(N){this.start_of_statement(N)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(N);for(var B=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&y(B,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(N)},I.prototype.handle_string=function(N){N.text.startsWith("`")&&N.newlines===0&&N.whitespace_before===""&&(N.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(N)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(N),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(N):N.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(N.previous.text==="]"||N.previous.text===")")&&N.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(N)},I.prototype.handle_equals=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0},I.prototype.handle_comma=function(N){this.handle_whitespace_and_comments(N,!0),this.print_token(N),this._output.space_before_token=!0,this._flags.declaration_statement?(T(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(N)):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(N)},I.prototype.handle_operator=function(N){var B=N.text==="*"&&(C(this._flags.last_token,["function","yield"])||u(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),L=u(N.text,["-","+"])&&(u(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||u(this._flags.last_token.text,l)||this._flags.last_token.text===",");if(!this.start_of_statement(N)){var U=!B;this.handle_whitespace_and_comments(N,U)}if(N.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(N);return}if(N.text==="::"){this.print_token(N);return}if(u(N.text,["-","+"])&&this.start_of_object_property()){this.print_token(N);return}if(this._flags.last_token.type===c.OPERATOR&&u(this._options.operator_position,b)&&this.allow_wrap_or_preserved_newline(N),N.text===":"&&this._flags.in_case){this.print_token(N),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 H=!0,R=!0,z=!1;if(N.text===":"?this._flags.ternary_depth===0?H=!1:(this._flags.ternary_depth-=1,z=!0):N.text==="?"&&(this._flags.ternary_depth+=1),!L&&!B&&this._options.preserve_newlines&&u(N.text,d)){var $=N.text===":",S=$&&z,J=$&&!z;switch(this._options.operator_position){case E.before_newline:this._output.space_before_token=!J,this.print_token(N),(!$||S)&&this.allow_wrap_or_preserved_newline(N),this._output.space_before_token=!0;return;case E.after_newline:this._output.space_before_token=!0,!$||S?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(N):this._output.space_before_token=!1,this.print_token(N),this._output.space_before_token=!0;return;case E.preserve_newline:J||this.allow_wrap_or_preserved_newline(N),H=!(this._output.just_added_newline()||J),this._output.space_before_token=H,this.print_token(N),this._output.space_before_token=!0;return}}if(B){this.allow_wrap_or_preserved_newline(N),H=!1;var Q=this._tokens.peek();R=Q&&u(Q.type,[c.WORD,c.RESERVED])}else if(N.text==="...")this.allow_wrap_or_preserved_newline(N),H=this._flags.last_token.type===c.START_BLOCK,R=!1;else if(u(N.text,["--","++","!","~"])||L){if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(N),H=!1,R=!1,N.newlines&&(N.text==="--"||N.text==="++"||N.text==="~")){var G=C(this._flags.last_token,A)&&N.newlines;G&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(G,!0)}this._flags.last_token.text===";"&&T(this._flags.mode)&&(H=!0),this._flags.last_token.type===c.RESERVED?H=!0:this._flags.last_token.type===c.END_EXPR?H=!(this._flags.last_token.text==="]"&&(N.text==="--"||N.text==="++")):this._flags.last_token.type===c.OPERATOR&&(H=u(N.text,["--","-","++","+"])&&u(this._flags.last_token.text,["--","-","++","+"]),u(N.text,["+","-"])&&u(this._flags.last_token.text,["--","++"])&&(R=!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||H,this.print_token(N),this._output.space_before_token=R},I.prototype.handle_block_comment=function(N,B){if(this._output.raw){this._output.add_raw_token(N),N.directives&&N.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(N.directives){this.print_newline(!1,B),this.print_token(N),N.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(N.text)&&!N.newlines){this._output.space_before_token=!0,this.print_token(N),this._output.space_before_token=!0;return}else this.print_block_commment(N,B)},I.prototype.print_block_commment=function(N,B){var L=x(N.text),U,H=!1,R=!1,z=N.whitespace_before,$=z.length;if(this.print_newline(!1,B),this.print_token_line_indentation(N),this._output.add_token(L[0]),this.print_newline(!1,B),L.length>1){for(L=L.slice(1),H=O(L,"*"),R=F(L,z),H&&(this._flags.alignment=1),U=0;U<L.length;U++)H?(this.print_token_line_indentation(N),this._output.add_token(h(L[U]))):R&&L[U]?(this.print_token_line_indentation(N),this._output.add_token(L[U].substring($))):(this._output.current_line.set_indent(-1),this._output.add_token(L[U])),this.print_newline(!1,B);this._flags.alignment=0}},I.prototype.handle_comment=function(N,B){N.newlines?this.print_newline(!1,B):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(N),this.print_newline(!1,B)},I.prototype.handle_dot=function(N){this.start_of_statement(N)||this.handle_whitespace_and_comments(N,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),C(this._flags.last_token,A)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(N,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(N)},I.prototype.handle_unknown=function(N,B){this.print_token(N),N.text[N.text.length-1]===`
|
||
`&&this.print_newline(!1,B)},I.prototype.handle_eof=function(N){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(N)},Fu.Beautifier=I,Fu}var lv;function NO(){if(lv)return Zl.exports;lv=1;var e=kO().Beautifier,t=Jg().Options;function r(o,i){var l=new e(o,i);return l.beautify()}return Zl.exports=r,Zl.exports.defaultOptions=function(){return new t},Zl.exports}var is={exports:{}},Zu={},qu={},sv;function dv(){if(sv)return qu;sv=1;var e=Uu().Options;function t(r){e.call(this,r,"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 i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var l=0;l<i.length;l++)i[l]!=="expand"?this.brace_style="collapse":this.brace_style=i[l]}return t.prototype=new e,qu.Options=t,qu}var cv;function TO(){if(cv)return Zu;cv=1;var e=dv().Options,t=Mu().Output,r=Wu().InputScanner,o=Ju().Directives,i=new o(/\/\*/,/\*\//),l=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,h=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,m=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(C,A){this._source_text=C||"",this._options=new e(A),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},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return y.prototype.eatString=function(C){var A="";for(this._ch=this._input.next();this._ch;){if(A+=this._ch,this._ch==="\\")A+=this._input.next();else if(C.indexOf(this._ch)!==-1||this._ch===`
|
||
`)break;this._ch=this._input.next()}return A},y.prototype.eatWhitespace=function(C){for(var A=c.test(this._input.peek()),w=0;c.test(this._input.peek());)this._ch=this._input.next(),C&&this._ch===`
|
||
`&&(w===0||w<this._options.max_preserve_newlines)&&(w++,this._output.add_new_line(!0));return A},y.prototype.foundNestedPseudoClass=function(){for(var C=0,A=1,w=this._input.peek(A);w;){if(w==="{")return!0;if(w==="(")C+=1;else if(w===")"){if(C===0)return!1;C-=1}else if(w===";"||w==="}")return!1;A++,w=this._input.peek(A)}return!1},y.prototype.print_string=function(C){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(C)},y.prototype.preserveSingleSpace=function(C){C&&(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 C=this._source_text,A=this._options.eol;A==="auto"&&(A=`
|
||
`,C&&l.test(C||"")&&(A=C.match(l)[0])),C=C.replace(d,`
|
||
`);var w=C.match(/^[\t ]*/)[0];this._output=new t(this._options,w),this._input=new r(C),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var E=0,b=!1,g=!1,_=!1,x=!1,k=!1,T=this._ch,O=!1,F,I,M;F=this._input.read(u),I=F!=="",M=T,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),T=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var N=this._input.read(h),B=i.get_directives(N);B&&B.ignore==="start"&&(N+=i.readIgnored(this._input)),this.print_string(N),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(m)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(I),this.print_string(this._ch);var L=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);L.match(/[ :]$/)&&(L=this.eatString(": ").replace(/\s+$/,""),this.print_string(L),this._output.space_before_token=!0),E===0&&L.indexOf(":")!==-1&&(g=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(I),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var U=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);U.match(/[ :]$/)&&(U=this.eatString(": ").replace(/\s+$/,""),this.print_string(U),this._output.space_before_token=!0),E===0&&U.indexOf(":")!==-1?(g=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(_=!0)):E===0&&!g&&(x=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")g&&(g=!1,this.outdent()),x=!1,_?(_=!1,b=this._indentLevel>=this._nestedLevel):b=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&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)):(M==="("?this._output.space_before_token=!1:M!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),M==="{"&&this._output.trim(!0),g&&(this.outdent(),g=!1),this.print_string(this._ch),b=!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._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var H=0;H<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;H++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[H])){O=!0;break}(b||_)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!x&&E===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(":"))}else if(this._ch==='"'||this._ch==="'"){var R=M==='"'||M==="'";this.preserveSingleSpace(R||I),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")O=!1,E===0?(g&&(this.outdent(),g=!1),x=!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);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),E++,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(")")),E&&(E--,this.outdent()));else{var z=!1;this._input.lookBack("with")&&(z=!0),this.preserveSingleSpace(I||z),this.print_string(this._ch),g&&M==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),E++,this.indent())}else if(this._ch===")")E&&(E--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!g||k)&&E===0&&!x?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&E===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=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(I),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var $=M==='"'||M==="'";this.preserveSingleSpace($||I),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
||
`&&O&&this._output.add_new_line()}var S=this._output.get_code(A);return S},Zu.Beautifier=y,Zu}var uv;function DO(){if(uv)return is.exports;uv=1;var e=TO().Beautifier,t=dv().Options;function r(o,i){var l=new e(o,i);return l.beautify()}return is.exports=r,is.exports.defaultOptions=function(){return new t},is.exports}var rs={exports:{}},ef={},tf={},fv;function pv(){if(fv)return tf;fv=1;var e=Uu().Options;function t(r){e.call(this,r,"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_min_attrs=this._get_number("wrap_attributes_min_attrs",2),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.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),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 t.prototype=new e,tf.Options=t,tf}var os={},hv;function mv(){if(hv)return os;hv=1;var e=ts().Tokenizer,t=ts().TOKEN,r=Ju().Directives,o=rv().TemplatablePattern,i=es().Pattern,l={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},d=new r(/<\!--/,/-->/),c=function(u,h){e.call(this,u,h),this._current_tag_name="";var m=new o(this._input).read_options(this._options),y=new i(this._input);if(this.__patterns={word:m.until(/[\n\r\t <]/),word_control_flow_close_excluded:m.until(/[\n\r\t <}]/),single_quote:m.until_after(/'/),double_quote:m.until_after(/"/),attribute:m.until(/[\n\r\t =>]|\/>/),element_name:m.until(/[\n\r\t >\/]/),angular_control_flow_start:y.matching(/\@[a-zA-Z]+[^({]*[({]/),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.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var C=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(C).until_after(C)}};return c.prototype=new e,c.prototype._is_comment=function(u){return!1},c.prototype._is_opening=function(u){return u.type===l.TAG_OPEN||u.type===l.CONTROL_FLOW_OPEN},c.prototype._is_closing=function(u,h){return u.type===l.TAG_CLOSE&&h&&((u.text===">"||u.text==="/>")&&h.text[0]==="<"||u.text==="}}"&&h.text[0]==="{"&&h.text[1]==="{")||u.type===l.CONTROL_FLOW_CLOSE&&u.text==="}"&&h.text.endsWith("{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(u,h){var m=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(l.EOF,""):(m=m||this._read_open_handlebars(y,h),m=m||this._read_attribute(y,u,h),m=m||this._read_close(y,h),m=m||this._read_script_and_style(y,u),m=m||this._read_control_flows(y,h),m=m||this._read_raw_content(y,u,h),m=m||this._read_content_word(y,h),m=m||this._read_comment_or_cdata(y),m=m||this._read_processing(y),m=m||this._read_open(y,h),m=m||this._create_token(l.UNKNOWN,this._input.next()),m)},c.prototype._read_comment_or_cdata=function(u){var h=null,m=null,y=null;if(u==="<"){var C=this._input.peek(1);C==="!"&&(m=this.__patterns.comment.read(),m?(y=d.get_directives(m),y&&y.ignore==="start"&&(m+=d.readIgnored(this._input))):m=this.__patterns.cdata.read()),m&&(h=this._create_token(l.COMMENT,m),h.directives=y)}return h},c.prototype._read_processing=function(u){var h=null,m=null,y=null;if(u==="<"){var C=this._input.peek(1);(C==="!"||C==="?")&&(m=this.__patterns.conditional_comment.read(),m=m||this.__patterns.processing.read()),m&&(h=this._create_token(l.COMMENT,m),h.directives=y)}return h},c.prototype._read_open=function(u,h){var m=null,y=null;return(!h||h.type===l.CONTROL_FLOW_OPEN)&&u==="<"&&(m=this._input.next(),this._input.peek()==="/"&&(m+=this._input.next()),m+=this.__patterns.element_name.read(),y=this._create_token(l.TAG_OPEN,m)),y},c.prototype._read_open_handlebars=function(u,h){var m=null,y=null;return(!h||h.type===l.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&u==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(m=this.__patterns.handlebars_comment.read(),m=m||this.__patterns.handlebars.read(),y=this._create_token(l.COMMENT,m)):(m=this.__patterns.handlebars_open.read(),y=this._create_token(l.TAG_OPEN,m))),y},c.prototype._read_control_flows=function(u,h){var m="",y=null;if(!this._options.templating.includes("angular"))return y;if(u==="@"){if(m=this.__patterns.angular_control_flow_start.read(),m==="")return y;for(var C=m.endsWith("(")?1:0,A=0;!(m.endsWith("{")&&C===A);){var w=this._input.next();if(w===null)break;w==="("?C++:w===")"&&A++,m+=w}y=this._create_token(l.CONTROL_FLOW_OPEN,m)}else u==="}"&&h&&h.type===l.CONTROL_FLOW_OPEN&&(m=this._input.next(),y=this._create_token(l.CONTROL_FLOW_CLOSE,m));return y},c.prototype._read_close=function(u,h){var m=null,y=null;return h&&h.type===l.TAG_OPEN&&(h.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(m=this._input.next(),u==="/"&&(m+=this._input.next()),y=this._create_token(l.TAG_CLOSE,m)):h.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(l.TAG_CLOSE,"}}"))),y},c.prototype._read_attribute=function(u,h,m){var y=null,C="";if(m&&m.text[0]==="<")if(u==="=")y=this._create_token(l.EQUALS,this._input.next());else if(u==='"'||u==="'"){var A=this._input.next();u==='"'?A+=this.__patterns.double_quote.read():A+=this.__patterns.single_quote.read(),y=this._create_token(l.VALUE,A)}else C=this.__patterns.attribute.read(),C&&(h.type===l.EQUALS?y=this._create_token(l.VALUE,C):y=this._create_token(l.ATTRIBUTE,C));return y},c.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},c.prototype._read_raw_content=function(u,h,m){var y="";if(m&&m.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(h.type===l.TAG_CLOSE&&h.opened.text[0]==="<"&&h.text[0]!=="/"){var C=h.opened.text.substr(1).toLowerCase();this._is_content_unformatted(C)&&(y=this._input.readUntil(new RegExp("</"+C+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(l.TEXT,y):null},c.prototype._read_script_and_style=function(u,h){if(h.type===l.TAG_CLOSE&&h.opened.text[0]==="<"&&h.text[0]!=="/"){var m=h.opened.text.substr(1).toLowerCase();if(m==="script"||m==="style"){var y=this._read_comment_or_cdata(u);if(y)return y.type=l.TEXT,y;var C=this._input.readUntil(new RegExp("</"+m+"[\\n\\r\\t ]*?>","ig"));if(C)return this._create_token(l.TEXT,C)}}return null},c.prototype._read_content_word=function(u,h){var m="";return this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(m=this.__patterns.unformatted_content_delimiter.read()),m||(m=h&&h.type===l.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),m?this._create_token(l.TEXT,m):null},os.Tokenizer=c,os.TOKEN=l,os}var gv;function VO(){if(gv)return ef;gv=1;var e=pv().Options,t=Mu().Output,r=mv().Tokenizer,o=mv().TOKEN,i=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,d=function(b,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=b.max_preserve_newlines,this.preserve_newlines=b.preserve_newlines,this._output=new t(b,g)};d.prototype.current_line_has_match=function(b){return this._output.current_line.has_match(b)},d.prototype.set_space_before_token=function(b,g){this._output.space_before_token=b,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(b){this._output.add_raw_token(b)},d.prototype.print_preserved_newlines=function(b){var g=0;b.type!==o.TEXT&&b.previous.type!==o.TEXT&&(g=b.newlines?1:0),this.preserve_newlines&&(g=b.newlines<this.max_preserve_newlines+1?b.newlines:this.max_preserve_newlines+1);for(var _=0;_<g;_++)this.print_newline(_>0);return g!==0},d.prototype.traverse_whitespace=function(b){return b.whitespace_before||b.newlines?(this.print_preserved_newlines(b)||(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(b){this._output.add_new_line(b)},d.prototype.print_token=function(b){b.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(b.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},d.prototype.get_full_indent=function(b){return b=this.indent_level+(b||0),b<1?"":this._output.get_indent_string(b)};var c=function(b){for(var g=null,_=b.next;_.type!==o.EOF&&b.closed!==_;){if(_.type===o.ATTRIBUTE&&_.text==="type"){_.next&&_.next.type===o.EQUALS&&_.next.next&&_.next.next.type===o.VALUE&&(g=_.next.next.text);break}_=_.next}return g},u=function(b,g){var _=null,x=null;return g.closed?(b==="script"?_="text/javascript":b==="style"&&(_="text/css"),_=c(g)||_,_.search("text/css")>-1?x="css":_.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?x="javascript":_.search(/(text|application|dojo)\/(x-)?(html)/)>-1?x="html":_.search(/test\/null/)>-1&&(x="null"),x):null};function h(b,g){return g.indexOf(b)!==-1}function m(b,g,_){this.parent=b||null,this.tag=g?g.tag_name:"",this.indent_level=_||0,this.parser_token=g||null}function y(b){this._printer=b,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(b){var g=new m(this._current_frame,b,this._printer.indent_level);this._current_frame=g},y.prototype._try_pop_frame=function(b){var g=null;return b&&(g=b.parser_token,this._printer.indent_level=b.indent_level,this._current_frame=b.parent),g},y.prototype._get_frame=function(b,g){for(var _=this._current_frame;_&&b.indexOf(_.tag)===-1;){if(g&&g.indexOf(_.tag)!==-1){_=null;break}_=_.parent}return _},y.prototype.try_pop=function(b,g){var _=this._get_frame([b],g);return this._try_pop_frame(_)},y.prototype.indent_to_tag=function(b){var g=this._get_frame(b);g&&(this._printer.indent_level=g.indent_level)};function C(b,g,_,x){this._source_text=b||"",g=g||{},this._js_beautify=_,this._css_beautify=x,this._tag_stack=null;var k=new e(g,"html");this._options=k,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"}C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var b=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
|
||
`,b&&i.test(b)&&(g=b.match(i)[0])),b=b.replace(l,`
|
||
`);var _=b.match(/^[\t ]*/)[0],x={text:"",type:""},k=new A(this._options),T=new d(this._options,_),O=new r(b,this._options).tokenize();this._tag_stack=new y(T);for(var F=null,I=O.next();I.type!==o.EOF;)I.type===o.TAG_OPEN||I.type===o.COMMENT?(F=this._handle_tag_open(T,I,k,x,O),k=F):I.type===o.ATTRIBUTE||I.type===o.EQUALS||I.type===o.VALUE||I.type===o.TEXT&&!k.tag_complete?F=this._handle_inside_tag(T,I,k,x):I.type===o.TAG_CLOSE?F=this._handle_tag_close(T,I,k):I.type===o.TEXT?F=this._handle_text(T,I,k):I.type===o.CONTROL_FLOW_OPEN?F=this._handle_control_flow_open(T,I):I.type===o.CONTROL_FLOW_CLOSE?F=this._handle_control_flow_close(T,I):T.add_raw_token(I),x=F,I=O.next();var M=T._output.get_code(g);return M},C.prototype._handle_control_flow_open=function(b,g){var _={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),b.indent(),_},C.prototype._handle_control_flow_close=function(b,g){var _={text:g.text,type:g.type};return b.deindent(),g.newlines?b.print_preserved_newlines(g):b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.print_token(g),_},C.prototype._handle_tag_close=function(b,g,_){var x={text:g.text,type:g.type};return b.alignment_size=0,_.tag_complete=!0,b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):(_.tag_start_char==="<"&&(b.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&_.has_wrapped_attrs&&b.print_newline(!1)),b.print_token(g)),_.indent_content&&!(_.is_unformatted||_.is_content_unformatted)&&(b.indent(),_.indent_content=!1),!_.is_inline_element&&!(_.is_unformatted||_.is_content_unformatted)&&b.set_wrap_point(),x},C.prototype._handle_inside_tag=function(b,g,_,x){var k=_.has_wrapped_attrs,T={text:g.text,type:g.type};return b.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),_.is_unformatted?b.add_raw_token(g):_.tag_start_char==="{"&&g.type===o.TEXT?b.print_preserved_newlines(g)?(g.newlines=0,b.add_raw_token(g)):b.print_token(g):(g.type===o.ATTRIBUTE?b.set_space_before_token(!0):(g.type===o.EQUALS||g.type===o.VALUE&&g.previous.type===o.EQUALS)&&b.set_space_before_token(!1),g.type===o.ATTRIBUTE&&_.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(b.traverse_whitespace(g),k=k||g.newlines!==0),this._is_wrap_attributes_force&&_.attr_count>=this._options.wrap_attributes_min_attrs&&(x.type!==o.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(b.print_newline(!1),k=!0)),b.print_token(g),k=k||b.previous_token_wrapped(),_.has_wrapped_attrs=k),T},C.prototype._handle_text=function(b,g,_){var x={text:g.text,type:"TK_CONTENT"};return _.custom_beautifier_name?this._print_custom_beatifier_text(b,g,_):_.is_unformatted||_.is_content_unformatted?b.add_raw_token(g):(b.traverse_whitespace(g),b.print_token(g)),x},C.prototype._print_custom_beatifier_text=function(b,g,_){var x=this;if(g.text!==""){var k=g.text,T,O=1,F="",I="";_.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?T=this._js_beautify:_.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?T=this._css_beautify:_.custom_beautifier_name==="html"&&(T=function(H,R){var z=new C(H,R,x._js_beautify,x._css_beautify);return z.beautify()}),this._options.indent_scripts==="keep"?O=0:this._options.indent_scripts==="separate"&&(O=-b.indent_level);var M=b.get_full_indent(O);if(k=k.replace(/\n[ \t]*$/,""),_.custom_beautifier_name!=="html"&&k[0]==="<"&&k.match(/^(<!--|<!\[CDATA\[)/)){var N=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(k);if(!N){b.add_raw_token(g);return}F=M+N[1]+`
|
||
`,k=N[4],N[5]&&(I=M+N[5]),k=k.replace(/\n[ \t]*$/,""),(N[2]||N[3].indexOf(`
|
||
`)!==-1)&&(N=N[3].match(/[ \t]+$/),N&&(g.whitespace_before=N[0]))}if(k)if(T){var B=function(){this.eol=`
|
||
`};B.prototype=this._options.raw_options;var L=new B;k=T(M+k,L)}else{var U=g.whitespace_before;U&&(k=k.replace(new RegExp(`
|
||
(`+U+")?","g"),`
|
||
`)),k=M+k.replace(/\n/g,`
|
||
`+M)}F&&(k?k=F+k+`
|
||
`+I:k=F+I),b.print_newline(!1),k&&(g.text=k,g.whitespace_before="",g.newlines=0,b.add_raw_token(g),b.print_newline(!0))}},C.prototype._handle_tag_open=function(b,g,_,x,k){var T=this._get_tag_open_token(g);if((_.is_unformatted||_.is_content_unformatted)&&!_.is_empty_element&&g.type===o.TAG_OPEN&&!T.is_start_tag?(b.add_raw_token(g),T.start_tag_token=this._tag_stack.try_pop(T.tag_name)):(b.traverse_whitespace(g),this._set_tag_position(b,g,T,_,x),T.is_inline_element||b.set_wrap_point(),b.print_token(g)),T.is_start_tag&&this._is_wrap_attributes_force){var O=0,F;do F=k.peek(O),F.type===o.ATTRIBUTE&&(T.attr_count+=1),O+=1;while(F.type!==o.EOF&&F.type!==o.TAG_CLOSE)}return(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&&(b.alignment_size=T.alignment_size),T};var A=function(b,g,_){if(this.parent=g||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="",!_)this.tag_complete=!0;else{var x;this.tag_start_char=_.text[0],this.text=_.text,this.tag_start_char==="<"?(x=_.text.match(/^<([^\s>]*)/),this.tag_check=x?x[1]:""):(x=_.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=x?x[1]:"",(_.text.startsWith("{{#>")||_.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&_.next!==null?this.tag_check=_.next.text.split(" ")[0]:this.tag_check=_.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),_.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||_.closed&&_.closed.text==="/>";var k=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(k=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!b.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(k)))}};C.prototype._get_tag_open_token=function(b){var g=new A(this._options,this._tag_stack.get_parser_token(),b);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||h(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&&h(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&h(g.tag_check,this._options.content_unformatted),g.is_inline_element=h(g.tag_name,this._options.inline)||this._options.inline_custom_elements&&g.tag_name.includes("-")||g.tag_start_char==="{",g},C.prototype._set_tag_position=function(b,g,_,x,k){if(_.is_empty_element||(_.is_end_tag?_.start_tag_token=this._tag_stack.try_pop(_.tag_name):(this._do_optional_end_element(_)&&(_.is_inline_element||b.print_newline(!1)),this._tag_stack.record_tag(_),(_.tag_name==="script"||_.tag_name==="style")&&!(_.is_unformatted||_.is_content_unformatted)&&(_.custom_beautifier_name=u(_.tag_check,g)))),h(_.tag_check,this._options.extra_liners)&&(b.print_newline(!1),b._output.just_added_blankline()||b.print_newline(!0)),_.is_empty_element){if(_.tag_start_char==="{"&&_.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),_.indent_content=!0;var T=b.current_line_has_match(/{{#if/);T||b.print_newline(!1)}_.tag_name==="!--"&&k.type===o.TAG_CLOSE&&x.is_end_tag&&_.text.indexOf(`
|
||
`)===-1||(_.is_inline_element||_.is_unformatted||b.print_newline(!1),this._calcluate_parent_multiline(b,_))}else if(_.is_end_tag){var O=!1;O=_.start_tag_token&&_.start_tag_token.multiline_content,O=O||!_.is_inline_element&&!(x.is_inline_element||x.is_unformatted)&&!(k.type===o.TAG_CLOSE&&_.start_tag_token===x)&&k.type!=="TK_CONTENT",(_.is_content_unformatted||_.is_unformatted)&&(O=!1),O&&b.print_newline(!1)}else _.indent_content=!_.custom_beautifier_name,_.tag_start_char==="<"&&(_.tag_name==="html"?_.indent_content=this._options.indent_inner_html:_.tag_name==="head"?_.indent_content=this._options.indent_head_inner_html:_.tag_name==="body"&&(_.indent_content=this._options.indent_body_inner_html)),!(_.is_inline_element||_.is_unformatted)&&(k.type!=="TK_CONTENT"||_.is_content_unformatted)&&b.print_newline(!1),this._calcluate_parent_multiline(b,_)},C.prototype._calcluate_parent_multiline=function(b,g){g.parent&&b._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var w=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],E=["a","audio","del","ins","map","noscript","video"];return C.prototype._do_optional_end_element=function(b){var g=null;if(!(b.is_empty_element||!b.is_start_tag||!b.parent)){if(b.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(b.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(b.tag_name==="dd"||b.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(b.parent.tag_name==="p"&&w.indexOf(b.tag_name)!==-1){var _=b.parent.parent;(!_||E.indexOf(_.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else b.tag_name==="rp"||b.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):b.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):b.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):b.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):b.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):b.tag_name==="tbody"||b.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"])):b.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"])):(b.tag_name==="th"||b.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 b.parent=this._tag_stack.get_parser_token(),g}},ef.Beautifier=C,ef}var vv;function OO(){if(vv)return rs.exports;vv=1;var e=VO().Beautifier,t=pv().Options;function r(o,i,l,d){var c=new e(o,i,l,d);return c.beautify()}return rs.exports=r,rs.exports.defaultOptions=function(){return new t},rs.exports}var yv;function BO(){if(yv)return sa;yv=1;var e=NO(),t=DO(),r=OO();function o(i,l,d,c){return d=d||e,c=c||t,r(i,l,d,c)}return o.defaultOptions=r.defaultOptions,sa.js=e,sa.css=t,sa.html=o,sa}(function(e){function t(r,o,i){var l=function(d,c){return r.js_beautify(d,c)};return l.js=r.js_beautify,l.css=o.css_beautify,l.html=i.html_beautify,l.js_beautify=r.js_beautify,l.css_beautify=o.css_beautify,l.html_beautify=i.html_beautify,l}(function(r){var o=BO();o.js_beautify=o.js,o.css_beautify=o.css,o.html_beautify=o.html,r.exports=t(o,o,o)})(e)})(zg);const io=zg.exports;function RO(e){const t={};return Object.values(e.import).forEach(r=>{t[r.name]=r.path}),` import { defineComponent } from "vue";
|
||
${Object.keys(t).map(r=>`import ${r} from '${t[r]}';`).join(`
|
||
`)}
|
||
export default defineComponent({
|
||
name: "FcTemplate",
|
||
components: {
|
||
${Object.keys(t).join(",")}
|
||
},
|
||
props: {},
|
||
data() {
|
||
return ${En(e.data)}
|
||
},
|
||
methods: ${En(e.methods)}
|
||
});
|
||
`}function $O(e){const t={};return Object.values(e.import).forEach(r=>{t[r.name]=r.path}),` import { ref } from "vue";
|
||
${Object.keys(t).map(r=>`import ${r} from '${t[r]}';`).join(`
|
||
`)}
|
||
${Object.keys(e.data).map(r=>`const ${r} = ref(${En(e.data[r])})`).join(`
|
||
`)}
|
||
${Object.keys(e.methods).map(r=>En(e.methods[r])).join(`
|
||
`)}
|
||
`}function nf(e,t){const r=[];return e&&e.forEach(o=>{if(!(o&&o._menu&&o._menu.sfc===!1))if(typeof o=="string")r.push(o);else if(o._fc_drag_tag){const i={...o,children:nf(o.children),_sfc:{}};t&&(i.slot=t),i.children.length?typeof i.children[0]=="string"&&(i._sfc.content=i.children[0],delete i.children):delete i.children,r.push(i)}else r.push(...nf(o.children,["DragBox","DragTool"].indexOf(o.type)>-1?o.slot||t:""))}),r}function IO(e,t,r,o){const i=e[0]?e[0].__fc__.vNode.aliasMap:void 0,l={style:{},import:{},data:{formData:{}},methods:{submit(){this.$refs.form.validate().then(()=>{})},reset(){this.$refs.form.resetFields()}}},d=[];function c(){let b=d.join(".");return b&&(b+="."),b}function u(b,g){return g?`<${b.type}${h(b)}>${g}</${b.type}>`:`<${b.type}${h(b)}/>`}function h(b){const g=b.props||{},_=b._sfc||{};let x=[];if(b.class&&x.push(`class="${Array.isArray(b.class)?b.class.join(" "):b.class}"`),b.slot&&b.slot!=="default"&&x.push("#"+b.slot),Object.keys(g).forEach(T=>{const O=g[T];if(O&&typeof O=="object"){const F=b._fc_id?b._fc_id+"_"+T:T;l.data[F]=O,x.push(`:${T}="${F}"`)}else if(O!=null&&O!==""&&typeof O!="function"){let F=typeof O=="string"?"":":";F+=`${T}="${O}"`,x.push(F)}}),b.field){let T=b.value;const O={array:[],string:"",number:0};if(b.value==null){const F=r[b._fc_drag_tag];F&&Array.isArray(F.validate)&&li(O,F.validate[0])&&(T=O[F.validate[0]])}l.data.formData[b.field]=T,_.vModel!==!1&&x.push(`v-model${_.modelField?":"+_.modelField:""}="formData.${c()}${b.field}"`)}if(b.style){const T=FO(b.style||"");T&&x.push(`style="${T}"`)}_.attr&&Object.keys(_.attr).forEach(T=>{x.push(`${T}="${_.attr[T]}"`)}),_.prop&&Object.keys(_.prop).forEach(T=>{const O=b._fc_id+"_"+T;l.data[O]=_.prop[T],x.push(`:${T}="${O}"`)}),_.flag&&_.flag.forEach(T=>{x.push(T)});let k=x.join(" ");return k&&(k=" "+k.trim()),k}function m(b){return b?b.map(g=>{var F,I,M;let _="";const x=g._menu;let k=rt(g),T;if(x&&x.sfc){let N;if(typeof x.sfc=="object"?(N=x.sfc.handle,x.sfc.style&&(l.style[x.name]=x.sfc.style),x.sfc.import&&(l.import[x.name]=x.sfc.import)):N=x.sfc,N){const B=N(k,{transition:m,scope:l,getParentFieldStr:c})||k;typeof B=="string"?T=B:k=B}}const O=k.native!==!1&&(k.field||k.title);return T||(k._sfc&&k._sfc.parentField&&d.push(k.parentField),k._sfc&&k._sfc.content?_=`${k._sfc.content}`:k.children&&(_=`
|
||
`+m(k.children)+`
|
||
`),i&&i[k.type]&&(k.type=id(i[k.type])),T=u(k,_),k._sfc&&k._sfc.parentField&&d.pop()),O&&((F=k==null?void 0:k.wrap)==null?void 0:F.show)!==!1&&(T=u({type:"elFormItem",props:{labelWidth:k.title?void 0:"0px",...k.wrap||{},prop:c()+k.field,label:k.title,required:k.$required===!0?!0:void 0},style:(I=k==null?void 0:k.wrap)==null?void 0:I.style,class:(M=k==null?void 0:k.wrap)==null?void 0:M.class},`
|
||
`+T+`
|
||
`)),T}).join(`
|
||
`):""}e=nf(e);const y=[];t.submitBtn.show&&y.push({type:"elButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&y.push({type:"elButton",props:{type:"default"},_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),y.length&&e.push({type:"elFormItem",children:y});const C=m([{type:"template",children:[{type:"elForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&yl(l.data.formData,t.formData);const A=io.html(C,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),w=io.js(o?RO(l):$O(l),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),E=io.css(Object.values(l.style).join(`
|
||
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${A}
|
||
<script${o?"":" setup"}>
|
||
${w}
|
||
<\/script>
|
||
<style>
|
||
${E}
|
||
</style>
|
||
`}function FO(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,r)=>(e[r]!=null&&e[r]!==""&&t.push(la(r)+":"+e[r]+";"),t),[]).join("")}const kj="",PO=n.defineComponent({name:"SubList",components:{fcDraggable:jr,VNode:wg,ConfigItem:Fn},inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRuleChildren(){return this.designer.setupState.activeRuleChildren},activeRule(){return this.designer.setupState.activeRule}},methods:{toolHandle(...e){this.designer.setupState.toolHandle(...e)},subRender(...e){return this.designer.setupState.subRender(...e)},end({oldIndex:e,newIndex:t}){if(e===t)return;const r=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,r[0]),this.activeRule.key=We()}}}),MO={class:"_fc-sublist"},LO={class:"_fc-r-title"},jO=["onClick"],zO=["onClick"];function UO(e,t,r,o,i,l){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),u=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",MO,[n.createElementVNode("p",LO,[n.createElementVNode("span",null,n.toDisplayString(e.t("designer.sublist")),1),n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:t[0]||(t[0]=h=>e.toolHandle(e.activeRule,"addChild"))})]),n.createVNode(u,{group:{name:"sub",pull:"clone",put:!1},sort:!0,handle:".icon-drag",direction:"vertical",animation:0,itemKey:"_fc_id",onEnd:e.end,list:e.activeRuleChildren},{item:n.withCtx(({element:h,index:m})=>[n.createVNode(c,null,n.createSlots({label:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-drag"},null,-1)),n.createElementVNode("span",null,n.toDisplayString((e.t("com."+h._menu.name+".name")||e.activeRule._menu.label)+" "+(m+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:y=>e.toolHandle(h,"copy")},null,8,jO),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:y=>e.toolHandle(h,"delete")},null,8,zO)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,h)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const HO=Te(PO,[["render",UO]]),Nj="",WO=n.defineComponent({name:"ToolsBar",inject:["designer"],computed:{t(){return this.designer.setupState.t},tools(){const e=this.designer.setupState,t=[];return!e.activeRule&&!e.customForm.config||(e.baseForm.isShow&&t.push({label:this.t("designer.rule"),icon:"base"}),(e.propsForm.isShow||e.customForm.isShow&&e.customForm.propsShow)&&t.push({label:this.t("designer.props"),icon:"props"}),e.advancedForm.isShow&&t.push({label:this.t("designer.advanced"),icon:"advanced"}),e.styleForm.isShow&&t.push({label:this.t("designer.style"),icon:"style"}),e.eventShow&&t.push({label:this.t("designer.event"),icon:"event"}),e.validateForm.isShow&&t.push({label:this.t("designer.validate"),icon:"validate"})),t}},methods:{onClick(e){document.querySelector(`#_fd-config-${e}`).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})},clearActiveRule(){this.designer.setupState.clearActiveRule()}}}),GO={key:0,class:"_fc-r-tools-bar"},KO={class:"_fc-r-tools"},YO=["onClick"];function QO(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",GO,[n.createElementVNode("div",KO,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tools,c=>(n.openBlock(),n.createBlock(d,{key:c.icon,effect:"dark",content:c.label,placement:"bottom",persistent:"","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-tool",onClick:u=>e.onClick(c.icon)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",`icon-config-${c.icon}`])},null,2)],8,YO)]),_:2},1032,["content"]))),128)),n.createElementVNode("div",{class:"_fc-r-tools-close _fc-r-tool",onClick:t[0]||(t[0]=(...c)=>e.clearActiveRule&&e.clearActiveRule(...c))},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add2"},null,-1)]))])])):n.createCommentVNode("",!0)}const JO=Te(WO,[["render",QO]]),Tj="",XO=n.defineComponent({name:"ConfigTitle"}),ZO={ref:"cell",class:"_fd-config-title"};function qO(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",ZO,[n.renderSlot(e.$slots,"default")],512)}const bv=Te(XO,[["render",qO]]);var eB={name:"zh-cn",el:{breadcrumb:{label:"\u9762\u5305\u5C51"},colorpicker:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",defaultLabel:"\u989C\u8272\u9009\u62E9\u5668",description:"\u5F53\u524D\u989C\u8272 {color}\uFF0C\u6309 Enter \u952E\u9009\u62E9\u65B0\u989C\u8272",alphaLabel:"\u9009\u62E9\u900F\u660E\u5EA6\u7684\u503C"},datepicker:{now:"\u6B64\u523B",today:"\u4ECA\u5929",cancel:"\u53D6\u6D88",clear:"\u6E05\u7A7A",confirm:"\u786E\u5B9A",dateTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u65E5\u671F",monthTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u6708\u4EFD",yearTablePrompt:"\u4F7F\u7528\u65B9\u5411\u952E\u4E0E Enter \u952E\u53EF\u9009\u62E9\u5E74\u4EFD",selectedDate:"\u5DF2\u9009\u65E5\u671F",selectDate:"\u9009\u62E9\u65E5\u671F",selectTime:"\u9009\u62E9\u65F6\u95F4",startDate:"\u5F00\u59CB\u65E5\u671F",startTime:"\u5F00\u59CB\u65F6\u95F4",endDate:"\u7ED3\u675F\u65E5\u671F",endTime:"\u7ED3\u675F\u65F6\u95F4",prevYear:"\u524D\u4E00\u5E74",nextYear:"\u540E\u4E00\u5E74",prevMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",year:"\u5E74",month1:"1 \u6708",month2:"2 \u6708",month3:"3 \u6708",month4:"4 \u6708",month5:"5 \u6708",month6:"6 \u6708",month7:"7 \u6708",month8:"8 \u6708",month9:"9 \u6708",month10:"10 \u6708",month11:"11 \u6708",month12:"12 \u6708",weeks:{sun:"\u65E5",mon:"\u4E00",tue:"\u4E8C",wed:"\u4E09",thu:"\u56DB",fri:"\u4E94",sat:"\u516D"},weeksFull:{sun:"\u661F\u671F\u65E5",mon:"\u661F\u671F\u4E00",tue:"\u661F\u671F\u4E8C",wed:"\u661F\u671F\u4E09",thu:"\u661F\u671F\u56DB",fri:"\u661F\u671F\u4E94",sat:"\u661F\u671F\u516D"},months:{jan:"\u4E00\u6708",feb:"\u4E8C\u6708",mar:"\u4E09\u6708",apr:"\u56DB\u6708",may:"\u4E94\u6708",jun:"\u516D\u6708",jul:"\u4E03\u6708",aug:"\u516B\u6708",sep:"\u4E5D\u6708",oct:"\u5341\u6708",nov:"\u5341\u4E00\u6708",dec:"\u5341\u4E8C\u6708"}},inputNumber:{decrease:"\u51CF\u5C11\u6570\u503C",increase:"\u589E\u52A0\u6570\u503C"},select:{loading:"\u52A0\u8F7D\u4E2D",noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",placeholder:"\u8BF7\u9009\u62E9"},dropdown:{toggleDropdown:"\u5207\u6362\u4E0B\u62C9\u9009\u9879"},mention:{loading:"\u52A0\u8F7D\u4E2D"},cascader:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",loading:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9",noData:"\u6682\u65E0\u6570\u636E"},pagination:{goto:"\u524D\u5F80",pagesize:"\u6761/\u9875",total:"\u5171 {total} \u6761",pageClassifier:"\u9875",page:"\u9875",prev:"\u4E0A\u4E00\u9875",next:"\u4E0B\u4E00\u9875",currentPage:"\u7B2C {pager} \u9875",prevPages:"\u5411\u524D {pager} \u9875",nextPages:"\u5411\u540E {pager} \u9875",deprecationWarning:"\u4F60\u4F7F\u7528\u4E86\u4E00\u4E9B\u5DF2\u88AB\u5E9F\u5F03\u7684\u7528\u6CD5\uFF0C\u8BF7\u53C2\u8003 el-pagination \u7684\u5B98\u65B9\u6587\u6863"},dialog:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},drawer:{close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},messagebox:{title:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",error:"\u8F93\u5165\u7684\u6570\u636E\u4E0D\u5408\u6CD5!",close:"\u5173\u95ED\u6B64\u5BF9\u8BDD\u6846"},upload:{deleteTip:"\u6309 Delete \u952E\u53EF\u5220\u9664",delete:"\u5220\u9664",preview:"\u67E5\u770B\u56FE\u7247",continue:"\u7EE7\u7EED\u4E0A\u4F20"},slider:{defaultLabel:"\u6ED1\u5757\u4ECB\u4E8E {min} \u81F3 {max}",defaultRangeStartLabel:"\u9009\u62E9\u8D77\u59CB\u503C",defaultRangeEndLabel:"\u9009\u62E9\u7ED3\u675F\u503C"},table:{emptyText:"\u6682\u65E0\u6570\u636E",confirmFilter:"\u7B5B\u9009",resetFilter:"\u91CD\u7F6E",clearFilter:"\u5168\u90E8",sumText:"\u5408\u8BA1"},tour:{next:"\u4E0B\u4E00\u6B65",previous:"\u4E0A\u4E00\u6B65",finish:"\u7ED3\u675F\u5BFC\u89C8"},tree:{emptyText:"\u6682\u65E0\u6570\u636E"},transfer:{noMatch:"\u65E0\u5339\u914D\u6570\u636E",noData:"\u65E0\u6570\u636E",titles:["\u5217\u8868 1","\u5217\u8868 2"],filterPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",noCheckedFormat:"\u5171 {total} \u9879",hasCheckedFormat:"\u5DF2\u9009 {checked}/{total} \u9879"},image:{error:"\u52A0\u8F7D\u5931\u8D25"},pageHeader:{title:"\u8FD4\u56DE"},popconfirm:{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88"},carousel:{leftArrow:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",rightArrow:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247",indicator:"\u5E7B\u706F\u7247\u5207\u6362\u81F3\u7D22\u5F15 {index}"}}};const Dj="",tB=n.defineComponent({name:"TypeSelect",inject:["designer"],computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},customForm(){return this.designer.setupState.customForm},menus(){let e=[];const t=this.designer.setupState;if(this.activeRule){const r=this.activeRule._menu.name,o=t.getConfig("switchType",[]);if(o===!1)return e;let i=[];o.forEach(l=>{l.indexOf(r)>-1&&i.push(...l)}),i=i.filter((l,d)=>l!==r&&i.indexOf(l)===d),i.length?t.menuList.forEach(l=>{l.list.forEach(d=>{i.indexOf(d.name)>-1&&e.push(d)})}):t.menuList.forEach(l=>{l.name===this.activeRule._menu.menu&&l.list.forEach(d=>{d.name!==r&&e.push(d)})})}return e.filter(r=>this.designer.setupState.hiddenItem.indexOf(r.name)===-1)}},methods:{handleCommand(e){var d;let t=this.activeRule,r=this.activeRule;r._menu.inside||(r=r.__fc__.parent.rule);const o=r.__fc__.parent.rule.children,i=this.designer.setupState.makeRule(e);let l=i;i.type==="DragTool"&&(l=i.children[0]),l.field&&t.field?["title","info","field","validate","computed","control","$required","style"].forEach(c=>{l[c]=t[c]}):(d=t==null?void 0:t.computed)!=null&&d.hidden&&(l.computed={hidden:t.computed.hidden}),t.name&&(l.name=t.name),["name","wrap","class","id","control","on"].forEach(c=>{t[c]&&(l[c]=t[c])}),o.splice(o.indexOf(r),1,i),this.$nextTick(()=>{this.designer.setupState.triggerActive(l)})}}}),nB={key:0,class:"fc-icon icon-down"};function iB(e,t,r,o,i,l){const d=n.resolveComponent("el-tag"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),h=n.resolveComponent("el-dropdown");return n.openBlock(),n.createBlock(h,{class:"_fd-type-select",trigger:"click",size:"default","popper-class":"_fd-type-select-pop",disabled:!e.menus.length,onCommand:e.handleCommand},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menus,m=>(n.openBlock(),n.createBlock(c,{command:m,key:m.name},{default:n.withCtx(()=>[n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",m.icon||"icon-input"])},null,2),n.createTextVNode(n.toDisplayString(e.t("com."+m.name+".name")||m.label),1)])]),_:2},1032,["command"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{type:"success",effect:"plain","disable-transitions":""},{default:n.withCtx(()=>[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(e.t("com."+e.activeRule._menu.name+".name")||e.activeRule._menu.label)+" ",1),e.menus.length?(n.openBlock(),n.createElementBlock("i",nB)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com."+e.customForm.config.name+".name")||e.customForm.config.label||e.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled","onCommand"])}const rB=Te(tB,[["render",iB]]),Vj="",oB=n.defineComponent({name:"FieldList",inject:["designer"],props:{field:Array},components:{fcDraggable:jr},methods:{nodeClick(e){if(e.rule||e.item){const t={...e};this.designer.setupState.clickField(t)}}}}),aB={class:"_fc-field-node"},lB={class:"_fc-field-node-label"},sB={key:1,class:"fc-icon icon-folder"},dB={key:1,class:"_fc-field-node"},cB={class:"_fc-field-node-label"},uB={key:1,class:"fc-icon icon-folder"};function fB(e,t,r,o,i,l){const d=n.resolveComponent("fcDraggable"),c=n.resolveComponent("el-tree");return n.openBlock(),n.createBlock(c,{ref:"treeRef",class:"_fc-field-tree",data:e.field,"default-expand-all":"","expand-on-click-node":!1,indent:10,onNodeClick:e.nodeClick},{default:n.withCtx(({node:u,data:h})=>[h.rule||h.item?(n.openBlock(),n.createBlock(d,{key:0,group:{name:"default",pull:"clone",put:!1},sort:!1,list:[{...h,_field:!0}],itemKey:"label",class:"_fc-field-drag"},{item:n.withCtx(()=>[n.createElementVNode("div",aB,[n.createElementVNode("div",lB,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fc-icon",h.icon||"icon-input"])},null,2)):(n.openBlock(),n.createElementBlock("i",sB)),n.createElementVNode("span",null,n.toDisplayString(h.label),1)])])]),_:2},1032,["list"])):(n.openBlock(),n.createElementBlock("div",dB,[n.createElementVNode("div",cB,[u.isLeaf?(n.openBlock(),n.createElementBlock("i",{key:0,class:n.normalizeClass(["fc-icon",h.icon||"icon-input"])},null,2)):(n.openBlock(),n.createElementBlock("i",uB)),n.createElementVNode("span",null,n.toDisplayString(h.label),1)])]))]),_:1},8,["data","onNodeClick"])}const pB=Te(oB,[["render",fB]]),hB=["props"],mB=["class","style","directives"],gB=["on","hook"],wv=(e,t={},r={})=>{const o=[...hB,...r.normal||[]],i=[...mB,...r.array||[]],l=[...gB,...r.functional||[]],d=r.props||[];return e.reduce((c,u)=>{for(const h in u)if(c[h])if(d.indexOf(h)>-1)c[h]=wv([u[h]],c[h]);else if(o.indexOf(h)>-1)c[h]={...c[h],...u[h]};else if(i.indexOf(h)>-1){const m=c[h]instanceof Array?c[h]:[c[h]],y=u[h]instanceof Array?u[h]:[u[h]];c[h]=[...m,...y]}else if(l.indexOf(h)>-1)for(const m in u[h])if(c[h][m]){const y=c[h][m]instanceof Array?c[h][m]:[c[h][m]],C=u[h][m]instanceof Array?u[h][m]:[u[h][m]];c[h][m]=[...y,...C]}else c[h][m]=u[h][m];else if(h==="hook")for(let m in u[h])c[h][m]?c[h][m]=vB(c[h][m],u[h][m]):c[h][m]=u[h][m];else c[h]=u[h];else o.indexOf(h)>-1||l.indexOf(h)>-1||d.indexOf(h)>-1?c[h]={...u[h]}:i.indexOf(h)>-1?c[h]=u[h]instanceof Array?[...u[h]]:typeof u[h]=="object"?{...u[h]}:u[h]:c[h]=u[h];return c},t)},vB=(e,t)=>function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)},Oj="",yB=n.defineComponent({name:"FormList",inject:["designer"],props:{list:Array},data(){return{loading:!1,timerId:void 0,load:void 0}},methods:{loadConfig(e,t){this.designer.setupState.openInputData(!1),this.designer.setupState.pageData=[],this.designer.setupState.setOptions(e.options),this.designer.setupState.setRule(e.rule),this.designer.emit("switchForm",t)},starLoad(){this.loading||(this.load=ai.ElLoading.service({target:document.getElementsByClassName("_fc-m-drag")[0],lock:!0}),this.loading=!0,this.timerId=setTimeout(()=>{this.endLoad()},5e3))},endLoad(){this.loading=!1,this.load&&this.load.close(),this.timerId&&clearTimeout(this.timerId),this.load=void 0,this.timerId=void 0},nodeClick(e){if(this.loading)return;let t={rule:e.rule||[],options:e.options||{}};if(e.load){const r=e.load(e);if(r&&r.then){this.starLoad(),r.then(o=>{o.rule&&(t.rule=o.rule),o.options&&(t.options=o.options),this.loadConfig(t,e),this.endLoad()}).catch(o=>{this.endLoad()});return}else r&&(r.rule&&(t.rule=r.rule),r.options&&(t.options=r.options))}this.loadConfig(t,e)}}}),bB={class:"_fc-form-node"},wB={class:"_fc-form-node-label"},CB={key:0,class:"fc-icon icon-form"},_B={key:1,class:"fc-icon icon-folder"},EB={key:0,class:"_fc-form-node-info"},SB=["onClick"];function AB(e,t,r,o,i,l){const d=n.resolveComponent("el-tree");return n.openBlock(),n.createBlock(d,{ref:"treeRef",class:"_fc-form-tree",data:e.list,indent:5},{default:n.withCtx(({node:c,data:u})=>[n.createElementVNode("div",bB,[n.createElementVNode("div",wB,[c.isLeaf?(n.openBlock(),n.createElementBlock("i",CB)):(n.openBlock(),n.createElementBlock("i",_B)),n.createElementVNode("div",null,[n.createElementVNode("div",null,n.toDisplayString(u.label),1),u.info?(n.openBlock(),n.createElementBlock("span",EB,n.toDisplayString(u.info),1)):n.createCommentVNode("",!0)])]),c.isLeaf&&!u.disabled?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:n.withModifiers(h=>e.nodeClick(u),["stop"])},null,8,SB)):n.createCommentVNode("",!0)])]),_:1},8,["data"])}const xB=Te(yB,[["render",AB]]),Bj="",kB=n.defineComponent({name:"GlobalEventConfig",emits:["update:modelValue"],props:{modelValue:Object,eventName:Array},components:{Warning:Xn,FnEditor:Ni},inject:["designer"],data(){return{visible:!1,activeIdx:"",event:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[on(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.event=rt(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.event[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="event_"+We();this.event[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){return this.$refs.data.save()?(this.event[this.activeIdx].handle=this.handle,this.activeIdx="",!0):!1},rm(e){delete this.event[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.event}),this.visible=!1)}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),NB={class:"_fd-gec"},TB=["onClick"],DB={class:"_fd-gec-method"},VB={key:0,class:"_fd-label"},OB=["onClick"];function BB(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-header"),m=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-input"),C=n.resolveComponent("el-menu"),A=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),b=n.resolveComponent("FnEditor"),g=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",NB,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:e.open,size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(g,{class:"_fd-gec-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=_=>e.visible=_),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(u,{tooltip:e.t("warning.globalEvent")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[5]||(t[5]=_=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-l"},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-gec-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(_,x)=>(n.openBlock(),n.createBlock(m,{class:n.normalizeClass({"is-active":x===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gec-title",onClick:n.withModifiers(k=>e.active(x),["stop"])},[n.createElementVNode("div",DB,[n.createElementVNode("span",null,n.toDisplayString(x),1),_.label?(n.openBlock(),n.createElementBlock("span",VB,n.toDisplayString(_.label),1)):n.createCommentVNode("",!0)]),_.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(k=>e.rm(x),["stop"])},null,8,OB)):n.createCommentVNode("",!0)],8,TB)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(m,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gec-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=_=>e.cusValue=_),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((..._)=>e.addCus&&e.addCus(..._),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((..._)=>e.closeCus&&e.closeCus(..._),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gec-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-gec-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(A,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(b,{modelValue:e.handle,"onUpdate:modelValue":t[4]||(t[4]=_=>e.handle=_),name:"handle",args:e.fnArgs,ref:"data"},null,8,["modelValue","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Cv=Te(kB,[["render",BB]]),Rj="",RB=n.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(e){if(this.editor){const t=e?this.toJson(e):"";this.oldVal=t;const o=this.editor.getScrollInfo().top;this.editor.setValue(t),this.editor.scrollTo(0,o)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(e){return this.format?ze.toJson(e,2):En(e)},load(){const e=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?io.js(e,{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 e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(r){return console.error(r),dn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),$B={class:"_fd-struct-editor"},IB={ref:"editor"};function FB(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",$B,[n.createElementVNode("div",IB,null,512)])}const rf=Te(RB,[["render",FB]]),$j="",PB=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},r){t._start=r.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},r){const o=t.getRule("action");o.value=o.value.substring(0,o._start)+r+o.value.substring(o._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],MB=n.defineComponent({name:"GlobalFetchConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,VariableConfig:ra,DragForm:ze.$form(),FnEditor:Ni,StructEditor:rf},inject:["designer"],data(){return{visible:!1,activeIdx:"",list:{},cus:!1,cusValue:"",form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"small"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},types(){return{fetch:this.t("fetch.remote"),static:this.t("fetch.static")}},dataNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.list=rt(this.modelValue||{}),this.activeIdx="")}},methods:{open(){this.visible=!0},active(e){if(this.activeIdx!==e){const t=this.list[e];this.form.rule=t.type==="static"?[]:PB(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||"",this.activeIdx=e}},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="data_"+We();this.list[t]={label:e,type:this.cus,data:[]},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(e){this.cus=e},saveData(){!this.$refs.data.save()||(this.list[this.activeIdx].data=this.form.data||[],this.activeIdx="")},save(){if(this.list[this.activeIdx].type==="static")return this.saveData();this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.beforeFetch&&!this.$refs.beforeFetch.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=ze.parseFn(this.form.parse),e.beforeFetch=ze.parseFn(this.form.beforeFetch),e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,this.list[this.activeIdx]=e,this.activeIdx="")}).catch(e=>{console.error(e),dn(e[Object.keys(e)[0]][0].message)})},rm(e){delete this.list[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){if(this.activeIdx)return dn(this.t("event.saveMsg"));this.$emit("update:modelValue",{...this.list}),this.visible=!1}}}),LB={class:"_fd-gfc"},jB=["onClick"],zB={class:"_fd-gfc-method"},UB={key:0,class:"_fd-label"},HB=["onClick"],WB={class:"_fd-gfc-info"};function GB(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-dropdown-item"),m=n.resolveComponent("el-dropdown-menu"),y=n.resolveComponent("el-dropdown"),C=n.resolveComponent("el-header"),A=n.resolveComponent("el-menu-item"),w=n.resolveComponent("el-input"),E=n.resolveComponent("el-menu"),b=n.resolveComponent("el-main"),g=n.resolveComponent("el-container"),_=n.resolveComponent("el-aside"),x=n.resolveComponent("DragForm"),k=n.resolveComponent("el-tab-pane"),T=n.resolveComponent("FnEditor"),O=n.resolveComponent("el-tabs"),F=n.resolveComponent("StructEditor"),I=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",LB,[n.createVNode(c,{value:e.dataNum,type:"warning",hidden:e.dataNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:e.open,size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(I,{class:"_fd-gfc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[11]||(t[11]=M=>e.visible=M),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalFetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[10]||(t[10]=M=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gfc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(_,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gfc-l"},{default:n.withCtx(()=>[n.createVNode(C,{class:"_fd-gfc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(y,{trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(m,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.types,(M,N)=>(n.openBlock(),n.createBlock(h,{key:N,onClick:B=>e.cusEvent(N)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(M),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.create")),1),t[12]||(t[12]=n.createElementVNode("i",{class:"fc-icon icon-down",style:{"font-size":"14px"}},null,-1))]),_:1})]),_:1})]),_:1}),n.createVNode(b,null,{default:n.withCtx(()=>[n.createVNode(E,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.list,(M,N)=>(n.openBlock(),n.createBlock(A,{class:n.normalizeClass({"is-active":N===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gfc-title",onClick:n.withModifiers(B=>e.active(N),["stop"])},[n.createElementVNode("div",zB,[n.createElementVNode("span",null,n.toDisplayString(N),1),M.label?(n.openBlock(),n.createElementBlock("span",UB,n.toDisplayString(M.label),1)):n.createCommentVNode("",!0)]),M.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(B=>e.rm(N),["stop"])},null,8,HB)):n.createCommentVNode("",!0)],8,jB)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(A,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gfc-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(w,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=M=>e.cusValue=M),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("fetch.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((...M)=>e.addCus&&e.addCus(...M),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((...M)=>e.closeCus&&e.closeCus(...M),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(b,null,{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gfc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(C,{key:0,class:"_fd-gfc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(b,{key:e.activeIdx},{default:n.withCtx(()=>[e.list[e.activeIdx].type==="fetch"?(n.openBlock(),n.createBlock(O,{key:0,"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(k,{label:e.t("fetch.config"),name:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",WB,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(x,{api:e.form.api,"onUpdate:api":t[4]||(t[4]=M=>e.form.api=M),modelValue:e.form.formData,"onUpdate:modelValue":t[5]||(t[5]=M=>e.form.formData=M),rule:e.form.rule,option:e.form.options},{title:n.withCtx(M=>[M.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:M.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(M.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(M.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),n.createVNode(k,{lazy:"",label:e.t("fetch.beforeFetch"),name:"second"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.beforeFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.beforeFetch")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(T,{style:{height:"100%"},modelValue:e.form.beforeFetch,"onUpdate:modelValue":t[6]||(t[6]=M=>e.form.beforeFetch=M),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]),_:1},8,["label"]),n.createVNode(k,{lazy:"",name:"third"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(T,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[7]||(t[7]=M=>e.form.parse=M),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(k,{lazy:"",label:e.t("fetch.onError"),name:"fourth"},{default:n.withCtx(()=>[n.createVNode(T,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[8]||(t[8]=M=>e.form.onError=M),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})):(n.openBlock(),n.createBlock(F,{key:1,modelValue:e.form.data,"onUpdate:modelValue":t[9]||(t[9]=M=>e.form.data=M),ref:"data"},null,8,["modelValue"]))]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const _v=Te(MB,[["render",GB]]),Ij="",KB=n.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((e,t)=>{(this.modelValue||"").indexOf(e)>-1&&(this.idx=t)}),this.num=si(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=si(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(e){if(e!==void 0){if(this.idx===e)return;this.idx=e}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()}}),YB={class:"_fd-size-input"};function QB(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-inputNumber"),u=n.resolveComponent("el-dropdown-item"),h=n.resolveComponent("el-dropdown-menu"),m=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",YB,[e.unit[e.idx]==="auto"?(n.openBlock(),n.createBlock(d,{key:0,size:e.size,style:{width:"150px"},onClick:t[0]||(t[0]=y=>e.changeType())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(c,{size:e.size,modelValue:e.num,"onUpdate:modelValue":t[1]||(t[1]=y=>e.num=y),onChange:e.submit,"controls-position":"right"},null,8,["size","modelValue","onChange"]),n.createVNode(m,{trigger:"click",size:"small"},{dropdown:n.withCtx(()=>[n.createVNode(h,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.unit,(y,C)=>(n.openBlock(),n.createBlock(u,{key:y,onClick:A=>e.changeType(C)},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(y),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(d,{size:e.size},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.unit[e.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const ro=Te(KB,[["render",QB]]),Fj="",JB=n.defineComponent({name:"BoxSizeInput",components:{SizeInput:ro,ConfigItem:Fn},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(e=>{this.modelValue[e]&&(this.boxStyle[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,r)=>(this.boxStyle[r]!==""&&(t[r]=this.boxStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},changeOverflow(e){this.boxStyle.overflow=this.boxStyle.overflow===e?"":e,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value}},created(){this.tidyValue()}}),XB={class:"_fd-box-size-input"},ZB={key:0,style:{"font-size":"12px","line-height":"16px"}};function qB(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("el-form-item"),u=n.resolveComponent("el-radio-button"),h=n.resolveComponent("el-tooltip"),m=n.resolveComponent("el-radio-group"),y=n.resolveComponent("el-form"),C=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",XB,[n.createVNode(C,{label:e.t("props.size"),info:Object.keys(e.modelValue).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(y,{"label-position":"top",size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.keys,A=>(n.openBlock(),n.createBlock(c,{label:e.t("style."+A),key:A},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.boxStyle[A],"onUpdate:modelValue":w=>e.boxStyle[A]=w,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),n.createVNode(c,{label:e.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.boxStyle.overflow},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overflow,A=>(n.openBlock(),n.createBlock(h,{effect:"dark",content:e.t("style.overflow."+A.value),placement:"top",persistent:"","hide-after":0,key:A.value},{default:n.withCtx(()=>[n.createVNode(u,{label:A.value,value:A.value,onClick:w=>e.changeOverflow(A.value)},{default:n.withCtx(()=>[A.text?(n.openBlock(),n.createElementBlock("span",ZB,"Auto ")):(n.openBlock(),n.createElementBlock("i",{key:1,class:n.normalizeClass(["fc-icon",A.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["label","info"])])}const eR=Te(JB,[["render",qB]]),Pj="",tR=n.defineComponent({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){return{value:this.modelValue||"",predefine:["#c9e6fc","#c3f2f2","#c2f1d2","#fef6c6","#ffe5c2","#fdcac2","#fadcce","#dec2fa","#ccd2f1","#2196f3","#08c9c9","#00c344","#fad714","#ff9300","#f52222","#eb2f96","#800080","#7500ea","#2d46c4","#000000","#333333","#5a5a5a","#757575","#9e9e9e","#bdbdbd","#dddddd","#f5f5f5","#ffffff"]}},methods:{},created(){}}),nR={class:"_fd-color-input"};function iR(e,t,r,o,i,l){const d=n.resolveComponent("el-color-picker"),c=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",nR,[n.createVNode(c,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=u=>e.value=u)},{append:n.withCtx(()=>[n.createVNode(d,{"show-alpha":"","color-format":"hex",predefine:e.predefine,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u)},null,8,["predefine","modelValue"])]),_:1},8,["modelValue"])])}const oo=Te(tR,[["render",iR]]),Mj="",rR=n.defineComponent({name:"BorderInput",components:{ColorInput:oo,SizeInput:ro,ConfigItem:Fn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=la(t)+": "+this.borderStyle[t]+";")},{}),e}},data(){const e=this.designer.setupState.t;return{t:e,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(t=>({value:t,label:e("style."+t)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const e=[];this.borderStyle={},["",...this.position].forEach(t=>{this.type.forEach(r=>{e.push("border"+t+r)})}),e.forEach(t=>{this.borderStyle[t]=this.modelValue[t]||""})},onInput(){const e=Object.keys(this.borderStyle).reduce((t,r)=>(this.borderStyle[r]!==""&&(t[r]=this.borderStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},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()}}),oR={class:"_fd-border-input"},aR={class:"_fd-bi-left"},lR={class:"_fd-bil-row"},sR={class:"_fd-bil-row"},dR={class:"_fd-bil-row"},cR={class:"_fd-bi-right"},uR={class:"_fd-bi-opt"};function fR(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("SizeInput"),h=n.resolveComponent("ColorInput"),m=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(m,{label:e.t("style.border")},{append:n.withCtx(()=>[n.createElementVNode("div",oR,[n.createElementVNode("div",aR,[n.createElementVNode("div",lR,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Top"?"active":""]),onClick:t[0]||(t[0]=y=>e.active="Top")},"\u2533 ",2)]),n.createElementVNode("div",sR,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Left"?"active":""]),onClick:t[1]||(t[1]=y=>e.active="Left")},"\u2523 ",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active===""?"active":""]),onClick:t[2]||(t[2]=y=>e.active="")},"\u254B",2),n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Right"?"active":""]),onClick:t[3]||(t[3]=y=>e.active="Right")}," \u252B ",2)]),n.createElementVNode("div",dR,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-bil-col",e.active==="Bottom"?"active":""]),onClick:t[4]||(t[4]=y=>e.active="Bottom")},"\u253B ",2)])]),n.createElementVNode("div",cR,[n.createVNode(c,{modelValue:e.curStyle,"onUpdate:modelValue":t[5]||(t[5]=y=>e.curStyle=y),clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.lineType,y=>(n.openBlock(),n.createBlock(d,{key:y.value,label:y.label,value:y.value},{default:n.withCtx(()=>[n.createElementVNode("div",uR,[n.createElementVNode("div",{class:n.normalizeClass(["_line",y.value])},null,2)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),n.createVNode(u,{modelValue:e.curWidth,"onUpdate:modelValue":t[6]||(t[6]=y=>e.curWidth=y)},null,8,["modelValue"]),n.createVNode(h,{modelValue:e.curColor,"onUpdate:modelValue":t[7]||(t[7]=y=>e.curColor=y)},null,8,["modelValue"])])])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"line-box",style:n.normalizeStyle(e.borderStyleStr)},t[8]||(t[8]=[n.createElementVNode("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const pR=Te(rR,[["render",fR]]),Lj="",hR=n.defineComponent({name:"RadiusInput",components:{ConfigItem:Fn,ColorInput:oo,SizeInput:ro},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(e){e!==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 e=(this.modelValue||"").split(" ").filter(t=>t!=="");e.length===1?e=[e[0],e[0],e[0],e[0]]:e.length===2?e=[e[0],e[1],e[0],e[1]]:e.length===3&&(e=[e[0],e[1],e[2],e[1]]),this.style.left=e[0],this.style.top=e[1],this.style.right=e[2],this.style.bottom=e[3],this.updateCom()},updateCom(){let e=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=e.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let e=`${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()===""?e="":this.updateCom(),this.oldValue=e,this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),mR={class:"_fd-radius-input"},gR={class:"_fd-radius-con"},vR={class:"_fd-radius-item"},yR={class:"_fd-radius-item"},bR={class:"_fd-radius-item"},wR={class:"_fd-radius-item"};function CR(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",mR,[n.createVNode(c,{label:e.t("style.borderRadius")},{append:n.withCtx(()=>[n.createElementVNode("div",gR,[n.createElementVNode("div",vR,[t[5]||(t[5]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.left,"onUpdate:modelValue":t[1]||(t[1]=u=>e.style.left=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",yR,[t[6]||(t[6]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.top,"onUpdate:modelValue":t[2]||(t[2]=u=>e.style.top=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",bR,[t[7]||(t[7]=n.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.bottom,"onUpdate:modelValue":t[3]||(t[3]=u=>e.style.bottom=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])]),n.createElementVNode("div",wR,[t[8]||(t[8]=n.createElementVNode("div",{class:"_fd-radius-icon"},[n.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),n.createVNode(d,{unit:e.unit,modelValue:e.style.right,"onUpdate:modelValue":t[4]||(t[4]=u=>e.style.right=u),onChange:e.onInput},null,8,["unit","modelValue","onChange"])])])]),default:n.withCtx(()=>[n.createVNode(d,{unit:e.unit,modelValue:e.style.com,"onUpdate:modelValue":t[0]||(t[0]=u=>e.style.com=u),onChange:e.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const _R=Te(hR,[["render",CR]]),jj="",ER=n.defineComponent({name:"BorderInput",components:{ColorInput:oo,SizeInput:ro,ConfigItem:Fn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let e="";return Object.keys(this.borderStyle).forEach(t=>{this.borderStyle[t]!==""&&(e+=la(t)+": "+this.borderStyle[t]+";")},{}),e},alignType(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},decorationType(){return["underline","line-through","overline"].map(e=>({label:this.t("style.decoration."+e),value:e}))},weightType(){return[300,400,500,700].map(e=>({label:this.t("style.weight."+e),value:e}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(e=>{this.fontStyle[e]=this.modelValue[e]||""})},onInput(){const e=Object.keys(this.fontStyle).reduce((t,r)=>(this.fontStyle[r]!==""&&(t[r]=this.fontStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)}},created(){this.tidyValue()}}),SR={class:"_fd-font-input"};function AR(e,t,r,o,i,l){const d=n.resolveComponent("SizeInput"),c=n.resolveComponent("el-form-item"),u=n.resolveComponent("el-option"),h=n.resolveComponent("el-select"),m=n.resolveComponent("el-form"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createBlock(y,{label:e.t("style.font.name")},{append:n.withCtx(()=>[n.createElementVNode("div",SR,[n.createVNode(m,{"label-width":"50px","label-position":"top",inline:"",size:"small"},{default:n.withCtx(()=>[n.createVNode(c,{label:e.t("style.font.size")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.fontSize,"onUpdate:modelValue":t[0]||(t[0]=C=>e.fontStyle.fontSize=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.weight.name")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.fontStyle.fontWeight,"onUpdate:modelValue":t[1]||(t[1]=C=>e.fontStyle.fontWeight=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.weightType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({fontWeight:C.value})},n.toDisplayString(C.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.decoration.name")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.fontStyle.textDecoration,"onUpdate:modelValue":t[2]||(t[2]=C=>e.fontStyle.textDecoration=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decorationType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},{default:n.withCtx(()=>[n.createElementVNode("span",{style:n.normalizeStyle({textDecoration:C.value})},n.toDisplayString(C.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.align")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.fontStyle.textAlign,"onUpdate:modelValue":t[3]||(t[3]=C=>e.fontStyle.textAlign=C),clearable:"",onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.alignType,C=>(n.openBlock(),n.createBlock(u,{key:C.value,label:C.label,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.height")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.lineHeight,"onUpdate:modelValue":t[4]||(t[4]=C=>e.fontStyle.lineHeight=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(c,{label:e.t("style.font.spacing")},{default:n.withCtx(()=>[n.createVNode(d,{modelValue:e.fontStyle.letterSpacing,"onUpdate:modelValue":t[5]||(t[5]=C=>e.fontStyle.letterSpacing=C),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fi-box",style:n.normalizeStyle(e.fontStyle)},n.toDisplayString(e.t("style.font.preview")),5)]),_:1},8,["label"])}const xR=Te(ER,[["render",AR]]),zj="",kR=n.defineComponent({name:"DisplayInput",components:{ConfigItem:Fn},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:Object},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{style:{},displayOptions:[{value:"block",icon:"block"},{value:"inline-block",icon:"inlineblock"},{value:"inline",icon:"inline"},{value:"flex",icon:"flex"}],options:[{key:"flexDirection",items:[{value:"row",icon:"direction-row"},{value:"column",icon:"direction-column"},{value:"row-reverse",icon:"direction-rowreverse"},{value:"column-reverse",icon:"direction-columnreverse"}]},{key:"flexWrap",items:[{value:"nowrap",icon:"flex-nowrap",row:!0},{value:"wrap",icon:"flex-wrap",row:!0}]},{key:"alignContent",items:[{value:"center",icon:"align-center",row:!0},{value:"flex-start",icon:"align-flexstart",row:!0},{value:"flex-end",icon:"align-flexend",row:!0},{value:"space-around",icon:"align-spacearound",row:!0},{value:"space-between",icon:"align-spacebetween",row:!0},{value:"stretch",icon:"align-stretch",row:!0}]},{key:"justifyContent",items:[{value:"center",icon:"justify-center",row:!0},{value:"flex-start",icon:"justify-flexstart",row:!0},{value:"flex-end",icon:"justify-flexend",row:!0},{value:"space-between",icon:"justify-spacebetween",row:!0},{value:"space-around",icon:"justify-spacearound",row:!0},{value:"space-evenly",icon:"justify-stretch",row:!0}]},{key:"alignItems",items:[{value:"center",icon:"alignitems-center",row:!0},{value:"flex-start",icon:"alignitems-flexstart",row:!0},{value:"flex-end",icon:"alignitems-flexend",row:!0},{value:"stretch",icon:"alignitems-stretch",row:!0},{value:"baseline",icon:"alignitems-baseline"}]}]}},methods:{tidyValue(){this.style={display:"",flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""},this.modelValue&&Object.keys(this.style).forEach(e=>{this.modelValue[e]&&(this.style[e]=this.modelValue[e])})},onInput(){const e=Object.keys(this.style).reduce((t,r)=>(this.style[r]!==""&&(t[r]=this.style[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},radioClick(e,t){const r=this.style[e];this.style[e]===t.value?this.style[e]="":e==="display"&&t.value!=="flex"?this.style={display:t.value,flexDirection:"",flexWrap:"",alignContent:"",justifyContent:"",alignItems:""}:this.style[e]=t.value,this.style[e]!==r&&this.onInput()}},created(){this.tidyValue()}}),NR={class:"_fd-display-input"},TR={class:"_fd-display-raw"},DR={class:"_label"};function VR(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-tooltip"),u=n.resolveComponent("el-radio-group"),h=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",NR,[n.createVNode(h,{label:e.t("style.display.name"),arrow:!1,showAppend:e.style.display==="flex"},{append:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fd-display-con",[e.style.flexDirection,["column","column-reverse"].indexOf(e.style.flexDirection)>-1?"rotate-flag":""]])},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,m=>(n.openBlock(),n.createElementBlock("div",TR,[n.createElementVNode("div",DR,n.toDisplayString(e.t("style."+m.key+".name"))+": ",1),n.createVNode(u,{"model-value":e.style[m.key],size:"small"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(m.items,y=>(n.openBlock(),n.createBlock(c,{effect:"dark",content:e.t("style."+m.key+"."+y.value),placement:"top",persistent:"","hide-after":0,key:y.value},{default:n.withCtx(()=>[n.createVNode(d,{label:y.value,value:y.value,onClick:C=>e.radioClick(m.key,y)},{default:n.withCtx(()=>[n.createElementVNode("span",{class:n.normalizeClass(y.row?"rotate":"")},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+y.icon])},null,2)],2)]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:2},1032,["model-value"])]))),256))],2)]),default:n.withCtx(()=>[n.createVNode(u,{"model-value":e.style.display,size:"small",style:{width:"150px"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.displayOptions,m=>(n.openBlock(),n.createBlock(c,{effect:"dark",content:e.t("style.display."+m.value),placement:"top",persistent:"","hide-after":0,key:m.value},{default:n.withCtx(()=>[n.createVNode(d,{label:m.value,value:m.value,onClick:y=>e.radioClick("display",m)},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-display-"+m.icon])},null,2)]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["model-value"])]),_:1},8,["label","showAppend"])])}const OR=Te(kR,[["render",VR]]),Uj="",BR=n.defineComponent({name:"ShadowContent",components:{ColorInput:oo},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(e){this.form.x=parseInt(String((e.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((e.top-this.boxSize/2)/this.boxSize*this.max));const t=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,t*-1):Math.min(this.form.x,t),this.form.y=this.form.y<0?Math.max(this.form.y,t*-1):Math.min(this.form.y,t)},modelValue(e){this.initStyle(e)}},methods:{getMouseXY(e,t){if(this.down||t){const r=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(e.clientX-r.x)),top:parseInt(String(e.clientY-r.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(e){this.getMouseXY(e,!0),this.down=!0},onInput(){const e=this.form;let t=`${e.x}${e.x_unit} ${e.y}${e.y_unit} ${e.vague}${e.vague_unit} ${e.extend}${e.extend_unit} ${e.color}`;`${e.x}${e.y}${e.vague}${e.extend}`.replaceAll("0","")===""?t="":e.type==="inset"&&(t+=" inset"),this.$emit("update:modelValue",t),this.$emit("change",t)},initStyle(e){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",e=e.replace(" inset",""));const t=e.split("rgba");let r,o;t.length>1?(r="rgba"+t[1].trim(),o=t[0].trim().split(" ")):(o=t[0].trim().split(" "),r=o.pop()),this.form.color=r||"#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 i=l=>(l==null?void 0:l.replace(/[-\d.]/g,""))||"px";this.form.x_unit=i(o[0]),this.form.y_unit=i(o[1]),this.form.vague_unit=i(o[2]),this.form.extend_unit=i(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)}}),RR={class:"_fd-shadow-content"},$R={class:"_fd-sc-right"};function IR(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-tooltip"),u=n.resolveComponent("el-radio-group"),h=n.resolveComponent("el-form-item"),m=n.resolveComponent("ColorInput"),y=n.resolveComponent("el-option"),C=n.resolveComponent("el-select"),A=n.resolveComponent("el-input"),w=n.resolveComponent("el-form");return n.openBlock(),n.createElementBlock("div",RR,[n.createVNode(w,{"label-width":"50px","label-position":"top",inline:"",class:"_fd-sc-form",size:"small"},{default:n.withCtx(()=>[n.createVNode(h,{label:e.t("style.shadow.mode")},{default:n.withCtx(()=>[n.createVNode(u,{modelValue:e.form.type,"onUpdate:modelValue":t[0]||(t[0]=E=>e.form.type=E),onChange:e.onInput,size:"small",class:"_fd-sc-radio"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,E=>(n.openBlock(),n.createBlock(c,{key:E.key,effect:"dark",content:e.t("style.shadow."+E.key),placement:"top","hide-after":0,persistent:""},{default:n.withCtx(()=>[n.createVNode(d,{label:E.key,value:E.key},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-"+E.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(m,{modelValue:e.form.color,"onUpdate:modelValue":t[1]||(t[1]=E=>e.form.color=E),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.shadow.x")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:e.form.x,"onUpdate:modelValue":t[3]||(t[3]=E=>e.form.x=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.x_unit,"onUpdate:modelValue":t[2]||(t[2]=E=>e.form.x_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.shadow.y")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:e.form.y,"onUpdate:modelValue":t[5]||(t[5]=E=>e.form.y=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.y_unit,"onUpdate:modelValue":t[4]||(t[4]=E=>e.form.y_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.shadow.vague")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:e.form.vague,"onUpdate:modelValue":t[7]||(t[7]=E=>e.form.vague=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.vague_unit,"onUpdate:modelValue":t[6]||(t[6]=E=>e.form.vague_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.shadow.extend")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:e.form.extend,"onUpdate:modelValue":t[9]||(t[9]=E=>e.form.extend=E),type:"number",onChange:e.onInput},{append:n.withCtx(()=>[n.createVNode(C,{modelValue:e.form.extend_unit,"onUpdate:modelValue":t[8]||(t[8]=E=>e.form.extend_unit=E),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.units,E=>(n.openBlock(),n.createBlock(y,{key:E,label:E,value:E},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1}),n.createElementVNode("div",$R,[n.createElementVNode("div",{ref:"box",class:n.normalizeClass(["_fd-sc-box",e.down?"down":""]),onClick:t[10]||(t[10]=E=>e.getMouseXY(E,1)),onMousedown:t[11]||(t[11]=(...E)=>e.onMousedown&&e.onMousedown(...E)),onMouseup:t[12]||(t[12]=(...E)=>e.onMouseup&&e.onMouseup(...E)),onMousemove:t[13]||(t[13]=E=>e.getMouseXY(E,0))},[n.createElementVNode("span",{class:"spot",style:n.normalizeStyle(e.spotStyle)},t[14]||(t[14]=[n.createElementVNode("i",{class:"spot-id"},null,-1)]),4),t[15]||(t[15]=n.createElementVNode("span",{class:"center-spot"},null,-1)),t[16]||(t[16]=n.createElementVNode("div",{class:"x-hr"},null,-1)),t[17]||(t[17]=n.createElementVNode("div",{class:"y-hr"},null,-1))],34)])])}const FR=Te(BR,[["render",IR]]),Hj="",PR=n.defineComponent({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:Fn,ShadowContent:FR},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},data(){const e=this.designer.setupState.t;return{t:e,options:[{label:e("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:e("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:e("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(e){this.value=e}},created(){}}),MR={class:"_fd-shadow-input"};function LR(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),h=n.resolveComponent("el-input"),m=n.resolveComponent("ShadowContent"),y=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",MR,[n.createVNode(y,{label:e.t("style.shadow.name")},{append:n.withCtx(()=>[n.createVNode(m,{modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=C=>e.value=C)},null,8,["modelValue"])]),default:n.withCtx(()=>[n.createVNode(h,{clearable:"",modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=C=>e.value=C),class:"_fd-si-input"},{append:n.withCtx(()=>[n.createVNode(u,null,{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,C=>(n.openBlock(),n.createBlock(d,{onClick:A=>e.changeValue(C.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(C.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])])}const jR=Te(PR,[["render",LR]]),Wj="",zR=n.defineComponent({name:"TableOptions",components:{ValueInput:Kl},emits:["update:modelValue","change"],props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,keyValue:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t},overColumn(){let e=this.column;if(this.checked){for(let t=0;t<e.length;t++)if(e[t].key===this.keyValue)return[e[t]]}return e}},data(){return{value:this.tidyModelValue(),checked:!1}},created(){this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.input()}))},methods:{isChecked(){for(let e=0;e<this.value.length;e++){const t=this.value[e],r=Object.keys(t),o=t[this.keyValue];for(let i=0;i<r.length;i++)if(o!==t[r[i]])return!1}return!0},tidyModelValue(){const e=this.modelValue;return this.valueType==="string"?(e||[]).map(t=>({value:""+t})):this.valueType==="object"?Object.keys(e||{}).map(t=>({label:t,value:e[t]})):[...e||[]].map(t=>O_(t))},tidyValue(){if(this.valueType==="object"){const e={};return this.value.forEach(t=>{t.label&&t.value&&(e[t.label]=t.value)}),e}else return this.value.map(e=>{if(this.valueType==="string")return e.value;if(this.checked){const t=e[this.keyValue];return this.column.reduce((r,o)=>(r[o.key]=t,r),{})}else return{...e}})},onInput(e){if(this.column.length===1&&e[this.column[0].key]==="")return;this.column.every(r=>r.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?e[r.key]!==void 0&&e[r.key]!==""&&e[r.key]!==null:e[r.key]!==void 0)&&this.input()},input(){const e=this.tidyValue();this.$emit("update:modelValue",e),this.$emit("change",e)},add(){this.value.push(this.column.reduce((e,t)=>(e[t.key]="",e),{}))},del(e){this.value.splice(e,1),this.input()}}}),UR={class:"_td-table-opt"},HR=["onClick"],WR={class:"_td-table-opt-handle"};function GR(e,t,r,o,i,l){const d=n.resolveComponent("ValueInput"),c=n.resolveComponent("el-input"),u=n.resolveComponent("el-table-column"),h=n.resolveComponent("el-table"),m=n.resolveComponent("el-button"),y=n.resolveComponent("el-checkbox");return n.openBlock(),n.createElementBlock("div",UR,[(n.openBlock(),n.createBlock(h,{data:e.value,key:e.checked?"2":"1",border:"",size:e.size||"small",style:{width:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.overColumn,(C,A)=>(n.openBlock(),n.createBlock(u,{key:C.label+A,label:C.label},{default:n.withCtx(w=>[C.value?(n.openBlock(),n.createBlock(d,{key:0,size:e.size||"small",modelValue:w.row[C.key],"onUpdate:modelValue":E=>w.row[C.key]=E,onBlur:E=>e.onInput(w.row),onChangeType:E=>e.onInput(w.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(n.openBlock(),n.createBlock(c,{key:1,size:e.size||"small",modelValue:w.row[C.key],"onUpdate:modelValue":E=>w.row[C.key]=E,onBlur:E=>e.onInput(w.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur"]))]),_:2},1032,["label"]))),128)),n.createVNode(u,{width:"35",align:"center",fixed:"right"},{default:n.withCtx(C=>[n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:A=>e.del(C.$index)},null,8,HR)]),_:1})]),_:1},8,["data","size"])),n.createElementVNode("div",WR,[!e.max||e.max>e.value.length?(n.openBlock(),n.createBlock(m,{key:0,link:"",type:"primary",onClick:e.add},{default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.keyValue?(n.openBlock(),n.createBlock(y,{key:1,modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=C=>e.checked=C),label:e.t("tableOptions.keyValue")},null,8,["modelValue","label"])):n.createCommentVNode("",!0)])])}const Ev=Te(zR,[["render",GR]]),Gj="",KR=n.defineComponent({name:"BoxSpaceInput",components:{ConfigItem:Fn},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(e=>{this.boxStyle[e]=this.modelValue[e]||"",this.position.forEach(t=>{this.boxStyle[e+t]=this.tidySize(this.modelValue[e+t]||this.modelValue[e]||"")})})},onInput(){const e=Object.keys(this.boxStyle).reduce((t,r)=>(this.boxStyle[r]!==""&&(t[r]=this.boxStyle[r]),t),{});this.$emit("update:modelValue",e),this.$emit("change",e)},tidySize(e){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(e)){if(e==="auto")return e;const r=parseInt(e);return isNaN(r)?"":r+"px"}return e},setValue(e,t,r){const o=this.tidySize(r.target.value);e?this[e+"Lock"]?this.position.forEach(i=>{this.boxStyle[e+i]=o}):this.boxStyle[e+t]=o:this.boxStyle[t]=o,this.onInput()},change(e,t){this.boxStyle[e]=t.target.value},clear(e){this.position.forEach(t=>{this.boxStyle[e+t]=""}),this.onInput()},lock(e){const t=e+"Lock";this[t]=!this[t]}},created(){this.tidyValue()}}),YR={class:"_fd-box-space-input"},QR={class:"_padding"},JR={class:"_padding-title"},XR=["value"],ZR=["value"],qR=["value"],e$=["value"],t$={class:"_fd-help"},n$={class:"_margin"},i$={class:"_margin-title"},r$={class:"_fd-help"},o$=["value"],a$=["value"],l$=["value"],s$=["value"];function d$(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",YR,[n.createElementVNode("div",QR,[n.createElementVNode("span",JR,n.toDisplayString(e.t("style.margin")),1),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.marginTop,type:"text",onBlur:t[0]||(t[0]=d=>e.setValue("margin","Top",d)),onInput:t[1]||(t[1]=d=>e.change("marginTop",d))},null,40,XR),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.marginRight,type:"text",onBlur:t[2]||(t[2]=d=>e.setValue("margin","Right",d)),onInput:t[3]||(t[3]=d=>e.change("marginRight",d))},null,40,ZR),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.marginBottom,type:"text",onBlur:t[4]||(t[4]=d=>e.setValue("margin","Bottom",d)),onInput:t[5]||(t[5]=d=>e.change("marginBottom",d))},null,40,qR),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.marginLeft,type:"text",onBlur:t[6]||(t[6]=d=>e.setValue("margin","Left",d)),onInput:t[7]||(t[7]=d=>e.change("marginLeft",d))},null,40,e$),n.createElementVNode("div",t$,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.marginLock?"active":""]),title:"lock",onClick:t[8]||(t[8]=d=>e.lock("margin"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[9]||(t[9]=d=>e.clear("margin"))})]),n.createElementVNode("div",n$,[n.createElementVNode("span",i$,n.toDisplayString(e.t("style.padding")),1),n.createElementVNode("div",r$,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-link2",e.paddingLock?"active":""]),title:"lock",onClick:t[10]||(t[10]=d=>e.lock("padding"))},null,2),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:t[11]||(t[11]=d=>e.clear("padding"))})]),n.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:e.boxStyle.paddingTop,type:"text",onBlur:t[12]||(t[12]=d=>e.setValue("padding","Top",d)),onInput:t[13]||(t[13]=d=>e.change("paddingTop",d))},null,40,o$),n.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:e.boxStyle.paddingRight,type:"text",onBlur:t[14]||(t[14]=d=>e.setValue("padding","Right",d)),onInput:t[15]||(t[15]=d=>e.change("paddingRight",d))},null,40,a$),n.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:e.boxStyle.paddingBottom,type:"text",onBlur:t[16]||(t[16]=d=>e.setValue("padding","Bottom",d)),onInput:t[17]||(t[17]=d=>e.change("paddingBottom",d))},null,40,l$),n.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:e.boxStyle.paddingLeft,type:"text",onBlur:t[18]||(t[18]=d=>e.setValue("padding","Left",d)),onInput:t[19]||(t[19]=d=>e.change("paddingLeft",d))},null,40,s$),t[20]||(t[20]=n.createElementVNode("div",{class:"_box"},null,-1))])])])}const c$=Te(KR,[["render",d$]]),Kj="",Sv=["display","flexDirection","flexWrap","alignContent","justifyContent","alignItems"],Av=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],xv=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],kv=["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",...Sv,...Av,...xv],u$=n.defineComponent({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{BoxSpaceInput:c$,TableOptions:Ev,ColorInput:oo,ConfigItem:Fn,DisplayInput:OR,RadiusInput:_R,BoxSizeInput:eR,BorderInput:pR,ShadowInput:jR,FontInput:xR},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue:{handler(){this.tidyStyle()},deep:!0}},data(){return{t:this.designer.setupState.t,formData:{},space:{},size:{},border:{},display:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const e={...this.modelValue||{}},t={};Object.keys(e).forEach(u=>{const h=id(u);(["margin","padding"].indexOf(u)>-1||u.indexOf("margin")>-1||u.indexOf("padding")>-1)&&(t[h]=e[u])});const r={};xv.forEach(u=>{e[u]&&(r[u]=e[u])}),this.radius=e.borderRadius||"",delete e.borderRadius;const o={};Object.keys(e).forEach(u=>{u.indexOf("border")===0&&(o[u]=e[u])});let i=si(e.opacity)?100:parseFloat(e.opacity)||0;i&&i<1&&(i=i*100);let l=e.scale;si(e.scale)?l=100:isNaN(Number(l))?l=parseFloat(l)||100:l=l>0?l*100:0;const d={};Sv.forEach(u=>{e[u]&&(d[u]=e[u])});const c={};Av.forEach(u=>{e[u]&&(c[u]=e[u])}),this.opacity=i,this.scale=l,this.size=r,this.space=t,this.border=o,this.display=d,this.font=c,this.boxShadow=e.boxShadow||"",this.color=e.color||"",this.backgroundColor=e.backgroundColor||"",kv.forEach(u=>{delete e[u]}),this.formData=e},onInput(){let e={...this.formData},t={};kv.forEach(o=>{if(e[o])t[o]=e[o],delete e[o];else{const i=la(o);e[i]&&(t[o]=e[i],delete e[i])}});const r={...e,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.display,...this.font,...t};Object.keys(r).forEach(o=>{si(r[o])&&delete r[o]}),this.$emit("update:modelValue",r)}},created(){this.tidyStyle()}}),f$={class:"_fd-style-config"};function p$(e,t,r,o,i,l){const d=n.resolveComponent("BoxSpaceInput"),c=n.resolveComponent("BoxSizeInput"),u=n.resolveComponent("DisplayInput"),h=n.resolveComponent("ColorInput"),m=n.resolveComponent("ConfigItem"),y=n.resolveComponent("BorderInput"),C=n.resolveComponent("RadiusInput"),A=n.resolveComponent("FontInput"),w=n.resolveComponent("ShadowInput"),E=n.resolveComponent("el-slider"),b=n.resolveComponent("TableOptions");return n.openBlock(),n.createElementBlock("div",f$,[n.createVNode(d,{modelValue:e.space,"onUpdate:modelValue":t[0]||(t[0]=g=>e.space=g),onChange:e.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),n.createVNode(c,{modelValue:e.size,"onUpdate:modelValue":t[1]||(t[1]=g=>e.size=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(u,{modelValue:e.display,"onUpdate:modelValue":t[2]||(t[2]=g=>e.display=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(m,{label:e.t("style.color")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.color,"onUpdate:modelValue":t[3]||(t[3]=g=>e.color=g),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.backgroundColor")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.backgroundColor,"onUpdate:modelValue":t[4]||(t[4]=g=>e.backgroundColor=g),onChange:e.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),n.createVNode(y,{modelValue:e.border,"onUpdate:modelValue":t[5]||(t[5]=g=>e.border=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(C,{modelValue:e.radius,"onUpdate:modelValue":t[6]||(t[6]=g=>e.radius=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(A,{modelValue:e.font,"onUpdate:modelValue":t[7]||(t[7]=g=>e.font=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(w,{modelValue:e.boxShadow,"onUpdate:modelValue":t[8]||(t[8]=g=>e.boxShadow=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createVNode(m,{label:e.t("style.opacity"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(E,{"show-tooltip":!1,modelValue:e.opacity,"onUpdate:modelValue":t[9]||(t[9]=g=>e.opacity=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.opacity)+"%",1)]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.scale"),class:"_fd-opacity-input"},{default:n.withCtx(()=>[n.createVNode(E,{min:80,max:120,"show-tooltip":!1,modelValue:e.scale,"onUpdate:modelValue":t[10]||(t[10]=g=>e.scale=g),onChange:e.onInput},null,8,["modelValue","onChange"]),n.createElementVNode("span",null,n.toDisplayString(e.scale)+"%",1)]),_:1},8,["label"]),n.createVNode(m,{label:e.t("props.custom"),info:Object.keys(e.formData).length>0?e.t("struct.configured"):""},{append:n.withCtx(()=>[n.createVNode(b,n.mergeProps({modelValue:e.formData,"onUpdate:modelValue":t[11]||(t[11]=g=>e.formData=g),onChange:e.onInput},{column:[{label:e.t("props.key"),key:"label"},{label:e.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])])}const Nv=Te(u$,[["render",p$]]);(function(e,t){(function(r){r(Zr())})(function(r){r.defineMode("css",function(N,B){var L=B.inline;B.propertyKeywords||(B=r.resolveMode("text/css"));var U=N.indentUnit,H=B.tokenHooks,R=B.documentTypes||{},z=B.mediaTypes||{},$=B.mediaFeatures||{},S=B.mediaValueKeywords||{},J=B.propertyKeywords||{},Q=B.nonStandardPropertyKeywords||{},G=B.fontProperties||{},ie=B.counterDescriptors||{},X=B.colorKeywords||{},le=B.valueKeywords||{},be=B.allowNested,ce=B.lineComment,de=B.supportsAtComponent===!0,pe=N.highlightNonStandardPropertyKeywords!==!1,se,ge;function ye(fe,ke){return se=ke,fe}function D(fe,ke){var we=fe.next();if(H[we]){var He=H[we](fe,ke);if(He!==!1)return He}if(we=="@")return fe.eatWhile(/[\w\\\-]/),ye("def",fe.current());if(we=="="||(we=="~"||we=="|")&&fe.eat("="))return ye(null,"compare");if(we=='"'||we=="'")return ke.tokenize=W(we),ke.tokenize(fe,ke);if(we=="#")return fe.eatWhile(/[\w\\\-]/),ye("atom","hash");if(we=="!")return fe.match(/^\s*\w*/),ye("keyword","important");if(/\d/.test(we)||we=="."&&fe.eat(/\d/))return fe.eatWhile(/[\w.%]/),ye("number","unit");if(we==="-"){if(/[\d.]/.test(fe.peek()))return fe.eatWhile(/[\w.%]/),ye("number","unit");if(fe.match(/^-[\w\\\-]*/))return fe.eatWhile(/[\w\\\-]/),fe.match(/^\s*:/,!1)?ye("variable-2","variable-definition"):ye("variable-2","variable");if(fe.match(/^\w+-/))return ye("meta","meta")}else return/[,+>*\/]/.test(we)?ye(null,"select-op"):we=="."&&fe.match(/^-?[_a-z][_a-z0-9-]*/i)?ye("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(we)?ye(null,we):fe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(fe.current())&&(ke.tokenize=Y),ye("variable callee","variable")):/[\w\\\-]/.test(we)?(fe.eatWhile(/[\w\\\-]/),ye("property","word")):ye(null,null)}function W(fe){return function(ke,we){for(var He=!1,et;(et=ke.next())!=null;){if(et==fe&&!He){fe==")"&&ke.backUp(1);break}He=!He&&et=="\\"}return(et==fe||!He&&fe!=")")&&(we.tokenize=null),ye("string","string")}}function Y(fe,ke){return fe.next(),fe.match(/^\s*[\"\')]/,!1)?ke.tokenize=null:ke.tokenize=W(")"),ye(null,"(")}function q(fe,ke,we){this.type=fe,this.indent=ke,this.prev=we}function ee(fe,ke,we,He){return fe.context=new q(we,ke.indentation()+(He===!1?0:U),fe.context),we}function oe(fe){return fe.context.prev&&(fe.context=fe.context.prev),fe.context.type}function he(fe,ke,we){return Le[we.context.type](fe,ke,we)}function Ae(fe,ke,we,He){for(var et=He||1;et>0;et--)we.context=we.context.prev;return he(fe,ke,we)}function Me(fe){var ke=fe.current().toLowerCase();le.hasOwnProperty(ke)?ge="atom":X.hasOwnProperty(ke)?ge="keyword":ge="variable"}var Le={};return Le.top=function(fe,ke,we){if(fe=="{")return ee(we,ke,"block");if(fe=="}"&&we.context.prev)return oe(we);if(de&&/@component/i.test(fe))return ee(we,ke,"atComponentBlock");if(/^@(-moz-)?document$/i.test(fe))return ee(we,ke,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(fe))return ee(we,ke,"atBlock");if(/^@(font-face|counter-style)/i.test(fe))return we.stateArg=fe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(fe))return"keyframes";if(fe&&fe.charAt(0)=="@")return ee(we,ke,"at");if(fe=="hash")ge="builtin";else if(fe=="word")ge="tag";else{if(fe=="variable-definition")return"maybeprop";if(fe=="interpolation")return ee(we,ke,"interpolation");if(fe==":")return"pseudo";if(be&&fe=="(")return ee(we,ke,"parens")}return we.context.type},Le.block=function(fe,ke,we){if(fe=="word"){var He=ke.current().toLowerCase();return J.hasOwnProperty(He)?(ge="property","maybeprop"):Q.hasOwnProperty(He)?(ge=pe?"string-2":"property","maybeprop"):be?(ge=ke.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return fe=="meta"?"block":!be&&(fe=="hash"||fe=="qualifier")?(ge="error","block"):Le.top(fe,ke,we)},Le.maybeprop=function(fe,ke,we){return fe==":"?ee(we,ke,"prop"):he(fe,ke,we)},Le.prop=function(fe,ke,we){if(fe==";")return oe(we);if(fe=="{"&&be)return ee(we,ke,"propBlock");if(fe=="}"||fe=="{")return Ae(fe,ke,we);if(fe=="(")return ee(we,ke,"parens");if(fe=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ke.current()))ge+=" error";else if(fe=="word")Me(ke);else if(fe=="interpolation")return ee(we,ke,"interpolation");return"prop"},Le.propBlock=function(fe,ke,we){return fe=="}"?oe(we):fe=="word"?(ge="property","maybeprop"):we.context.type},Le.parens=function(fe,ke,we){return fe=="{"||fe=="}"?Ae(fe,ke,we):fe==")"?oe(we):fe=="("?ee(we,ke,"parens"):fe=="interpolation"?ee(we,ke,"interpolation"):(fe=="word"&&Me(ke),"parens")},Le.pseudo=function(fe,ke,we){return fe=="meta"?"pseudo":fe=="word"?(ge="variable-3",we.context.type):he(fe,ke,we)},Le.documentTypes=function(fe,ke,we){return fe=="word"&&R.hasOwnProperty(ke.current())?(ge="tag",we.context.type):Le.atBlock(fe,ke,we)},Le.atBlock=function(fe,ke,we){if(fe=="(")return ee(we,ke,"atBlock_parens");if(fe=="}"||fe==";")return Ae(fe,ke,we);if(fe=="{")return oe(we)&&ee(we,ke,be?"block":"top");if(fe=="interpolation")return ee(we,ke,"interpolation");if(fe=="word"){var He=ke.current().toLowerCase();He=="only"||He=="not"||He=="and"||He=="or"?ge="keyword":z.hasOwnProperty(He)?ge="attribute":$.hasOwnProperty(He)?ge="property":S.hasOwnProperty(He)?ge="keyword":J.hasOwnProperty(He)?ge="property":Q.hasOwnProperty(He)?ge=pe?"string-2":"property":le.hasOwnProperty(He)?ge="atom":X.hasOwnProperty(He)?ge="keyword":ge="error"}return we.context.type},Le.atComponentBlock=function(fe,ke,we){return fe=="}"?Ae(fe,ke,we):fe=="{"?oe(we)&&ee(we,ke,be?"block":"top",!1):(fe=="word"&&(ge="error"),we.context.type)},Le.atBlock_parens=function(fe,ke,we){return fe==")"?oe(we):fe=="{"||fe=="}"?Ae(fe,ke,we,2):Le.atBlock(fe,ke,we)},Le.restricted_atBlock_before=function(fe,ke,we){return fe=="{"?ee(we,ke,"restricted_atBlock"):fe=="word"&&we.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):he(fe,ke,we)},Le.restricted_atBlock=function(fe,ke,we){return fe=="}"?(we.stateArg=null,oe(we)):fe=="word"?(we.stateArg=="@font-face"&&!G.hasOwnProperty(ke.current().toLowerCase())||we.stateArg=="@counter-style"&&!ie.hasOwnProperty(ke.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Le.keyframes=function(fe,ke,we){return fe=="word"?(ge="variable","keyframes"):fe=="{"?ee(we,ke,"top"):he(fe,ke,we)},Le.at=function(fe,ke,we){return fe==";"?oe(we):fe=="{"||fe=="}"?Ae(fe,ke,we):(fe=="word"?ge="tag":fe=="hash"&&(ge="builtin"),"at")},Le.interpolation=function(fe,ke,we){return fe=="}"?oe(we):fe=="{"||fe==";"?Ae(fe,ke,we):(fe=="word"?ge="variable":fe!="variable"&&fe!="("&&fe!=")"&&(ge="error"),"interpolation")},{startState:function(fe){return{tokenize:null,state:L?"block":"top",stateArg:null,context:new q(L?"block":"top",fe||0,null)}},token:function(fe,ke){if(!ke.tokenize&&fe.eatSpace())return null;var we=(ke.tokenize||D)(fe,ke);return we&&typeof we=="object"&&(se=we[1],we=we[0]),ge=we,se!="comment"&&(ke.state=Le[ke.state](se,fe,ke)),ge},indent:function(fe,ke){var we=fe.context,He=ke&&ke.charAt(0),et=we.indent;return we.type=="prop"&&(He=="}"||He==")")&&(we=we.prev),we.prev&&(He=="}"&&(we.type=="block"||we.type=="top"||we.type=="interpolation"||we.type=="restricted_atBlock")?(we=we.prev,et=we.indent):(He==")"&&(we.type=="parens"||we.type=="atBlock_parens")||He=="{"&&(we.type=="at"||we.type=="atBlock"))&&(et=Math.max(0,we.indent-U))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ce,fold:"brace"}});function o(N){for(var B={},L=0;L<N.length;++L)B[N[L].toLowerCase()]=!0;return B}var i=["domain","regexp","url","url-prefix"],l=o(i),d=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],c=o(d),u=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],h=o(u),m=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],y=o(m),C=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],A=o(C),w=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],E=o(w),b=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],g=o(b),_=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],x=o(_),k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],T=o(k),O=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],F=o(O),I=i.concat(d).concat(u).concat(m).concat(C).concat(w).concat(k).concat(O);r.registerHelper("hintWords","css",I);function M(N,B){for(var L=!1,U;(U=N.next())!=null;){if(L&&U=="/"){B.tokenize=null;break}L=U=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:l,mediaTypes:c,mediaFeatures:h,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:E,fontProperties:g,counterDescriptors:x,colorKeywords:T,valueKeywords:F,tokenHooks:{"/":function(N,B){return N.eat("*")?(B.tokenize=M,M(N,B)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:c,mediaFeatures:h,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:E,colorKeywords:T,valueKeywords:F,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(N,B){return N.eat("/")?(N.skipToEnd(),["comment","comment"]):N.eat("*")?(B.tokenize=M,M(N,B)):["operator","operator"]},":":function(N){return N.match(/^\s*\{/,!1)?[null,null]:!1},$:function(N){return N.match(/^[\w-]+/),N.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(N){return N.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:c,mediaFeatures:h,mediaValueKeywords:y,propertyKeywords:A,nonStandardPropertyKeywords:E,colorKeywords:T,valueKeywords:F,fontProperties:g,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(N,B){return N.eat("/")?(N.skipToEnd(),["comment","comment"]):N.eat("*")?(B.tokenize=M,M(N,B)):["operator","operator"]},"@":function(N){return N.eat("{")?[null,"interpolation"]:N.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(N.eatWhile(/[\w\\\-]/),N.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:c,mediaFeatures:h,propertyKeywords:A,nonStandardPropertyKeywords:E,fontProperties:g,counterDescriptors:x,colorKeywords:T,valueKeywords:F,supportsAtComponent:!0,tokenHooks:{"/":function(N,B){return N.eat("*")?(B.tokenize=M,M(N,B)):!1}},name:"css",helperType:"gss"})})})();const Yj="",h$=n.defineComponent({name:"StyleEditor",props:{modelValue:String},data(){return{editor:null,oldVal:null}},mounted(){this.$nextTick(()=>{this.load()})},methods:{load(){const e=this.modelValue;this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"css",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?io.css(e,{indent_size:2,indent_char:" ",indent_scripts:"separate"}):""}))})},save(){const e=this.editor.getValue();return e!==this.oldVal&&this.$emit("update:modelValue",e),!0}}}),m$={class:"_fd-style-editor"},g$={ref:"editor"};function v$(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",m$,[n.createElementVNode("div",g$,null,512)])}const y$=Te(h$,[["render",v$]]),Qj="",b$=n.defineComponent({name:"GlobalClassConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,StyleEditor:y$,StyleConfig:Nv},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:"",styleEl:null,content:"",activeStyle:!1}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length},fnArgs(){return[on(this.t)]}},watch:{visible(e){e&&(this.activeIdx="",this.value=rt(this.modelValue||{}))},modelValue(){this.updateGlobalStyle()}},methods:{open(){this.visible=!0},changeStyle(){this.content=this.designer.setupState.formOptions.style||`#_demo1{
|
||
display:flex;
|
||
}
|
||
|
||
._demo2{
|
||
display:flex;
|
||
}`,this.activeStyle=!0,this.activeIdx=""},active(e){this.activeStyle=!1,this.activeIdx!==e&&(this.handle=this.value[e].style||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="cls_"+We();this.value[t]={label:e,style:{}},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){this.activeStyle?(this.$refs.editor.save(),this.designer.setupState.formOptions.style=this.content,this.activeStyle=!1):(this.value[this.activeIdx].style=this.handle,this.activeIdx="")},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){(this.activeIdx||this.activeStyle)&&this.save(),this.$emit("update:modelValue",{...this.value}),this.visible=!1},updateGlobalStyle(){let e="";const t=this.modelValue||{};Object.keys(t).forEach(r=>{let o="";t[r].style&&Object.keys(t[r].style).forEach(i=>{o+=la(i)+":"+t[r].style[i]+";"}),t[r].content&&(o+=t[r].content+";"),o&&(e+=`.${r}{${o}}`)}),e&&(this.styleEl.innerHTML=e)}},created(){this.styleEl=n.markRaw(document.createElement("style")),this.styleEl.type="text/css",document.head.appendChild(this.styleEl),this.updateGlobalStyle()},unmounted(){document.head.removeChild(this.styleEl)}}),w$={class:"_fd-gcc"},C$={class:"_fd-gcc-method"},_$={class:"_fd-label"},E$=["onClick"],S$={class:"_fd-gcc-method"},A$={key:0,class:"_fd-label"},x$=["onClick"];function k$(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-header"),m=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-input"),C=n.resolveComponent("el-menu"),A=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),b=n.resolveComponent("StyleEditor"),g=n.resolveComponent("StyleConfig"),_=n.resolveComponent("el-form"),x=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",w$,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:e.open,size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.title")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(x,{class:"_fd-gcc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[8]||(t[8]=k=>e.visible=k),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"700px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.globalClass"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalClass")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[7]||(t[7]=k=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-l"},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-gcc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(m,{class:n.normalizeClass({"is-active":e.activeStyle,"_fd-gcc-default":!0})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:t[0]||(t[0]=n.withModifiers((...k)=>e.changeStyle&&e.changeStyle(...k),["stop"]))},[n.createElementVNode("div",C$,[n.createElementVNode("span",_$,n.toDisplayString(e.t("form.globalClass")),1)])])]),_:1},8,["class"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(k,T)=>(n.openBlock(),n.createBlock(m,{class:n.normalizeClass({"is-active":T===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:n.withModifiers(O=>e.active(T),["stop"])},[n.createElementVNode("div",S$,[n.createElementVNode("span",null,"."+n.toDisplayString(T),1),k.label?(n.openBlock(),n.createElementBlock("span",A$,n.toDisplayString(k.label),1)):n.createCommentVNode("",!0)]),k.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(O=>e.rm(T),["stop"])},null,8,x$)):n.createCommentVNode("",!0)],8,E$)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(m,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gcc-title",onClick:t[4]||(t[4]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[1]||(t[1]=k=>e.cusValue=k),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("class.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[2]||(t[2]=n.withModifiers((...k)=>e.addCus&&e.addCus(...k),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[3]||(t[3]=n.withModifiers((...k)=>e.closeCus&&e.closeCus(...k),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-r"},{default:n.withCtx(()=>[e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-gcc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx||e.activeStyle?(n.openBlock(),n.createBlock(A,{key:e.activeIdx,class:n.normalizeClass(e.activeStyle?"_fd-gcc-style":"")},{default:n.withCtx(()=>[e.activeStyle?(n.openBlock(),n.createBlock(b,{key:0,ref:"editor",modelValue:e.content,"onUpdate:modelValue":t[5]||(t[5]=k=>e.content=k)},null,8,["modelValue"])):(n.openBlock(),n.createBlock(_,{key:1,size:"small"},{default:n.withCtx(()=>[n.createVNode(g,{modelValue:e.handle,"onUpdate:modelValue":t[6]||(t[6]=k=>e.handle=k)},null,8,["modelValue"])]),_:1}))]),_:1},8,["class"])):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Tv=Te(b$,[["render",k$]]),Jj="",N$=n.defineComponent({name:"GlobalVariableConfig",emits:["update:modelValue"],props:{modelValue:Object},components:{Warning:Xn,FnEditor:Ni},inject:["designer"],data(){return{visible:!1,activeIdx:"",value:{},cus:!1,cusValue:"",handle:""}},computed:{t(){return this.designer.setupState.t},eventNum(){return Object.keys(this.modelValue||{}).length}},watch:{visible(e){e&&(this.activeIdx="",this.value=rt(this.modelValue||{}))}},methods:{open(){this.visible=!0},active(e){this.activeIdx!==e&&(this.handle=this.value[e].handle||"",this.activeIdx=e)},addCus(){const e=this.cusValue&&this.cusValue.trim();if(e){const t="var_"+We();this.value[t]={label:e,handle:""},this.active(t),this.closeCus()}},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},save(){if(!this.$refs.editor.save())return!1;this.value[this.activeIdx].handle=this.handle,this.activeIdx=""},rm(e){delete this.value[e],e===this.activeIdx&&(this.activeIdx="")},close(){this.activeIdx=""},submit(){this.activeIdx&&!this.save()||(this.$emit("update:modelValue",{...this.value}),this.visible=!1)}}}),T$={class:"_fd-gvc"},D$=["onClick"],V$={class:"_fd-gvc-method"},O$={key:0,class:"_fd-label"},B$=["onClick"];function R$(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("el-header"),m=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-input"),C=n.resolveComponent("el-menu"),A=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),b=n.resolveComponent("FnEditor"),g=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",T$,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:e.open,size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.btn")),1)]),_:1},8,["onClick"])]),_:1},8,["value","hidden"]),n.createVNode(g,{class:"_fd-gvc-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[6]||(t[6]=_=>e.visible=_),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.title"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.globalVariable")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[5]||(t[5]=_=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-l"},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-gvc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{link:"",type:"primary",size:"default",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("computed.variable.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(C,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(_,x)=>(n.openBlock(),n.createBlock(m,{class:n.normalizeClass({"is-active":x===e.activeIdx})},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gvc-title",onClick:n.withModifiers(k=>e.active(x),["stop"])},[n.createElementVNode("div",V$,[n.createElementVNode("span",null,n.toDisplayString(x),1),_.label?(n.openBlock(),n.createElementBlock("span",O$,n.toDisplayString(_.label),1)):n.createCommentVNode("",!0)]),_.deletable!==!1?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-delete",onClick:n.withModifiers(k=>e.rm(x),["stop"])},null,8,B$)):n.createCommentVNode("",!0)],8,D$)]),_:2},1032,["class"]))),256)),e.cus?(n.openBlock(),n.createBlock(m,{key:0,style:{"padding-left":"10px"}},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-gvc-title",onClick:t[3]||(t[3]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(y,{type:"text",modelValue:e.cusValue,"onUpdate:modelValue":t[0]||(t[0]=_=>e.cusValue=_),size:"default",onKeydown:n.withKeys(e.addCus,["enter"]),placeholder:e.t("computed.variable.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),n.createElementVNode("div",null,[n.createElementVNode("i",{class:"fc-icon icon-add",onClick:t[1]||(t[1]=n.withModifiers((..._)=>e.addCus&&e.addCus(..._),["stop"]))}),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:t[2]||(t[2]=n.withModifiers((..._)=>e.closeCus&&e.closeCus(..._),["stop"]))})])])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gvc-r"},{default:n.withCtx(()=>[e.activeIdx?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-gvc-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeIdx?(n.openBlock(),n.createBlock(A,{key:e.activeIdx},{default:n.withCtx(()=>[n.createVNode(b,{ref:"editor",modelValue:e.handle,"onUpdate:modelValue":t[4]||(t[4]=_=>e.handle=_),name:"handle",args:["get","api"]},null,8,["modelValue"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Dv=Te(N$,[["render",R$]]),Xj="",$$=n.defineComponent({name:"JsonPreview",components:{StructEditor:rf},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=ze.toJson(this.value)},handleBlur(){let e;this.$refs.editor.save()&&(e=ze.toJson(this.value))!==this.oldValue&&(this.active==="rule"?this.designer.setupState.setRule(e):this.designer.setupState.setOptions(this.value||{}))}},mounted(){this.$watch(()=>this.change,()=>{this.updateValue()},{deep:!0})}});function I$(e,t,r,o,i,l){const d=n.resolveComponent("el-header"),c=n.resolveComponent("StructEditor"),u=n.resolveComponent("el-main"),h=n.resolveComponent("el-container");return n.openBlock(),n.createBlock(h,{class:"_fc-json-preview"},{default:n.withCtx(()=>[n.createVNode(d,{height:"40px",class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="rule"}]),onClick:t[0]||(t[0]=m=>e.active="rule")},n.toDisplayString(e.t("designer.json")),3),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.active==="options"}]),onClick:t[1]||(t[1]=m=>e.active="options")},n.toDisplayString(e.t("designer.form")),3)]),_:1}),n.createVNode(u,{style:{padding:"8px"}},{default:n.withCtx(()=>[n.createVNode(c,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=m=>e.value=m),onBlur:e.handleBlur,onFocus:e.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const F$=Te($$,[["render",I$]]),Zj="",P$=n.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!dt.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(e){e&&this.load()}},methods:{load(){const e=En(wp(this.modelValue?rt(this.modelValue):this.defaultValue));this.oldVal=e,this.$nextTick(()=>{this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:e?io.js(e,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const e=(this.editor.getValue()||"").trim();let t;try{t=new Function("return "+e)()}catch(r){return console.error(r),dn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(t)===!1?(dn(this.t("struct.errorMsg")),!1):(this.visible=!1,En(t)!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),M$={class:"_fd-struct"},L$={key:0,ref:"editor"};function j$(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",M$,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createElementVNode("div",{onClick:t[0]||(t[0]=h=>e.visible=!0)},[n.renderSlot(e.$slots,"default",{},()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1})])])]),_:3},8,["hidden"]),n.createVNode(u,{class:"_fd-struct-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=h=>e.visible=h),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=h=>e.visible=!1),size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",L$,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const Vv=Te(P$,[["render",j$]]),qj="",z$=n.defineComponent({name:"PropsInput",components:{Struct:Vv},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var r;const e=((r=this.activeRule._fc_store)==null?void 0:r.props_keys)||[],t={};return e.forEach(o=>{this.activeRule.props&&this.activeRule.props[o]!=null&&(t[o]=this.activeRule.props[o])}),t}},methods:{onInput(e){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(r=>{(e||{})[r]==null&&delete this.activeRule.props[r]}),yl(this.activeRule.props,e||{});const t=Object.keys(e||{});t.length?this.activeRule._fc_store.props_keys=t:delete this.activeRule._fc_store.props_keys}}});function U$(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("Struct");return n.openBlock(),n.createBlock(c,{class:"_fd-props-input",modelValue:e.props,"onUpdate:modelValue":e.onInput,title:e.t("designer.customProps")},{default:n.withCtx(()=>[n.createVNode(d,{effect:"dark",content:e.t("designer.customProps"),placement:"top","hide-after":0},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1)])),_:1},8,["content"])]),_:1},8,["modelValue","onUpdate:modelValue","title"])}const H$=Te(z$,[["render",U$]]),ez="",W$=n.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(e){di(e)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(e,t){e.input=t||!1;const r=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{r[o.value]||(r[o.value]={}),r[o.value][e.key]=e[o.value]})},rmColumn(e){const t=this.column[e];this.column.splice(e,1);const r=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{r[o.value]&&delete r[o.value][t.key]})},batchRmColumn(){this.selected.forEach(e=>{this.rmColumn(this.column.indexOf(e))}),this.selected=[]},selectionChange(e){this.selected=e},randomString(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let t="";const r=e.length;for(let o=0;o<7;o++)t+=e.charAt(Math.floor(Math.random()*r));return e.charAt(this.uni++%26)+t}},mounted(){const e=this.designer.setupState.formOptions.language||{},t={};Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(o=>{t[o]||(t[o]={key:o}),t[o][r]=e[r][o]})}),this.column=Object.values(t)}}),G$={class:"_fd-language-config"},K$={class:"_fc-l-label"},Y$={class:"_fc-l-info"},Q$={class:"_fd-lc-header"},J$={class:"_fd-lc-body"},X$={class:"_fd-lc-handle"},Z$=["onClick"],q$=["onClick"],eI=["onClick"],tI=["onClick"];function nI(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-table-column"),u=n.resolveComponent("el-input"),h=n.resolveComponent("el-table");return n.openBlock(),n.createElementBlock("div",G$,[n.createElementVNode("div",K$,n.toDisplayString(e.t("language.name")),1),n.createElementVNode("div",Y$,n.toDisplayString(e.t("warning.language")),1),n.createElementVNode("div",Q$,[n.createVNode(d,{size:"small",onClick:e.addColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.add")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"danger",plain:"",disabled:!e.selected.length,onClick:e.batchRmColumn},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),n.createElementVNode("div",J$,[n.createVNode(h,{data:e.column,size:"small",ref:"table",onSelectionChange:e.selectionChange,"row-key":"key"},{default:n.withCtx(()=>[n.createVNode(c,{type:"selection",width:"30px"}),n.createVNode(c,{prop:"key",label:"Key",width:"90px"}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeOptions,m=>(n.openBlock(),n.createBlock(c,{key:m.value,prop:m.value,label:m.label,"min-width":"100px"},{default:n.withCtx(y=>[y.row.input?(n.openBlock(),n.createBlock(u,{key:0,size:"small",modelValue:y.row[m.value],"onUpdate:modelValue":C=>y.row[m.value]=C,onBlur:C=>e.saveColumn(y.row,!0)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(y.row[m.value]||"-"),1)],64))]),_:2},1032,["prop","label"]))),128)),n.createVNode(c,{width:"75px",label:e.t("tableOptions.handle"),fixed:"right"},{default:n.withCtx(m=>[n.createElementVNode("div",X$,[m.row.input?(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-check",onClick:y=>e.saveColumn(m.row)},null,8,q$)):(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:y=>m.row.input=!0},null,8,Z$)),n.createElementVNode("i",{class:"fc-icon icon-group",onClick:y=>e.copy(m.row.key)},null,8,eI),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:y=>e.rmColumn(m.$index)},null,8,tI)])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])])])}const iI=Te(W$,[["render",nI]]),tz="",rI=n.defineComponent({name:"SlotsConfig",inject:["designer"],components:{ConfigItem:Fn},data(){return{type:["icon","text"],easySlots:{}}},computed:{t(){return this.designer.setupState.t},slots(){var r,o;const e=((o=(r=this.designer.setupState)==null?void 0:r.activeRule)==null?void 0:o._menu)||{};return(e.easySlots||[]).map(i=>{if(typeof i=="string")return{value:i,label:this.t("com."+e.name+".slots."+i)||this.t("slots."+i)||this.t("props."+i)||i};{const l={...i};return l.label||(l.label=this.t("com."+e.name+".slots."+i.value)||this.t("slots."+i.value)||this.t("props."+i.value)||i.value),l}})},modelValue(){var e,t;return((t=(e=this.designer.setupState)==null?void 0:e.activeRule)==null?void 0:t.$easySlots)||{}},icons(){return Ga([...this.designer.setupState.getConfig("icons",[]),"icon-layout","icon-column1","icon-column2","icon-column3","icon-column4","icon-tab","icon-config-event","icon-step-form","icon-slider","icon-dialog","icon-justify-spacearound","icon-upload","icon-copy","icon-time-range","icon-task-add","icon-justify-spacebetween","icon-import","icon-config-base","icon-alignitems-stretch","icon-alignitems-flexend","icon-check","icon-auto","icon-calendar","icon-config-style","icon-config-advanced","icon-config-props","icon-delete-circle2","icon-delete-circle","icon-delete","icon-direction-rowreverse","icon-display-flex","icon-drag","icon-display-block","icon-data","icon-edit2","icon-edit","icon-add-col","icon-display-inlineblock","icon-config-validate","icon-down","icon-display-inline","icon-eye","icon-eye-close","icon-preview","icon-flex-nowrap","icon-folder","icon-form-circle","icon-flex-wrap","icon-form","icon-form-item","icon-icon","icon-image","icon-justify-flexstart","icon-justify-center","icon-justify-stretch","icon-link2","icon-minus","icon-menu2","icon-more","icon-menu","icon-language","icon-pad","icon-mobile","icon-page-max","icon-move","icon-page-min","icon-pre-step","icon-pc","icon-page","icon-refresh","icon-radius","icon-save-filled","icon-question","icon-scroll","icon-script","icon-setting","icon-save","icon-shadow","icon-variable","icon-yes","icon-shadow-inset","icon-date","icon-date-range","icon-collapse","icon-switch","icon-subform","icon-tree-select","icon-value","icon-alert","icon-card","icon-checkbox","icon-cascader","icon-button","icon-data-table","icon-group","icon-divider","icon-flex","icon-descriptions","icon-html","icon-editor","icon-input","icon-link","icon-password","icon-radio","icon-row","icon-inline","icon-rate","icon-color","icon-select","icon-json","icon-number","icon-space","icon-table-form","icon-table-form2","icon-time","icon-span","icon-textarea","icon-tooltip","icon-slot","icon-transfer","icon-tag","icon-watermark","icon-tree","icon-table","icon-add-child","icon-add2","icon-add","icon-alignitems-baseline","icon-add-circle","icon-alignitems-center"])}},watch:{modelValue:{handler:function(e){const t={};this.slots.forEach(({value:r,label:o,type:i})=>{e[r]?t[r]={...e[r]}:this.easySlots[r]?t[r]={type:this.easySlots[r].type}:t[r]={type:i||"icon",value:""},t[r].only=i,t[r].label=o}),this.easySlots=t},immediate:!0}},methods:{changeIcon(e,t,r){e.value=t,this.onChange(),this.$refs[r][0].hide()},changeType(e){e.value&&(e.value="",this.onChange())},onChange(){var e;if((e=this.designer.setupState)!=null&&e.activeRule){const t={};Object.keys(this.easySlots).forEach(r=>{this.easySlots[r].value&&(t[r]={...this.easySlots[r]},delete t[r].label,delete t[r].only)}),Object.keys(t).length===0?delete this.designer.setupState.activeRule.$easySlots:this.designer.setupState.activeRule.$easySlots=t,this.designer.setupState.activeRule.key=We()}}},mounted(){}}),oI={class:"_fd-slots-config"},aI={class:"_fd-slots-icons"},lI=["onClick"];function sI(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-popover"),h=n.resolveComponent("el-input"),m=n.resolveComponent("ConfigItem");return n.openBlock(),n.createElementBlock("div",oI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.easySlots,(y,C)=>(n.openBlock(),n.createBlock(m,{label:y.label},{default:n.withCtx(()=>[n.createVNode(h,{size:"small",modelValue:y.value,"onUpdate:modelValue":A=>y.value=A,clearable:"",onBlur:e.onChange},n.createSlots({_:2},[y.only?void 0:{name:"prepend",fn:n.withCtx(()=>[n.createVNode(c,{size:"small",modelValue:y.type,"onUpdate:modelValue":A=>y.type=A,onChange:A=>e.changeType(y)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,A=>(n.openBlock(),n.createBlock(d,{label:e.t("props."+A),value:A},null,8,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),key:"0"},y.type==="icon"?{name:"append",fn:n.withCtx(()=>[n.createVNode(u,{ref_for:!0,ref:C,placement:"bottom","popper-class":"_fd-slots-config-pop",width:400,trigger:"click"},{reference:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)])),default:n.withCtx(()=>[n.createElementVNode("div",aI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.icons,A=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-slots-icon",onClick:w=>e.changeIcon(y,A,C)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon iconfont",A])},null,2)],8,lI))),256))])]),_:2},1536)]),key:"1"}:void 0]),1032,["modelValue","onUpdate:modelValue","onBlur"])]),_:2},1032,["label"]))),256))])}const dI=Te(rI,[["render",sI]]),nz="",cI=n.defineComponent({name:"QuickLayout",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},layout(){return[{span:24,label:this.t("designer.col1")},{span:12,label:this.t("designer.col2")},{span:8,label:this.t("designer.col3")},{span:6,label:this.t("designer.col4")}]}},methods:{check(e){var r,o,i,l,d;if((r=e==null?void 0:e._menu)!=null&&r.subForm)return!1;let t=e.__fc__.parent;for(;t;){if(((i=(o=t.rule)==null?void 0:o._menu)==null?void 0:i.menu)==="layout"||((d=(l=t.rule)==null?void 0:l._menu)==null?void 0:d.subForm))return!1;t=t.parent}return!0},change(e){const t=this.designer.setupState.dragForm.api.model(),r=this.layout[e].span;let o=!1;Object.keys(t).forEach(i=>{(Array.isArray(t[i])?t[i]:[t[i]]).forEach(d=>{this.check(d)&&(d.col||(d.col={}),o=o||d.col.span!==r,d.col.span=r)})}),this.$refs.pop.hide(),o&&this.designer.setupState.addOperationRecord()}}}),uI={class:"_fd-quick-layout"},fI={class:"_fd-quick-layout-content"},pI=["onClick"];function hI(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-popover");return n.openBlock(),n.createElementBlock("div",uI,[n.createVNode(c,{ref:"pop",placement:"bottom",width:240,"hide-after":0,trigger:"click"},{reference:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{effect:"dark",content:e.t("designer.layout"),placement:"top","hide-after":0},{default:n.withCtx(()=>t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-layout"},null,-1)])),_:1},8,["content"])])]),default:n.withCtx(()=>[n.createElementVNode("div",fI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,(u,h)=>(n.openBlock(),n.createElementBlock("div",{onClick:m=>e.change(h)},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon","icon-column"+(h+1)])},null,2),n.createElementVNode("span",null,n.toDisplayString(u.label),1)],8,pI))),256))])]),_:1},512)])}const mI=Te(cI,[["render",hI]]),iz="",gI=n.defineComponent({name:"PrintForm",components:{SizeInput:ro,Warning:Xn,ViewForm:An.$form()},inject:["designer"],data(){return{visible:!1,printing:!1,frame:null,rule:[],options:{},padding:["top","bottom","left","right"],formData:{type:"form",style:"default",left:20,right:20,top:20,bottom:20,width:780}}},computed:{t(){return this.designer.setupState.t}},watch:{visible(e){e?(this.rule=An.parseJson(this.designer.setupState.getPreviewRule()),this.options=An.parseJson(this.designer.setupState.getOptionsJson()),this.options.submitBtn=!1,this.options.resetBtn=!1):(this.printing=!1,this.frame&&(document.body.removeChild(this.frame),this.frame=null))},"formData.type":function(e){this.options.preview=e==="read"}},methods:{open(){this.visible=!0},disableImageSmoothing(e){e.imageSmoothingEnabled=!1,e.mozImageSmoothingEnabled=!1,e.webkitImageSmoothingEnabled=!1,e.msImageSmoothingEnabled=!1},print(e){this.printing=!0,nn.ready(["html2canvas","jspdf"],()=>{window.html2canvas(this.$refs.form.$el,{allowTaint:!0,useCORS:!0}).then(t=>{const r=new window.jspdf.jsPDF({orientation:"p",unit:"pt",format:"a4"});this.disableImageSmoothing(t.getContext("2d"));const{left:o,right:i,top:l,bottom:d}=this.formData,c=r.internal.pageSize.getWidth(),u=r.internal.pageSize.getHeight(),h=c-o-i,m=u-l-d,y=t.height*h/t.width;if(y<=m)r.addImage(t.toDataURL("image/jpeg"),"JPEG",o,l,h,y);else{let C=y,A=0;const w=t.width*m/h;for(;C>0;){const E=document.createElement("canvas"),b=E.getContext("2d");this.disableImageSmoothing(b);const g=A*w,_=Math.min(w,t.height-g);E.width=t.width,E.height=_,b.drawImage(t,0,g,t.width,_,0,0,t.width,_);const x=_/t.height*y;r.addImage(E.toDataURL("image/jpeg"),"JPEG",o,l,h,x),C-=m,C>0&&(r.addPage(),A++)}}e?(this.printing=!1,window.open(URL.createObjectURL(r.output("blob")))):this.printPdf(r)}).catch(t=>{this.printing=!1})})},printPdf(e){if(!this.frame){const t=n.markRaw(document.createElement("iframe"));t.style.width="0",t.style.position="absolute",t.style.height="0",t.style.border="none",t.onload=function(){setTimeout(()=>{t.contentWindow.print()},100)},document.body.appendChild(t),this.frame=t}this.frame.src=URL.createObjectURL(e.output("blob")),this.printing=!1}},created(){window.html2canvas?nn.done("html2canvas"):nn.isDefined("html2canvas")||nn.loadNpm("html2canvas@1.4.1/dist/html2canvas.min.js","html2canvas"),window.jspdf?nn.done("jspdf"):nn.isDefined("jspdf")||nn.loadNpm("jspdf@3.0.1/dist/jspdf.umd.js","jspdf")}}),vI={class:"_fd-print"};function yI(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-header"),u=n.resolveComponent("el-radio-button"),h=n.resolveComponent("el-radio-group"),m=n.resolveComponent("el-form-item"),y=n.resolveComponent("el-input-number"),C=n.resolveComponent("el-form"),A=n.resolveComponent("el-main"),w=n.resolveComponent("el-container"),E=n.resolveComponent("el-aside"),b=n.resolveComponent("ViewForm"),g=n.resolveComponent("el-button"),_=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",vI,[n.createVNode(d,{effect:"dark",content:e.t("designer.print.title"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-print",onClick:t[0]||(t[0]=(...x)=>e.open&&e.open(...x))})]),_:1},8,["content"]),n.createVNode(_,{class:"_fd-print-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[7]||(t[7]=x=>e.visible=x),"destroy-on-close":"","close-on-click-modal":!1,title:e.t("designer.print.title"),"append-to-body":"",width:"1080px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(g,{size:"default",onClick:t[4]||(t[4]=x=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(g,{size:"default",onClick:t[5]||(t[5]=x=>e.print(!0))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.export")),1)]),_:1}),n.createVNode(g,{type:"primary",size:"default",onClick:t[6]||(t[6]=x=>e.print(!1)),loading:e.printing},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.print")),1)]),_:1},8,["loading"])])]),default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(E,{style:{width:"255px"}},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-l"},{default:n.withCtx(()=>[n.createVNode(c,{class:"_fd-print-head",height:"40px"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.config")),1)]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(C,{"label-position":"top",size:"small"},{default:n.withCtx(()=>[n.createVNode(m,{label:e.t("props.mode")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.formData.type,"onUpdate:modelValue":t[1]||(t[1]=x=>e.formData.type=x)},{default:n.withCtx(()=>[n.createVNode(u,{value:"form"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.formMode")),1)]),_:1}),n.createVNode(u,{value:"read"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.previewMode")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("props.style")},{default:n.withCtx(()=>[n.createVNode(h,{modelValue:e.formData.style,"onUpdate:modelValue":t[2]||(t[2]=x=>e.formData.style=x)},{default:n.withCtx(()=>[n.createVNode(u,{value:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.defaultStyle")),1)]),_:1}),n.createVNode(u,{value:"word"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.print.wordStyle")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),n.createVNode(m,{label:e.t("style.width")},{default:n.withCtx(()=>[n.createVNode(y,{min:300,"controls-position":"right",modelValue:e.formData.width,"onUpdate:modelValue":t[3]||(t[3]=x=>e.formData.width=x)},null,8,["modelValue"])]),_:1},8,["label"]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.padding,x=>(n.openBlock(),n.createBlock(m,{key:x,label:e.t("designer.print."+x)},{default:n.withCtx(()=>[n.createVNode(y,{min:0,"controls-position":"right",modelValue:e.formData[x],"onUpdate:modelValue":k=>e.formData[x]=k},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),n.createVNode(A,null,{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-print-r"},{default:n.withCtx(()=>[n.createVNode(A,null,{default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createBlock(b,{key:0,class:n.normalizeClass(["_fd-print-form",{"_fd-print-form-word":e.formData.style==="word"}]),ref:"form",rule:e.rule,option:e.options,style:n.normalizeStyle({width:e.formData.width>0?e.formData.width+"px":"100%"})},n.createSlots({_:2},[n.renderList(e.$slots,(x,k)=>({name:k,fn:n.withCtx(T=>[n.renderSlot(e.$slots,k,n.normalizeProps(n.guardReactiveProps(T!=null?T:{})))])}))]),1032,["class","rule","option","style"])):n.createCommentVNode("",!0)]),_:3})]),_:3})]),_:3})]),_:3})]),_:3},8,["modelValue","title"])])}const bI=Te(gI,[["render",yI]]),rz="",wI=n.defineComponent({name:"AiChat",inject:["designer"],data(){return{message:"",page:0,limit:3,pageData:[],question:["\u751F\u6210\u4E00\u4E2A\u5C31\u8BCA\u6EE1\u610F\u5EA6\u95EE\u5377\u8868\u5355","\u521B\u5EFA\u4E00\u4E2A\u5EFA\u8BAE\u6536\u96C6\u8868\u5355\uFF0C\u5305\u542B\u8054\u7CFB\u4EBA\u3001\u8054\u7CFB\u90AE\u7BB1\u3001\u5206\u7C7B\u548C\u5EFA\u8BAE\u5185\u5BB9","\u8FFD\u52A0\u4E00\u4E2A\u7528\u6237\u4FE1\u606F\u8868\u5355",'\u6DFB\u52A0\u4E00\u4E2A\u6807\u7B7E\u7EC4\u4EF6\uFF0C\u663E\u793A\u6587\u672C\u4E3A "Tag"',"\u5220\u9664\u5546\u54C1\u7B80\u4ECB\u5B57\u6BB5",'\u5F53\u5355\u9009\u6846\u9009\u62E9 "\u9009\u98791" \u65F6\uFF0C\u663E\u793A\u8F93\u5165\u6846\u7EC4\u4EF6',"\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u5FC5\u586B\uFF0C\u5E76\u9650\u5236\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E13","\u5546\u54C1\u4EF7\u683C\u5B57\u6BB5\u4F7F\u7528\u6570\u5B57\u8F93\u5165\u6846\u7EC4\u4EF6","\u7ED9\u8F93\u5165\u7C7B\u7EC4\u4EF6\u8865\u5145\u5360\u4F4D\u63D0\u793A\u6587\u672C\uFF08placeholder\uFF09"],chat:null,history:[]}},computed:{t(){return this.designer.setupState.t},api(){var e,t;return((t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.api)||"https://api.form-create.com/ai/v1/chat/form"},token(){var e,t;return(t=(e=this.designer.props.config)==null?void 0:e.ai)==null?void 0:t.token}},methods:{refresh(){this.page*this.limit<this.question.length?this.page++:this.page=1;const e=(this.page-1)*this.limit,t=e+this.limit;this.pageData=this.question.slice(e,t)},send(){const e=(this.message||"").trim();!e||(this.chat={message:e,status:"loading"},this.history.push(this.chat),this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})}),this.message="",this.fetch())},suspend(){this.chat.status="success",this.chat=null},fetch(){fetch(this.api,{method:"POST",headers:{Authorization:this.token,"Content-Type":"application/json"},body:JSON.stringify({ui:"element-plus",message:this.chat.message,rule:this.designer.setupState.getJson()})}).then(e=>{e.json().then(t=>{this.chat&&(t.status===200?(this.chat.status="success",this.designer.setupState.setRule(t.data.rule)):(this.chat.status="fail",t.message&&rd(t.message)),this.chat=null)})}).catch(()=>{this.chat=null})},getHistory(){const e=localStorage.getItem("fc_ai_history");e&&(this.history=JSON.parse(e))},clear(){this.history=[],localStorage.removeItem("fc_ai_history")}},created(){this.getHistory(),this.refresh()},mounted(){this.$refs.chat&&this.$nextTick(()=>{this.$refs.chat[this.$refs.chat.length-1].scrollIntoView({block:"end"})})},unmounted(){localStorage.setItem("fc_ai_history",JSON.stringify(this.history))}}),CI={class:"_fd-ai-chat"},_I={class:"_fd-ai-chat-header"},EI={class:"_fc-l-label"},SI={class:"_fc-l-info"},AI={class:"_fd-ai-chat-prompt"},xI=["onClick"],kI={class:"_fd-ai-chat-history"},NI={class:"_fd-ai-chat-history-chat"},TI={key:0},DI={key:1},VI={key:2},OI={class:"_fd-ai-chat-input"},BI={class:"_fd-ai-chat-clear"};function RI(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-input");return n.openBlock(),n.createElementBlock("div",CI,[n.createElementVNode("div",_I,[n.createElementVNode("div",EI,[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)),n.createTextVNode(" FormCreate "+n.toDisplayString(e.t("ai.name")),1)]),n.createElementVNode("div",SI,n.toDisplayString(e.t("ai.info")),1),n.createElementVNode("div",AI,[n.createElementVNode("span",null,n.toDisplayString(e.t("ai.try")),1),n.createElementVNode("span",{class:"_fd-ai-chat-refresh",onClick:t[0]||(t[0]=(...u)=>e.refresh&&e.refresh(...u))},[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-refresh2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.change")),1)])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.pageData,u=>(n.openBlock(),n.createElementBlock("div",{class:"_fd-ai-chat-question",onClick:h=>e.message=u},[n.createElementVNode("span",null,n.toDisplayString(u),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-down"},null,-1))],8,xI))),256))]),n.createElementVNode("div",kI,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.history,(u,h)=>(n.openBlock(),n.createElementBlock("div",{key:h,class:"_fd-ai-chat-history-item",ref_for:!0,ref:"chat"},[n.createElementVNode("div",NI,[n.createElementVNode("div",null,n.toDisplayString(u.message),1)]),n.createElementVNode("div",{class:n.normalizeClass(["_fd-ai-chat-history-status",u.status||"success"])},[n.createElementVNode("div",null,[u.status==="loading"?(n.openBlock(),n.createElementBlock("div",TI,n.toDisplayString(e.t("ai.loading")),1)):u.status==="fail"?(n.openBlock(),n.createElementBlock("div",DI,[t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-warning"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.fail")),1)])):(n.openBlock(),n.createElementBlock("div",VI,[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-yes"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("ai.success")),1)]))])],2)],512))),128))]),n.createElementVNode("div",OI,[n.createElementVNode("div",BI,[n.createVNode(d,{size:"small",text:"",round:"",onClick:e.clear},{default:n.withCtx(()=>t[9]||(t[9]=[n.createElementVNode("i",{class:"fc-icon icon-delete2"},null,-1),n.createTextVNode(" \u6E05\u7A7A")])),_:1},8,["onClick"])]),n.createVNode(c,{type:"textarea",modelValue:e.message,"onUpdate:modelValue":t[1]||(t[1]=u=>e.message=u),placeholder:e.t("ai.placeholder"),resize:"none"},null,8,["modelValue","placeholder"]),e.chat&&e.chat.status==="loading"?(n.openBlock(),n.createElementBlock("div",{key:0,class:"fc-icon icon-suspend",onClick:t[2]||(t[2]=(...u)=>e.suspend&&e.suspend(...u))})):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["fc-icon icon-send",{disabled:!e.message||!e.message.trim()}]),onClick:t[3]||(t[3]=(...u)=>e.send&&e.send(...u))},null,2))])])}const $I=Te(wI,[["render",RI]]);function Ov(e,t){return function(){return e.apply(t,arguments)}}const{toString:II}=Object.prototype,{getPrototypeOf:of}=Object,{iterator:as,toStringTag:Bv}=Symbol,ls=(e=>t=>{const r=II.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Zn=e=>(e=e.toLowerCase(),t=>ls(t)===e),ss=e=>t=>typeof t===e,{isArray:ao}=Array,ca=ss("undefined");function FI(e){return e!==null&&!ca(e)&&e.constructor!==null&&!ca(e.constructor)&&Nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Rv=Zn("ArrayBuffer");function PI(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Rv(e.buffer),t}const MI=ss("string"),Nn=ss("function"),$v=ss("number"),ds=e=>e!==null&&typeof e=="object",LI=e=>e===!0||e===!1,cs=e=>{if(ls(e)!=="object")return!1;const t=of(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Bv in e)&&!(as in e)},jI=Zn("Date"),zI=Zn("File"),UI=Zn("Blob"),HI=Zn("FileList"),WI=e=>ds(e)&&Nn(e.pipe),GI=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nn(e.append)&&((t=ls(e))==="formdata"||t==="object"&&Nn(e.toString)&&e.toString()==="[object FormData]"))},KI=Zn("URLSearchParams"),[YI,QI,JI,XI]=["ReadableStream","Request","Response","Headers"].map(Zn),ZI=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ua(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let o,i;if(typeof e!="object"&&(e=[e]),ao(e))for(o=0,i=e.length;o<i;o++)t.call(null,e[o],o,e);else{const l=r?Object.getOwnPropertyNames(e):Object.keys(e),d=l.length;let c;for(o=0;o<d;o++)c=l[o],t.call(null,e[c],c,e)}}function Iv(e,t){t=t.toLowerCase();const r=Object.keys(e);let o=r.length,i;for(;o-- >0;)if(i=r[o],t===i.toLowerCase())return i;return null}const vr=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Fv=e=>!ca(e)&&e!==vr;function af(){const{caseless:e}=Fv(this)&&this||{},t={},r=(o,i)=>{const l=e&&Iv(t,i)||i;cs(t[l])&&cs(o)?t[l]=af(t[l],o):cs(o)?t[l]=af({},o):ao(o)?t[l]=o.slice():t[l]=o};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ua(arguments[o],r);return t}const qI=(e,t,r,{allOwnKeys:o}={})=>(ua(t,(i,l)=>{r&&Nn(i)?e[l]=Ov(i,r):e[l]=i},{allOwnKeys:o}),e),eF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tF=(e,t,r,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},nF=(e,t,r,o)=>{let i,l,d;const c={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),l=i.length;l-- >0;)d=i[l],(!o||o(d,e,t))&&!c[d]&&(t[d]=e[d],c[d]=!0);e=r!==!1&&of(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},iF=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const o=e.indexOf(t,r);return o!==-1&&o===r},rF=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!$v(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},oF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&of(Uint8Array)),aF=(e,t)=>{const o=(e&&e[as]).call(e);let i;for(;(i=o.next())&&!i.done;){const l=i.value;t.call(e,l[0],l[1])}},lF=(e,t)=>{let r;const o=[];for(;(r=e.exec(t))!==null;)o.push(r);return o},sF=Zn("HTMLFormElement"),dF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,o,i){return o.toUpperCase()+i}),Pv=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),cF=Zn("RegExp"),Mv=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),o={};ua(r,(i,l)=>{let d;(d=t(i,l,e))!==!1&&(o[l]=d||i)}),Object.defineProperties(e,o)},uF=e=>{Mv(e,(t,r)=>{if(Nn(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const o=e[r];if(!!Nn(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},fF=(e,t)=>{const r={},o=i=>{i.forEach(l=>{r[l]=!0})};return ao(e)?o(e):o(String(e).split(t)),r},pF=()=>{},hF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function mF(e){return!!(e&&Nn(e.append)&&e[Bv]==="FormData"&&e[as])}const gF=e=>{const t=new Array(10),r=(o,i)=>{if(ds(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[i]=o;const l=ao(o)?[]:{};return ua(o,(d,c)=>{const u=r(d,i+1);!ca(u)&&(l[c]=u)}),t[i]=void 0,l}}return o};return r(e,0)},vF=Zn("AsyncFunction"),yF=e=>e&&(ds(e)||Nn(e))&&Nn(e.then)&&Nn(e.catch),Lv=((e,t)=>e?setImmediate:t?((r,o)=>(vr.addEventListener("message",({source:i,data:l})=>{i===vr&&l===r&&o.length&&o.shift()()},!1),i=>{o.push(i),vr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Nn(vr.postMessage)),bF=typeof queueMicrotask<"u"?queueMicrotask.bind(vr):typeof process<"u"&&process.nextTick||Lv,xe={isArray:ao,isArrayBuffer:Rv,isBuffer:FI,isFormData:GI,isArrayBufferView:PI,isString:MI,isNumber:$v,isBoolean:LI,isObject:ds,isPlainObject:cs,isReadableStream:YI,isRequest:QI,isResponse:JI,isHeaders:XI,isUndefined:ca,isDate:jI,isFile:zI,isBlob:UI,isRegExp:cF,isFunction:Nn,isStream:WI,isURLSearchParams:KI,isTypedArray:oF,isFileList:HI,forEach:ua,merge:af,extend:qI,trim:ZI,stripBOM:eF,inherits:tF,toFlatObject:nF,kindOf:ls,kindOfTest:Zn,endsWith:iF,toArray:rF,forEachEntry:aF,matchAll:lF,isHTMLForm:sF,hasOwnProperty:Pv,hasOwnProp:Pv,reduceDescriptors:Mv,freezeMethods:uF,toObjectSet:fF,toCamelCase:dF,noop:pF,toFiniteNumber:hF,findKey:Iv,global:vr,isContextDefined:Fv,isSpecCompliantForm:mF,toJSONObject:gF,isAsyncFn:vF,isThenable:yF,setImmediate:Lv,asap:bF,isIterable:e=>e!=null&&Nn(e[as])};function ft(e,t,r,o,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),o&&(this.request=o),i&&(this.response=i,this.status=i.status?i.status:null)}xe.inherits(ft,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:xe.toJSONObject(this.config),code:this.code,status:this.status}}});const jv=ft.prototype,zv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{zv[e]={value:e}}),Object.defineProperties(ft,zv),Object.defineProperty(jv,"isAxiosError",{value:!0}),ft.from=(e,t,r,o,i,l)=>{const d=Object.create(jv);return xe.toFlatObject(e,d,function(u){return u!==Error.prototype},c=>c!=="isAxiosError"),ft.call(d,e.message,t,r,o,i),d.cause=e,d.name=e.name,l&&Object.assign(d,l),d};const wF=null;function lf(e){return xe.isPlainObject(e)||xe.isArray(e)}function Uv(e){return xe.endsWith(e,"[]")?e.slice(0,-2):e}function Hv(e,t,r){return e?e.concat(t).map(function(i,l){return i=Uv(i),!r&&l?"["+i+"]":i}).join(r?".":""):t}function CF(e){return xe.isArray(e)&&!e.some(lf)}const _F=xe.toFlatObject(xe,{},null,function(t){return/^is[A-Z]/.test(t)});function us(e,t,r){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=xe.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,b){return!xe.isUndefined(b[E])});const o=r.metaTokens,i=r.visitor||m,l=r.dots,d=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&xe.isSpecCompliantForm(t);if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function h(w){if(w===null)return"";if(xe.isDate(w))return w.toISOString();if(!u&&xe.isBlob(w))throw new ft("Blob is not supported. Use a Buffer instead.");return xe.isArrayBuffer(w)||xe.isTypedArray(w)?u&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function m(w,E,b){let g=w;if(w&&!b&&typeof w=="object"){if(xe.endsWith(E,"{}"))E=o?E:E.slice(0,-2),w=JSON.stringify(w);else if(xe.isArray(w)&&CF(w)||(xe.isFileList(w)||xe.endsWith(E,"[]"))&&(g=xe.toArray(w)))return E=Uv(E),g.forEach(function(x,k){!(xe.isUndefined(x)||x===null)&&t.append(d===!0?Hv([E],k,l):d===null?E:E+"[]",h(x))}),!1}return lf(w)?!0:(t.append(Hv(b,E,l),h(w)),!1)}const y=[],C=Object.assign(_F,{defaultVisitor:m,convertValue:h,isVisitable:lf});function A(w,E){if(!xe.isUndefined(w)){if(y.indexOf(w)!==-1)throw Error("Circular reference detected in "+E.join("."));y.push(w),xe.forEach(w,function(g,_){(!(xe.isUndefined(g)||g===null)&&i.call(t,g,xe.isString(_)?_.trim():_,E,C))===!0&&A(g,E?E.concat(_):[_])}),y.pop()}}if(!xe.isObject(e))throw new TypeError("data must be an object");return A(e),t}function Wv(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function sf(e,t){this._pairs=[],e&&us(e,this,t)}const Gv=sf.prototype;Gv.append=function(t,r){this._pairs.push([t,r])},Gv.toString=function(t){const r=t?function(o){return t.call(this,o,Wv)}:Wv;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function EF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Kv(e,t,r){if(!t)return e;const o=r&&r.encode||EF;xe.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let l;if(i?l=i(t,r):l=xe.isURLSearchParams(t)?t.toString():new sf(t,r).toString(o),l){const d=e.indexOf("#");d!==-1&&(e=e.slice(0,d)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class SF{constructor(){this.handlers=[]}use(t,r,o){return this.handlers.push({fulfilled:t,rejected:r,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){xe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const Yv=SF,Qv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},AF={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:sf,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},df=typeof window<"u"&&typeof document<"u",cf=typeof navigator=="object"&&navigator||void 0,xF=df&&(!cf||["ReactNative","NativeScript","NS"].indexOf(cf.product)<0),kF=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NF=df&&window.location.href||"http://localhost",un={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:df,hasStandardBrowserWebWorkerEnv:kF,hasStandardBrowserEnv:xF,navigator:cf,origin:NF},Symbol.toStringTag,{value:"Module"})),...AF};function TF(e,t){return us(e,new un.classes.URLSearchParams,Object.assign({visitor:function(r,o,i,l){return un.isNode&&xe.isBuffer(r)?(this.append(o,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function DF(e){return xe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function VF(e){const t={},r=Object.keys(e);let o;const i=r.length;let l;for(o=0;o<i;o++)l=r[o],t[l]=e[l];return t}function Jv(e){function t(r,o,i,l){let d=r[l++];if(d==="__proto__")return!0;const c=Number.isFinite(+d),u=l>=r.length;return d=!d&&xe.isArray(i)?i.length:d,u?(xe.hasOwnProp(i,d)?i[d]=[i[d],o]:i[d]=o,!c):((!i[d]||!xe.isObject(i[d]))&&(i[d]=[]),t(r,o,i[d],l)&&xe.isArray(i[d])&&(i[d]=VF(i[d])),!c)}if(xe.isFormData(e)&&xe.isFunction(e.entries)){const r={};return xe.forEachEntry(e,(o,i)=>{t(DF(o),i,r,0)}),r}return null}function OF(e,t,r){if(xe.isString(e))try{return(t||JSON.parse)(e),xe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(r||JSON.stringify)(e)}const uf={transitional:Qv,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const o=r.getContentType()||"",i=o.indexOf("application/json")>-1,l=xe.isObject(t);if(l&&xe.isHTMLForm(t)&&(t=new FormData(t)),xe.isFormData(t))return i?JSON.stringify(Jv(t)):t;if(xe.isArrayBuffer(t)||xe.isBuffer(t)||xe.isStream(t)||xe.isFile(t)||xe.isBlob(t)||xe.isReadableStream(t))return t;if(xe.isArrayBufferView(t))return t.buffer;if(xe.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return TF(t,this.formSerializer).toString();if((c=xe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return us(c?{"files[]":t}:t,u&&new u,this.formSerializer)}}return l||i?(r.setContentType("application/json",!1),OF(t)):t}],transformResponse:[function(t){const r=this.transitional||uf.transitional,o=r&&r.forcedJSONParsing,i=this.responseType==="json";if(xe.isResponse(t)||xe.isReadableStream(t))return t;if(t&&xe.isString(t)&&(o&&!this.responseType||i)){const d=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(c){if(d)throw c.name==="SyntaxError"?ft.from(c,ft.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:un.classes.FormData,Blob:un.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};xe.forEach(["delete","get","head","post","put","patch"],e=>{uf.headers[e]={}});const ff=uf,BF=xe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),RF=e=>{const t={};let r,o,i;return e&&e.split(`
|
||
`).forEach(function(d){i=d.indexOf(":"),r=d.substring(0,i).trim().toLowerCase(),o=d.substring(i+1).trim(),!(!r||t[r]&&BF[r])&&(r==="set-cookie"?t[r]?t[r].push(o):t[r]=[o]:t[r]=t[r]?t[r]+", "+o:o)}),t},Xv=Symbol("internals");function fa(e){return e&&String(e).trim().toLowerCase()}function fs(e){return e===!1||e==null?e:xe.isArray(e)?e.map(fs):String(e)}function $F(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=r.exec(e);)t[o[1]]=o[2];return t}const IF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function pf(e,t,r,o,i){if(xe.isFunction(o))return o.call(this,t,r);if(i&&(t=r),!!xe.isString(t)){if(xe.isString(o))return t.indexOf(o)!==-1;if(xe.isRegExp(o))return o.test(t)}}function FF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,o)=>r.toUpperCase()+o)}function PF(e,t){const r=xe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+r,{value:function(i,l,d){return this[o].call(this,t,i,l,d)},configurable:!0})})}class ps{constructor(t){t&&this.set(t)}set(t,r,o){const i=this;function l(c,u,h){const m=fa(u);if(!m)throw new Error("header name must be a non-empty string");const y=xe.findKey(i,m);(!y||i[y]===void 0||h===!0||h===void 0&&i[y]!==!1)&&(i[y||u]=fs(c))}const d=(c,u)=>xe.forEach(c,(h,m)=>l(h,m,u));if(xe.isPlainObject(t)||t instanceof this.constructor)d(t,r);else if(xe.isString(t)&&(t=t.trim())&&!IF(t))d(RF(t),r);else if(xe.isObject(t)&&xe.isIterable(t)){let c={},u,h;for(const m of t){if(!xe.isArray(m))throw TypeError("Object iterator must return a key-value pair");c[h=m[0]]=(u=c[h])?xe.isArray(u)?[...u,m[1]]:[u,m[1]]:m[1]}d(c,r)}else t!=null&&l(r,t,o);return this}get(t,r){if(t=fa(t),t){const o=xe.findKey(this,t);if(o){const i=this[o];if(!r)return i;if(r===!0)return $F(i);if(xe.isFunction(r))return r.call(this,i,o);if(xe.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=fa(t),t){const o=xe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!r||pf(this,this[o],o,r)))}return!1}delete(t,r){const o=this;let i=!1;function l(d){if(d=fa(d),d){const c=xe.findKey(o,d);c&&(!r||pf(o,o[c],c,r))&&(delete o[c],i=!0)}}return xe.isArray(t)?t.forEach(l):l(t),i}clear(t){const r=Object.keys(this);let o=r.length,i=!1;for(;o--;){const l=r[o];(!t||pf(this,this[l],l,t,!0))&&(delete this[l],i=!0)}return i}normalize(t){const r=this,o={};return xe.forEach(this,(i,l)=>{const d=xe.findKey(o,l);if(d){r[d]=fs(i),delete r[l];return}const c=t?FF(l):String(l).trim();c!==l&&delete r[l],r[c]=fs(i),o[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return xe.forEach(this,(o,i)=>{o!=null&&o!==!1&&(r[i]=t&&xe.isArray(o)?o.join(", "):o)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
|
||
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const o=new this(t);return r.forEach(i=>o.set(i)),o}static accessor(t){const o=(this[Xv]=this[Xv]={accessors:{}}).accessors,i=this.prototype;function l(d){const c=fa(d);o[c]||(PF(i,d),o[c]=!0)}return xe.isArray(t)?t.forEach(l):l(t),this}}ps.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(ps.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[r]=o}}}),xe.freezeMethods(ps);const qn=ps;function hf(e,t){const r=this||ff,o=t||r,i=qn.from(o.headers);let l=o.data;return xe.forEach(e,function(c){l=c.call(r,l,i.normalize(),t?t.status:void 0)}),i.normalize(),l}function Zv(e){return!!(e&&e.__CANCEL__)}function lo(e,t,r){ft.call(this,e==null?"canceled":e,ft.ERR_CANCELED,t,r),this.name="CanceledError"}xe.inherits(lo,ft,{__CANCEL__:!0});function qv(e,t,r){const o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new ft("Request failed with status code "+r.status,[ft.ERR_BAD_REQUEST,ft.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function MF(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function LF(e,t){e=e||10;const r=new Array(e),o=new Array(e);let i=0,l=0,d;return t=t!==void 0?t:1e3,function(u){const h=Date.now(),m=o[l];d||(d=h),r[i]=u,o[i]=h;let y=l,C=0;for(;y!==i;)C+=r[y++],y=y%e;if(i=(i+1)%e,i===l&&(l=(l+1)%e),h-d<t)return;const A=m&&h-m;return A?Math.round(C*1e3/A):void 0}}function jF(e,t){let r=0,o=1e3/t,i,l;const d=(h,m=Date.now())=>{r=m,i=null,l&&(clearTimeout(l),l=null),e.apply(null,h)};return[(...h)=>{const m=Date.now(),y=m-r;y>=o?d(h,m):(i=h,l||(l=setTimeout(()=>{l=null,d(i)},o-y)))},()=>i&&d(i)]}const hs=(e,t,r=3)=>{let o=0;const i=LF(50,250);return jF(l=>{const d=l.loaded,c=l.lengthComputable?l.total:void 0,u=d-o,h=i(u),m=d<=c;o=d;const y={loaded:d,total:c,progress:c?d/c:void 0,bytes:u,rate:h||void 0,estimated:h&&c&&m?(c-d)/h:void 0,event:l,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(y)},r)},ey=(e,t)=>{const r=e!=null;return[o=>t[0]({lengthComputable:r,total:e,loaded:o}),t[1]]},ty=e=>(...t)=>xe.asap(()=>e(...t)),zF=un.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,un.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(un.origin),un.navigator&&/(msie|trident)/i.test(un.navigator.userAgent)):()=>!0,UF=un.hasStandardBrowserEnv?{write(e,t,r,o,i,l){const d=[e+"="+encodeURIComponent(t)];xe.isNumber(r)&&d.push("expires="+new Date(r).toGMTString()),xe.isString(o)&&d.push("path="+o),xe.isString(i)&&d.push("domain="+i),l===!0&&d.push("secure"),document.cookie=d.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function HF(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function WF(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function ny(e,t,r){let o=!HF(t);return e&&(o||r==!1)?WF(e,t):t}const iy=e=>e instanceof qn?{...e}:e;function yr(e,t){t=t||{};const r={};function o(h,m,y,C){return xe.isPlainObject(h)&&xe.isPlainObject(m)?xe.merge.call({caseless:C},h,m):xe.isPlainObject(m)?xe.merge({},m):xe.isArray(m)?m.slice():m}function i(h,m,y,C){if(xe.isUndefined(m)){if(!xe.isUndefined(h))return o(void 0,h,y,C)}else return o(h,m,y,C)}function l(h,m){if(!xe.isUndefined(m))return o(void 0,m)}function d(h,m){if(xe.isUndefined(m)){if(!xe.isUndefined(h))return o(void 0,h)}else return o(void 0,m)}function c(h,m,y){if(y in t)return o(h,m);if(y in e)return o(void 0,h)}const u={url:l,method:l,data:l,baseURL:d,transformRequest:d,transformResponse:d,paramsSerializer:d,timeout:d,timeoutMessage:d,withCredentials:d,withXSRFToken:d,adapter:d,responseType:d,xsrfCookieName:d,xsrfHeaderName:d,onUploadProgress:d,onDownloadProgress:d,decompress:d,maxContentLength:d,maxBodyLength:d,beforeRedirect:d,transport:d,httpAgent:d,httpsAgent:d,cancelToken:d,socketPath:d,responseEncoding:d,validateStatus:c,headers:(h,m,y)=>i(iy(h),iy(m),y,!0)};return xe.forEach(Object.keys(Object.assign({},e,t)),function(m){const y=u[m]||i,C=y(e[m],t[m],m);xe.isUndefined(C)&&y!==c||(r[m]=C)}),r}const ry=e=>{const t=yr({},e);let{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:l,headers:d,auth:c}=t;t.headers=d=qn.from(d),t.url=Kv(ny(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&d.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let u;if(xe.isFormData(r)){if(un.hasStandardBrowserEnv||un.hasStandardBrowserWebWorkerEnv)d.setContentType(void 0);else if((u=d.getContentType())!==!1){const[h,...m]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];d.setContentType([h||"multipart/form-data",...m].join("; "))}}if(un.hasStandardBrowserEnv&&(o&&xe.isFunction(o)&&(o=o(t)),o||o!==!1&&zF(t.url))){const h=i&&l&&UF.read(l);h&&d.set(i,h)}return t},GF=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(r,o){const i=ry(e);let l=i.data;const d=qn.from(i.headers).normalize();let{responseType:c,onUploadProgress:u,onDownloadProgress:h}=i,m,y,C,A,w;function E(){A&&A(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,!0),b.timeout=i.timeout;function g(){if(!b)return;const x=qn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),T={data:!c||c==="text"||c==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};qv(function(F){r(F),E()},function(F){o(F),E()},T),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(g)},b.onabort=function(){!b||(o(new ft("Request aborted",ft.ECONNABORTED,e,b)),b=null)},b.onerror=function(){o(new ft("Network Error",ft.ERR_NETWORK,e,b)),b=null},b.ontimeout=function(){let k=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const T=i.transitional||Qv;i.timeoutErrorMessage&&(k=i.timeoutErrorMessage),o(new ft(k,T.clarifyTimeoutError?ft.ETIMEDOUT:ft.ECONNABORTED,e,b)),b=null},l===void 0&&d.setContentType(null),"setRequestHeader"in b&&xe.forEach(d.toJSON(),function(k,T){b.setRequestHeader(T,k)}),xe.isUndefined(i.withCredentials)||(b.withCredentials=!!i.withCredentials),c&&c!=="json"&&(b.responseType=i.responseType),h&&([C,w]=hs(h,!0),b.addEventListener("progress",C)),u&&b.upload&&([y,A]=hs(u),b.upload.addEventListener("progress",y),b.upload.addEventListener("loadend",A)),(i.cancelToken||i.signal)&&(m=x=>{!b||(o(!x||x.type?new lo(null,e,b):x),b.abort(),b=null)},i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));const _=MF(i.url);if(_&&un.protocols.indexOf(_)===-1){o(new ft("Unsupported protocol "+_+":",ft.ERR_BAD_REQUEST,e));return}b.send(l||null)})},KF=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let o=new AbortController,i;const l=function(h){if(!i){i=!0,c();const m=h instanceof Error?h:this.reason;o.abort(m instanceof ft?m:new lo(m instanceof Error?m.message:m))}};let d=t&&setTimeout(()=>{d=null,l(new ft(`timeout ${t} of ms exceeded`,ft.ETIMEDOUT))},t);const c=()=>{e&&(d&&clearTimeout(d),d=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(l):h.removeEventListener("abort",l)}),e=null)};e.forEach(h=>h.addEventListener("abort",l));const{signal:u}=o;return u.unsubscribe=()=>xe.asap(c),u}},YF=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let o=0,i;for(;o<r;)i=o+t,yield e.slice(o,i),o=i},QF=async function*(e,t){for await(const r of JF(e))yield*YF(r,t)},JF=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:o}=await t.read();if(r)break;yield o}}finally{await t.cancel()}},oy=(e,t,r,o)=>{const i=QF(e,t);let l=0,d,c=u=>{d||(d=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:h,value:m}=await i.next();if(h){c(),u.close();return}let y=m.byteLength;if(r){let C=l+=y;r(C)}u.enqueue(new Uint8Array(m))}catch(h){throw c(h),h}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},ms=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ay=ms&&typeof ReadableStream=="function",XF=ms&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),ly=(e,...t)=>{try{return!!e(...t)}catch{return!1}},ZF=ay&&ly(()=>{let e=!1;const t=new Request(un.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),sy=64*1024,mf=ay&&ly(()=>xe.isReadableStream(new Response("").body)),gs={stream:mf&&(e=>e.body)};ms&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gs[t]&&(gs[t]=xe.isFunction(e[t])?r=>r[t]():(r,o)=>{throw new ft(`Response type '${t}' is not supported`,ft.ERR_NOT_SUPPORT,o)})})})(new Response);const qF=async e=>{if(e==null)return 0;if(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e))return(await new Request(un.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(xe.isArrayBufferView(e)||xe.isArrayBuffer(e))return e.byteLength;if(xe.isURLSearchParams(e)&&(e=e+""),xe.isString(e))return(await XF(e)).byteLength},eP=async(e,t)=>{const r=xe.toFiniteNumber(e.getContentLength());return r==null?qF(t):r},gf={http:wF,xhr:GF,fetch:ms&&(async e=>{let{url:t,method:r,data:o,signal:i,cancelToken:l,timeout:d,onDownloadProgress:c,onUploadProgress:u,responseType:h,headers:m,withCredentials:y="same-origin",fetchOptions:C}=ry(e);h=h?(h+"").toLowerCase():"text";let A=KF([i,l&&l.toAbortSignal()],d),w;const E=A&&A.unsubscribe&&(()=>{A.unsubscribe()});let b;try{if(u&&ZF&&r!=="get"&&r!=="head"&&(b=await eP(m,o))!==0){let T=new Request(t,{method:"POST",body:o,duplex:"half"}),O;if(xe.isFormData(o)&&(O=T.headers.get("content-type"))&&m.setContentType(O),T.body){const[F,I]=ey(b,hs(ty(u)));o=oy(T.body,sy,F,I)}}xe.isString(y)||(y=y?"include":"omit");const g="credentials"in Request.prototype;w=new Request(t,{...C,signal:A,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:o,duplex:"half",credentials:g?y:void 0});let _=await fetch(w);const x=mf&&(h==="stream"||h==="response");if(mf&&(c||x&&E)){const T={};["status","statusText","headers"].forEach(M=>{T[M]=_[M]});const O=xe.toFiniteNumber(_.headers.get("content-length")),[F,I]=c&&ey(O,hs(ty(c),!0))||[];_=new Response(oy(_.body,sy,F,()=>{I&&I(),E&&E()}),T)}h=h||"text";let k=await gs[xe.findKey(gs,h)||"text"](_,e);return!x&&E&&E(),await new Promise((T,O)=>{qv(T,O,{data:k,headers:qn.from(_.headers),status:_.status,statusText:_.statusText,config:e,request:w})})}catch(g){throw E&&E(),g&&g.name==="TypeError"&&/Load failed|fetch/i.test(g.message)?Object.assign(new ft("Network Error",ft.ERR_NETWORK,e,w),{cause:g.cause||g}):ft.from(g,g&&g.code,e,w)}})};xe.forEach(gf,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const dy=e=>`- ${e}`,tP=e=>xe.isFunction(e)||e===null||e===!1,cy={getAdapter:e=>{e=xe.isArray(e)?e:[e];const{length:t}=e;let r,o;const i={};for(let l=0;l<t;l++){r=e[l];let d;if(o=r,!tP(r)&&(o=gf[(d=String(r)).toLowerCase()],o===void 0))throw new ft(`Unknown adapter '${d}'`);if(o)break;i[d||"#"+l]=o}if(!o){const l=Object.entries(i).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let d=t?l.length>1?`since :
|
||
`+l.map(dy).join(`
|
||
`):" "+dy(l[0]):"as no adapter specified";throw new ft("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return o},adapters:gf};function vf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lo(null,e)}function uy(e){return vf(e),e.headers=qn.from(e.headers),e.data=hf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),cy.getAdapter(e.adapter||ff.adapter)(e).then(function(o){return vf(e),o.data=hf.call(e,e.transformResponse,o),o.headers=qn.from(o.headers),o},function(o){return Zv(o)||(vf(e),o&&o.response&&(o.response.data=hf.call(e,e.transformResponse,o.response),o.response.headers=qn.from(o.response.headers))),Promise.reject(o)})}const fy="1.9.0",vs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vs[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const py={};vs.transitional=function(t,r,o){function i(l,d){return"[Axios v"+fy+"] Transitional option '"+l+"'"+d+(o?". "+o:"")}return(l,d,c)=>{if(t===!1)throw new ft(i(d," has been removed"+(r?" in "+r:"")),ft.ERR_DEPRECATED);return r&&!py[d]&&(py[d]=!0,console.warn(i(d," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(l,d,c):!0}},vs.spelling=function(t){return(r,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function nP(e,t,r){if(typeof e!="object")throw new ft("options must be an object",ft.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let i=o.length;for(;i-- >0;){const l=o[i],d=t[l];if(d){const c=e[l],u=c===void 0||d(c,l,e);if(u!==!0)throw new ft("option "+l+" must be "+u,ft.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ft("Unknown option "+l,ft.ERR_BAD_OPTION)}}const ys={assertOptions:nP,validators:vs},mi=ys.validators;class bs{constructor(t){this.defaults=t||{},this.interceptors={request:new Yv,response:new Yv}}async request(t,r){try{return await this._request(t,r)}catch(o){if(o instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const l=i.stack?i.stack.replace(/^.+\n/,""):"";try{o.stack?l&&!String(o.stack).endsWith(l.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
||
`+l):o.stack=l}catch{}}throw o}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=yr(this.defaults,r);const{transitional:o,paramsSerializer:i,headers:l}=r;o!==void 0&&ys.assertOptions(o,{silentJSONParsing:mi.transitional(mi.boolean),forcedJSONParsing:mi.transitional(mi.boolean),clarifyTimeoutError:mi.transitional(mi.boolean)},!1),i!=null&&(xe.isFunction(i)?r.paramsSerializer={serialize:i}:ys.assertOptions(i,{encode:mi.function,serialize:mi.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ys.assertOptions(r,{baseUrl:mi.spelling("baseURL"),withXsrfToken:mi.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let d=l&&xe.merge(l.common,l[r.method]);l&&xe.forEach(["delete","get","head","post","put","patch","common"],w=>{delete l[w]}),r.headers=qn.concat(d,l);const c=[];let u=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(r)===!1||(u=u&&E.synchronous,c.unshift(E.fulfilled,E.rejected))});const h=[];this.interceptors.response.forEach(function(E){h.push(E.fulfilled,E.rejected)});let m,y=0,C;if(!u){const w=[uy.bind(this),void 0];for(w.unshift.apply(w,c),w.push.apply(w,h),C=w.length,m=Promise.resolve(r);y<C;)m=m.then(w[y++],w[y++]);return m}C=c.length;let A=r;for(y=0;y<C;){const w=c[y++],E=c[y++];try{A=w(A)}catch(b){E.call(this,b);break}}try{m=uy.call(this,A)}catch(w){return Promise.reject(w)}for(y=0,C=h.length;y<C;)m=m.then(h[y++],h[y++]);return m}getUri(t){t=yr(this.defaults,t);const r=ny(t.baseURL,t.url,t.allowAbsoluteUrls);return Kv(r,t.params,t.paramsSerializer)}}xe.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(r,o){return this.request(yr(o||{},{method:t,url:r,data:(o||{}).data}))}}),xe.forEach(["post","put","patch"],function(t){function r(o){return function(l,d,c){return this.request(yr(c||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}bs.prototype[t]=r(),bs.prototype[t+"Form"]=r(!0)});const ws=bs;class yf{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const o=this;this.promise.then(i=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](i);o._listeners=null}),this.promise.then=i=>{let l;const d=new Promise(c=>{o.subscribe(c),l=c}).then(i);return d.cancel=function(){o.unsubscribe(l)},d},t(function(l,d,c){o.reason||(o.reason=new lo(l,d,c),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=o=>{t.abort(o)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new yf(function(i){t=i}),cancel:t}}}const iP=yf;function rP(e){return function(r){return e.apply(null,r)}}function oP(e){return xe.isObject(e)&&e.isAxiosError===!0}const bf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(bf).forEach(([e,t])=>{bf[t]=e});const aP=bf;function hy(e){const t=new ws(e),r=Ov(ws.prototype.request,t);return xe.extend(r,ws.prototype,t,{allOwnKeys:!0}),xe.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return hy(yr(e,i))},r}const Gt=hy(ff);Gt.Axios=ws,Gt.CanceledError=lo,Gt.CancelToken=iP,Gt.isCancel=Zv,Gt.VERSION=fy,Gt.toFormData=us,Gt.AxiosError=ft,Gt.Cancel=Gt.CanceledError,Gt.all=function(t){return Promise.all(t)},Gt.spread=rP,Gt.isAxiosError=oP,Gt.mergeConfig=yr,Gt.AxiosHeaders=qn,Gt.formToJSON=e=>Jv(xe.isHTMLForm(e)?new FormData(e):e),Gt.getAdapter=cy.getAdapter,Gt.HttpStatusCode=aP,Gt.default=Gt;const my=Gt,pz="";to.registerLanguage("javascript",aO),to.registerLanguage("xml",oO);const lP=n.defineComponent({name:"FcDesigner",components:{AiChat:$I,SlotsConfig:dI,Warning:Xn,QuickLayout:mI,PrintForm:bI,LanguageConfig:iI,PropsInput:H$,JsonPreview:F$,GlobalVariableConfig:Dv,GlobalClassConfig:Tv,GlobalEventConfig:Cv,GlobalFetchConfig:_v,FormList:xB,FieldList:pB,TypeSelect:rB,ConfigTitle:bv,VariableConfig:ra,ToolsBar:JO,SubList:HO,PageInput:SO,fcDraggable:jr,DragForm:ze.$form(),ViewForm:An.$form(),DragFormMobile:Xr.$form(),ViewFormMobile:tD.$form(),EventConfig:bg,ConfigItem:Fn,VNode:wg},props:{menu:Array,field:Array,appId:String,appUrl:String,list:Array,theme:String,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},data(){return{}},emits:["active","create","copy","delete","drag","inputData","inputPageData","save","clear","switchForm","copyRule","pasteRule","sortUp","sortDown","changeDevice","previewSubmit","previewReset"],setup(e){var ce,de,pe,se,ge,ye;let t;t=!1;const{menu:r,height:o,mask:i,locale:l,handle:d}=n.toRefs(e),c=n.getCurrentInstance(),u=n.reactive({active:null});n.provide("fcx",u),n.provide("designer",c);const h=e.appUrl,m=n.toRef(e,"config",{}),y=n.toRef(e,"theme"),C=n.toRef(e,"field",[]),A=n.toRef(e,"list",[]),w=n.toRef(m.value,"baseRule",null),E=n.toRef(m.value,"componentRule",{}),b=n.toRef(m.value,"updateDefaultRule",{}),g=n.toRef(m.value,"validateRule",null),_=n.toRef(m.value,"formRule",null),x=n.computed(()=>{const D=o.value;return D?dt.Number(D)?`${D}px`:D:"100%"}),k=n.computed(()=>m.value.fieldReadonly!==!1),T=n.computed(()=>m.value.fieldList||[]),O=n.computed(()=>m.value.varList||[]),F=n.computed(()=>m.value.hiddenMenu||[]),I=n.computed(()=>m.value.hiddenItem||[]),M=n.computed(()=>m.value.hiddenDragMenu===!0),N=n.computed(()=>m.value.hiddenDragBtn===!0),B=n.computed(()=>c.refs.dragCon.clientHeight),L=n.computed(()=>{var D;return(((D=l.value)==null?void 0:D.name)||"zh-cn")==="zh-cn"?eB:null}),U=n.computed(()=>X.getConfig("showGridLine")!==!1||X.getConfig("showQuickLayout")!==!1||X.getConfig("showPrintBtn")!==!1),H=n.computed(()=>{const D=["base","advanced","props","slots","style","event","validate"];let W=m.value.configFormOrder?[...m.value.configFormOrder]:[],Y=[];return W.length?[...W,...D].forEach(q=>{Y.indexOf(q)===-1&&D.indexOf(q)>-1&&Y.push(q)}):Y=D,Y.map(q=>`"${q}"`).join(" ")});n.watch(y,(D,W)=>{W&&document.body.classList.remove("fd-theme-"+W),D&&document.body.classList.add("fd-theme-"+D)});let R=Gl;l.value&&(R=ld(l).t);const z=(...D)=>R(...D),$=(D,W,...Y)=>{if(W){if(dt.Function(W))return W(...Y);if(W.rule){let q=W.rule(...Y);return W.prepend?q=[...q,...D(...Y)]:W.append&&(q=[...D(...Y),...q]),q}}return D(...Y)},S=n.reactive({cacheProps:{},operation:{idx:-1,list:[]},modelValue:"",selectedNodeName:"",datasetData:[],datasetInfo:{},dsSelectProps:{label:"name",children:"children",value:"id",isLeaf:D=>{var W;return!((W=D.children)!=null&&W.length)}},fieldData:[],tableId:"",pageData:[],gridLine:!1,hiddenLeft:!1,hiddenRight:!1,moveRule:null,addRule:null,added:null,bus:zb(),device:((ce=m.value)==null?void 0:ce.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activePage:null,activeRule:null,children:n.ref([]),treeInfo:[],menuList:r.value||A_(),dragRuleList:{},eventShow:!1,unloadStatus:!1,previewStatus:"form",previewDevice:"pc",t:z,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:n.ref({rule:[],api:{}}),formOptions:{appUrl:h,datasetInfo:{}},oldOptionsKeys:[],form:{rule:$(Sp,_.value,{t:z}),api:{},option:{global:{input:((de=m.value)==null?void 0:de.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:$(Vo,w.value,{t:z}),api:{},value:{},options:{global:{input:((pe=m.value)==null?void 0:pe.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=S.activeRule,D.setValue(D.options.formData||{})}}},advancedForm:{isShow:!1,rule:xp({t:z}),api:{},value:{},options:{global:{input:((se=m.value)==null?void 0:se.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=S.activeRule,D.setValue(D.options.formData||{})}}},styleForm:{isShow:!1,rule:Ap({t:z}),api:{},value:{},options:{form:{labelPosition:"left",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=S.activeRule,D.setValue(D.options.formData||{})}}},validateForm:{isShow:!1,rule:$(kp,g.value,{t:z}),api:{},value:[],options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=S.activeRule,D.setValue(D.options.formData||{})}}},propsForm:{isShow:!1,variable:!1,rule:[],api:{},value:{},options:{global:{input:((ge=m.value)==null?void 0:ge.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},inputNumber:{props:{controlsPosition:"right"}},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:D=>{D.activeRule=S.activeRule,D.setValue(D.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((ye=m.value)==null?void 0:ye.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1}}}),J=n.computed(()=>{const D=S.activeRule;if(!D||!D._menu.children||D._fc_drag_tag===D._menu.children)return null;const W=S.dragRuleList[D._fc_drag_tag],Y=S.dragRuleList[D._menu.children];let q=D.children;return W.inside&&(q=q[0].children),Y.inside||(q=q.map(ee=>ee.children[0])),q.filter(ee=>ee._fc_drag_tag===Y.name)});n.watch(()=>S.preview.state,function(D){D||n.nextTick(()=>{S.previewStatus="form",S.preview.rule=S.preview.option=null})}),n.watch(()=>S.previewStatus,D=>{S.preview.rule&&(S.preview.option.preview=D==="preview")});let Q=null;const G=(D,W)=>{if(D[10]!==">"){if(D=D.replace("formCreate",""),!D)return;D=Ha(D)}else D=D.replace("formCreate>","");const Y=D.split(">"),q=Y.pop();let ee=S.activeRule;Y.forEach((oe,he)=>{he||(oe=Ha(oe)),ee[oe]||(ee[oe]={}),ee=ee[oe]}),W({source:ee,field:q})},ie=n.computed(()=>S.pageData.filter(D=>!D.default).length);n.watch(()=>l.value,D=>{R=D?ld(l).t:Gl,X.clearActiveRule();const W=S.form.api.formData&&S.form.api.formData(),Y=S.baseForm.api.formData&&S.baseForm.api.formData(),q=S.validateForm.api.formData&&S.validateForm.api.formData();S.validateForm.rule=$(kp,g.value,{t:z}),S.baseForm.rule=$(Vo,w.value,{t:z}),S.form.rule=$(Sp,_.value,{t:z}),S.styleForm.rule=Ap({t:z}),S.advancedForm.rule=xp({t:z}),S.cacheProps={};const ee=S.activeRule;let oe=null;ee&&(oe=S.propsForm.api.formData&&S.propsForm.api.formData(),S.propsForm.rule=S.cacheProps[ee._fc_id]=X.getPropsRule(ee)),n.nextTick(()=>{W&&S.form.api.setValue(W),Y&&S.baseForm.api.setValue(Y),q&&S.validateForm.api.setValue(q),oe&&S.propsForm.api.setValue(oe)})}),n.watch(()=>m.value.license,D=>{An.license=D,ze.license=D,window&&window.formCreate&&(window.formCreate.license=D)},{immediate:!0});const X={dsClick(D){S.datasetData.forEach(W=>{W.table_id==D&&(S.datasetInfo=W,S.formOptions.datasetInfo=W)}),X.onDatasetChange(S.datasetInfo)},onDatasetChange(D){let W="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MX0.i8pMPviPZoQyjXML3dLfLek4XML2acUf-x0K90u9KoY";if(localStorage.getItem("user.token")!=null&&localStorage.getItem("user.token")!=""){const q=JSON.parse(localStorage.getItem("user.token"));W=JSON.parse(q.v)}let Y=h;Y==null&&(Y=""),S.fieldData=[],my.get(Y+"/datasetData/getFieldsByTableId",{headers:{"X-De-Token":W},params:{datasourceId:D.datasource_id,tablename:D.table_name}}).then(q=>{console.log(q),S.datasetInfo.keyfeilds=q.data.data.keyfeilds,S.formOptions.datasetInfo.keyfeilds=q.data.data.keyfeilds,q.data.data.fields.forEach(ee=>{ee.label=ee.name,ee.item="input",ee.iskey=ee.iskey,ee.fieldtype=ee.type,ee.maxlength=ee.size,ee.field=ee.origin_name,ee.update={disabled:ee.iskey},S.fieldData.push(ee)})}).catch(q=>{console.error(" \u8BF7\u6C42\u51FA\u9519:",q)})},getInit(){S.formOptions.appUrl=h;let D=h;D==null&&(D="");let W="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjEsIm9pZCI6MX0.i8pMPviPZoQyjXML3dLfLek4XML2acUf-x0K90u9KoY";if(localStorage.getItem("user.token")!=null&&localStorage.getItem("user.token")!=""){const Y=JSON.parse(localStorage.getItem("user.token"));W=JSON.parse(Y.v)}my.get(D+"/datasetData/getTablesByAppId",{headers:{"X-De-Token":W},params:{appid:e.appId}}).then(Y=>{S.datasetData=Y.data.data}).catch(Y=>{console.error(" \u8BF7\u6C42\u51FA\u9519:",Y)})},setDevice(D){S.device=D,c.emit("changeDevice",D)},initPage(){S.children=X.makeChildren([]),S.dragForm.rule=X.makeDragRule(S.children),S.operation=S.pageData[0]?S.pageData[0].operation:{idx:-1,list:[]},S.pageData=[{default:!0,rule:S.dragForm.rule,operation:S.operation}],S.activePage=S.pageData[0]},changePage(D){const W=S.pageData[D];if(S.activePage!==W){if(S.activePage){const Y=S.activePage;Y.rule=S.dragForm.rule,Y.operation=S.operation}W.operation||(W.operation={idx:-1,list:[]}),S.dragForm.rule=W.rule,W.default?S.children=W.rule[0].children:S.children=W.rule[0].children[0].children[0].children,S.activePage=W,S.operation=W.operation,S.preview.state=!1,S.inputForm.state=!1,X.clearActiveRule(),X.updateTree()}},deletePage(D){D&&(S.pageData[D]===S.activePage&&X.changePage(0),S.pageData.splice(D,1))},copyPage(D){if(D){const W=S.pageData[D],Y=rt(S.pageData[D].rule)[0],q=Y.type==="DragTool"?Y.children[0]:Y;q.name="ref_"+We(),q._fc_id="id_"+We(),jg(q,W.config.labelField,Rr(q,W.config.labelField,"")+" Copy"),S.pageData.splice(D+1,0,{config:W.config,type:W.type,main:q,rule:[Y]})}},addPage(D){const W=X.makeRule(S.dragRuleList[D]);X.appendPage(D,W)},appendPage(D,W){const Y=W.type==="DragTool"?W.children[0]:W;S.pageData.push({config:S.dragRuleList[D].container,main:Y,type:D,rule:[W]})},openGlobalFetchDialog(){const D=c.refs.globalFetch;D&&D.open()},openGlobalClassDialog(){const D=c.refs.globalClass;D&&D.open()},openGlobalEventDialog(){const D=c.refs.globalEvent;D&&D.open()},openGlobalVariableDialog(){const D=c.refs.globalVariable;D&&D.open()},unWatchActiveRule(){Q&&Q(),Q=null},watchActiveRule(){X.unWatchActiveRule(),Q=n.watch(()=>S.activeRule,function(D){D&&X.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(D){return n.reactive({children:D}).children},addMenu(D){if(!D.name)return;let W=!0;S.menuList.forEach((Y,q)=>{Y.name===D.name&&(S.menuList[q]=D,W=!1)}),W&&(D.before?S.menuList.unshift(D):S.menuList.push(D))},removeMenu(D){[...S.menuList].forEach((W,Y)=>{W.name===D&&S.menuList.splice(Y,1)})},setMenuItem(D,W){S.menuList.forEach(Y=>{Y.name===D&&(Y.list=W)})},appendMenuItem(D,W){S.menuList.forEach(Y=>{Y.name===D&&Y.list.push(...Array.isArray(W)?W:[W])})},removeMenuItem(D){S.menuList.forEach(W=>{let Y;dt.String(D)?[...W.list].forEach((q,ee)=>{q.name===D&&W.list.splice(ee,1)}):(Y=W.list.indexOf(D))>-1&&W.list.splice(Y,1)})},addComponent(D){Array.isArray(D)?D.forEach(W=>{S.dragRuleList[W.name]=W,W.menu&&X.appendMenuItem(W.menu,W)}):(S.dragRuleList[D.name]=D,D.menu&&X.appendMenuItem(D.menu,D))},openInputData(D){S.inputForm.state=D===void 0?!S.inputForm.state:!!D,S.inputForm.state&&(S.inputForm.option=ze.parseJson(X.getOptionsJson()),X.inputReset(),S.inputForm.option.appendValue=!1,S.inputForm.option.submitBtn.show=!1,S.inputForm.option.resetBtn.show=!1,X.clearActiveRule())},inputSave(){const D=S.inputForm.api.formData();Object.keys(D).forEach(Y=>{si(D[Y])&&delete D[Y]});const W=JSON.stringify(X.getPreviewFormData())!==JSON.stringify(D);S.activePage.default?(S.inputForm.data=D,c.emit("inputData",D)):(jg(S.activePage.main,S.activePage.config.formDataField,D),c.emit("inputPageData",D)),S.inputForm.state=!1,W&&X.addOperationRecord()},inputClear(){X.inputReset({})},inputReset(D){S.inputForm.rule=ze.parseJson(X.getPreviewRule()),S.inputForm.option.formData=D||rt(X.getPreviewFormData()),S.inputForm.key=We()},setFormData(D){S.inputForm.data=D||{}},getFormData(){return S.inputForm.data},getParent(D){let W=D.__fc__.parent.rule;const Y=W._menu;return Y&&Y.inside&&(D=W,W=W.__fc__.parent.rule),{root:W,parent:D}},copyName(){di(S.activeRule.name)},updateName(){S.activeRule.name="ref_"+We()},makeDrag(D,W,Y,q,ee){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:{name:D===!0?"default":D,put(...oe){return X.dragPut(...oe)}},swapThreshold:W==="draggable"?.25:.8,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"_fc_id"}},tag:W},children:Y,slot:ee,on:q}},clearDragRule(){S.children.length=0,X.clearActiveRule(),X.addOperationRecord(),X.updateTree(),S.unloadStatus=!1,c.emit("clear")},makeDragRule(D){return X.makeChildren([X.makeDrag(!0,"draggable",D,{add:(W,Y)=>X.dragAdd(D,Y),end:(W,Y)=>X.dragEnd(D,Y),start:(W,Y)=>X.dragStart(D,Y),unchoose:(W,Y)=>X.dragUnchoose(D,Y)})])},handleSave(){c.emit("save",{rule:X.getJson(),options:X.getOptionsJson()})},getPreviewFormData(){return S.activePage.default?S.inputForm.data:Rr(S.activePage.main,S.activePage.config.formDataField,{})||{}},getPreviewRule(){return S.activePage.default?X.getJson():ze.toJson(X.parseRule(rt(S.children)))},previewSubmit(...D){c.emit("previewSubmit",...D)},previewReset(...D){c.emit("previewReset",...D)},openPreview(){S.preview.state=!0,S.previewDevice=S.device==="mobile"?"mobile":"pc";const D=X.getPreviewRule(),W=X.getOptionsJson(),Y=X.getConfig("useTemplate",!1);S.preview.option=ze.parseJson(W),S.activePage.default||(S.preview.option.formData=rt(X.getPreviewFormData())),S.preview.rule=ze.parseJson(D),S.preview.html=to.highlight(Y?Ob(D,W):Bb(D,W),{language:"xml"}).value,S.preview.mobileHtml=to.highlight(Y?Rb(D,W):$b(D,W),{language:"xml"}).value,S.preview.sfc=to.highlight(IO(S.children,S.preview.option,S.dragRuleList,Y),{language:"xml"}).value},copyCode(){di(this.$refs.previewCode.innerText)},getPageRule(){return X.parseRule(rt(S.children))},getPageJson(){return ze.toJson(X.getPageRule())},getRule(){let D;if(S.pageData.length>1){const W=[];S.pageData.map(Y=>{Y.default?D=X.parseRule(rt(Y.rule)):W.push(X.parseRule(rt(Y.rule))[0])}),D.push(...W)}else D=X.getPageRule();return D},getJson(){return ze.toJson(X.getRule())},getOption(){var Y;const D=rt(S.formOptions);["onReset","onSubmit","beforeSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(q=>{delete D[q]}),Object.keys(D._event||{}).forEach(q=>{D._event[q]&&(D[q]=D._event[q])}),D.style||delete D.style,delete D._event,D.submitBtn=D._submitBtn,D.resetBtn=D._resetBtn,D.resetBtn.innerText=z("props.reset"),D.submitBtn.innerText=z("props.submit");const W=rt(S.inputForm.data);return Object.keys(W).length>0&&(D.formData=W),(Y=D==null?void 0:D.wrap)!=null&&Y.style&&(D.wrap.style.marginBottom||delete D.wrap.style.marginBottom,Object.keys(D.wrap.style).length||delete D.wrap.style,Object.keys(D.wrap).length||delete D.wrap),D.language&&Object.keys(D.language).forEach(q=>{Object.keys(D.language[q]).forEach(ee=>{D.language[q][ee]||delete D.language[q][ee]}),Object.keys(D.language[q]).length||delete D.language[q]}),Object.keys(D).forEach(q=>{Object.keys(D[q]).length||delete D[q]}),delete D._submitBtn,delete D._resetBtn,D},subRender(D,W,Y){const q=D({h:n.h,resolveComponent:n.resolveComponent,rule:W,subRule:Y,t:z});return Array.isArray(q)?q.map(ee=>n.h(Fn,{label:ee.label},()=>ee.vnode)):q},getOptions(){return X.getOption()},getOptionsJson(){return ze.toJson([X.getOption()]).slice(1).slice(0,-1)},setRule(D,W){D||(D=[]),!W&&X.initPage();const Y=X.loadRule(dt.String(D)?ze.parseJson(D):rt(D)),q=[];Y.forEach(ee=>{ee._fc_page_tag?W||X.appendPage(ee._fc_page_tag,ee):q.push(ee)}),S.children.length=0,S.children.push(...q),X.clearActiveRule(),W||(X.addOperationRecord(),!q.length&&S.pageData.length>1&&X.changePage(1)),X.updateTree()},setBaseRuleConfig(D,W){w.value={rule:D,append:W},S.baseForm.rule=$(Vo,w.value,{t:z})},setComponentRuleConfig(D,W,Y){E.value[D]={rule:W,append:Y},S.cacheProps={};const q=S.activeRule;if(q){const ee=S.propsForm.api.formData&&S.propsForm.api.formData();S.propsForm.rule=S.cacheProps[q._fc_id]=$(q._menu.props,E.value&&E.value[q._menu.name],q,{t:z,api:S.dragForm.api}),n.nextTick(()=>{ee&&S.propsForm.api.setValue(ee)})}},setValidateRuleConfig(D,W){g.value={rule:D,append:W},S.validateForm.rule=$(Vo,g.value,{t:z})},setFormRuleConfig(D,W){_.value={rule:D,append:W},S.form.rule=$(Vo,_.value,{t:z})},clearActiveRule(){S.activeRule=null,S.customForm.config=null,S.activeTab="form",u.active=""},setOption(D){D.datasetInfo&&D.datasetInfo.table_id&&(S.tableId=D.datasetInfo.table_id,X.dsClick(S.tableId));const W=rt(X.getConfig("formOptions",{})),Y=W.form||{};delete W.form;let q={...W,...dt.String(D)?JSON.parse(D):rt(D||{})};q.form={inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"default",labelWidth:"125px",...Y,...q.form||{}},q._event={onReset:q.onReset||"",onSubmit:q.onSubmit||"",onCreated:q.onCreated||"",onMounted:q.onMounted||"",onReload:q.onReload||"",beforeSubmit:q.beforeSubmit||"",onChange:q.onChange||"",beforeFetch:q.beforeFetch||""},li(q,"globalEvent")||(q.globalEvent={}),q.appUrl=h||"",li(q,"globalData")||(q.globalData={}),li(q,"language")||(q.language={}),q._resetBtn=typeof q.resetBtn=="object"?q.resetBtn:{show:q.resetBtn===!0},q._submitBtn=typeof q.submitBtn=="object"?q.submitBtn:{show:q.submitBtn!==!1},q.submitBtn=q.resetBtn=!1,S.inputForm.data=q.formData||{},S.oldOptionsKeys=Object.keys(S.form.value),delete q.formData,S.formOptions=q,X.updateOptionsValue()},setOptions(D){X.setOption(D)},mergeOptions(D){if(["globalEvent","globalData","globalClass","globalVariable","form"].forEach(W=>{D[W]&&(S.formOptions[W]={...S.formOptions[W]||{},...D[W]})}),D.style&&(!S.formOptions.style||S.formOptions.style.indexOf(D.style)===-1)&&(S.formOptions.style=(S.formOptions.style||"")+`
|
||
`+D.style),S.formOptions.language||(S.formOptions.language={}),D.language&&Object.keys(D.language).forEach(W=>{S.formOptions.language[W]={...S.formOptions.language[W]||{},...D.language[W]}}),D.languageKey){const W=X.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);D.languageKey.forEach(Y=>{W.forEach(({value:q})=>{S.formOptions.language[q]||(S.formOptions.language[q]={}),S.formOptions.language[q][Y]||(S.formOptions.language[q][Y]="")})})}},updateOptionsValue(){const D={};S.oldOptionsKeys.forEach(Y=>{D[Y]=void 0});const W={...D,...S.formOptions.form};Object.keys(S.formOptions).forEach(Y=>{const q=S.formOptions[Y];W[">"+Y]=q,typeof q=="object"&&Object.keys(q).forEach(ee=>{W[Y+">"+ee]=q[ee]})}),S.form.value=W},setGlobalEvent(D){S.formOptions.globalEvent={...S.formOptions.globalEvent||{},...D},X.updateOptionsValue()},setGlobalData(D){S.formOptions.globalData={...S.formOptions.globalData||{},...D},X.updateOptionsValue()},setGlobalClass(D){S.formOptions.globalClass={...S.formOptions.globalClass||{},...D},X.updateOptionsValue()},setGlobalVariable(D){S.formOptions.globalVariable={...S.formOptions.globalVariable||{},...D},X.updateOptionsValue()},tidyRule(D){var Y;["control","computed","on","hidden","display"].forEach(q=>{D[q]!=null&&(D["_"+q]=D[q],delete D[q])}),(Y=D.effect)!=null&&Y.loadData&&(D._loadData=D.effect.loadData,delete D.effect.loadData),D.$loadData&&(D._loadData=D.$loadData,delete D.$loadData)},loadRule(D,W,Y){const q=[];return D.forEach(ee=>{if(dt.String(ee))return q.push(ee);if(ee._fc_drag_skip)return;let oe=S.dragRuleList[ee._fc_drag_tag]||S.dragRuleList[ee.type];if(oe||(oe=DC(ee),ee._fc_drag_tag="_"),Y&&(ee._fc_template=Y),oe&&oe.loadRule&&oe.loadRule(ee),ee.children=X.loadRule(ee.children||[],oe,Y),oe){const he=ee.slot;let Ae;W&&W.slot&&he&&he!=="default"&&(Ae=X.getSlotConfig(W,he,oe)),delete ee.slot,ee=X.makeRule(Ae||oe,ee),he&&(ee.slot=he)}else X.tidyRule(ee);q.push(ee)}),q},parseRule(D,W){return[...D].reduce((Y,q)=>{let ee=W;if(dt.String(q))return Y.push(q),Y;if(q.type==="DragBox")return Y.push(...X.parseRule(q.children,ee||q.slot)),Y;if(q.type==="DragTool"){if(ee=q.slot||W,q=q.children[0],dt.String(q))return Y.push(q),Y;if(q.type==="DragBox")return Y.push(...X.parseRule(q.children,ee||q.slot)),Y}return!q||q._fc_drag_skip||(q={...q},ee&&ee!=="default"&&(q.slot=ee),q.children&&q.children.length&&(q.children=X.parseRule(q.children)),delete q.key,delete q.component,delete q._fc_page_tag,q._menu&&(q._menu.parseRule&&q._menu.parseRule(q),delete q._menu),q._fc_drag_tag==="_"&&delete q._fc_drag_tag,["control","computed","on","hidden","display"].forEach(he=>{q["_"+he]!=null&&q["_"+he]!==""&&(q[he]=q["_"+he]),delete q["_"+he]}),q.slot||delete q.slot,q._loadData&&(q.$loadData=q._loadData,delete q._loadData),q.props&&Object.keys(q.props).forEach(he=>{const Ae=q.props[he];si(Ae)&&delete q.props[he]}),q.props&&q.props.key&&(q.key=q.props.key),[q.wrap,q.title,q.info,q].forEach(he=>{he&&Object.keys(he).filter(Ae=>Ae.indexOf("__")===0||he[Ae]===""||Array.isArray(he[Ae])&&he[Ae].length===0||dt.Object(he[Ae])&&Object.keys(he[Ae]).length===0).forEach(Ae=>{delete he[Ae]})}),Y.push(q)),Y},[])},fields(){return S.dragForm.api.all().map(D=>D.field).filter(D=>!!D)},getTitle(D){var W,Y,q;return(((q=(Y=(W=D==null?void 0:D.__fc__)==null?void 0:W.refRule)==null?void 0:Y.__$title)==null?void 0:q.value)||D.title||"").trim()||D.props&&D.props.label||z("com."+(D._menu&&D._menu.name)+".name")||D._menu&&D._menu.label||D.type},baseChange(D,W,Y,q){X.handleChange("",D,W,Y,q)},formOptChange(D,W){S.form.value[D]=W,D.indexOf(">")===-1&&(D="form>"+D);let Y=S.formOptions;const q=D.split(">"),ee=q.pop();q.forEach(oe=>{oe&&(Y[oe]||(Y[oe]={}),Y=Y[oe])}),Y[ee]=W},propRemoveField(D,W,Y){var q,ee,oe;if(S.activeRule&&Y[S.activeRule._fc_id]===S.activeRule){X.unWatchActiveRule();const he=D;S.dragForm.api.sync(S.activeRule),D.indexOf("__")!==0&&(D==="formCreateChild"?delete S.activeRule.children[0]:D.indexOf("formCreate")===0||D.indexOf(">")>0?(D.indexOf("formCreate")<0&&(D="props>"+D),G(D,({source:Ae,field:Me})=>{delete Ae[Me]})):delete S.activeRule.props[D]),X.watchActiveRule(),(oe=(ee=(q=S.activeRule._menu)==null?void 0:q.watch)==null?void 0:ee[he])==null||oe.call(ee,{field:he,value:void 0,api:Y,rule:S.activeRule,ctx:c})}},propChange(D,W,Y,q){X.handleChange("props",D,W,Y,q)},computedChange(D,W,Y,q){X.handleChange("_computed",D,W,Y,q)},styleChange(D,W,Y,q){if(S.customForm.config)return S.customForm.config.style.change(D,W);X.handleChange("",D,W,Y,q)},handleChange(D,W,Y,q,ee){var oe,he,Ae;if(S.activeRule&&ee[S.activeRule._fc_id]===S.activeRule){X.unWatchActiveRule();const Me=W;W.indexOf("__")!==0&&(W==="formCreateChild"?S.activeRule.children[0]=Y:W.indexOf("formCreate")===0||W.indexOf(">")>0?(W.indexOf("formCreate")<0&&(W=(D?D+">":"")+W),G(W,({source:Le,field:fe})=>{si(Y)?delete Le[fe]:Le[fe]=Y})):D&&si(Y)?delete S.activeRule[D][W]:(D?S.activeRule[D]:S.activeRule)[W]=Y),X.watchActiveRule(),(Ae=(he=(oe=S.activeRule._menu)==null?void 0:oe.watch)==null?void 0:he[Me])==null||Ae.call(he,{field:Me,value:Y,api:ee,rule:S.activeRule,ctx:c})}},validateChange(D,W,Y,q){!S.activeRule||S.validateForm.api[S.activeRule._fc_id]!==S.activeRule||(X.handleChange("",D,W,Y,q),S.dragForm.api.refreshValidate(),S.dragForm.api.nextTick(()=>{var ee;S.dragForm.api.clearValidateState((ee=S.activeRule)==null?void 0:ee.__fc__.id)}))},triggerActive(D){let W;if(dt.String(D)&&(D=X.findRule(D)),!!D&&(D._menu.inside?W=D.children[0]:W=D.__fc__.parent.rule,W&&W.type==="DragTool")){const Y=S.dragForm.api.el(W.__fc__.id);Y&&(u.active=Y.id,c.emit("active",D),X.toolActive(D))}},customFormChange(D,W){S.customForm.config&&S.customForm.config.change(D,W)},customActive(D){S.baseForm.isShow=!1,S.propsForm.isShow=!1,S.propsForm.variable=!1,S.advancedForm.isShow=!1,S.styleForm.isShow=!!D.style&&X.getConfig("showStyleForm")!==!1,S.eventShow=!1,S.validateForm.isShow=!1,S.activeRule=null,S.customForm.config=D,S.customForm.isShow=!0,S.customForm.propsShow=D.props&&X.getConfig("showPropsForm")!==!1,S.customForm.key=We(),S.customForm.rule=S.customForm.propsShow?D.props({t:z}):[],S.customForm.options.formData=D.formData,D.style&&(S.styleForm.value=D.style.formData||{}),n.nextTick(()=>{S.activeTab="props"})},getPropsRule(D){let W=$(D._menu.props,E.value&&E.value[D._menu.name],D,{t:z,api:S.dragForm.api});if(E.value&&E.value.default){const Y=E.value.default;W=$(()=>W,dt.Function(Y)?{rule:Y,append:!0}:Y,D,{t:z,api:S.dragForm.api})}return W},findRule(D){let W;const Y=q=>{q.forEach(ee=>{[ee.rule.field,ee.rule.name,ee.rule._fc_id].indexOf(D)>-1?W=ee.rule:ee.children&&Y(ee.children)})};return Y(S.treeInfo),W},toolActive(D){if(m.value.beforeActiveRule&&m.value.beforeActiveRule({rule:D})===!1)return;X.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.advancedForm.api[S.activeRule._fc_id],delete S.dragForm.api.activeRule),S.activeRule=D,S.dragForm.api.activeRule=D,n.nextTick(()=>{S.activeTab="props",n.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.advancedForm.api[S.activeRule._fc_id]=S.activeRule})}),S.cacheProps[D._fc_id]||(S.cacheProps[D._fc_id]=X.getPropsRule(D));const W=X.getConfig("hiddenItemConfig",{}),Y=X.getConfig("disabledItemConfig",{}),q=Ga([...(W==null?void 0:W.default)||[],...(W==null?void 0:W[D._menu.name])||[],...D._menu.hiddenBaseField||[]]),ee=Ga([...(Y==null?void 0:Y.default)||[],...(Y==null?void 0:Y[D._menu.name])||[]]);S.baseForm.api.disabled(!1),S.baseForm.api.hidden(!1),n.nextTick(()=>{S.baseForm.api.all().forEach(Ae=>{(Ae.name||Ae.field)&&(Ae.hidden=q.indexOf(Ae.name)!==-1||q.indexOf(Ae.field)!==-1)}),S.propsForm.api.hidden(!0,q)}),ee.length&&(S.baseForm.api.disabled(!0,ee),n.nextTick(()=>{S.propsForm.api.disabled(!0,ee)})),X.getConfig("showControl",!0)||S.baseForm.api.hidden(!0,"_control");const oe=li(D,"field");S.advancedForm.api.hidden(!oe,["value","$required","props.disabled"]),S.baseForm.isShow=oe&&D.input!==!1&&X.getConfig("showBaseForm")!==!1,S.propsForm.isShow=S.cacheProps[D._fc_id].length>0&&X.getConfig("showPropsForm")!==!1,S.propsForm.variable=D._menu.variable!==!1&&X.getConfig("showVariable")!==!1,S.styleForm.isShow=D._menu.style!==!1&&X.getConfig("showStyleForm")!==!1,S.advancedForm.isShow=D._menu.advanced!==!1&&X.getConfig("showAdvancedForm")!==!1,S.eventShow=D._menu.event&&D._menu.event.length>0&&X.getConfig("showEventForm")!==!1;const he=X.getConfig("showValidateForm");S.validateForm.isShow=(S.baseForm.isShow&&he!==!1||he===!0)&&D._menu.validate!==!1,S.propsForm.rule=S.cacheProps[D._fc_id],X.updateRuleFormData(),X.watchActiveRule()},getConfig(D,W){return m.value&&li(m.value,D)?m.value[D]:W},processObj(D,W,Y="",q=0,ee=3){return q>=ee||Object.keys(D).forEach(oe=>{const he=D[oe],Ae=Y?`${Y}>${oe}`:oe;W[Ae]=rt(he),dt.Object(he)&&X.processObj(he,W,Ae,q+1,ee)}),W},updateRuleFormData(){const D=S.activeRule;let W={formCreateChild:""+(D==null?void 0:D.children[0]),"formCreateWrap>title":!0,"formCreateWrap>labelWidth":"","formCreateWrap>class":"","formCreateCol>span":"","formCreateWrap>style>marginBottom":""};const Y=m.value.appendConfigData;dt.Function(Y)?W={...W,...Y(D)}:Array.isArray(Y)&&Y.forEach(oe=>{W[oe]=void 0}),Object.keys(D).forEach(oe=>{["effect","config","payload","id","type","_menu"].indexOf(oe)<0&&(W["formCreate"+Br(oe)]=rt(D[oe]))}),X.processObj(D.props||{},W),["props","effect","attrs","style","wrap","col"].forEach(oe=>{D[oe]&&typeof D[oe]=="object"&&X.processObj(D[oe]||{},W,"formCreate"+Br(oe))});const q={};["value","hidden","$required","props.disabled"].forEach(oe=>{q[oe]=D._computed&&D._computed[oe]||""});const ee=D._menu.attrs||{};Object.keys(ee).forEach(oe=>{W["__"+oe]=ee[oe]({rule:D})}),S.propsForm.value=W,S.styleForm.value={style:D.style,class:D.class,id:D.id},S.advancedForm.value=q,S.baseForm.isShow&&(S.baseForm.value={field:D.field,title:D.title||"",fieldtype:D.fieldtype||"",info:D.info,ignore:D.ignore||!1,iskey:D.iskey||!1,_control:D._control,...W},S.validateForm.value={validate:D.validate?[...D.validate]:[],$required:W.formCreate$required},S.dragForm.api.refreshValidate(),S.dragForm.api.nextTick(()=>{S.dragForm.api.clearValidateState(D.__fc__.id)}))},dragStart(D){S.moveRule=D,S.added=!1},dragUnchoose(D,W){S.addRule={children:D,oldIndex:W.oldIndex}},clickMenu(D){X.dragMenu({menu:D,children:S.children,index:S.children.length})},clickField(D,W,Y,q){const ee={...D.update||{}};ee.title||(ee.title=D.label),D.field&&(ee.field=D.field),D.fieldtype&&(ee.fieldtype=D.fieldtype),D.rule?X.dragMenu({rule:D.rule,children:W||S.children,index:Y==null?S.children.length:Y,slot:q,update:ee}):D.item&&(S.dragRuleList[D.item]!=null&&D.iskey!=null&&(S.dragRuleList[D.item].iskey=D.iskey),X.dragMenu({menu:S.dragRuleList[D.item],children:W||S.children,index:Y==null?S.children.length:Y,slot:q,update:ee}))},checkOnly(D){let W=!1;return S.dragForm.api.all().forEach(Y=>{W=W||Y._fc_template===D.name||Y._menu&&Y._menu.name===D.name}),W&&dn(S.t("struct.only",{label:z("com."+D.name+".name")||D.label})),W},dragMenu({rule:D,menu:W,children:Y,index:q,slot:ee,update:oe}){if(S.inputForm.state||W&&W.only&&X.checkOnly(W))return;const he=fe=>{const ke=[];return fe.forEach(we=>{we._fc_page_tag?X.appendPage(we._fc_page_tag,we):ke.push(we)}),ke};X.handleAddBefore();const Ae=W?S.dragRuleList[W.name]:null;c.emit("drag",{item:W,dragRule:Ae,rule:D});let Me=[];if(D)dt.String(D)?(D=X.batchReplaceUni(D),D=ze.parseJson(D)):D=ze.parseJson(X.batchReplaceUni(ze.toJson(D))),Array.isArray(D)||(D=[D]),Me=he(X.loadRule(D));else if(Ae.template){let fe="";dt.Function(Ae.template)?fe=ze.toJson(Ae.template({t:z})):Array.isArray(Ae.template)?fe=ze.toJson(Ae.template):fe=""+Ae.template,Ae.autoField&&(fe=X.replaceTemplateField(fe)),fe=X.batchReplaceUni(fe),Me=he(X.loadRule(ze.parseJson(fe),null,W.name))}else Me.push(X.makeRule(S.dragRuleList[Ae.name]));ee&&Me.forEach(fe=>{fe&&(fe.slot=ee)});const Le=Me[0]&&Me[0].type==="DragTool"?Me[0].children[0]:Me[0];oe&&X.mergeRule(Le,oe),Y.splice(q,0,...Me),Ae&&Ae.formOptions&&X.mergeOptions(typeof Ae.formOptions=="string"?ze.parseJson(Ae.formOptions):Ae.formOptions),X.handleAddAfter(Ae&&Ae.template?{template:Me}:{rule:Le}),Le&&X.getConfig("autoActive",!0)&&n.nextTick(()=>{X.triggerActive(Le)})},mergeRule(D,W){Object.keys(W).forEach(Y=>{Y==="required"?D.$required=!!W.required:Y==="disabled"?(D.props||(D.props={}),D.props.disabled=!!W.disabled):Y==="props"?D.props={...D.props||{},...rt(W[Y])}:D[Y]=rt(W[Y])})},replaceField(D){const W=["array","object"].indexOf(D._menu.subForm)>-1;let Y=X.parseRule(rt([D]))[0];const q=X.getConfig("autoResetName")!==!1;return W&&(Y.field=We(),q&&(Y.name="ref_"+We())),Y=ze.toJson(Y),W?Y=X.batchReplaceUni(Y):(Y=X.batchReplaceField(Y),q&&(Y=X.batchReplaceName(Y))),X.loadRule([ze.parseJson(Y)])[0]},batchReplaceField(D){const W=/"field"\s*:\s*"(\w[\w\d]+)"/g,Y=[];return D=D.replace(W,(q,ee)=>{const oe=We();return Y.push({old:ee,key:oe}),`"field":"${oe}"`}).replace(/"computed"\s*:\s*(\{\s*(?:"[^"]*"\s*:\s*"(?:\\"|[^"])*"(?:,\s*)?)*\})/g,(q,ee)=>{const oe=JSON.parse(ee);return Y.forEach(he=>{Object.keys(oe).forEach(Ae=>{oe[Ae]=`${oe[Ae]}`.replaceAll(he.old,he.key)})}),`"computed":${JSON.stringify(oe)}`}),X.batchReplaceUni(D)},replaceTemplateField(D){const W=/"field"\s*:\s*"(\w[\w\d]+)"/g;let Y;const q=[];for(;(Y=W.exec(D))!==null;)q.push({old:Y[1],key:We()});return q.forEach(ee=>{D=D.replaceAll(ee.old,ee.key)}),D},batchReplaceUni(D){const W=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return D=D.replace(W,()=>`"_fc_id":"id_${We()}"`),D},batchReplaceName(D){const W=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return D=D.replace(W,()=>`"name":"ref_${We()}"`),D},getTrueRule(D){if(!!D){if(D._menu)return D._menu._get();if(D._config)return D._config._get()}},dragPut(D,W,Y){const q=X.getTrueRule(D.el.__rule__);if(!q)return!0;const ee=q._menu,oe=Y._fc_allow_drag||{};if(oe[q._fc_id]===void 0){const he=X.getTrueRule(Y._underlying_vm_),Ae=Y._underlying_vm_.__fc__?Y._underlying_vm_._config||Y._underlying_vm_._menu:Y._underlying_vm_;oe[q._fc_id]=!(Ae&&ee&&!X.checkDrag({menu:Ae,toMenu:ee,rule:he,toRule:q})),Y._fc_allow_drag=oe}return Y._id&&clearTimeout(Y._id),Y._id=setTimeout(()=>{delete Y._fc_allow_drag},1500),Y._fc_allow_drag[q._fc_id]},checkDrag({menu:D,toMenu:W,rule:Y,toRule:q}){var ee,oe;return!(!X.checkAllowDrag(D,W)||q.children&&W.maxChildren&&W.maxChildren<=((oe=(ee=q.children[0])==null?void 0:ee.children)==null?void 0:oe.length)||D.checkDrag&&D.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q,designer:c})===!1||W.checkDrag&&W.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q,designer:c})===!1||m.value.checkDrag&&m.value.checkDrag({menu:D,toMenu:W,rule:Y,toRule:q})===!1)},checkAllowDrag(D,W){function Y(oe){return Array.isArray(oe)&&(oe={item:oe}),Lg(oe.item).indexOf(D.name)>-1?!0:Lg(oe.menu).indexOf(D.menu)>-1}const q=X.getConfig("allowDrag",{})[W.name],ee=X.getConfig("denyDrag",{})[W.name];return W.allowDrag&&Y(W.allowDrag)||q&&Y(q)?!0:W.allowDrag||q||W.denyDrag&&Y(W.denyDrag)?!1:!(ee&&Y(ee))},dragAdd(D,W,Y){delete W.item._fc_allow_drag;const q=W.newIndex,ee=W.item._underlying_vm_||W.item.__rule__;if(S.added=!0,!!ee)if(ee.__fc__){if(S.addRule){X.handleSortBefore();const oe=S.addRule.children.splice(S.addRule.children.indexOf(ee),1)[0];Y?oe.slot=Y:delete oe.slot,D.splice(q,0,oe),X.handleSortAfter({rule:oe})}}else ee._field?X.clickField(ee,D,q,Y):X.dragMenu({menu:ee,children:D,index:q,slot:Y})},dragEnd(D,{item:W,newIndex:Y,oldIndex:q},ee){if(delete W._fc_allow_drag,!S.added&&!(S.moveRule===D&&Y===q)){X.handleSortBefore();const oe=S.moveRule.splice(q,1);ee&&(oe[0].slot=ee),D.splice(Y,0,oe[0]),X.handleSortAfter({rule:oe[0]})}S.moveRule=null,S.addRule=null,S.added=!1,S.bus.$emit("dragEnd")},getSlotConfig(D,W,Y){let q={};return(D.slot||[]).forEach(ee=>{ee.name===W&&(q=ee.config||{})}),{...Y,dragBtn:!1,handleBtn:Y.children?["addChild"]:!1,...q}},makeRule(D,W){let Y=W||D.rule({t:z});D&&D.iskey&&(Y.iskey=D.iskey);const q=b.value&&b.value[D.name];if(!W&&q)if(typeof q=="function")try{q(Y)}catch(_e){console.error(_e)}else{let _e=rt(q);delete _e.children,delete _e.component,Y=wv([Y,_e])}Y._menu=n.markRaw({...D}),Y._menu._get=()=>Y,Y._fc_id||(Y._fc_id="id_"+We()),!Y.name&&!D.aide&&(Y.name="ref_"+We()),D.component&&(Y.component=n.markRaw(D.component)),Y._computed||(Y._computed={}),Y.effect||(Y.effect={}),D.input&&!Y.field&&(Y.field=We()),Y.$easySlots||(Y.$easySlots={}),D.languageKey&&X.mergeOptions({languageKey:D.languageKey}),X.tidyRule(Y),Y.display=!0,Y.hidden=!1,Y._fc_drag_tag=D.name,D.container&&(Y._fc_page_tag=D.name);let ee=D.only===!0;if(!ee&&Y._fc_template){const _e=S.dragRuleList[Y._fc_template];ee=_e&&_e.only===!0}const oe=dt.trueArray(Y.children),he={},Ae=[];(D.slot||[]).forEach(_e=>{typeof _e=="string"?Ae.push(_e):(he[_e.name]=_e,Ae.push(_e.name))});const Me={default:[]};Ae.map(_e=>{Me[_e]=[]}),oe&&Y.children.forEach(_e=>{_e.slot?(Me[_e.slot]||(Me[_e.slot]=[]),Me[_e.slot].push(_e)):Me.default.push(_e)});const Le=(_e,Oe,Ke,Re)=>{const mt=X.makeDrag(_e,Oe,Ke,{end:(Ze,De)=>X.dragEnd(Ze.self.children,De),add:(Ze,De)=>X.dragAdd(Ze.self.children,De),start:(Ze,De)=>X.dragStart(Ze.self.children,De),unchoose:(Ze,De)=>X.dragUnchoose(Ze.self.children,De)},Re);return mt._config=Y._menu,mt};let fe;const ke=Y._menu?Y._menu.name:Y.type;if(Object.keys(Me).forEach(_e=>{const Oe=_e==="default";if(!Oe||D.drag){let Ke;if(he[_e]&&!Oe){if(!W){const Re=S.dragRuleList[he[_e].type];Ke=X.makeRule({...Re,dragBtn:!1,handleBtn:Re.children?["addChild"]:!1,...he[_e].config||{}}),Ke.slot=_e}}else Ke=Le(!0,ke+(Oe?"":"-slot-"+_e),W?Me[_e].map(Re=>(delete Re.slot,Re)):X.loadRule(Me[_e]),_e);Ke&&(Me[_e]=[Ke])}Oe&&D.drag&&(fe=Me[_e][0])}),D.children&&!W&&!oe&&D.childrenLen!==0)for(let _e=0;_e<(D.childrenLen||1);_e++){const Oe=X.makeRule(S.dragRuleList[D.children]);(fe?fe.children:Me.default).push(Oe)}const we=[];Ae.indexOf("default")===-1&&(we.push(...Me.default),delete Me.default),Ae.forEach(_e=>{we.push(...Me[_e]),delete Me[_e]}),Object.keys(Me).forEach(_e=>{we.push(...Me[_e])}),Y.children=we;const He=i.value!==void 0?i.value!==!1:D.mask!==!1;if(D.tool===!1)return Y;const et={dragBtn:D.dragBtn!==!1,inline:D.inline===!0,actions:D.actions?D.actions.map(_e=>_e.label):[],children:D.children,mask:He,inside:D.inside,hidden:Y._hidden===!0||Y._display===!1,handleBtn:D.handleBtn,only:ee};return D.inside?(Y.children=X.makeChildren([{type:"DragTool",props:et,inject:!0,on:{action({self:_e},Oe){const Ke=X.getParent(_e).parent;D.actions[Oe].handler(Ke),S.activeRule===Ke&&X.updateRuleFormData()},delete:({self:_e})=>{const Oe=X.getParent(_e).parent;X.handleRemoveBefore({parent:Oe,rule:Oe})!==!1&&(Oe.__fc__.rm(),c.emit("delete",Oe),S.activeRule===Oe&&X.clearActiveRule(),X.handleRemoveAfter({rule:Oe}))},create:({self:_e})=>{X.handleAddBefore();const Oe=X.getParent(_e);c.emit("create",Oe.parent);const Ke=X.makeRule(Oe.parent._menu);Oe.parent.slot&&(Ke.slot=Oe.parent.slot),Oe.root.children.splice(Oe.root.children.indexOf(Oe.parent)+1,0,Ke),X.handleAddAfter({rule:Oe.parent})},addChild:({self:_e})=>{X.handleAddBefore();const Oe=X.getParent(_e),Ke=Oe.parent._menu,Re=S.dragRuleList[Ke.children];if(!Re)return;const mt=X.makeRule(Re);(Ke.drag?Oe.parent.children[0]:Oe.parent).children[0].children.push(mt),X.handleAddAfter({rule:mt})},copy:({self:_e})=>{X.handleCopyBefore();const Oe=X.getParent(_e);c.emit("copy",Oe.parent);const Ke=X.replaceField(Oe.parent);Oe.root.children.splice(Oe.root.children.indexOf(Oe.parent)+1,0,Ke),X.handleCopyAfter({rule:Oe.parent})},active:({self:_e})=>{const Oe=X.getParent(_e);c.emit("active",Oe.parent),setTimeout(()=>{X.toolActive(Oe.parent)},10)}},_config:Y._menu,children:Y.children}]),Y):{type:"DragTool",props:et,_fc_page_tag:Y._fc_page_tag,inject:!0,display:!!Y.display,on:{action({self:_e},Oe){D.actions[Oe].handler(_e.children[0]),S.activeRule===_e.children[0]&&X.updateRuleFormData()},delete:({self:_e})=>{X.handleRemoveBefore({parent:_e,rule:_e.children[0]})!==!1&&(c.emit("delete",_e.children[0]),_e.__fc__.rm(),S.activeRule===_e.children[0]&&X.clearActiveRule(),X.handleRemoveAfter({rule:_e.children[0]}))},create:({self:_e})=>{X.handleAddBefore(),c.emit("create",_e.children[0]);const Oe=X.getParent(_e),Ke=X.makeRule(_e.children[0]._menu);Oe.parent.slot&&(Ke.slot=Oe.parent.slot),Oe.root.children.splice(Oe.root.children.indexOf(Oe.parent)+1,0,Ke),X.handleAddAfter({rule:Ke})},addChild:({self:_e})=>{X.handleAddBefore();const Oe=_e.children[0]._menu,Ke=S.dragRuleList[Oe.children];if(!Ke)return;const Re=X.makeRule(Ke);(Oe.drag?_e.children[0]:_e).children[0].children.push(Re),X.handleAddAfter({rule:Re})},copy:({self:_e})=>{X.handleCopyBefore(),c.emit("copy",_e.children[0]);const Oe=X.getParent(_e),Ke=X.replaceField(_e.children[0]);_e.slot&&(Ke.slot=_e.slot),Oe.root.children.splice(Oe.root.children.indexOf(Oe.parent)+1,0,Ke),X.handleCopyAfter({rule:_e.children[0]})},active:({self:_e})=>{c.emit("active",_e.children[0]),setTimeout(()=>{X.toolActive(_e.children[0])},10)}},_config:Y._menu,children:X.makeChildren([Y])}},toolHidden(D){const W=!(D._hidden!==void 0&&D._hidden);D._menu.inside?D.children[0].props.hidden=W:D.__fc__.parent.rule.props.hidden=W,D._hidden=W,W||(D._display=!0)},toolHandle(D,W){if(!D._fc_drag_tag||D._menu.tool===!1){D.__fc__.rm();return}let Y;D._menu.inside?Y=D.children[0].__fc__.exportEl:Y=D.__fc__.parent.exportEl,Y.$emit(W)},handleAddBefore(){},handleRemoveBefore({rule:D}){if(m.value.beforeRemoveRule&&m.value.beforeRemoveRule({rule:D})===!1)return!1},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const D=X.getPageJson(),W=rt(S.inputForm.data),Y=S.operation.list.slice(0,S.operation.idx+1);Y.push({rule:D,formData:W}),S.operation.list=Y,S.operation.idx=Y.length-1,S.unloadStatus=Y.length!==1},prevOperationRecord(){if(!S.operation.list[S.operation.idx-1])return;const D=S.operation.list[--S.operation.idx];X.useOperationRecord(D),X.clearActiveRule()},nextOperationRecord(){if(!S.operation.list[S.operation.idx+1])return;const D=S.operation.list[++S.operation.idx];X.useOperationRecord(D),X.clearActiveRule()},useOperationRecord(D){S.inputForm.data=D.formData,X.setRule(D.rule,!0)},handleAddAfter(){X.addOperationRecord(),X.updateTree()},handleRemoveAfter(){X.addOperationRecord(),X.updateTree()},handleCopyAfter(){X.addOperationRecord(),X.updateTree()},handleSortAfter(){X.addOperationRecord(),X.updateTree()},treeChange(D){X.triggerActive(D.rule)},getFormDescription(){return Cp(X.getDescription())},getDescription(){return _p(S.dragForm.rule[0].children)},getSubFormDescription(D){let W=D.__fc__&&D.__fc__.parent;for(;W;){if(W.rule._menu&&["array","object"].indexOf(W.rule._menu.subForm)>-1)return Cp(_p(W.rule.children));W=W.parent}return null},getSubFormChildren(D){let W=D.__fc__&&D.__fc__.parent;for(;W;){if(W.rule._menu&&["array","object"].indexOf(W.rule._menu.subForm)>-1)return W.rule.children||[];W=W.parent}return null},updateTree:El(function(){n.nextTick(()=>{S.treeInfo=sd(S.dragForm.rule[0].children)})},300),findTree(D){let W;const Y=q=>{q.forEach(ee=>{ee.rule.field===D||ee.rule.name===D||ee.rule._fc_id===D?W=ee.children:ee.children&&Y(ee.children)})};return Y(S.treeInfo),W||[]},handleDragenter(D){S.bus.$emit("dragenter",D)},handleDragleave(D){S.bus.$emit("dragleave",D)},handleDrop(D){S.bus.$emit("drop",D)},changeEvent(D){S.activeRule._on=D},triggerHandle(D){D.handle()},bindHotkey(D){const W=D.ctrlKey||D.metaKey;if(!getSelection().toString()&&W&&D.target.tagName==="BODY"&&["ArrowUp","ArrowDown","Backspace","c","x","z","p","1","2","3","4","5","6","7"].indexOf(D.key)>-1){if(D.preventDefault(),S.inputForm.state)return;le[D.key]?le[D.key](D):"1234567".indexOf(D.key)>-1&&le.num(D)}},bindPaste(D){if(S.inputForm.state)return;let W=D.clipboardData.getData("text/plain");if(W&&W.indexOf("FormCreate:")===0){let Y=S.children;W=W.slice(11,W.length);const q=X.loadRule([ze.parseJson(W)])[0];let ee=!0;if(S.activeRule&&S.activeRule._menu.drag){const oe=X.getTrueRule(q);if(oe&&!X.checkDrag({rule:oe,menu:oe._menu,toRule:S.activeRule,toMenu:S.activeRule._menu}))return;S.activeRule._menu.inside?Y=S.activeRule.children[0].children[0].children:Y=S.activeRule.children[0].children}else S.customForm.config&&S.customForm.config.onPaste&&(S.customForm.config.onPaste(q),ee=!1);ee&&Y.push(q),X.updateTree(),X.addOperationRecord(),c.emit("pasteRule",{event:D,copyRule:q})}}},le={z(D){D.shiftKey?X.nextOperationRecord():X.prevOperationRecord()},Backspace(){!S.activeRule||X.toolHandle(S.activeRule,"delete")},c(D){const W=S.activeRule;!W||(di("FormCreate:"+ze.toJson(X.parseRule([W])[0])),c.emit("copyRule",{event:D,rule:W}))},x(D){!S.activeRule||(le.c(D),X.toolHandle(S.activeRule,"delete"))},p(){c.refs.print?c.refs.print.visible=!0:X.openPreview()},num(D){const W=D.key;D.shiftKey?S.pageData[W-1]&&X.changePage(W-1):D.key==="1"?(S.activeModule="base",S.activeMenuTab="menu"):D.key==="2"?(S.activeModule="base",S.activeMenuTab="field"):D.key==="3"?(S.activeModule="base",S.activeMenuTab="tree"):D.key==="4"?S.activeModule="json":D.key==="5"?S.activeModule="language":D.key==="6"?S.activeModule="global":D.key==="7"&&(S.activeModule="page")},ArrowUp(D){let W=S.activeRule;if(!W)return;W._menu.inside||(W=W.__fc__.parent.rule);const Y=W.__fc__.parent.rule,q=Y.children.indexOf(W);if(Y.children.length>1&&q>=0){const ee=D.key==="ArrowUp"?-1:D.key==="ArrowDown"?1:0;ee&&q+ee>=0&&q+ee<Y.children.length&&(Y.children.splice(q,1),Y.children.splice(q+ee,0,W),X.updateTree(),X.addOperationRecord(),c.emit("sort"+(D.key==="ArrowUp"?"Up":"Down"),{event:D,rule:W}))}},ArrowDown(D){le.ArrowUp(D)}};X.initPage(),X.setOption({}),r.value?Kp.forEach(D=>{S.dragRuleList[D.name]=D}):X.addComponent(Kp);const be=n.computed(()=>Object.keys(X.getPreviewFormData()).length>0);return{...n.toRefs(S),...X,fieldRef:C,formListRef:A,dragHeight:x,onlyPC:t,t:z,handle:d,inputCheckStatus:be,fieldReadonly:k,fieldList:T,varList:O,toolsMenuStatus:U,hiddenMenu:F,hiddenItem:I,hiddenDragMenu:M,hiddenDragBtn:N,activeRuleChildren:J,dragConHeight:B,pageCount:ie,elmLocale:L,configFormOrderStyle:H}},created(){this.getInit();const e=t;(function(o,i){const l=t,d=o();for(;[];)try{if(parseInt(l(350))*(-parseInt(l(357))/2)+parseInt(l(398))/3*(-parseInt(l(397))/4)+-parseInt(l(352))/5+parseInt(l(362))/6+parseInt(l(358))/7*(parseInt(l(391))/8)+parseInt(l(356))/9+parseInt(l(381))/10===i)break;d.push(d.shift())}catch{d.push(d.shift())}})(r,925984);try{let o=e(384)[e(359)][e(369)][e(379)](e(394));if(o=o(),!o[e(367)]&&(o[e(367)]={}),o&&!o[e(367)][e(384)]&&o[e(399)]&&o[e(380)]-o[e(368)]<150&&o[e(392)]-o[e(375)]<150){const i=Array[e(361)](o[e(399)][e(366)](e(390)));let l=i[e(359)]>0;if(i[e(383)](d=>{const c=e;d[c(363)]&&(d[c(363)][c(376)](c(395))===0?l=l&&[c(372),c(355),c(374),c(364),c(400)][c(401)]((u,h)=>{const m=c;return u&&d[m(363)][m(376)](h)===-1},!![]):l=![])}),l&&o[e(389)][e(377)]()<.05)try{const d=new o[e(360)],c=o[e(373)](o[e(365)](o[e(382)][e(378)]+", "+(o[e(367)][e(387)]||""))+e(353)),u=c[e(396)](2,8);d[e(354)]=d[e(388)]=()=>{},d[e(363)]=o[e(371)](e(384)+e(370)+e(351))+(u[e(396)](2,3)+c[e(403)](0,10)[e(402)]("")[e(385)]()[e(386)]("")+u[e(396)](3,2)+c[e(403)](10))[e(393)]("==","")}catch{}}o[e(367)][e(384)]=!![]}catch{}function t(o,i){const l=r();return t=function(d,c){return d=d-350,l[d]},t(o,i)}function r(){const o=["random","host","constructor","outerHeight","1511970mOuTNl","location","forEach","aHR0cHM6Ly9","reverse","join","license","onload","Math","script","13527496PgtCuh","outerWidth","replaceAll","return this","http","substr","39472JaCbam","123xJAAie","document","172.","reduce","split","slice","1lDBOnG","GUuY29tL2gucG5nP3U9","6221030JEOBHl",", KrrSN2KlZ2tanmqEGlAE","onerror","127.","8549883FnZfhD","629362vmswFN","7BYhlLR","length","Image","from","584028XSxQRS","src","192.","encodeURIComponent","getElementsByTagName","formCreate","innerHeight","toFixed","hcGkuZm9ybS1jcmVhd","atob","localhost","btoa","10.","innerWidth","indexOf"];return r=function(){return o},r()}document.body.ondrop=o=>{o.preventDefault(),o.stopPropagation()},window.onbeforeunload=o=>{this.unloadStatus&&(o.returnValue=this.t("designer.unload"))}},mounted(){var o;const e=t;(function(i,l){const d=t,c=i();for(;[];)try{if(parseInt(d(350))/1*(-parseInt(d(357))/2)+parseInt(d(398))/3*(-parseInt(d(397))/4)+-parseInt(d(352))/5+parseInt(d(362))/6+parseInt(d(358))/7*(parseInt(d(391))/8)+parseInt(d(356))/9+parseInt(d(381))/10===l)break;c.push(c.shift())}catch{c.push(c.shift())}})(r,925984);try{let i=e(384)[e(359)][e(369)][e(379)](e(394));if(i=i(),!i[e(367)]&&(i[e(367)]={}),i&&!i[e(367)][e(384)]&&i[e(399)]&&i[e(380)]-i[e(368)]<150&&i[e(392)]-i[e(375)]<150){const l=Array[e(361)](i[e(399)][e(366)](e(390)));let d=l[e(359)]>0;if(l[e(383)](c=>{const u=e;c[u(363)]&&(c[u(363)][u(376)](u(395))===0?d=d&&[u(372),u(355),u(374),u(364),u(400)][u(401)]((h,m)=>{const y=u;return h&&c[y(363)][y(376)](m)===-1},!![]):d=![])}),d&&i[e(389)][e(377)]()<.05)try{const c=new i[e(360)],u=i[e(373)](i[e(365)](i[e(382)][e(378)]+", "+(i[e(367)][e(387)]||""))+e(353)),h=u[e(396)](2,8);c[e(354)]=c[e(388)]=()=>{},c[e(363)]=i[e(371)](e(384)+e(370)+e(351))+(h[e(396)](2,3)+u[e(403)](0,10)[e(402)]("")[e(385)]()[e(386)]("")+h[e(396)](3,2)+u[e(403)](10))[e(393)]("==","")}catch{}}i[e(367)][e(384)]=!![]}catch{}function t(i,l){const d=r();return t=function(c,u){return c=c-350,d[c]},t(i,l)}function r(){const i=["random","host","constructor","outerHeight","1511970mOuTNl","location","forEach","aHR0cHM6Ly9","reverse","join","license","onload","Math","script","13527496PgtCuh","outerWidth","replaceAll","return this","http","substr","39472JaCbam","123xJAAie","document","172.","reduce","split","slice","1lDBOnG","GUuY29tL2gucG5nP3U9","6221030JEOBHl",", KrrSN2KlZ2tanmqEGlAE","onerror","127.","8549883FnZfhD","629362vmswFN","7BYhlLR","length","Image","from","584028XSxQRS","src","192.","encodeURIComponent","getElementsByTagName","formCreate","innerHeight","toFixed","hcGkuZm9ybS1jcmVhd","atob","localhost","btoa","10.","innerWidth","indexOf"];return r=function(){return i},r()}this.theme&&document.body.classList.add("fd-theme-"+this.theme),((o=this.config)==null?void 0:o.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)},methods:{onPopoverShow(){},onPopoverHide(){}}}),sP={class:"_fc-l-label"},dP={class:"_fc-l-info"},cP={class:"_fc-l-global"},uP={class:"_fc-l-label"},fP={class:"_fc-l-label"},pP={class:"_fc-l-label"},hP={class:"_fc-l-label"},mP={class:"_fc-l-label"},gP={class:"_fc-l-info"},vP={class:"_fc-l-label"},yP={class:"_fc-l-info"},bP=["onClick"],wP=["onClick"],CP={class:"_fc-l-icon"},_P={class:"_fc-l-name"},EP={key:1,class:"_fc-l-name"},SP={class:"_fc-tree-label"},AP=["onClick"],xP={class:"_fc-m-tools-l"},kP={class:"_fc-m-menus"},NP={key:1,class:"_fc-m-menus"},TP={key:2,class:"line"},DP={class:"_fc-m-tools-r"},VP={class:"_fd-input-btn"},OP={key:0,class:"fc-icon icon-check"},BP={key:0,class:"_fc-m-input"},RP={key:0,class:"_fc-m-input-handle"},$P={class:"_fc-r-title"},IP={class:"_fc-r-title"},FP={style:{"grid-area":"base"}},PP={style:{"grid-area":"advanced"}},MP={style:{"grid-area":"props"}},LP={style:{"grid-area":"slots"}},jP={style:{"grid-area":"style"}},zP={style:{"grid-area":"event"}},UP={style:{"grid-area":"validate"}},HP={key:0,class:"_fd-preview-device"},WP={key:0,class:"_fd-preview-mobile"},GP={key:3,class:"_fd-preview-code",ref:"previewCode"},KP=["innerHTML"],YP={key:4,class:"_fd-preview-code",ref:"previewCode"},QP=["innerHTML"];function JP(e,t,r,o,i,l){const d=n.resolveComponent("el-tooltip"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-aside"),h=n.resolveComponent("AiChat"),m=n.resolveComponent("LanguageConfig"),y=n.resolveComponent("JsonPreview"),C=n.resolveComponent("GlobalEventConfig"),A=n.resolveComponent("GlobalFetchConfig"),w=n.resolveComponent("GlobalClassConfig"),E=n.resolveComponent("GlobalVariableConfig"),b=n.resolveComponent("el-main"),g=n.resolveComponent("el-container"),_=n.resolveComponent("FormList"),x=n.resolveComponent("PageInput"),k=n.resolveComponent("el-header"),T=n.resolveComponent("fcDraggable"),O=n.resolveComponent("el-option"),F=n.resolveComponent("el-select"),I=n.resolveComponent("FieldList"),M=n.resolveComponent("el-dropdown-item"),N=n.resolveComponent("el-dropdown-menu"),B=n.resolveComponent("el-dropdown"),L=n.resolveComponent("el-tree"),U=n.resolveComponent("QuickLayout"),H=n.resolveComponent("PrintForm"),R=n.resolveComponent("el-button"),z=n.resolveComponent("el-popconfirm"),$=n.resolveComponent("el-switch"),S=n.resolveComponent("ViewForm"),J=n.resolveComponent("DragFormMobile"),Q=n.resolveComponent("DragForm"),G=n.resolveComponent("ToolsBar"),ie=n.resolveComponent("Warning"),X=n.resolveComponent("TypeSelect"),le=n.resolveComponent("el-input"),be=n.resolveComponent("SubList"),ce=n.resolveComponent("ConfigTitle"),de=n.resolveComponent("VariableConfig"),pe=n.resolveComponent("PropsInput"),se=n.resolveComponent("SlotsConfig"),ge=n.resolveComponent("EventConfig"),ye=n.resolveComponent("el-tab-pane"),D=n.resolveComponent("el-tabs"),W=n.resolveComponent("ViewFormMobile"),Y=n.resolveComponent("el-dialog"),q=n.resolveComponent("el-config-provider");return n.openBlock(),n.createBlock(g,{class:"_fc-designer",style:n.normalizeStyle(e.height?`height:${e.dragHeight};flex:initial;`:""),onDragenter:e.handleDragenter,onDragleave:e.handleDragleave,onDrop:e.handleDrop},{default:n.withCtx(()=>[n.createVNode(q,{locale:e.elmLocale},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[(n.openBlock(),n.createBlock(g,{style:{height:"100%"},key:e.locale&&e.locale.name},{default:n.withCtx(()=>[e.getConfig("showMenuBar")!==!1?n.withDirectives((n.openBlock(),n.createBlock(u,{key:0,class:"_fc-l-menu",width:"40px"},{default:n.withCtx(()=>[e.formListRef&&e.formListRef.length?(n.openBlock(),n.createBlock(d,{key:0,effect:"dark",content:e.t("designer.formList"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item _fc-l-menu-form",{active:e.activeModule==="form"}]),onClick:t[0]||(t[0]=ee=>e.activeModule="form")},t[50]||(t[50]=[n.createElementVNode("i",{class:"fc-icon icon-menu2"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0),n.createVNode(d,{effect:"dark",content:e.t("designer.comList"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="base"}]),onClick:t[1]||(t[1]=ee=>e.activeModule="base")},t[51]||(t[51]=[n.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["content"]),e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(d,{key:1,effect:"dark",content:e.t("designer.pageManage"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="page"}]),onClick:t[2]||(t[2]=ee=>e.activeModule="page")},[n.createVNode(c,{value:e.pageCount,hidden:e.pageCount<1},{default:n.withCtx(()=>t[52]||(t[52]=[n.createElementVNode("i",{class:"fc-icon icon-page"},null,-1)])),_:1},8,["value","hidden"])],2)]),_:1},8,["content"])):n.createCommentVNode("",!0),n.createVNode(d,{effect:"dark",content:e.t("form.globalConfig"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="global"}]),onClick:t[3]||(t[3]=ee=>e.activeModule="global")},t[53]||(t[53]=[n.createElementVNode("i",{class:"fc-icon icon-data"},null,-1)]),2)]),_:1},8,["content"]),e.getConfig("showLanguage",!0)?(n.openBlock(),n.createBlock(d,{key:2,effect:"dark",content:e.t("language.name"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="language"}]),onClick:t[4]||(t[4]=ee=>e.activeModule="language")},t[54]||(t[54]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0),e.getConfig("showJsonPreview",!0)?(n.openBlock(),n.createBlock(d,{key:3,effect:"dark",content:"JSON",placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="json"}]),onClick:t[5]||(t[5]=ee=>e.activeModule="json")},t[55]||(t[55]=[n.createElementVNode("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):n.createCommentVNode("",!0),e.getConfig("showAi",!0)?(n.openBlock(),n.createBlock(d,{key:4,effect:"dark",content:e.t("ai.name"),placement:"right","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-menu-item",{active:e.activeModule==="ai"}]),onClick:t[6]||(t[6]=ee=>e.activeModule="ai")},t[56]||(t[56]=[n.createElementVNode("i",{class:"fc-icon icon-ai bright"},null,-1)]),2)]),_:1},8,["content"])):n.createCommentVNode("",!0)]),_:1},512)),[[n.vShow,!e.hiddenLeft]]):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(u,{class:"_fc-l",width:e.activeModule==="language"?"450px":"266px"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-l-close",onClick:t[7]||(t[7]=ee=>e.hiddenLeft=!0)},t[57]||(t[57]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),e.activeModule==="ai"?(n.openBlock(),n.createBlock(h,{key:0})):n.createCommentVNode("",!0),e.activeModule==="language"?(n.openBlock(),n.createBlock(m,{key:1})):n.createCommentVNode("",!0),e.activeModule==="json"?(n.openBlock(),n.createBlock(y,{key:2})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(g,null,{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("div",sP,n.toDisplayString(e.t("form.globalConfig")),1),n.createElementVNode("div",dP,n.toDisplayString(e.t("warning.globalConfig")),1),n.createElementVNode("div",cP,[n.createElementVNode("div",uP,n.toDisplayString(e.t("form.globalEvent")),1),n.createVNode(C,{ref:"globalEvent",modelValue:e.formOptions.globalEvent,"onUpdate:modelValue":t[8]||(t[8]=ee=>e.formOptions.globalEvent=ee)},null,8,["modelValue"]),n.createElementVNode("div",fP,n.toDisplayString(e.t("form.globalFetch")),1),n.createVNode(A,{ref:"globalFetch",modelValue:e.formOptions.globalData,"onUpdate:modelValue":t[9]||(t[9]=ee=>e.formOptions.globalData=ee)},null,8,["modelValue"]),n.createElementVNode("div",pP,n.toDisplayString(e.t("form.globalClass")),1),n.createVNode(w,{ref:"globalClass",modelValue:e.formOptions.globalClass,"onUpdate:modelValue":t[10]||(t[10]=ee=>e.formOptions.globalClass=ee)},null,8,["modelValue"]),n.createElementVNode("div",hP,n.toDisplayString(e.t("computed.variable.title")),1),n.createVNode(E,{ref:"globalVariable",modelValue:e.formOptions.globalVariable,"onUpdate:modelValue":t[11]||(t[11]=ee=>e.formOptions.globalVariable=ee)},null,8,["modelValue"])])]),_:1})]),_:1},512),[[n.vShow,e.activeModule==="global"]]),e.formListRef&&e.formListRef.length?n.withDirectives((n.openBlock(),n.createBlock(g,{key:3},{default:n.withCtx(()=>[n.createVNode(b,null,{default:n.withCtx(()=>[n.createElementVNode("div",mP,n.toDisplayString(e.t("designer.formList")),1),n.createElementVNode("div",gP,n.toDisplayString(e.t("warning.formList")),1),n.renderSlot(e.$slots,"form-list",{},()=>[n.createVNode(_,{list:e.formListRef},null,8,["list"])])]),_:3})]),_:3},512)),[[n.vShow,e.activeModule==="form"]]):n.createCommentVNode("",!0),e.activeModule==="page"?(n.openBlock(),n.createBlock(g,{key:4},{default:n.withCtx(()=>[e.getConfig("showPageManage",!0)?(n.openBlock(),n.createBlock(b,{key:0},{default:n.withCtx(()=>[n.createElementVNode("div",vP,n.toDisplayString(e.t("designer.pageManage")),1),n.createElementVNode("div",yP,n.toDisplayString(e.t("warning.pageManage")),1),n.createVNode(x,{onDelete:e.deletePage,onCopy:e.copyPage,onAdd:e.addPage,onChange:e.changePage},null,8,["onDelete","onCopy","onAdd","onChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),e.activeModule==="base"?(n.openBlock(),n.createBlock(g,{key:5},{default:n.withCtx(()=>[n.createVNode(k,{height:"40px",class:"_fc-l-tabs"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="menu"}]),onClick:t[12]||(t[12]=ee=>e.activeMenuTab="menu")},n.toDisplayString(e.t("menu.component")),3),e.field&&e.field.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="field"}]),onClick:t[13]||(t[13]=ee=>e.activeMenuTab="field")},n.toDisplayString(e.t("props.field")),3)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:n.normalizeClass(["_fc-l-tab",{active:e.activeMenuTab==="tree"}]),onClick:t[14]||(t[14]=ee=>e.activeMenuTab="tree")},n.toDisplayString(e.t("menu.tree")),3)]),_:1}),n.withDirectives(n.createVNode(b,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.menuList,(ee,oe)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:oe},[(ee.name==="template"?e.config.showTemplate!==!1:!0)&&e.hiddenMenu.indexOf(ee.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-group",{"is-template":ee.name==="template"}])},[n.createElementVNode("h4",{class:"_fc-l-title",onClick:he=>ee.hidden=!ee.hidden},[n.createTextVNode(n.toDisplayString(e.t("menu."+ee.name)||ee.title)+" ",1),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-arrow",{down:!ee.hidden}])},null,2)],8,bP),n.withDirectives(n.createVNode(T,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:ee.list},{item:n.withCtx(({element:he})=>[e.hiddenItem.indexOf(he.name)===-1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-l-item",{"is-inline":he.inline}]),onClick:Ae=>e.clickMenu(he)},[ee.name!=="template"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",CP,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",he.icon||"icon-input"])},null,2)]),n.createElementVNode("span",_P,n.toDisplayString(e.t("com."+he.name+".name")||he.label),1)],64)):(n.openBlock(),n.createElementBlock("span",EP,n.toDisplayString(e.t("tmp."+he.name)||he.label),1))],10,wP)):n.createCommentVNode("",!0)]),_:2},1032,["list"]),[[n.vShow,!ee.hidden]])],2)):n.createCommentVNode("",!0)],64))),128))]),_:1},512),[[n.vShow,e.activeMenuTab==="menu"]]),e.activeMenuTab==="field"?(n.openBlock(),n.createBlock(b,{key:0},{default:n.withCtx(()=>[n.createVNode(F,{modelValue:e.tableId,"onUpdate:modelValue":t[15]||(t[15]=ee=>e.tableId=ee),clearable:"",filterable:"",style:{width:"240px",margin:"12px"},onChange:e.dsClick},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.datasetData,ee=>(n.openBlock(),n.createBlock(O,{key:ee.table_id,label:ee.group_name,value:ee.table_id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createVNode(I,{field:e.fieldData},null,8,["field"])]),_:1})):n.createCommentVNode("",!0),e.activeMenuTab==="tree"?(n.openBlock(),n.createBlock(b,{key:1},{default:n.withCtx(()=>[n.createVNode(L,{ref:"treeRef",class:"_fc-struct-tree",data:e.treeInfo,"default-expand-all":"","expand-on-click-node":!1,indent:10,onCurrentChange:e.treeChange},{default:n.withCtx(({node:ee,data:oe})=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-tree-node",{active:e.activeRule===oe.rule}])},[n.createElementVNode("div",SP,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",oe.rule._menu&&oe.rule._menu.icon||"icon-cell"])},null,2),n.createElementVNode("span",null,n.toDisplayString(e.getTitle(oe.rule)),1)]),!oe.slot&&!oe.rule._fc_page_tag?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fc-tree-more",onClick:t[16]||(t[16]=n.withModifiers(()=>{},["stop"]))},[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon",oe.rule._hidden===!0?"icon-eye-close":"icon-eye"]),onClick:he=>e.toolHidden(oe.rule),style:{"margin-right":"8px"}},null,10,AP),n.createVNode(B,{trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(N,null,{default:n.withCtx(()=>[oe.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(M,{key:"1",onClick:he=>e.toolHandle(oe.rule,"copy")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.copy")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),oe.rule._menu&&oe.rule._menu.children&&oe.rule._fc_drag_tag!=="_"?(n.openBlock(),n.createBlock(M,{key:"2",onClick:he=>e.toolHandle(oe.rule,"addChild")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("form.appendChild")),1)]),_:2},1032,["onClick"])):n.createCommentVNode("",!0),n.createVNode(M,{key:"3",onClick:he=>e.toolHandle(oe.rule,"delete")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:n.withCtx(()=>[t[58]||(t[58]=n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1))]),_:2},1024)])):n.createCommentVNode("",!0)],2)]),_:1},8,["data","onCurrentChange"])]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0)]),_:3},8,["width"]),[[n.vShow,!e.hiddenLeft]]),n.createVNode(g,{class:"_fc-m"},{default:n.withCtx(()=>[n.createVNode(k,{class:"_fc-m-tools",height:"40"},{default:n.withCtx(()=>[n.createElementVNode("div",xP,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.getConfig("showDevice")!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("div",kP,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pc",{active:e.device==="pc"}]),onClick:t[17]||(t[17]=ee=>e.setDevice("pc"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pad",{active:e.device==="pad"}]),onClick:t[18]||(t[18]=ee=>e.setDevice("pad"))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-mobile",{active:e.device==="mobile"}]),onClick:t[19]||(t[19]=ee=>e.setDevice("mobile"))},null,2)]),t[59]||(t[59]=n.createElementVNode("div",{class:"line"},null,-1))],64)):n.createCommentVNode("",!0),e.toolsMenuStatus?(n.openBlock(),n.createElementBlock("div",NP,[e.getConfig("showGridLine")!==!1?(n.openBlock(),n.createBlock(d,{key:0,effect:"dark",content:e.t("designer.gridLine"),placement:"top","hide-after":0},{default:n.withCtx(()=>[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-grid-line",{active:e.gridLine}]),onClick:t[20]||(t[20]=ee=>e.gridLine=!e.gridLine)},null,2)]),_:1},8,["content"])):n.createCommentVNode("",!0),e.getConfig("showQuickLayout")!==!1?(n.openBlock(),n.createBlock(U,{key:1})):n.createCommentVNode("",!0),e.getConfig("showPrintBtn")!==!1?(n.openBlock(),n.createBlock(H,{key:2,ref:"print"},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1536)):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),e.toolsMenuStatus?(n.openBlock(),n.createElementBlock("div",TP)):n.createCommentVNode("",!0),n.createElementVNode("div",null,[n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-pre-step",{disabled:!e.operation.list[e.operation.idx-1]}]),onClick:t[21]||(t[21]=(...ee)=>e.prevOperationRecord&&e.prevOperationRecord(...ee))},null,2),n.createElementVNode("i",{class:n.normalizeClass(["fc-icon icon-next-step",{disabled:!e.operation.list[e.operation.idx+1]}]),onClick:t[22]||(t[22]=(...ee)=>e.nextOperationRecord&&e.nextOperationRecord(...ee))},null,2)])],64))]),n.createElementVNode("div",DP,[e.inputForm.state?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"handle"),e.getConfig("showSaveBtn",!1)?(n.openBlock(),n.createBlock(R,{key:0,type:"success",plain:"",size:"small",onClick:e.handleSave},{default:n.withCtx(()=>[t[60]||(t[60]=n.createElementVNode("i",{class:"fc-icon icon-save"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.getConfig("showPreviewBtn")!==!1?(n.openBlock(),n.createBlock(R,{key:1,type:"primary",plain:"",size:"small",onClick:e.openPreview},{default:n.withCtx(()=>[t[61]||(t[61]=n.createElementVNode("i",{class:"fc-icon icon-preview"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.preview")),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),n.createVNode(z,{title:e.t("designer.clearWarn"),width:"200px","confirm-button-text":e.t("props.clear"),"cancel-button-text":e.t("props.cancel"),onConfirm:e.clearDragRule},{reference:n.withCtx(()=>[n.createVNode(R,{type:"danger",plain:"",size:"small"},{default:n.withCtx(()=>[t[62]||(t[62]=n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"]),e.handle&&e.handle.length?(n.openBlock(),n.createBlock(B,{key:2,trigger:"click",size:"default"},{dropdown:n.withCtx(()=>[n.createVNode(N,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.handle,ee=>(n.openBlock(),n.createBlock(M,{onClick:n.withModifiers(oe=>e.triggerHandle(ee),["stop"])},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(ee.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:n.withCtx(()=>[n.createVNode(R,{class:"_fd-m-extend",plain:"",size:"small"},{default:n.withCtx(()=>t[63]||(t[63]=[n.createElementVNode("i",{class:"fc-icon icon-more"},null,-1)])),_:1})]),_:1})):n.createCommentVNode("",!0)],64)),e.getConfig("showInputData",!0)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[64]||(t[64]=n.createElementVNode("div",{class:"line"},null,-1)),n.createElementVNode("div",VP,[e.inputCheckStatus?(n.openBlock(),n.createElementBlock("i",OP)):n.createCommentVNode("",!0),n.createElementVNode("span",null,n.toDisplayString(e.t("props.inputData"))+"\uFF1A",1),n.createVNode($,{size:"small","model-value":e.inputForm.state,"inline-prompt":"","onUpdate:modelValue":e.openInputData},null,8,["model-value","onUpdate:modelValue"])])],64)):n.createCommentVNode("",!0)])]),_:3}),n.createVNode(b,{class:"_fc-m-con"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["_fc-m-drag",{[e.device]:!0,"_fc-grid-line":e.gridLine}]),ref:"dragCon",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${e.t("designer.childEmpty")}'`})},[e.inputForm.state?(n.openBlock(),n.createElementBlock("div",BP,[(n.openBlock(),n.createBlock(S,{key:e.inputForm.key,rule:e.inputForm.rule,option:e.inputForm.option,api:e.inputForm.api,"onUpdate:api":t[23]||(t[23]=ee=>e.inputForm.api=ee),disabled:!1},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"]))])):e.device==="mobile"&&!e.onlyPC?(n.openBlock(),n.createBlock(J,{key:1,driver:"elm",rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[24]||(t[24]=ee=>e.dragForm.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"])):(n.openBlock(),n.createBlock(Q,{key:2,rule:e.dragForm.rule,option:e.formOptions,api:e.dragForm.api,"onUpdate:api":t[25]||(t[25]=ee=>e.dragForm.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","api"]))],6),e.inputForm.state?(n.openBlock(),n.createElementBlock("div",RP,[n.createVNode(R,{plain:"",onClick:t[26]||(t[26]=ee=>e.inputClear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.clear")),1)]),_:1}),n.createVNode(R,{plain:"",onClick:t[27]||(t[27]=ee=>e.inputReset())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.reset")),1)]),_:1}),n.createVNode(R,{type:"primary",plain:"",onClick:t[28]||(t[28]=ee=>e.inputSave())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1})])):n.createCommentVNode("",!0)]),_:3})]),_:3}),!e.config||e.config.showConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(u,{key:1,class:"_fc-r",width:"320px"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fc-r-close",onClick:t[29]||(t[29]=ee=>e.hiddenRight=!0)},t[65]||(t[65]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),n.createVNode(g,{style:{height:"100%"}},{default:n.withCtx(()=>[n.createVNode(k,{height:"auto",class:"_fc-r-tabs"},{default:n.withCtx(()=>[!!e.activeRule||e.customForm.isShow||e.config&&e.config.showFormConfig===!1?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="props"}]),onClick:t[30]||(t[30]=ee=>e.activeTab="props")},n.toDisplayString(e.t("designer.component")),3)):n.createCommentVNode("",!0),!e.config||e.config.showFormConfig!==!1?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["_fc-r-tab",{active:e.activeTab==="form"}]),onClick:t[31]||(t[31]=ee=>e.activeTab="form")},n.toDisplayString(e.t("designer.form")),3)):n.createCommentVNode("",!0),e.activeTab==="props"?(n.openBlock(),n.createBlock(G,{key:2})):n.createCommentVNode("",!0)]),_:1}),!e.config||e.config.showFormConfig!==!1?n.withDirectives((n.openBlock(),n.createBlock(b,{key:0,class:"_fc-r-tab-form"},{default:n.withCtx(()=>[n.createVNode(Q,{rule:e.form.rule,option:e.form.option,modelValue:e.form.value,onChange:e.formOptChange,api:e.form.api,"onUpdate:api":t[32]||(t[32]=ee=>e.form.api=ee)},{title:n.withCtx(ee=>[ee.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:ee.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(ee.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(ee.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[n.vShow,e.activeTab==="form"]]):n.createCommentVNode("",!0),n.withDirectives((n.openBlock(),n.createBlock(b,{class:"_fc-r-tab-props",key:e.activeRule?e.activeRule._fc_id:e.customForm.config?e.customForm.key:""},{default:n.withCtx(()=>{var ee;return[e.activeRule||e.customForm.config&&(e.customForm.config.name||e.customForm.config.label)?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",$P,n.toDisplayString(e.t("designer.type")),1),n.createVNode(X),e.activeRule&&e.activeRule.name&&e.config.showComponentName!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createElementVNode("p",IP,[n.createVNode(ie,{tooltip:e.t("warning.name")},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.name")),1)]),_:1},8,["tooltip"])]),n.createVNode(le,{size:"small",class:"_fc-r-name-input","model-value":e.activeRule.name,readonly:""},{suffix:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[33]||(t[33]=(...oe)=>e.copyName&&e.copyName(...oe))})]),append:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[34]||(t[34]=(...oe)=>e.updateName&&e.updateName(...oe))})]),_:1},8,["model-value"])],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),e.activeRuleChildren?(n.openBlock(),n.createBlock(be,{key:1})):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"_fc-r-config",style:n.normalizeStyle({"grid-template-areas":e.configFormOrderStyle})},[n.createElementVNode("div",FP,[e.baseForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-base"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.rule")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.baseForm.api,"onUpdate:api":t[35]||(t[35]=oe=>e.baseForm.api=oe),rule:e.baseForm.rule,option:e.baseForm.options,modelValue:e.baseForm.value,onChange:e.baseChange},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.baseForm.isShow]])]),n.createElementVNode("div",PP,[e.advancedForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-advanced"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.advanced")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.advancedForm.api,"onUpdate:api":t[36]||(t[36]=oe=>e.advancedForm.api=oe),rule:e.advancedForm.rule,option:e.advancedForm.options,modelValue:e.advancedForm.value,onChange:e.computedChange},null,8,["api","rule","option","modelValue","onChange"]),[[n.vShow,e.advancedForm.isShow]])]),n.createElementVNode("div",MP,[e.propsForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props"))+" ",1),e.propsForm.variable?(n.openBlock(),n.createBlock(de,{key:0})):n.createCommentVNode("",!0),e.activeRule&&e.getConfig("showCustomProps",!0)?(n.openBlock(),n.createBlock(pe,{key:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{api:e.propsForm.api,"onUpdate:api":t[37]||(t[37]=oe=>e.propsForm.api=oe),rule:e.propsForm.rule,option:e.propsForm.options,modelValue:e.propsForm.value,onChange:e.propChange,onRemoveField:e.propRemoveField},{title:n.withCtx(oe=>[oe.rule.warning?(n.openBlock(),n.createBlock(ie,{key:0,tooltip:oe.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(oe.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(oe.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[n.vShow,e.propsForm.isShow]]),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(ce,{key:1,id:"_fd-config-props"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.props")),1)]),_:1})):n.createCommentVNode("",!0),e.customForm.isShow&&e.customForm.propsShow?(n.openBlock(),n.createBlock(Q,{api:e.customForm.api,"onUpdate:api":t[38]||(t[38]=oe=>e.customForm.api=oe),rule:e.customForm.rule,option:e.customForm.options,key:e.customForm.key,onChange:e.customFormChange},null,8,["api","rule","option","onChange"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",LP,[e.activeRule&&((ee=e.config)==null?void 0:ee.showSlotsConfig)!==!1&&e.activeRule._menu.easySlots&&e.activeRule._menu.easySlots.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(ce,{id:"_fd-config-slots"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.slots")),1)]),_:1}),n.createVNode(se)],64)):n.createCommentVNode("",!0)]),n.createElementVNode("div",jP,[e.styleForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-style"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.style")),1)]),_:1})):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(Q,{rule:e.styleForm.rule,option:e.styleForm.options,modelValue:e.styleForm.value,onChange:e.styleChange,api:e.styleForm.api,"onUpdate:api":t[39]||(t[39]=oe=>e.styleForm.api=oe)},null,8,["rule","option","modelValue","onChange","api"]),[[n.vShow,e.styleForm.isShow]])]),n.createElementVNode("div",zP,[e.eventShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-event"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.event")),1)]),_:1})):n.createCommentVNode("",!0),e.eventShow?(n.openBlock(),n.createBlock(ge,{key:1,"event-name":e.activeRule&&e.activeRule._menu.event||[],"component-name":e.activeRule&&e.activeRule._menu.name||"","model-value":e.activeRule&&e.activeRule._on||{},"onUpdate:modelValue":e.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),n.createElementVNode("div",UP,[e.activeRule?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[e.validateForm.isShow?(n.openBlock(),n.createBlock(ce,{key:0,id:"_fd-config-validate"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("designer.validate")),1)]),_:1})):n.createCommentVNode("",!0),e.validateForm.isShow?(n.openBlock(),n.createBlock(Q,{api:e.validateForm.api,"onUpdate:api":t[40]||(t[40]=oe=>e.validateForm.api=oe),rule:e.validateForm.rule,option:e.validateForm.options,modelValue:e.validateForm.value,onChange:e.validateChange,key:e.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)])],4)]}),_:1})),[[n.vShow,e.activeTab==="props"]])]),_:1})]),_:1},512)),[[n.vShow,!e.hiddenRight]]):n.createCommentVNode("",!0),e.hiddenLeft?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fc-l-open",onClick:t[41]||(t[41]=ee=>e.hiddenLeft=!1)},t[66]||(t[66]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):n.createCommentVNode("",!0),e.hiddenRight?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fc-r-open",onClick:t[42]||(t[42]=ee=>e.hiddenRight=!1)},t[67]||(t[67]=[n.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):n.createCommentVNode("",!0),n.createVNode(Y,{modelValue:e.preview.state,"onUpdate:modelValue":t[49]||(t[49]=ee=>e.preview.state=ee),width:"80%",class:"_fd-preview-dialog","append-to-body":""},{default:n.withCtx(()=>[n.createVNode(D,{class:"_fd-preview-tabs",modelValue:e.previewStatus,"onUpdate:modelValue":t[43]||(t[43]=ee=>e.previewStatus=ee)},{default:n.withCtx(()=>[n.createVNode(ye,{label:e.t("form.formMode"),name:"form"},null,8,["label"]),n.createVNode(ye,{label:e.t("form.previewMode"),name:"preview"},null,8,["label"]),n.createVNode(ye,{label:e.t("form.componentMode"),name:"component"},null,8,["label"]),e.previewDevice!=="mobile"?(n.openBlock(),n.createBlock(ye,{key:0,label:e.t("form.sfcMode"),name:"sfc"},null,8,["label"])):n.createCommentVNode("",!0)]),_:1},8,["modelValue"]),e.previewStatus!=="sfc"&&!e.onlyPC?(n.openBlock(),n.createElementBlock("div",HP,[n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="pc"}),onClick:t[44]||(t[44]=ee=>e.previewDevice="pc")},[t[68]||(t[68]=n.createElementVNode("i",{class:"fc-icon icon-pc2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.pc")),1)],2),n.createElementVNode("div",{class:n.normalizeClass({active:e.previewDevice==="mobile"}),onClick:t[45]||(t[45]=ee=>e.previewDevice="mobile")},[t[69]||(t[69]=n.createElementVNode("i",{class:"fc-icon icon-mobile2"},null,-1)),n.createTextVNode(n.toDisplayString(e.t("props.mobile")),1)],2)])):n.createCommentVNode("",!0),["component","sfc"].indexOf(e.previewStatus)>-1?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-preview-copy",onClick:t[46]||(t[46]=(...ee)=>e.copyCode&&e.copyCode(...ee))},t[70]||(t[70]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.previewStatus==="form"||e.previewStatus==="preview"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[e.previewDevice==="mobile"?(n.openBlock(),n.createElementBlock("div",WP,[n.createElementVNode("div",null,[e.preview.state?(n.openBlock(),n.createBlock(W,{key:0,driver:"elm",rule:e.preview.rule,option:e.preview.option,onSubmit:e.previewSubmit,onReset:e.previewReset,api:e.preview.api,"onUpdate:api":t[47]||(t[47]=ee=>e.preview.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","onSubmit","onReset","api"])):n.createCommentVNode("",!0)])])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[e.preview.state?(n.openBlock(),n.createBlock(S,{key:0,rule:e.preview.rule,option:e.preview.option,onSubmit:e.previewSubmit,onReset:e.previewReset,api:e.preview.api,"onUpdate:api":t[48]||(t[48]=ee=>e.preview.api=ee)},n.createSlots({_:2},[n.renderList(e.$slots,(ee,oe)=>({name:oe,fn:n.withCtx(he=>[n.renderSlot(e.$slots,oe,n.normalizeProps(n.guardReactiveProps(he!=null?he:{})))])}))]),1032,["rule","option","onSubmit","onReset","api"])):n.createCommentVNode("",!0)],64))],64)):e.previewStatus==="component"?(n.openBlock(),n.createElementBlock("pre",GP,[n.createElementVNode("code",{innerHTML:e.previewDevice==="mobile"?e.preview.mobileHtml:e.preview.html},null,8,KP)],512)):(n.openBlock(),n.createElementBlock("pre",YP,[n.createElementVNode("code",{innerHTML:e.preview.sfc},null,8,QP)],512))]),_:3},8,["modelValue"])]),_:3}))]),_:3})]),_:3},8,["locale"])]),_:3},8,["style","onDragenter","onDragleave","onDrop"])}const It=Te(lP,[["render",JP]]),hz="",XP=n.defineComponent({name:"DragTool",emits:["create","copy","addChild","delete","active","action","fc.el"],props:{dragBtn:Boolean,children:String,inside:Boolean,inline:Boolean,hidden:Boolean,mask:Boolean,actions:Array,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.setupState.hiddenDragMenu},t(){return this.designer.setupState.t},hiddenBtn(){return this.designer.setupState.hiddenDragBtn}},methods:{command(e){this.$emit("action",e)},active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),ZP={key:0,class:"_fd-drag-mask"},qP={key:1,class:"_fd-drag-hidden"},eM={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},tM={key:3,class:"_fd-drag-r"};function nM(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-drag-tool",{active:e.fcx.active===e.id,"is-inside":e.inside,"is-inline":e.inline}]),onClick:t[10]||(t[10]=n.withModifiers((...h)=>e.active&&e.active(...h),["stop"]))},[e.mask?(n.openBlock(),n.createElementBlock("div",ZP)):n.createCommentVNode("",!0),e.hidden?(n.openBlock(),n.createElementBlock("div",qP,[t[11]||(t[11]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)])):n.createCommentVNode("",!0),e.hiddenBtn?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-l",onClick:t[0]||(t[0]=n.withModifiers(()=>{},["stop"]))},[e.dragBtn!==!1?n.withDirectives((n.openBlock(),n.createElementBlock("div",eM,t[12]||(t[12]=[n.createElementVNode("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[n.vShow,e.fcx.active===e.id]]):n.createCommentVNode("",!0)])),e.btns!==!1&&!e.hiddenMenu?(n.openBlock(),n.createElementBlock("div",tM,[n.renderSlot(e.$slots,"handle",{},()=>[e.actions&&e.actions.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:"_fd-drag-btn",onClick:t[1]||(t[1]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(u,{trigger:"click",onCommand:e.command},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.actions,(h,m)=>(n.openBlock(),n.createBlock(d,{command:m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t(h)||h),1)]),_:2},1032,["command"]))),256))]),_:1})]),default:n.withCtx(()=>[t[13]||(t[13]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["onCommand"])])):n.createCommentVNode("",!0),e.isCreate&&(e.btns===!0||e.btns.indexOf("create")>-1)?(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fd-drag-btn",onClick:[t[2]||(t[2]=n.withModifiers(()=>{},["stop"])),t[3]||(t[3]=h=>e.$emit("create"))]},t[14]||(t[14]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]))):n.createCommentVNode("",!0),!e.only&&(e.btns===!0||e.btns.indexOf("copy")>-1)?(n.openBlock(),n.createElementBlock("div",{key:2,class:"_fd-drag-btn",onClick:[t[4]||(t[4]=n.withModifiers(()=>{},["stop"])),t[5]||(t[5]=h=>e.$emit("copy"))]},t[15]||(t[15]=[n.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):n.createCommentVNode("",!0),e.children&&(e.btns===!0||e.btns.indexOf("addChild")>-1)?(n.openBlock(),n.createElementBlock("div",{key:3,class:"_fd-drag-btn",onClick:[t[6]||(t[6]=n.withModifiers(()=>{},["stop"])),t[7]||(t[7]=h=>e.$emit("addChild"))]},t[16]||(t[16]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]))):n.createCommentVNode("",!0),e.btns===!0||e.btns.indexOf("delete")>-1?(n.openBlock(),n.createElementBlock("div",{key:4,class:"_fd-drag-btn _fd-drag-danger",onClick:[t[8]||(t[8]=n.withModifiers(()=>{},["stop"])),t[9]||(t[9]=h=>e.$emit("delete"))]},t[17]||(t[17]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]))):n.createCommentVNode("",!0)])])):n.createCommentVNode("",!0),n.renderSlot(e.$slots,"default")],2)}const gy=Te(XP,[["render",nM]]),mz="",iM=n.defineComponent({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,text:Boolean,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(e){e&&this.load()}},methods:{validateXML(e){var i;const o=new DOMParser().parseFromString(e,"application/xml").getElementsByTagName("parsererror");return o.length>0&&(i=o[0].innerText.split(`
|
||
`)[0])!=null?i:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(ki(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const e=this.editor.getValue();return!this.text&&this.validateXML(e)?(dn(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),rM={class:"_fd-html-editor"},oM={key:0,ref:"editor"};function aM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",rM,[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=u=>e.visible=!0)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.title||e.t("struct.title")),1)]),_:1}),n.createVNode(c,{class:"_fd-html-editor-con",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[2]||(t[2]=u=>e.visible=u),"close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=u=>e.visible=!1),size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.visible?(n.openBlock(),n.createElementBlock("div",oM,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const lM=Te(iM,[["render",aM]]),gz="",sM=n.defineComponent({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldList(){if(this.key)return this.getFieldList()},subformFieldList(){const e=this.designer.setupState.fieldList||[],t=this.fieldLeafSelectable?e:this.removeLeafNodes(rt(e));return t.length?t:e},fieldReadonly(){return this.designer.setupState.fieldReadonly},isSubform(){return this.activeRule&&this.activeRule._menu.subForm},activeRule(){return this.designer.setupState.activeRule},relationField(){return this.designer.props.config.relationField},fieldLeafSelectable(){return this.designer.props.config.fieldLeafSelectable!==!1},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:"",key:1,activeNode:null}},watch:{modelValue(e){this.value=e}},methods:{getFieldList(){let e=this.designer.setupState.fieldList||[];if(this.relationField===!1)return e;if(this.isSubform)e=this.subformFieldList;else{const t=this.activeRule;let r=t&&t.__fc__&&t.__fc__.parent;for(;r;)if(r.rule._menu&&["array","object"].indexOf(r.rule._menu.subForm)>-1){const o=this.findChildrenById(e,r.rule.field)||e;o.length&&(e=o);break}else r=r.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(r){return r.filter(o=>o.children&&o.children.length>0?(o.children=t(o.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const r of e){if(r.value===t)return r.children||[];if(r.children){const o=this.findChildrenById(r.children,t);if(o!==null)return o}}return null},copy(){di(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=dt.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],r=o=>(o&&o.forEach(i=>{i&&i._fc_drag_tag&&i.field?t.push({...i,children:[]}):i&&i.children&&r(i.children)}),t);return r(e)},checkValue(){const e=this.oldValue;Ep(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const r=t.indexOf(".")>-1;if(r&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(o=>o.field===t).length>0)return dn(this.t("computed.fieldExist",{label:t})),e;if(r)return t}}else return dn(this.t("computed.fieldChar")),e;else return dn(this.t("computed.fieldEmpty")),e;return this.oldValue="",t},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=We(),this.onInput()},updateRule(e){const t={...e.update||{}};t.title||(t.title=e.label),this.designer.setupState.mergeRule(this.activeRule,t),this.designer.setupState.updateRuleFormData()},onInput(){if(this.value!==this.modelValue&&(this.value=this.checkValue(),this.value!==this.modelValue)){const e=this.activeNode;this.activeNode=null,this.oldValue=this.value,this.$emit("update:modelValue",this.value),e&&this.updateRule(e)}},currentChange(e){this.activeNode=e}},mounted(){const e=()=>{n.nextTick(()=>{++this.key})};this.designer.setupState.bus.$on("dragEnd",e),n.onUnmounted(()=>{this.designer.setupState.bus.$off("dragEnd",e)})}}),dM={class:"_fd-field-input"};function cM(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("el-tree-select");return n.openBlock(),n.createElementBlock("div",dM,[n.createElementVNode("i",{class:"fc-icon icon-group",onClick:t[0]||(t[0]=n.withModifiers((...u)=>e.copy&&e.copy(...u),["stop"]))}),e.fieldList.length?(n.openBlock(),n.createBlock(c,{key:1,modelValue:e.value,"onUpdate:modelValue":t[3]||(t[3]=u=>e.value=u),readonly:e.fieldReadonly||e.disabled,disabled:e.disabled,"allow-create":!e.fieldReadonly,filterable:!0,"default-first-option":!e.fieldReadonly,indent:10,checkStrictly:e.isSubform&&e.relationField!==!0,"popper-class":"_fd-field-popper",onFocus:e.onFocus,onChange:e.onInput,onCurrentChange:e.currentChange,data:e.fieldList},null,8,["modelValue","readonly","disabled","allow-create","default-first-option","checkStrictly","onFocus","onChange","onCurrentChange","data"])):(n.openBlock(),n.createBlock(d,{key:0,modelValue:e.value,"onUpdate:modelValue":t[2]||(t[2]=u=>e.value=u),readonly:e.fieldReadonly||e.disabled,disabled:e.fieldReadonly||e.disabled,onFocus:e.onFocus,onBlur:e.onInput},n.createSlots({_:2},[e.fieldReadonly?void 0:{name:"append",fn:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-auto",onClick:t[1]||(t[1]=(...u)=>e.makeField&&e.makeField(...u))})]),key:"0"}]),1032,["modelValue","readonly","disabled","onFocus","onBlur"]))])}const uM=Te(sM,[["render",cM]]),vz="",fM=n.defineComponent({name:"PromptInput",emits:["update:modelValue","change"],props:{size:String,modelValue:String,popperClass:String,options:Array},data(){return{value:this.modelValue||""}},methods:{setValue(e){this.value=e,this.onInput()},onInput(){this.$emit("update:modelValue",this.value),this.$emit("change",this.value)}}});function pM(e,t,r,o,i,l){const d=n.resolveComponent("el-dropdown-item"),c=n.resolveComponent("el-dropdown-menu"),u=n.resolveComponent("el-dropdown"),h=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(h,{size:e.size,modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=m=>e.value=m),onBlur:e.onInput,clearable:"",class:"_fd-list-input"},{append:n.withCtx(()=>[n.createVNode(u,{size:"default",trigger:"click","popper-class":e.popperClass},{dropdown:n.withCtx(()=>[n.createVNode(c,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,m=>(n.openBlock(),n.createBlock(d,{key:m.value,onClick:y=>e.setValue(m.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m.label),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:n.withCtx(()=>[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1},8,["popper-class"])]),_:1},8,["size","modelValue","onBlur"])}const hM=Te(fM,[["render",pM]]),yz="",mM=e=>[{type:"input",field:"action",title:e("fetch.action"),value:"",validate:[{required:!0,message:e("fetch.actionRequired"),trigger:"blur"}],inject:!0,on:{blur({self:t},r){t._start=r.target.selectionStart}},children:[{type:"VariableConfig",slot:"suffix",props:{popover:!0},inject:!0,on:{confirm({api:t},r){const o=t.getRule("action");o.value=o.value.substring(0,o._start)+r+o.value.substring(o._start)}}}]},{type:"radio",field:"method",title:e("fetch.method"),value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:e("fetch.dataType"),warning:e("warning.fetchDataType"),value:"json",options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"FetchTable",field:"headers",title:e("fetch.headers"),value:{}},{type:"FetchTable",field:"query",title:e("fetch.query"),warning:e("warning.fetchQuery"),value:{}},{type:"FetchTable",field:"data",title:e("fetch.data"),warning:e("warning.fetchData"),value:{}}],gM=n.defineComponent({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:Xn,DragForm:ze.$form(),FnEditor:Ni,StructEditor:rf},inject:["designer"],data(){return{visible:!1,value:rt(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!dt.empty(this.modelValue)}},watch:{visible(e){e&&(this.value=rt(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const e=this.value;this.form.rule=e.type==="static"?[]:mM(this.t),this.form.formData={...e},this.form.label=e.label,this.form.type=e.type,this.form.data=e.data,this.form.dataType=e.dataType,this.form.parse=e.parse||"",this.form.beforeFetch=e.beforeFetch||"",this.form.onError=e.onError||""},save(){this.form.api.validate().then(()=>{const e={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.beforeFetch&&!this.$refs.beforeFetch.save()||this.$refs.error&&!this.$refs.error.save()||(e.parse=ze.parseFn(this.form.parse),e.beforeFetch=ze.parseFn(this.form.beforeFetch),e.onError=this.form.onError,e.label=this.form.label,e.type=this.form.type,e.to=this.to||"options",this.$emit("update:modelValue",e),this.visible=!1)}).catch(e=>{console.error(e),dn(e[Object.keys(e)[0]][0].message)})}},created(){this.active()}}),vM={class:"_fd-fetch-config"},yM={class:"_fd-fetch-info"};function bM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("Warning"),h=n.resolveComponent("DragForm"),m=n.resolveComponent("el-tab-pane"),y=n.resolveComponent("FnEditor"),C=n.resolveComponent("el-tabs"),A=n.resolveComponent("el-container"),w=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",vM,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=E=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("struct.title")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(w,{class:"_fd-fetch-dialog _fd-config-dialog",modelValue:e.visible,"onUpdate:modelValue":t[7]||(t[7]=E=>e.visible=E),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.optionsType.fetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetch")},null,8,["tooltip"])]),footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[6]||(t[6]=E=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fetch-con",style:{height:"450px"}},{default:n.withCtx(()=>[n.createVNode(C,{"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:n.withCtx(()=>[n.createVNode(m,{label:e.t("fetch.config"),name:"first",style:{"padding-right":"15px"}},{default:n.withCtx(()=>[n.createElementVNode("div",yM,n.toDisplayString(e.t("fetch.info")),1),n.createVNode(h,{api:e.form.api,"onUpdate:api":t[1]||(t[1]=E=>e.form.api=E),modelValue:e.form.formData,"onUpdate:modelValue":t[2]||(t[2]=E=>e.form.formData=E),rule:e.form.rule,option:e.form.options},{title:n.withCtx(E=>[E.rule.warning?(n.openBlock(),n.createBlock(u,{key:0,tooltip:E.rule.warning},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(E.rule.title),1)]),_:2},1032,["tooltip"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(E.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),n.createVNode(m,{lazy:"",label:e.t("fetch.beforeFetch"),name:"second"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.beforeFetch"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.beforeFetch")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.beforeFetch,"onUpdate:modelValue":t[3]||(t[3]=E=>e.form.beforeFetch=E),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]),_:1},8,["label"]),n.createVNode(m,{lazy:"",name:"third"},{label:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("fetch.parse"))+" ",1),n.createVNode(u,{tooltip:e.t("warning.fetchParse")},null,8,["tooltip"])]),default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.parse,"onUpdate:modelValue":t[4]||(t[4]=E=>e.form.parse=E),name:"parse",args:[{name:"res",info:e.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),n.createVNode(m,{lazy:"",label:e.t("fetch.onError"),name:"fourth"},{default:n.withCtx(()=>[n.createVNode(y,{style:{height:"100%"},modelValue:e.form.onError,"onUpdate:modelValue":t[5]||(t[5]=E=>e.form.onError=E),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const wM=Te(gM,[["render",bM]]),bz="",CM=n.defineComponent({name:"TableColumnConfig",components:{FnEditor:Ni},props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},list(){var e;return((e=this.designer.setupState.activeRule)==null?void 0:e.__fc__.el.list)||[]},propColumns(){return Object.keys(this.list[0]||{})},format(){return["default","tag","image","custom"].map(e=>({label:this.t("com.dataTable.format."+e),value:e}))},align(){return["left","center","right"].map(e=>({label:this.t("props."+e),value:e}))},fixed(){return[!1,"left","right"].map(e=>({label:this.t("com.dataTable.fixed."+(e||"default")),value:e}))},sortable(){return[!1,!0,"custom"].map(e=>({label:this.t("com.dataTable.sortable."+(typeof e=="boolean"?e?"default":"disabled":"custom")),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{getColumnData(e){const t=[];return e&&(this.list||[]).forEach(r=>{li(r,e)&&t.indexOf(r[e])===-1&&t.push(r[e])}),t},add(e){const t={format:"default",filter:[],id:We()};e!=null?this.column.splice(e+1,0,t):this.column.push(t)},addChild(e){const t={p:e,format:"default",filter:[],id:We()};e.children||(e.children=[]),e.children.push(t)},remove(e){const t=e.p&&e.p.children||this.column;t.splice(t.indexOf(e),1),e.p&&!t.length&&delete e.p.children},editFn(e){this.activeRow=e},updateFn(){this.activeRow=null},tidyValue(){this.column=this.fullId(rt(this.modelValue||[])),this.column.length||this.add()},fullId(e,t){return e.map(r=>{r.id||(r.id=We()),r.p=t,r.children&&this.fullId(r.children,r)}),e},close(){this.activeRow?this.activeRow=null:this.visible=!1},parseColumns(e){return e.map(t=>{const r={...t};return delete r.p,r.children&&r.children.length>0?r.children=this.parseColumns(r.children):delete r.children,r})},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[],t=this.parseColumns(this.column);for(let r=0;r<t.length;r++){const o=t[r];if(!o.label){dn(this.t("com.dataTable.requiredLabel"));return}const i={...o};if(i.label){if(!i.children){if(i.format!=="custom")delete i.render;else if(!i.render){dn(this.t("com.dataTable.requiredRender"));return}}i.render&&(i.render=Dr(i.render)),e.push(i)}}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),_M={class:"_fd-table-column-config"},EM={class:"flex"},SM=["onClick"],AM=["onClick"],xM=["onClick"],kM=["onClick"];function NM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),h=n.resolveComponent("el-table-column"),m=n.resolveComponent("el-input"),y=n.resolveComponent("el-option"),C=n.resolveComponent("el-select"),A=n.resolveComponent("el-switch"),w=n.resolveComponent("el-table"),E=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",_M,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=b=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.column.btn")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(E,{class:"_fd-tcc-dialog _fd-config-dialog",title:e.t("com.dataTable.column.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=b=>e.visible=b),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow.render,"onUpdate:modelValue":t[1]||(t[1]=b=>e.activeRow.render=b),args:["scope","h"," resolveComponent","api"],name:"render"},null,8,["modelValue"])):n.createCommentVNode("",!0),n.withDirectives(n.createVNode(w,{data:e.column,size:"small","row-key":"id",class:"_fd-tcc-table"},{default:n.withCtx(()=>[n.createVNode(h,{type:"index",width:"50"}),n.createVNode(h,{label:e.t("com.dataTable.column.prop"),width:"130"},{default:n.withCtx(({row:b})=>[!b.children||!b.children.length?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[!e.propColumns||!e.propColumns.length?(n.openBlock(),n.createBlock(m,{key:0,modelValue:b.prop,"onUpdate:modelValue":g=>b.prop=g},null,8,["modelValue","onUpdate:modelValue"])):(n.openBlock(),n.createBlock(C,{key:1,modelValue:b.prop,"onUpdate:modelValue":g=>b.prop=g,"allow-create":"",clearable:"","default-first-option":"",filterable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.propColumns,g=>(n.openBlock(),n.createBlock(y,{label:g,value:g},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g),1)]),_:2},1032,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"]))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.header")),1)],64))]),_:1},8,["label"]),n.createVNode(h,{width:"100"},{default:n.withCtx(({row:b})=>[n.createVNode(m,{modelValue:b.label,"onUpdate:modelValue":g=>b.label=g},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.title")),1),t[4]||(t[4]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(h,{label:e.t("style.width"),width:"100"},{default:n.withCtx(({row:b})=>[!b.children||!b.children.length?(n.openBlock(),n.createBlock(m,{key:0,modelValue:b.width,"onUpdate:modelValue":g=>b.width=g},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("com.dataTable.filter"),width:"120"},{default:n.withCtx(({row:b})=>[!b.children||!b.children.length?(n.openBlock(),n.createBlock(C,{key:0,modelValue:b.filter,"onUpdate:modelValue":g=>b.filter=g,multiple:"",clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.getColumnData(b.prop),g=>(n.openBlock(),n.createBlock(y,{label:g,value:g},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(g),1)]),_:2},1032,["label","value"]))),256))]),_:2},1032,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:"Class"},{default:n.withCtx(({row:b})=>[n.createVNode(m,{modelValue:b.className,"onUpdate:modelValue":g=>b.className=g},null,8,["modelValue","onUpdate:modelValue"])]),_:1}),n.createVNode(h,{label:e.t("com.dataTable.column.sort"),width:"100"},{default:n.withCtx(({row:b})=>[!b.children||!b.children.length?(n.openBlock(),n.createBlock(C,{key:0,modelValue:b.sortable,"onUpdate:modelValue":g=>b.sortable=g,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.sortable,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.position"),width:"100"},{default:n.withCtx(({row:b})=>[n.createVNode(C,{modelValue:b.fixed,"onUpdate:modelValue":g=>b.fixed=g,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.fixed,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value||"default"},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.font.align"),width:"100"},{default:n.withCtx(({row:b})=>[n.createVNode(C,{modelValue:b.align,"onUpdate:modelValue":g=>b.align=g,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.align,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{width:"110"},{default:n.withCtx(({row:b})=>[n.createElementVNode("div",EM,[n.createVNode(C,{modelValue:b.format,"onUpdate:modelValue":g=>b.format=g,clearable:""},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.format,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"]),b.format==="custom"?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:g=>e.editFn(b)},null,8,SM)):n.createCommentVNode("",!0)])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.render")),1),t[5]||(t[5]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(h,{label:e.t("props.hide"),width:"50",fixed:"right"},{default:n.withCtx(({row:b})=>[!b.children||!b.children.length?(n.openBlock(),n.createBlock(A,{key:0,modelValue:b.hidden,"onUpdate:modelValue":g=>b.hidden=g},null,8,["modelValue","onUpdate:modelValue"])):n.createCommentVNode("",!0)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("tableOptions.handle"),width:"90",fixed:"right"},{default:n.withCtx(({row:b,$index:g})=>[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:_=>e.add(g)},null,8,AM),n.createElementVNode("i",{class:"fc-icon icon-add-child",onClick:_=>e.addChild(b)},null,8,xM),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:_=>e.remove(b)},null,8,kM)]),_:1},8,["label"])]),_:1},8,["data"]),[[n.vShow,!e.activeRow]]),n.withDirectives(n.createVNode(d,{link:"",type:"primary",onClick:t[2]||(t[2]=b=>e.add())},{default:n.withCtx(()=>[t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},512),[[n.vShow,!e.activeRow]])]),_:1},8,["title","modelValue"])])}const TM=Te(CM,[["render",NM]]),wz="",DM=n.defineComponent({name:"TableColumnConfig",props:{modelValue:Array},inject:["designer"],data(){return{column:[],visible:!1,activeRow:null,activeKey:"",activeArgs:[]}},computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue},decoration(){return["link","round","plain","disabled"].map(e=>({label:this.t("com.dataTable.button."+e),value:e}))},size(){return["large","default","small"].map(e=>({label:this.t("props."+e),value:e}))},type(){return["primary","success","warning","danger","info"].map(e=>({label:this.t("props."+e),value:e}))}},watch:{visible(e){e?this.tidyValue():this.activeRow=null}},methods:{btnProps(e){const t=e.prop||[];return{type:e.type,size:e.size,round:t.indexOf("round")>-1,link:t.indexOf("link")>-1,plain:t.indexOf("plain")>-1,disabled:t.indexOf("disabled")>-1}},defaultData(){return{key:this.column.length+1,name:this.t("props.button")+(this.column.length+1)}},add(e){e!=null?this.column.splice(e+1,0,this.defaultData()):this.column.push(this.defaultData())},handle(e,t,r){this.activeKey=t,this.activeRow=e,this.activeArgs=r},remove(e){this.column.splice(e,1)},tidyValue(){this.column=rt(this.modelValue||[]),this.column.length||this.add()},close(){this.activeRow?this.activeRow=null:this.visible=!1},submit(){if(this.activeRow){this.$refs.fn.save()&&(this.activeRow=null);return}const e=[];for(let t=0;t<this.column.length;t++){const r=this.column[t];if(!r.name){dn(this.t("com.dataTable.requiredName"));return}if(!r.key){dn(this.t("com.dataTable.requiredKey"));return}e.push({...r})}this.$emit("update:modelValue",e),this.$emit("change",e),this.visible=!1}}}),VM={class:"_fd-table-button-config"},OM=["onClick"],BM=["onClick"],RM=["onClick"],$M=["onClick"];function IM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),h=n.resolveComponent("el-table-column"),m=n.resolveComponent("el-input"),y=n.resolveComponent("el-option"),C=n.resolveComponent("el-select"),A=n.resolveComponent("el-switch"),w=n.resolveComponent("el-table"),E=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",VM,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=b=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.button.btn")),1)]),_:1})]),_:1},8,["hidden"]),n.createVNode(E,{class:"_fd-tcb-dialog _fd-config-dialog",title:e.t("com.dataTable.button.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=b=>e.visible=b),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[e.activeRow?(n.openBlock(),n.createBlock(u,{key:0,ref:"fn",modelValue:e.activeRow[e.activeKey],"onUpdate:modelValue":t[1]||(t[1]=b=>e.activeRow[e.activeKey]=b),args:e.activeArgs,name:e.activeKey},null,8,["modelValue","args","name"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createVNode(w,{data:e.column,size:"small"},{default:n.withCtx(()=>[n.createVNode(h,{type:"index",width:"50"}),n.createVNode(h,{label:e.t("props.preview"),width:"100"},{default:n.withCtx(({row:b})=>[n.createVNode(d,n.normalizeProps(n.guardReactiveProps(e.btnProps(b))),{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(b.name),1)]),_:2},1040)]),_:1},8,["label"]),n.createVNode(h,{width:"100"},{default:n.withCtx(({row:b})=>[n.createVNode(m,{modelValue:b.key,"onUpdate:modelValue":g=>b.key=g},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>t[4]||(t[4]=[n.createTextVNode(" ID"),n.createElementVNode("span",{style:{color:"red"}},"*",-1)])),_:1}),n.createVNode(h,null,{default:n.withCtx(({row:b})=>[n.createVNode(m,{modelValue:b.name,"onUpdate:modelValue":g=>b.name=g},null,8,["modelValue","onUpdate:modelValue"])]),header:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.name")),1),t[5]||(t[5]=n.createElementVNode("span",{style:{color:"red"}},"*",-1))]),_:1}),n.createVNode(h,{label:e.t("event.type"),width:"120"},{default:n.withCtx(({row:b})=>[n.createVNode(C,{modelValue:b.type,"onUpdate:modelValue":g=>b.type=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.type,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.font.size"),width:"120"},{default:n.withCtx(({row:b})=>[n.createVNode(C,{modelValue:b.size,"onUpdate:modelValue":g=>b.size=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.size,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("style.decoration.name"),width:"120"},{default:n.withCtx(({row:b})=>[n.createVNode(C,{multiple:"",modelValue:b.prop,"onUpdate:modelValue":g=>b.prop=g},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.decoration,g=>(n.openBlock(),n.createBlock(y,{label:g.label,value:g.value,key:g.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.hide"),width:"80"},{default:n.withCtx(({row:b})=>[n.createVNode(A,{modelValue:b.hidden,"onUpdate:modelValue":g=>b.hidden=g},null,8,["modelValue","onUpdate:modelValue"])]),_:1},8,["label"]),n.createVNode(h,{label:e.t("props.callback"),width:"80"},{default:n.withCtx(({row:b})=>[n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:g=>e.handle(b,"handle",["props","scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.handle")),1),t[6]||(t[6]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,OM),n.createElementVNode("div",{class:"_fd-tcb-btn",onClick:g=>e.handle(b,"click",["scope","api"])},[n.createTextVNode(n.toDisplayString(e.t("com.dataTable.click")),1),t[7]||(t[7]=n.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1))],8,BM)]),_:1},8,["label"]),n.createVNode(h,{label:e.t("tableOptions.handle"),width:"80"},{default:n.withCtx(({$index:b})=>[n.createElementVNode("i",{class:"fc-icon icon-add-circle",onClick:g=>e.add(b)},null,8,RM),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:g=>e.remove(b)},null,8,$M)]),_:1},8,["label"])]),_:1},8,["data"]),n.createVNode(d,{link:"",type:"primary",onClick:t[2]||(t[2]=b=>e.add())},{default:n.withCtx(()=>[t[8]||(t[8]=n.createElementVNode("i",{class:"fc-icon icon-add-circle"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1})],64))]),_:1},8,["title","modelValue"])])}const FM=Te(DM,[["render",IM]]),Cz="",PM="[[FORM-CREATE-PREFIX-",MM="-FORM-CREATE-SUFFIX]]",LM=n.defineComponent({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:Ni},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const e={};return this.eventConfig.forEach(t=>{e[t.name]=t.info}),e},t(){return this.designer.setupState.t},eventNum(){let e=0;return Object.keys(this.modelValue||{}).forEach(t=>{this.modelValue[t]&&e++}),e}},watch:{visible(e){this.event=e?this.loadFN(td({},this.modelValue||{})):{},e||this.destroy()}},methods:{getArgs(e){return e.args.join(", ")},loadFN(e){const t={};return this.eventConfig.forEach(r=>{const o=r.name,i=e[o]||"";t[o]={item:r,fn:i}}),t},parseFN(e){const t={};return Object.keys(e).forEach(r=>{e[r].fn&&(t[r]=e[r].fn)}),t},edit(e){e.key=We(),this.activeData=e,this.eventStr=e.fn||PM+`function ${e.item.name}(${this.getArgs(e.item)}){}`+MM,this.defActive=e.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())}}}),jM={class:"_fd-fn-list"},zM=["onClick"],UM={key:0,class:"_fd-label"},HM={key:1,class:"_fd-dot"};function WM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("el-text"),h=n.resolveComponent("el-header"),m=n.resolveComponent("el-menu-item"),y=n.resolveComponent("el-menu"),C=n.resolveComponent("el-main"),A=n.resolveComponent("el-container"),w=n.resolveComponent("el-aside"),E=n.resolveComponent("FnEditor"),b=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",jM,[n.createVNode(c,{value:e.eventNum,type:"warning",hidden:e.eventNum<1},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=g=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),n.createVNode(b,{class:"_fd-fn-list-dialog _fd-config-dialog",title:e.t("event.title"),modelValue:e.visible,"onUpdate:modelValue":t[4]||(t[4]=g=>e.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"980px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[3]||(t[3]=g=>e.visible=!1)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",size:"default",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:n.withCtx(()=>[n.createVNode(w,{style:{width:"300px"}},{default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fn-list-l"},{default:n.withCtx(()=>[n.createVNode(h,{class:"_fd-fn-list-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(u,{type:"primary",size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("event.list")),1)]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(y,{"default-active":e.defActive,modelValue:e.activeData,"onUpdate:modelValue":t[1]||(t[1]=g=>e.activeData=g)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.event,(g,_)=>(n.openBlock(),n.createBlock(m,{key:_,index:_},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-fn-list-method",onClick:n.withModifiers(x=>e.edit(g),["stop"])},[n.createElementVNode("span",null,[t[5]||(t[5]=n.createTextVNode("function")),n.createElementVNode("span",null,n.toDisplayString(_),1)]),e.eventInfo[_]?(n.openBlock(),n.createElementBlock("span",UM,n.toDisplayString(e.eventInfo[_]),1)):n.createCommentVNode("",!0),g.fn?(n.openBlock(),n.createElementBlock("span",HM)):n.createCommentVNode("",!0)],8,zM)]),_:2},1032,["index"]))),128))]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createVNode(A,{class:"_fd-fn-list-r"},{default:n.withCtx(()=>[e.activeData?(n.openBlock(),n.createBlock(h,{key:0,class:"_fd-fn-list-head",height:"40px"},{default:n.withCtx(()=>[n.createVNode(d,{size:"small",onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1},8,["onClick"]),n.createVNode(d,{size:"small",type:"primary",onClick:e.save},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):n.createCommentVNode("",!0),e.activeData?(n.openBlock(),n.createBlock(C,{key:1},{default:n.withCtx(()=>[n.createVNode(E,{ref:"fn",modelValue:e.eventStr,"onUpdate:modelValue":t[2]||(t[2]=g=>e.eventStr=g),name:e.activeData.item.name,args:e.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):n.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const GM=Te(LM,[["render",WM]]),_z="",KM=n.defineComponent({name:"FnInput",components:{FnEditor:Ni},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(e){this.value=e}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),YM={class:"_fd-fn-input"};function QM(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-badge"),u=n.resolveComponent("FnEditor"),h=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",YM,[n.createVNode(c,{type:"warning","is-dot":"",hidden:!e.configured},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",plain:"",onClick:t[0]||(t[0]=m=>e.visible=!0),size:"small"},{default:n.withCtx(()=>[n.renderSlot(e.$slots,"default",{},()=>[n.createTextVNode(n.toDisplayString(e.t("event.action")),1)])]),_:3})]),_:3},8,["hidden"]),n.createVNode(h,{class:"_fd-fn-input-dialog _fd-config-dialog",title:e.title||e.t("struct.title"),modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=m=>e.visible=m),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[2]||(t[2]=m=>e.visible=!1),size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:n.withCtx(()=>[n.createVNode(u,{ref:"editor",modelValue:e.value,"onUpdate:modelValue":t[1]||(t[1]=m=>e.value=m),name:e.name,args:e.args,body:e.body,fnx:e.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","modelValue"])])}const vy=Te(KM,[["render",QM]]),Ez="",JM=n.defineComponent({name:"GlobalFetchSelect",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalData||{}).map(e=>({label:this.designer.setupState.formOptions.globalData[e].label,value:e}))}},watch:{modelValue(){this.value=(this.modelValue||{}).key||""}},data(){return{value:(this.modelValue||{}).key||"",uni:1,loading:!1}},methods:{refresh(){!this.value||(this.uni=this.uni===1?0:1,this.input(),this.loading=!0,setTimeout(()=>{this.loading=!1},1e3))},openConfig(){this.designer.setupState.openGlobalFetchDialog()},input(){const e=typeof this.modelValue=="object"?{...this.modelValue}:{};e.to=this.to||"options",e.key=this.value,e._uni=this.uni,this.$emit("update:modelValue",e)}}}),XM={class:"_fd-gfs"},ZM={class:"_fd-gfs-handle"};function qM(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",XM,[n.createVNode(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),clearable:"",filterable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createElementVNode("div",ZM,[n.createElementVNode("i",{onClick:t[1]||(t[1]=(...u)=>e.refresh&&e.refresh(...u)),class:n.normalizeClass(["fc-icon icon-refresh",{disabled:!e.value,"_fc-loading":this.loading}]),title:"reload"},null,2),n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[2]||(t[2]=(...u)=>e.openConfig&&e.openConfig(...u))},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const e3=Te(JM,[["render",qM]]),Sz="",t3=n.defineComponent({name:"GlobalClassSelect",emits:["update:modelValue"],props:{modelValue:[Array,String],to:String},inject:["designer"],computed:{t(){return this.designer.setupState.t},options(){return Object.keys(this.designer.setupState.formOptions.globalClass||{}).map(e=>({label:this.designer.setupState.formOptions.globalClass[e].label,value:e}))}},watch:{modelValue(){this.tidyValue()}},data(){return{value:[]}},methods:{tidyValue(){this.value=Array.isArray(this.modelValue)?this.modelValue:(this.modelValue||"").split(" ").filter(e=>!!e)},openConfig(){this.designer.setupState.openGlobalClassDialog()},input(){this.$emit("update:modelValue",this.value.join(" "))}},created(){this.tidyValue()}}),n3={class:"_fd-gcs"},i3={class:"_fd-gcs-handle"};function r3(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",n3,[n.createVNode(c,{modelValue:e.value,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value=u),multiple:"",filterable:"","allow-create":"","default-first-option":"","reserve-keyword":!1,clearable:"",onChange:e.input},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.options,u=>(n.openBlock(),n.createBlock(d,{key:u.value,label:u.label,value:u.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"]),n.createElementVNode("div",i3,[n.createElementVNode("div",{class:"_fc-manage-text",onClick:t[1]||(t[1]=(...u)=>e.openConfig&&e.openConfig(...u))},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1)]))])])}const o3=Te(t3,[["render",r3]]),Az="",a3=n.defineComponent({name:"FetchTable",components:{VariableConfig:ra},inject:["designer"],emits:["update:modelValue"],props:{modelValue:Object},computed:{t(){return this.designer.setupState.t}},data(){return{value:[],active:null,start:null}},methods:{onConfirm(e,t,r){e===this.active?e[t]=(e[t]||"").substring(0,this.start)+r+(e[t]||"").substring(this.start):(e[t]+=r,this.active=null,this.start=null),this.submit()},onBlur(e,t){this.active=e,this.start=t.target.selectionStart,this.submit()},submit(){const e={};this.value.forEach(t=>{t.key&&t.value&&(e[t.key]=t.value)}),this.$emit("update:modelValue",e)},add(){this.value.push({})},rm(e){this.value.splice(e,1),this.submit()}},created(){const e=[];Object.keys(this.modelValue||{}).forEach(t=>{e.push({key:t,value:this.modelValue[t]})}),this.value=e}}),l3={class:"_fd-fetch-table"},s3={style:{width:"40%"}},d3={class:"_fd-fetch-table-key"},c3=["onClick"];function u3(e,t,r,o,i,l){const d=n.resolveComponent("el-header"),c=n.resolveComponent("VariableConfig"),u=n.resolveComponent("el-input"),h=n.resolveComponent("el-main"),m=n.resolveComponent("el-container"),y=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",l3,[e.value.length>0?(n.openBlock(),n.createBlock(m,{key:0,class:"_fd-fetch-table-con"},{default:n.withCtx(()=>[n.createVNode(d,null,{default:n.withCtx(()=>[n.createElementVNode("div",s3,n.toDisplayString(e.t("props.key")),1),n.createElementVNode("div",null,n.toDisplayString(e.t("props.value")),1)]),_:1}),n.createVNode(h,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(C,A)=>(n.openBlock(),n.createElementBlock("div",{key:A,class:"_fd-fetch-table-row"},[n.createElementVNode("div",d3,[n.createVNode(u,{modelValue:C.key,"onUpdate:modelValue":w=>C.key=w,onBlur:w=>e.onBlur(C,w)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:w=>e.onConfirm(C,"key",w)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"])]),n.createVNode(u,{modelValue:C.value,"onUpdate:modelValue":w=>C.value=w,onBlur:w=>e.onBlur(C,w)},{suffix:n.withCtx(()=>[n.createVNode(c,{popover:"",onConfirm:w=>e.onConfirm(C,"value",w)},null,8,["onConfirm"])]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:w=>e.rm(A)},null,8,c3)]))),128))]),_:1})]),_:1})):n.createCommentVNode("",!0),n.createVNode(y,{link:"",type:"primary",onClick:e.add},{default:n.withCtx(()=>[t[0]||(t[0]=n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("tableOptions.add")),1)]),_:1},8,["onClick"])])}const f3=Te(a3,[["render",u3]]),yy=n.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(e){const t={...e.$props.rule.props,...e.$attrs};let r="_fd-"+e.$props.tag+"-drag _fd-drag-box";Object.keys(e.$slots).length||(r+=" drag-holder"),t.class=r,t.modelValue=e.$props.list||[...e.$props.formCreateInject.children];const o={};return e.$slots.default&&e.$slots.default().forEach(l=>{l.key&&(o[l.key]=l)}),n.h(jr,t,{item:({element:i,index:l})=>{var u,h,m;let d="";(((u=i==null?void 0:i._menu)==null?void 0:u.inline)||((h=i==null?void 0:i._config)==null?void 0:h.inline))&&(d=" is-inline");const c=(m=i==null?void 0:i.__fc__)==null?void 0:m.key;if(c){let y=o["_"+i.slot];if(y?y.children.forEach(C=>{C.key===c+"fc"&&(y=C)}):y=o[c+"fc"],y)return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item"+d,key:c},y)}return n.h("div",{class:"_fc-"+e.$props.tag+"-item _fd-drag-item",key:l},null)}})}}),xz="",p3=n.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:gy,DragBox:yy},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},dragProp:{rule:{props:{tag:"el-col",group:{name:"default",put:(e,...t)=>(e.el.__rule__=this.formCreateInject.rule,this.designer.setupState.dragPut(e,...t))},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 e={};return this.border===!1?e.border="0 none":(this.borderColor&&(e.borderColor=this.borderColor),this.borderWidth&&(e.borderWidth=this.borderWidth)),e}},methods:{getUnique(e){return this.unique[e]||(this.unique[e]=We()),this.unique[e]},getSlotChildren(e){const t=[];return this.formCreateInject.children.forEach(r=>{e.indexOf(r.slot)>-1&&t.push(r)}),t},dragAdd(e,t){const r=this.designer.setupState,o=this.formCreateInject.children,i=`${t.pid}:${t.idx}`,l=e.item._underlying_vm_,d=r.addRule&&r.addRule.children===r.moveRule;d&&r.moveRule.splice(r.moveRule.indexOf(l),1);let c=0;const u="drag"+t.pid+t.idx;if(this.$refs[u][0].list.length){let h=this.$refs[u][0].list[e.newIndex?e.newIndex-1:0];c=o.indexOf(h)+(e.newIndex?1:0)}else if(o.length){const h=Object.keys(this.$refs);for(let m=h.indexOf(u)-1;m>=0;m--){if(!this.$refs[h[m]]||!this.$refs[h[m]].length)continue;const y=this.$refs[h[m]][0].list||[];if(y.length){c=o.indexOf(y[y.length-1])+1;break}}}e.newIndex=c,d?(l.slot=i,o.splice(e.newIndex,0,l),r.added=!0,r.handleSortAfter({rule:l})):r.dragAdd(o,e,`${t.pid}:${t.idx}`)},dragEnd(e,t){const r=this.designer.setupState,o=this.formCreateInject.children,i=e.item._underlying_vm_,l=o.indexOf(i);e.newIndex=l+(e.newIndex-e.oldIndex),e.oldIndex=l,r.dragEnd(this.formCreateInject.children,e,`${t.pid}:${t.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(e){this.designer.setupState.dragUnchoose(this.formCreateInject.children,e)},initRule(){const e=this.rule;e.style||(e.style={}),e.class||(e.class={}),e.layout||(e.layout=[]),e.row||(e.row=1),e.col||(e.col=1)},active(e){const t=`${e.pid}:${e.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:r=>{r.slot=t,this.formCreateInject.children.push(r)},style:{formData:{style:this.rule.style[t]||{},class:this.rule.class[t]||""},change:(r,o)=>{this.rule[r][t]=o||{}}}})},command(e){this[e[0]](...e[1])},rmSlot(e,t){const r=Object.keys(e),o=this.formCreateInject.children;let i=0;[...o].forEach((l,d)=>{if(!l.slot)return;let c;t.indexOf(l.slot)>-1?(o.splice(d-i,1),i++):(c=r.indexOf(l.slot))>-1&&(l.slot=e[r[c]])}),t.forEach(l=>{delete this.style[l]}),this.loadRule()},rmRow(e){this.rule.row--;const t={},r=[];for(let l=e.pid;l<this.rule.row+1;l++)for(let d=0;d<this.rule.col;d++)l===e.pid?r.push(`${e.pid}:${d}`):t[`${l}:${d}`]=`${l-1}:${d}`;let o=0;const i=this.rule.layout;[...i].forEach((l,d)=>{l.top===e.pid&&(i.splice(d-o,1),o++)}),i.forEach(l=>{l.top>e.pid&&l.top--}),this.rmSlot(t,r)},rmCol(e){this.rule.col--;const t={},r=[];for(let l=0;l<this.rule.row;l++){for(let d=e.idx+1;d<this.rule.col+1;d++)t[`${l}:${d}`]=`${l}:${d-1}`;r.push(`${l}:${e.idx}`)}let o=0;const i=this.rule.layout;[...i].forEach((l,d)=>{l.left===e.idx&&(i.splice(d-o,1),o++)}),i.forEach(l=>{l.left>e.idx&&l.left--}),this.rmSlot(t,r)},splitRow(e){const t=e.data.layout,r=t.row;if(t.row=0,r>1)for(let o=1;o<r;o++)this.rule.layout.push({...t,top:t.top+o});this.loadRule()},splitCol(e){const t=e.data.layout,r=t.col;if(t.col=0,r>1)for(let o=1;o<r;o++)this.rule.layout.push({...t,left:t.left+o});this.loadRule()},makeMap(e){let t=[];for(let r=e.top;r<(e.row||e.top+1);r++)for(let o=e.left;o<(e.col||e.left+1);o++)t.push(`${r}:${o}`);return t},mergeRight(e){let t;if(e.data.layout){const o=(e.data.layout.col||1)+1;e.data.layout.col=o+e.idx>this.rule.col?this.rule.col-e.idx:o,t=e.data.layout}else t={top:e.pid,left:e.idx,col:2},this.rule.layout.push(t);const r=this.makeMap(t);this.formCreateInject.children.forEach(o=>{!o.slot||r.indexOf(o.slot)>-1&&(o.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},mergeBottom(e){let t;if(e.data.layout){const o=(e.data.layout.row||1)+1;e.data.layout.row=o+o.pid>this.rule.col?this.rule.col-e.pid:o,t=e.data.layout}else t={top:e.pid,left:e.idx,row:2},this.rule.layout.push(t);const r=this.makeMap(t);this.formCreateInject.children.forEach(o=>{!o.slot||r.indexOf(o.slot)>-1&&(o.slot=`${e.pid}:${e.idx}`)}),this.loadRule()},addCol(e,t){if(this.rule.col++,this.rule.layout.forEach(r=>{r.left>(t?e.idx-1:e.idx)&&r.left++}),t||e.idx<this.rule.col-2){const r={};for(let i=0;i<this.rule.row;i++)for(let l=t?e.idx-1:e.idx+1;l<this.rule.col-1;l++)r[`${i}:${l}`]=`${i}:${l+1}`;const o=Object.keys(r);this.formCreateInject.children.forEach(i=>{let l;i.slot&&(l=o.indexOf(i.slot))>-1&&(i.slot=r[o[l]])}),o.forEach(i=>{this.style[i]&&(this.style[r[i]]=this.style[i],delete this.style[i])})}this.loadRule()},addRow(e,t){if(this.rule.row++,this.rule.layout.forEach(r=>{r.top>(t?e.pid-1:e.pid)&&r.top++}),t||e.pid<this.rule.row-2){const r={};for(let i=t?e.pid-1:e.pid+1;i<this.rule.row;i++)for(let l=0;l<this.rule.col;l++)r[`${i}:${l}`]=`${i+1}:${l}`;const o=Object.keys(r);this.formCreateInject.children.forEach(i=>{let l;i.slot&&(l=o.indexOf(i.slot))>-1&&(i.slot=r[o[l]])}),o.reverse().forEach(i=>{this.style[i]&&(this.style[r[i]]=this.style[i],delete this.style[i])})}this.loadRule()},loadRule(){const e=[],t=this.rule||{row:1,col:1};for(let o=0;o<t.row;o++){const i=[];e.push(i);for(let l=0;l<t.col;l++)i.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${o}${l}`)})}[...t.layout||[]].forEach((o,i)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!e[o.top]||!e[o.top][o.left]||!e[o.top][o.left].show){t.layout.splice(i,1);return}const l=e[o.top][o.left];l.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>t.col?t.col-o.left:o.col,l.colspan=d),o.row&&(c=o.row+o.top>t.row?t.row-o.top:o.row,l.rowspan=c),c&&d)for(let u=0;u<c;u++){const h=e[o.top+u];if(h)for(let m=0;m<d;m++)!m&&!u||(h[o.left+m]&&(h[o.left+m].show=!1),l.slot.push(`${o.top+u}:${o.left+m}`))}});const r=o=>!!(!o||o.layout||!o.show);e.forEach((o,i)=>{o.forEach((l,d)=>{let c=!1,u=!1;if(l.layout){const h=l.layout.col||1,m=l.layout.row||1;for(let y=0;y<h;y++)if(!e[i+m]||r(e[i+m][d+y])){u=!0;continue}for(let y=0;y<m;y++)if(!e[i+y]||r(e[i+y][d+h])){c=!0;continue}}else c=r(o[d+1]),u=e[i+1]?r(e[i+1][d]):!0;l.right=c,l.bottom=u})}),this.lattice=e,this.formCreateInject.rule.props.rule=t}},beforeMount(){this.loadRule()}}),h3={class:"_fd-table-view-cell"},m3=["onClick"],g3=["onClick"];function v3(e,t,r,o,i,l){const d=n.resolveComponent("DragBox"),c=n.resolveComponent("el-dropdown-item"),u=n.resolveComponent("el-dropdown-menu"),h=n.resolveComponent("el-dropdown"),m=n.resolveComponent("DragTool");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-table-view",{"is-mini":e.mini}])},[n.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:n.normalizeStyle(e.tableColor)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.row,(y,C)=>(n.openBlock(),n.createElementBlock("tr",{key:C},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.rule.col,(A,w)=>(n.openBlock(),n.createElementBlock(n.Fragment,null,[e.lattice[C][w].show?(n.openBlock(),n.createElementBlock("td",n.mergeProps({key:`${C}${w}`,ref_for:!0},e.lattice[C][w]?{colspan:e.lattice[C][w].colspan,rowspan:e.lattice[C][w].rowspan}:{},{style:[e.tableColor,e.style&&e.style[`${C}:${w}`]||{}],class:e.rule.class&&e.rule.class[`${C}:${w}`]||""}),[n.createElementVNode("div",h3,[n.createVNode(m,{"drag-btn":!1,"handle-btn":!0,onActive:E=>e.active({pid:C,idx:w}),unique:e.lattice[C][w].id},{handle:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:n.withModifiers(E=>e.addRow({pid:C,idx:w,data:e.lattice[C][w]},0),["stop"])},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-add-col"},null,-1)]),8,m3),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:n.withModifiers(E=>e.addCol({pid:C,idx:w,data:e.lattice[C][w]},0),["stop"])},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,g3),n.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:t[2]||(t[2]=n.withModifiers(()=>{},["stop"]))},[n.createVNode(h,{trigger:"click",onCommand:e.command},{dropdown:n.withCtx(()=>[n.createVNode(u,null,{default:n.withCtx(()=>[n.createVNode(c,{command:["addCol",[{pid:C,idx:w,data:e.lattice[C][w]},1]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addLeft")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addCol",[{pid:C,idx:w,data:e.lattice[C][w]},0]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addRight")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addRow",[{pid:C,idx:w,data:e.lattice[C][w]},1]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addTop")),1)]),_:2},1032,["command"]),n.createVNode(c,{command:["addRow",[{pid:C,idx:w,data:e.lattice[C][w]},0]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.addBottom")),1)]),_:2},1032,["command"]),n.createVNode(c,{divided:"",disabled:e.lattice[C][w].right,command:["mergeRight",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:e.lattice[C][w].bottom,command:["mergeBottom",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{divided:"",disabled:!(e.lattice[C][w].layout&&e.lattice[C][w].layout.col>1),command:["splitCol",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:!(e.lattice[C][w].layout&&e.lattice[C][w].layout.row>1),command:["splitRow",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{divided:"",disabled:e.rule.col<2,command:["rmCol",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","command"]),n.createVNode(c,{disabled:e.rule.row<2,command:["rmRow",[{pid:C,idx:w,data:e.lattice[C][w]}]]},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","command"])]),_:2},1024)]),default:n.withCtx(()=>[t[5]||(t[5]=n.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:2},1032,["onCommand"])])]),default:n.withCtx(()=>[n.createVNode(d,n.mergeProps({ref_for:!0},e.dragProp,{onAdd:E=>e.dragAdd(E,{pid:C,idx:w}),ref_for:!0,ref:"drag"+C+w,onEnd:E=>e.dragEnd(E,{pid:C,idx:w}),onStart:t[0]||(t[0]=E=>e.dragStart(E)),onUnchoose:t[1]||(t[1]=E=>e.dragUnchoose(E)),list:e.getSlotChildren([`${C}:${w}`,...e.lattice[C][w].slot])}),{default:n.withCtx(()=>[n.renderSlot(e.$slots,`${C}:${w}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])])],16)):n.createCommentVNode("",!0)],64))),256))]))),128))],4)],2)}const y3=Te(p3,[["render",v3]]),kz="",b3=n.defineComponent({name:"FcValue",props:["modelValue"],inject:["designer"],watch:{modelValue(e){this.$emit("change",e)}},computed:{t(){return this.designer.setupState.t}}}),w3={class:"_fd-value"};function C3(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",w3,n.toDisplayString(e.t("com.fcValue.empty")),1)}const _3=Te(b3,[["render",C3]]),E3=n.defineComponent({name:"FcSlotView",inheritAttrs:!1,inject:["parentFC","designer"],props:{name:String,formCreateInject:Object},computed:{slotName(){return this.name||"block_default"},slotArg(){const{rule:e,preview:t,api:r}=this.formCreateInject,o=e.__fc__.prop;return{rule:e,prop:o,preview:t,api:r,model:o.model||{}}}},render(){const e=this.getSlot();return e?n.createVNode(n.Fragment,{},[e(this.slotArg)]):n.createVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcSlot.empty",{tag:"<span><template #"+this.slotName+" /></span>"})})},methods:{getSlot(){const e=t=>{if(t){let r=t.slots[this.slotName];return r||e(t.setupState.parent)}};return e(this.parentFC)}}}),Nz="",S3=n.defineComponent({name:"FcJsonView",inheritAttrs:!1,inject:["designer"],props:{rule:[Array,String,Object],type:String,disabled:Boolean,expand:Number,button:{type:Boolean,default:!0},max:{type:Number,default:0},min:{type:Number,default:0},sortBtn:{type:Boolean,default:!0},modelValue:[Object,Array],formCreateInject:Object},data(){return{fcSubForm:n.shallowRef(this.formCreateInject.form.component("fcSubForm")),fcGroup:n.shallowRef(this.formCreateInject.form.component("fcGroup")),uni:0,formRule:[],formOptions:{submitBtn:!1,resetBtn:!1}}},watch:{rule(){this.uni++,this.loadRule()},type(){this.loadRule()}},render(){var e,t;if(this.rule){let r=null;return this.type==="object"?r=n.createVNode(this.fcSubForm,{key:2,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):this.type==="array"?r=n.createVNode(this.fcGroup,{key:3,...this.$attrs,modelValue:this.modelValue,"onUpdate:modelValue":o=>{this.$emit("update:modelValue",o)},sortBtn:this.sortBtn,expand:1,button:this.button,disabled:this.disabled,formCreateInject:this.formCreateInject,rule:this.formRule,options:this.formOptions}):r=n.createVNode(n.Fragment,{key:1},[(t=(e=this.$slots)==null?void 0:e.default)==null?void 0:t.call(e)]),n.createElementVNode("div",{key:this.uni,style:{"--fc-json-mask":`'${this.designer.setupState.t("com.fcJson.name")}'`},class:"_fd-json-container"},[r])}else return n.createElementVNode("div",{class:"_fd-slot-empty",innerHTML:this.designer.setupState.t("com.fcJson.empty",{tag:"<span>JSON</span>"})})},methods:{loadRule(){let e=rt(this.rule);typeof e=="string"&&(e=this.formCreateInject.form.parseJson(e)),Array.isArray(e)?this.formRule=e:typeof e=="object"&&(this.formRule=e.rule||[],this.formOptions={submitBtn:!1,resetBtn:!1,...e.options||{}}),e!=null?["array","object"].indexOf(this.type)===-1&&(this.formCreateInject.rule.children=[{type:"template",_fc_drag_skip:!0,children:this.formRule}]):this.formCreateInject.rule.children=[]}},created(){this.rule&&this.loadRule()}}),Tz="",A3=n.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},showLanguage(){return this.designer.setupState.getConfig("showLanguage")},localeList(){var o,i;const e=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]),t=[],r=((i=(o=this.designer.props)==null?void 0:o.locale)==null?void 0:i.name)||"zh-cn";return e.forEach(l=>{l.value===r?t.unshift(l):t.length<2&&t.push(l)}),t.length>2&&t.pop(),t},language(){const e=this.designer.setupState.formOptions.language||{},t={};return Object.keys(e).forEach(r=>{Object.keys(e[r]).forEach(o=>{t[o]||(t[o]={key:o}),t[o][r]=e[r][o]})}),Object.values(t)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(e){this.onInput(`{{$t.${e}}}`),this.$refs.pop.hide()},onInput(e){this.$emit("update:modelValue",e),this.$emit("change",e)}},mounted(){}}),x3={class:"_fd-language-list"},k3={class:"_fd-language-header"},N3={class:"_fd-language-title"},T3={class:"_fd-language-name"},D3=["onClick"];function V3(e,t,r,o,i,l){const d=n.resolveComponent("el-popover"),c=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(c,{class:n.normalizeClass(["_fd-language-input",{"is-variable":e.isVar}]),placeholder:e.placeholder,disabled:e.disabled,modelValue:e.modelValue,"onUpdate:modelValue":e.onInput,onBlur:t[1]||(t[1]=u=>e.$emit("blur")),size:e.size||"small"},n.createSlots({_:2},[e.showLanguage!==!1?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{placement:"bottom-end",width:300,"hide-after":0,trigger:"click",ref:"pop","popper-class":"_fd-language-popover"},{reference:n.withCtx(()=>t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)])),default:n.withCtx(()=>[n.createElementVNode("div",x3,[n.createElementVNode("div",k3,[n.createElementVNode("div",N3,[n.createTextVNode(n.toDisplayString(e.t("language.select")),1),n.createElementVNode("i",{class:"fc-icon icon-setting",onClick:t[0]||(t[0]=(...u)=>e.openConfig&&e.openConfig(...u))})]),n.createElementVNode("div",T3,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,u=>(n.openBlock(),n.createElementBlock("div",{key:u.value},n.toDisplayString(u.label),1))),128))])]),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.language,u=>(n.openBlock(),n.createElementBlock("div",{key:u.key,class:"_fd-language-item",onClick:h=>e.clickLang(u.key)},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.localeList,h=>(n.openBlock(),n.createElementBlock("div",{key:h.value},n.toDisplayString(u[h.value]||"-"),1))),128))],8,D3))),128))])]),_:1},512)]),key:"0"}:void 0]),1032,["class","placeholder","disabled","modelValue","onUpdate:modelValue","size"])}const wf=Te(A3,[["render",V3]]),Dz="",O3=n.defineComponent({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:wf,FnInput:vy,PatternInput:Du},watch:{modelValue(e){this.validate=this.parseValue(e||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const e=this.designer.setupState.activeRule;return e&&e._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 it(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand(e){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:e,trigger:"blur"})},autoMessage(e){const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(e.message=this.t("validate.autoRequired",{title:t}),this.onInput())},getSpan(e){return["pattern","validator","required"].indexOf(e.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(e=>(e={...e},e.message||delete e.message,e)))},remove(e){this.validate.splice(e,1),this.onInput()},parseValue(e){return rt(e.map(t=>(t.validator&&(t.mode="validator"),t.mode||Object.keys(t).forEach(r=>{["message","type","trigger","mode"].indexOf(r)<0&&(t.mode=r)}),t)))}}}),B3={class:"_fd-validate"},R3={class:"_fd-validate-item"},$3={class:"_fd-validate-title"},I3=["onClick"];function F3(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select"),u=n.resolveComponent("el-form-item"),h=n.resolveComponent("el-col"),m=n.resolveComponent("PatternInput"),y=n.resolveComponent("FnInput"),C=n.resolveComponent("el-input-number"),A=n.resolveComponent("LanguageInput"),w=n.resolveComponent("el-row"),E=n.resolveComponent("el-button"),b=n.resolveComponent("el-dropdown-item"),g=n.resolveComponent("el-dropdown-menu"),_=n.resolveComponent("el-dropdown");return n.openBlock(),n.createElementBlock("div",B3,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.validate,(x,k)=>(n.openBlock(),n.createElementBlock("div",R3,[n.createElementVNode("div",$3,[n.createElementVNode("div",null,[n.createElementVNode("span",null,n.toDisplayString(k+1),1),n.createTextVNode(" "+n.toDisplayString(e.modes[x.mode]),1)]),n.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:T=>e.remove(k)},null,8,I3)]),n.createVNode(w,null,{default:n.withCtx(()=>[n.createVNode(h,{span:e.getSpan(x)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.mode")},{default:n.withCtx(()=>[n.createVNode(c,{modelValue:x.trigger,"onUpdate:modelValue":T=>x.trigger=T,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.triggers,T=>(n.openBlock(),n.createBlock(d,{key:T.value,label:T.label,value:T.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(h,{span:e.getSpan(x)},{default:n.withCtx(()=>[n.createVNode(u,{label:e.modes[x.mode]},{default:n.withCtx(()=>[x.mode==="pattern"?(n.openBlock(),n.createBlock(m,{key:0,modelValue:x[x.mode],"onUpdate:modelValue":T=>x[x.mode]=T,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):x.mode==="validator"?(n.openBlock(),n.createBlock(y,{key:1,modelValue:x[x.mode],"onUpdate:modelValue":T=>x[x.mode]=T,name:"validator",args:["rule","value","callback"],onChange:e.onInput},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(n.openBlock(),n.createBlock(C,{key:2,modelValue:x[x.mode],"onUpdate:modelValue":T=>x[x.mode]=T,onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),n.createVNode(h,{span:24},{default:n.withCtx(()=>[n.createVNode(u,{label:e.t("validate.message")},{default:n.withCtx(()=>[n.createVNode(A,{modelValue:x.message,"onUpdate:modelValue":T=>x.message=T,placeholder:e.t("validate.requiredPlaceholder"),onChange:e.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),n.createVNode(_,{trigger:"click",size:"default","popper-class":"_fd-validate-pop",onCommand:e.handleCommand},{dropdown:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.modes,(x,k)=>(n.openBlock(),n.createBlock(b,{command:k,key:k},{default:n.withCtx(()=>[n.createElementVNode("div",null,n.toDisplayString(x),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:n.withCtx(()=>[n.createVNode(E,{class:"_fd-validate-btn _fd-plain-button",plain:"",size:"small"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("validate.rule"))+" + ",1)]),_:1})]),_:1},8,["onCommand"])])}const P3=Te(O3,[["render",F3]]),Vz="",M3=n.defineComponent({name:"Required",components:{LanguageInput:wf},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(e){const t=dt.String(e);this.required=e===void 0?!1:t?!0:!!e,this.requiredMsg=t?e:""}},computed:{t(){return this.designer.setupState.t}},data(){const e=dt.String(this.modelValue);return{required:this.modelValue===void 0?!1:e?!0:!!this.modelValue,requiredMsg:e?this.modelValue:""}},methods:{update(){let e;this.required===!1?e=!1:e=this.requiredMsg||!0,this.$emit("update:modelValue",e)}}}),L3={class:"_fd-required"};function j3(e,t,r,o,i,l){const d=n.resolveComponent("el-switch"),c=n.resolveComponent("LanguageInput");return n.openBlock(),n.createElementBlock("div",L3,[n.createVNode(d,{modelValue:e.required,"onUpdate:modelValue":t[0]||(t[0]=u=>e.required=u)},null,8,["modelValue"]),e.required?(n.openBlock(),n.createBlock(c,{key:0,modelValue:e.requiredMsg,"onUpdate:modelValue":t[1]||(t[1]=u=>e.requiredMsg=u),placeholder:e.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):n.createCommentVNode("",!0)])}const z3=Te(M3,[["render",j3]]),Oz="",U3=n.defineComponent({name:"TreeOptions",components:{ValueInput:Kl},emits:["update:modelValue"],props:{modelValue:Array,columns:Object,keyValue:String},inject:["designer"],data(){return{value:[...rt(this.modelValue||[])],checked:!1}},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=[{}]),this.keyValue&&(this.checked=this.isChecked(),this.$watch("checked",e=>{e&&this.change()}))},methods:{isChecked(){const e=t=>{for(let r=0;r<t.length;r++){const o=t[r];if(o[this.overColumns.label]!==o[this.overColumns.value]||o.children&&!e(o.children))return!1}return!0};return e(this.modelValue||[])},tidyValue(){const e=t=>{let r=[];return t.map(o=>{const i=o[this.keyValue],l={[this.overColumns.label]:i,[this.overColumns.value]:i};r.push(l),o.children&&(l.children=e(o.children))}),r};return this.checked&&this.keyValue?e(this.value):rt(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(e){const t=e.parent;(t.data.children||t.data).push({})},append(e){e.children||(e.children=[]),e.children.push({})},remove(e,t){const r=e.parent;r.data.children?(r.data.children.splice(r.data.children.indexOf(t),1),r.data.children.length||delete r.data.children):r.data.splice(r.data.indexOf(t),1),this.change()}}}),H3={class:"_fd-tree-opt"},W3={class:"_fd-tree-opt-node"},G3=["onClick"],K3=["onClick"],Y3=["onClick"],Q3=["onClick"],J3=["onClick"],X3=["onClick"];function Z3(e,t,r,o,i,l){const d=n.resolveComponent("el-input"),c=n.resolveComponent("ValueInput"),u=n.resolveComponent("el-tree"),h=n.resolveComponent("el-checkbox");return n.openBlock(),n.createElementBlock("div",H3,[(n.openBlock(),n.createBlock(u,{data:e.value,"node-key":"index",key:e.checked?"1":"2",indent:5,"expand-on-click-node":!1},{default:n.withCtx(({node:m,data:y})=>[n.createElementVNode("div",W3,[e.checked?(n.openBlock(),n.createBlock(d,{key:1,class:"_fd-tree-opt-last _label",modelValue:y[e.keyValue],"onUpdate:modelValue":C=>y[e.keyValue]=C,onBlur:e.change},{append:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.add(m,y)},t[4]||(t[4]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,Q3),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.append(y)},t[5]||(t[5]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,J3),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:C=>e.remove(m,y)},t[6]||(t[6]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,X3)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{class:"_fd-tree-opt-first",modelValue:y[e.overColumns.label],"onUpdate:modelValue":C=>y[e.overColumns.label]=C,onBlur:e.change},null,8,["modelValue","onUpdate:modelValue","onBlur"]),n.createVNode(c,{class:"_fd-tree-opt-last",modelValue:y[e.overColumns.value],"onUpdate:modelValue":C=>y[e.overColumns.value]=C,onBlur:e.change,onChangeType:e.change},{append:n.withCtx(()=>[n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.add(m,y)},t[1]||(t[1]=[n.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,G3),n.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:C=>e.append(y)},t[2]||(t[2]=[n.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,K3),n.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:C=>e.remove(m,y)},t[3]||(t[3]=[n.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,Y3)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])],64))])]),_:1},8,["data"])),e.keyValue?(n.openBlock(),n.createBlock(h,{key:0,modelValue:e.checked,"onUpdate:modelValue":t[0]||(t[0]=m=>e.checked=m),label:e.t("tableOptions.keyValue")},null,8,["modelValue","label"])):n.createCommentVNode("",!0)])}const q3=Te(U3,[["render",Z3]]),Bz="",by=e=>{const t=[];return e.forEach(r=>{r.field&&t.push(r.field),r.children&&t.push(...by(r.children))}),t},eL=n.defineComponent({name:"StepForm",props:{stepsProps:Object,modelValue:Object,formCreateInject:Object,autoValidate:Boolean,submitBtn:Boolean,steps:{type:Array,required:!0,default:()=>[]},options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})}},emits:["update:modelValue","change","itemMounted","submit","next"],data(){return{active:0,cacheRule:[],cacheValue:{},subApi:{},Form:n.markRaw(this.formCreateInject.form.$form())}},watch:{active(){this.init()},modelValue(e){this.setValue(e)}},methods:{init(){this.steps.forEach((e,t)=>{this.cacheRule[t]?this.cacheRule[t].display=t===this.active:this.cacheRule[t]={type:"FcRow",native:!0,display:t===this.active,children:e.rule}})},onPrev(){this.active--},validate(){return new Promise((e,t)=>{const r=by(this.cacheRule[this.active].children);r.length>0?Promise.all(r.map(o=>this.subApi.validateField(o))).then(()=>{e()}).catch(o=>{t(o)}):e()})},onNext(){this.autoValidate?this.validate().then(()=>{this.active++}).catch(e=>{}):this.active++,this.$emit("next",{active:this.active,api:this.subApi})},submit(){const e=()=>{this.$emit("submit",this.subApi.formData(),this.subApi)};this.autoValidate?this.validate().then(()=>{e()}).catch(t=>{this.$emit("validateFail",this.subApi)}):e()},addSubApi(e){this.subApi=e,this.$emit("itemMounted",e)},formData(e){this.cacheValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e)},setValue(e){const t=JSON.stringify(e);this.cacheValue!==t&&(this.cacheValue=t,this.subApi.coverValue(e||{}))}},created(){this.init()}}),tL={class:"_fc-step-form"};function nL(e,t,r,o,i,l){const d=n.resolveComponent("el-step"),c=n.resolveComponent("el-steps"),u=n.resolveComponent("el-button"),h=n.resolveComponent("el-col"),m=n.resolveComponent("el-row");return n.openBlock(),n.createElementBlock("div",tL,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.steps,y=>(n.openBlock(),n.createBlock(d,n.mergeProps({ref_for:!0},y.props),null,16))),256))]),_:1},16,["active"]),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.options,rule:e.cacheRule,extendOption:!0,modelValue:e.modelValue,"onUpdate:api":e.addSubApi,onEmitEvent:e.$emit,"onUpdate:modelValue":e.formData},null,40,["option","rule","modelValue","onUpdate:api","onEmitEvent","onUpdate:modelValue"])),n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(h,{span:24,style:{display:"flex","justify-content":"flex-end","margin-top":"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:e.onPrev},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:1,type:"primary",onClick:e.onNext},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.submitBtn!==!1&&e.active===e.cacheRule.length-1?(n.openBlock(),n.createBlock(u,{key:2,class:"fc-clock",type:"primary",onClick:e.submit},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("submit")||"\u63D0\u4EA4"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const iL=Te(eL,[["render",nL]]),Rz="",rL=n.defineComponent({name:"StepFormView",props:{stepsProps:Object,formCreateInject:Object},provide(){return{stepForm:this}},inject:["designer"],data(){return{active:void 0,activeId:void 0,stepItemRef:[],activeRef:void 0}},watch:{"stepItemRef.length"(){(!this.active||this.formCreateInject.children.indexOf(this.activeRef)===-1)&&(this.active=this.formCreateInject.children.length>0?0:-1)},active(e){this.activeRef=this.formCreateInject.children[e],this.activeId=this.activeRef?this.activeRef._fc_id:null}},methods:{onPrev(){this.active--,this.triggerActive()},onNext(){this.active++,this.triggerActive()},change(e){this.active=e,this.triggerActive()},triggerActive(){this.$nextTick(()=>{this.designer.setupState.triggerActive(this.activeRef)})}},created(){this.$watch(()=>[...this.formCreateInject.children],()=>{this.activeRef&&(this.active=this.formCreateInject.children.indexOf(this.activeRef))})}}),oL={class:"_fd-step-form"};function aL(e,t,r,o,i,l){const d=n.resolveComponent("el-step"),c=n.resolveComponent("el-steps"),u=n.resolveComponent("el-button"),h=n.resolveComponent("el-col"),m=n.resolveComponent("el-row");return n.openBlock(),n.createElementBlock("div",oL,[n.createVNode(c,n.mergeProps({active:e.active},e.stepsProps),{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.formCreateInject.children,(y,C)=>(n.openBlock(),n.createBlock(d,{key:y._fc_id+C,onClick:n.withModifiers(A=>e.change(C),["stop"]),title:y.props.title,description:y.props.description},null,8,["onClick","title","description"]))),128))]),_:1},16,["active"]),n.renderSlot(e.$slots,"default"),n.createVNode(m,null,{default:n.withCtx(()=>[n.createVNode(h,{span:24,style:{display:"flex","justify-content":"flex-end",padding:"15px"}},{default:n.withCtx(()=>[e.active>0?(n.openBlock(),n.createBlock(u,{key:0,onClick:n.withModifiers(e.onPrev,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("prevStep")||"\u4E0A\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0),e.active<e.stepItemRef.length-1?(n.openBlock(),n.createBlock(u,{key:1,type:"primary",onClick:n.withModifiers(e.onNext,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("nextStep")||"\u4E0B\u4E00\u6B65"),1)]),_:1},8,["onClick"])):n.createCommentVNode("",!0)]),_:1})]),_:1})])}const lL=Te(rL,[["render",aL]]),$z="",sL=n.defineComponent({name:"TableFormView",data(){return{}}}),dL={class:"_fd-table-form"},cL={key:0,class:"_fd-tf-wrap"},uL={key:1,class:"_fc-child-empty"};function fL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",dL,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",cL,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",uL))])}const wy=Te(sL,[["render",fL]]),Iz="",pL=n.defineComponent({name:"NestedTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),hL={class:"_fd-ntable-form"},mL={key:0,class:"_fd-ntf-wrap"},gL={key:1,class:"_fc-child-empty"},vL={key:2,class:"_fd-ntable-sub"},yL={class:"_title"};function bL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",hL,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",mL,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",gL)),e.$slots.default?(n.openBlock(),n.createElementBlock("div",vL,[n.createElementVNode("div",yL,n.toDisplayString(e.t("com.nestedSubTableForm.name")),1),n.renderSlot(e.$slots,"nested")])):n.createCommentVNode("",!0)])}const wL=Te(pL,[["render",bL]]),Fz="",CL=n.defineComponent({name:"InfiniteTableFormView",inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t}}}),_L={class:"_fd-itable-form"},EL={key:0,class:"_fd-itf-wrap"},SL={key:1,class:"_fc-child-empty"};function AL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",_L,[e.$slots.default?(n.openBlock(),n.createElementBlock("div",EL,[n.renderSlot(e.$slots,"default")])):(n.openBlock(),n.createElementBlock("div",SL))])}const xL=Te(CL,[["render",AL]]),Pz="",kL=n.defineComponent({name:"TableFormColumnView",props:{label:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const e=this.width,t={width:dt.Number(e)?`${e}px`:!e||e==="auto"?"180px":e};return this.color&&(t.color=this.color),t}},data(){return{}}}),NL={class:"_fd-tf-title"},TL={key:0,class:"_fd-tf-required"},DL={class:"_fd-tf-con"};function VL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:"_fd-tf-col",style:n.normalizeStyle(e.colStyle)},[n.createElementVNode("div",NL,[e.required?(n.openBlock(),n.createElementBlock("span",TL,"*")):n.createCommentVNode("",!0),n.createTextVNode(n.toDisplayString(e.label||""),1)]),n.createElementVNode("div",DL,[n.renderSlot(e.$slots,"default")])],4)}const Cy=Te(kL,[["render",VL]]),Mz="",OL=n.defineComponent({name:"StepFormItemView",props:{title:String,description:String,formCreateInject:Object},inject:["stepForm"],data(){return{}},created(){const e=this.stepForm.formCreateInject.children.indexOf(this.formCreateInject.rule);this.stepForm.stepItemRef.splice(e,0,this)},unmounted(){this.stepForm.stepItemRef.splice(this.stepForm.stepItemRef.indexOf(this),1)},methods:{}}),BL={class:"_fd-step-form-item"};function RL(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",BL,[n.withDirectives(n.createElementVNode("div",null,[n.renderSlot(e.$slots,"default")],512),[[n.vShow,e.stepForm.activeId===e.formCreateInject.rule._fc_id]])])}const $L=Te(OL,[["render",RL]]),Lz="",IL=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},fullscreen:Boolean},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),FL={class:"el-dialog__header show-close"},PL={class:"el-dialog__title"},ML={key:0,class:"el-dialog__headerbtn",type:"button",style:{right:"48px"}},LL={class:"el-dialog__body"},jL={class:"el-dialog__footer"};function zL(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:"_fd-dialog el-dialog",style:n.normalizeStyle(`--fc-dialog-height:${e.dragConHeight-23}px;`)},[n.createElementVNode("header",FL,[n.createElementVNode("span",PL,n.toDisplayString(e.title),1),e.fullscreen?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("button",ML,t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)]))),t[1]||(t[1]=n.createElementVNode("button",{class:"el-dialog__headerbtn",type:"button"},[n.createElementVNode("i",{class:"el-icon el-dialog__close"},[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})])])],-1))]),n.createElementVNode("div",LL,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("footer",jL,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const UL=Te(IL,[["render",zL]]),jz="",HL=n.defineComponent({name:"FcDialog",inject:["designer"],inheritAttrs:!1,props:{title:String,footer:{type:Boolean,default:!0},size:String},computed:{dragConHeight(){return this.designer.setupState.dragConHeight},t(){return this.designer.setupState.t}}}),WL={class:"el-drawer__header"},GL={key:0,class:"el-drawer__close-btn",type:"button"},KL={class:"el-drawer__body"},YL={class:"el-drawer__footer"};function QL(e,t,r,o,i,l){const d=n.resolveComponent("el-button");return n.openBlock(),n.createElementBlock("div",{class:"el-drawer _fd-drawer",style:n.normalizeStyle(`--fc-drawer-height:${e.dragConHeight-23}px;`)},[t[2]||(t[2]=n.createElementVNode("span",{class:"el-drawer__sr-focus",tabindex:"-1"},null,-1)),n.createElementVNode("header",WL,[n.createElementVNode("span",null,n.toDisplayString(e.title),1),e.size!=="100%"?(n.openBlock(),n.createElementBlock("button",GL,t[0]||(t[0]=[n.createElementVNode("i",{class:"fc-icon icon-page-max"},null,-1)]))):n.createCommentVNode("",!0),t[1]||(t[1]=n.createElementVNode("button",{class:"el-drawer__close-btn",type:"button"},[n.createElementVNode("i",{class:"el-icon el-drawer__close"},[n.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})])])],-1))]),n.createElementVNode("div",KL,[n.renderSlot(e.$slots,"default")]),n.createElementVNode("div",YL,[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,null,{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.close")),1)]),_:1}),n.createVNode(d,{type:"primary"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.ok")),1)]),_:1})],64)):n.createCommentVNode("",!0)])],4)}const JL=Te(HL,[["render",QL]]),zz="",XL=n.defineComponent({name:"FcDialog",emits:["confirm","submit","validateFail","update:modelValue"],props:{formData:Object,options:{type:Object,default:()=>n.reactive({submitBtn:!1,resetBtn:!1})},size:[Number,String],title:String,rule:Array,autoClose:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},preview:Boolean,modelValue:Object,formCreateInject:Object},computed:{formOptions(){const e={...this.options};return this.preview&&(e.preview=this.preview),e}},data(){return{visible:!1,max:this.size==="100%",fapi:{},value:{},formRule:[],Form:n.markRaw(this.formCreateInject.form.$form())}},methods:{formChange(){this.$emit("update:modelValue",this.fapi.formData())},open(e){this.$nextTick(()=>{this.visible=!0,this.value=rt(e||this.modelValue||this.formData||{}),this.formRule=rt(this.rule||[])})},close(){this.visible=!1},handleConfirm(){this.$emit("confirm",this.fapi),this.fapi.submit().then(e=>{this.$emit("submit",e,this.fapi,this.close),this.autoClose&&this.close()}).catch(e=>{this.$emit("validateFail",e,this.fapi)})}},mounted(){this.formCreateInject.api.top.bus.$on("fc.closeDialog",this.close),n.onUnmounted(()=>{this.formCreateInject.api.top.bus.$off("fc.closeDialog",this.close)})}}),ZL={class:"el-drawer__title"},qL={key:0,class:"el-drawer__close-btn",type:"button"};function e8(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-drawer");return n.openBlock(),n.createBlock(c,n.mergeProps({class:"_fc-drawer"},e.$attrs,{size:e.max?"100%":e.size,modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),destroyOnClose:""}),{header:n.withCtx(()=>[n.createElementVNode("span",ZL,n.toDisplayString(e.title),1),e.size!=="100%"?(n.openBlock(),n.createElementBlock("button",qL,[e.max?(n.openBlock(),n.createElementBlock("i",{key:0,class:"fc-icon icon-page-min",onClick:t[0]||(t[0]=u=>e.max=!1)})):(n.openBlock(),n.createElementBlock("i",{key:1,class:"fc-icon icon-page-max",onClick:t[1]||(t[1]=u=>e.max=!0)}))])):n.createCommentVNode("",!0)]),footer:n.withCtx(()=>[e.footer!==!1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(d,{onClick:e.close},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("close")||"\u5173\u95ED"),1)]),_:1},8,["onClick"]),n.createVNode(d,{type:"primary",onClick:e.handleConfirm},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["onClick"])],64)):n.createCommentVNode("",!0)]),default:n.withCtx(()=>[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.Form),{option:e.formOptions,rule:e.formRule,extendOption:!0,api:e.fapi,"onUpdate:api":t[2]||(t[2]=u=>e.fapi=u),"model-value":e.value,subForm:!1,onChange:e.formChange,onEmitEvent:e.$emit},null,40,["option","rule","api","model-value","onChange","onEmitEvent"]))]),_:1},16,["size","modelValue"])}const t8=Te(XL,[["render",e8]]),Uz="",n8=n.defineComponent({name:"FcCell",inheritAttrs:!1,data(){return{isNew:!1}},computed:{style(){const e=this.$attrs.style||{},t={"--fc-cell-display":e.display||"block","--fc-cell-flexDirection":e.flexDirection||"inherit","--fc-cell-flexWrap":e.flexWrap||"inherit","--fc-cell-alignContent":e.alignContent||"inherit","--fc-cell-justifyContent":e.justifyContent||"inherit","--fc-cell-alignItems":e.alignItems||"inherit"};return e.height&&(t.height=e.height||"auto"),e.width&&(t.width=e.width||"auto"),t}},mounted(){this.isNew=this.$el.parentNode.classList.contains("_fd-drag-item"),this.isNew&&this.$watch("$attrs.style.width",e=>{n.nextTick(()=>{this.$el.parentNode.style.width=e||"100%"})},{immediate:!0})}});function i8(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{ref:"cell",class:n.normalizeClass(["_fd-cell",{"is-new":e.isNew}]),style:n.normalizeStyle(e.style)},[n.createElementVNode("div",n.mergeProps(e.$attrs,{style:{height:"100%",width:"100%"}}),[n.renderSlot(e.$slots,"default")],16)],6)}const r8=Te(n8,[["render",i8]]),Hz="",o8=n.defineComponent({name:"fcRow",mounted(){}});function a8(e,t,r,o,i,l){const d=n.resolveComponent("el-col");return n.openBlock(),n.createBlock(d,{span:24},{default:n.withCtx(()=>[n.createElementVNode("div",n.mergeProps({class:["_fd-row el-row",{"_fc-child-empty":!e.$slots.default}]},e.$attrs),[n.renderSlot(e.$slots,"default")],16)]),_:3})}const l8=Te(o8,[["render",a8]]),Wz="",s8=n.defineComponent({name:"HideSwitch",props:{modelValue:[String,Boolean,Number],activeValue:{type:[String,Boolean,Number],default:!0},inactiveValue:{type:[String,Boolean,Number],default:!1},disabled:Boolean},events:["update:modelValue"],inject:["designer"],computed:{t(){return this.designer.setupState.t}},methods:{onInput(){this.disabled||this.$emit("update:modelValue",this.modelValue!==this.activeValue?this.activeValue:this.inactiveValue)}}});function d8(e,t,r,o,i,l){return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["_fd-hide-config",{disabled:!!e.disabled,active:e.modelValue===e.activeValue}]),onClick:t[0]||(t[0]=(...d)=>e.onInput&&e.onInput(...d))},[e.modelValue===e.activeValue?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t[1]||(t[1]=n.createElementVNode("i",{class:"fc-icon icon-eye"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.show")),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t[2]||(t[2]=n.createElementVNode("i",{class:"fc-icon icon-eye-close"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.t("props.hide")),1)],64))],2)}const c8=Te(s8,[["render",d8]]),Gz="",u8=n.defineComponent({name:"SpanInput",props:{modelValue:[Number,String]},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{layout:[{label:"1/4",value:6},{label:"1/3",value:8},{label:"1/2",value:12},{label:"2/3",value:16},{label:"3/4",value:18},{label:"\u6574\u884C",value:24}]}},methods:{onInput(e){this.$emit("update:modelValue",e===this.modelValue?"":e)}}});function f8(e,t,r,o,i,l){const d=n.resolveComponent("el-radio-button"),c=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(c,{modelValue:e.modelValue,class:"_fd-span-input"},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.layout,u=>(n.openBlock(),n.createBlock(d,{value:u.value,label:u.value,key:u.value,onClick:h=>e.onInput(u.value)},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(u.value===24?e.t("form.row"):u.label),1)]),_:2},1032,["value","label","onClick"]))),128))]),_:1},8,["modelValue"])}const p8=Te(u8,[["render",f8]]),Kz="",h8=n.defineComponent({name:"FcCity",props:{modelValue:Array,clearable:Boolean,disabled:Boolean,filter:Function,level:{type:Number,default:3},api:String},emits:["update:modelValue","change"],data(){return{value:{p:"",c:"",a:""},oldValue:"",province:[]}},watch:{modelValue:{handler(e){JSON.stringify(e)!==this.oldValue&&this.updateValue()},deep:!0}},computed:{city(){if(this.value.p){for(let e=0;e<this.province.length;e++)if(this.province[e].n===this.value.p)return this.province[e].d}return[]},area(){var e;if(this.value.c){for(let t=0;t<this.city.length;t++)if(this.city[t].n===this.value.c)return((e=this.city[t])==null?void 0:e.d)||[]}return[]}},methods:{updateValue(){var t,r,o;const e=JSON.stringify(this.modelValue);e!==JSON.stringify(this.oldValue)&&(this.value={p:((t=this.modelValue)==null?void 0:t[0])||"",c:((r=this.modelValue)==null?void 0:r[1])||"",a:((o=this.modelValue)==null?void 0:o[2])||""}),this.oldValue=e},changeProvince(e){this.value.p=e,this.value.c="",this.value.a=""},changeCity(e){this.value.c=e,this.value.a=""},onInput(){let e=[];this.value.p&&(e=[this.value.p,this.value.c,this.value.a].filter(t=>!!t),this.level<3&&e.length!==this.level||this.level>2&&(e.length<2||e.length===2&&this.area.length))||(this.oldValue=JSON.stringify(e),this.$emit("update:modelValue",e),this.$emit("change",e))},loadData(e){return fetch(e).then(t=>t.json()).then(t=>{this.province=n.markRaw(this.filter?this.filter(t)||[]:t)})}},created(){this.api?this.loadData(this.api):this.loadData("https://unpkg.com/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://cdn.jsdelivr.net/npm/@province-city-china/level/level.min.json").catch(()=>{this.loadData("https://npm.onmicrosoft.cn/@province-city-china/level/level.min.json")})})},mounted(){this.updateValue()}}),m8={class:"_fc-city"};function g8(e,t,r,o,i,l){const d=n.resolveComponent("el-option"),c=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",m8,[n.createVNode(c,{disabled:e.disabled,clearable:e.clearable,modelValue:e.value.p,"onUpdate:modelValue":e.changeProvince,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.province,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"]),e.level>1&&e.city.length?(n.openBlock(),n.createBlock(c,{key:0,disabled:e.disabled,clearable:e.clearable,modelValue:e.value.c,"onUpdate:modelValue":e.changeCity,onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.city,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onUpdate:modelValue","onChange"])):n.createCommentVNode("",!0),e.level>2&&e.area.length?(n.openBlock(),n.createBlock(c,{key:1,disabled:e.disabled,clearable:e.clearable,modelValue:e.value.a,"onUpdate:modelValue":t[0]||(t[0]=u=>e.value.a=u),onChange:e.onInput},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.area,u=>(n.openBlock(),n.createBlock(d,{label:u.n,value:u.n},null,8,["label","value"]))),256))]),_:1},8,["disabled","clearable","modelValue","onChange"])):n.createCommentVNode("",!0)])}const v8=Te(h8,[["render",g8]]),Yz="",y8=n.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,formCreateInject:Object},watch:{visible(e){e?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=n.markRaw(new Ho(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const e=this.signaturePad.toDataURL();this.updateValue(e),this.visible=!1},updateValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},remove(){this.updateValue(""),this.$emit("remove")}}}),b8={class:"_fc-signature"},w8={key:0,class:"_fc-signature-preview"},C8=["src"],_8={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function E8(e,t,r,o,i,l){const d=n.resolveComponent("el-button"),c=n.resolveComponent("el-dialog");return n.openBlock(),n.createElementBlock("div",b8,[e.modelValue?(n.openBlock(),n.createElementBlock("div",w8,[n.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:t[0]||(t[0]=(...u)=>e.remove&&e.remove(...u))}),n.createElementVNode("img",{src:e.modelValue,alt:"signature"},null,8,C8)])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:t[1]||(t[1]=u=>e.visible=!0)},[t[4]||(t[4]=n.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),n.createTextVNode(" "+n.toDisplayString(e.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),n.createVNode(c,{class:"_fc-signature-dialog",title:e.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",modelValue:e.visible,"onUpdate:modelValue":t[3]||(t[3]=u=>e.visible=u),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"640px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{size:"default",onClick:t[2]||(t[2]=u=>e.clear())},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),n.createVNode(d,{type:"primary",disabled:e.isEmpty,onClick:e.submit,size:"default"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:n.withCtx(()=>[n.createElementVNode("canvas",_8,null,512)]),_:1},8,["title","modelValue"])])}const S8=Te(y8,[["render",E8]]),Qz="",A8=n.defineComponent({name:"FcDataSelectView",components:{FcInlineForm:kc,DataTable:xc},inject:["designer"],props:{title:String,placeholder:String,multiple:Boolean,disabled:Boolean,multipleLimit:Number,valueKey:String,labelKey:String,clearable:Boolean},computed:{t(){return this.designer.setupState.t}},data(){return{visible:!0}},methods:{handleClick(e){e.stopPropagation(),this.visible=!this.visible}}}),x8={key:0,class:"el-dialog"},k8={class:"el-dialog__header show-close"},N8={class:"el-dialog__title"};function T8(e,t,r,o,i,l){const d=n.resolveComponent("el-select");return n.openBlock(),n.createElementBlock("div",{class:"_fd-data-select",style:n.normalizeStyle({"--fc-drag-empty":`'${e.t("com.select.emptyText")}'`})},[n.createVNode(d,{onClickCapture:e.handleClick,disabled:e.disabled,placeholder:e.placeholder},null,8,["onClickCapture","disabled","placeholder"]),e.visible?(n.openBlock(),n.createElementBlock("div",x8,[n.createElementVNode("header",k8,[n.createElementVNode("span",N8,n.toDisplayString(e.title),1)]),n.renderSlot(e.$slots,"search"),n.renderSlot(e.$slots,"table")])):n.createCommentVNode("",!0)],4)}const D8=Te(A8,[["render",T8]]);/*!
|
||
* @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 _y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,o)}return r}function V8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_y(Object(r),!0).forEach(function(o){O8(e,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_y(Object(r)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))})}return e}function Jt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jt=function(t){return typeof t}:Jt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jt(e)}function O8(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B8(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ey={exports:{}};(function(e,t){(function(o,i){e.exports=i()})(window,function(){return function(r){var o={};function i(l){if(o[l])return o[l].exports;var d=o[l]={i:l,l:!1,exports:{}};return r[l].call(d.exports,d,d.exports,i),d.l=!0,d.exports}return i.m=r,i.c=o,i.d=function(l,d,c){i.o(l,d)||Object.defineProperty(l,d,{enumerable:!0,get:c})},i.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})},i.t=function(l,d){if(d&1&&(l=i(l)),d&8||d&4&&Jt(l)==="object"&&l&&l.__esModule)return l;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:l}),d&2&&typeof l!="string")for(var u in l)i.d(c,u,function(h){return l[h]}.bind(null,u));return c},i.n=function(l){var d=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(d,"a",d),d},i.o=function(l,d){return Object.prototype.hasOwnProperty.call(l,d)},i.p="",i(i.s=141)}([function(r,o){function i(l){return l&&l.__esModule?l:{default:l}}r.exports=i},function(r,o,i){r.exports=i(142)},function(r,o,i){i.r(o),i.d(o,"__extends",function(){return d}),i.d(o,"__assign",function(){return c}),i.d(o,"__rest",function(){return u}),i.d(o,"__decorate",function(){return h}),i.d(o,"__param",function(){return m}),i.d(o,"__metadata",function(){return y}),i.d(o,"__awaiter",function(){return C}),i.d(o,"__generator",function(){return A}),i.d(o,"__createBinding",function(){return w}),i.d(o,"__exportStar",function(){return E}),i.d(o,"__values",function(){return b}),i.d(o,"__read",function(){return g}),i.d(o,"__spread",function(){return _}),i.d(o,"__spreadArrays",function(){return x}),i.d(o,"__spreadArray",function(){return k}),i.d(o,"__await",function(){return T}),i.d(o,"__asyncGenerator",function(){return O}),i.d(o,"__asyncDelegator",function(){return F}),i.d(o,"__asyncValues",function(){return I}),i.d(o,"__makeTemplateObject",function(){return M}),i.d(o,"__importStar",function(){return B}),i.d(o,"__importDefault",function(){return L}),i.d(o,"__classPrivateFieldGet",function(){return U}),i.d(o,"__classPrivateFieldSet",function(){return H});/*! *****************************************************************************
|
||
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 l=function(z,$){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,J){S.__proto__=J}||function(S,J){for(var Q in J)Object.prototype.hasOwnProperty.call(J,Q)&&(S[Q]=J[Q])},l(z,$)};function d(R,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");l(R,z);function $(){this.constructor=R}R.prototype=z===null?Object.create(z):($.prototype=z.prototype,new $)}var c=function(){return c=Object.assign||function($){for(var S,J=1,Q=arguments.length;J<Q;J++){S=arguments[J];for(var G in S)Object.prototype.hasOwnProperty.call(S,G)&&($[G]=S[G])}return $},c.apply(this,arguments)};function u(R,z){var $={};for(var S in R)Object.prototype.hasOwnProperty.call(R,S)&&z.indexOf(S)<0&&($[S]=R[S]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,S=Object.getOwnPropertySymbols(R);J<S.length;J++)z.indexOf(S[J])<0&&Object.prototype.propertyIsEnumerable.call(R,S[J])&&($[S[J]]=R[S[J]]);return $}function h(R,z,$,S){var J=arguments.length,Q=J<3?z:S===null?S=Object.getOwnPropertyDescriptor(z,$):S,G;if((typeof Reflect>"u"?"undefined":Jt(Reflect))==="object"&&typeof Reflect.decorate=="function")Q=Reflect.decorate(R,z,$,S);else for(var ie=R.length-1;ie>=0;ie--)(G=R[ie])&&(Q=(J<3?G(Q):J>3?G(z,$,Q):G(z,$))||Q);return J>3&&Q&&Object.defineProperty(z,$,Q),Q}function m(R,z){return function($,S){z($,S,R)}}function y(R,z){if((typeof Reflect>"u"?"undefined":Jt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(R,z)}function C(R,z,$,S){function J(Q){return Q instanceof $?Q:new $(function(G){G(Q)})}return new($||($=Promise))(function(Q,G){function ie(be){try{le(S.next(be))}catch(ce){G(ce)}}function X(be){try{le(S.throw(be))}catch(ce){G(ce)}}function le(be){be.done?Q(be.value):J(be.value).then(ie,X)}le((S=S.apply(R,z||[])).next())})}function A(R,z){var $={label:0,sent:function(){if(Q[0]&1)throw Q[1];return Q[1]},trys:[],ops:[]},S,J,Q,G;return G={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function ie(le){return function(be){return X([le,be])}}function X(le){if(S)throw new TypeError("Generator is already executing.");for(;$;)try{if(S=1,J&&(Q=le[0]&2?J.return:le[0]?J.throw||((Q=J.return)&&Q.call(J),0):J.next)&&!(Q=Q.call(J,le[1])).done)return Q;switch(J=0,Q&&(le=[le[0]&2,Q.value]),le[0]){case 0:case 1:Q=le;break;case 4:return $.label++,{value:le[1],done:!1};case 5:$.label++,J=le[1],le=[0];continue;case 7:le=$.ops.pop(),$.trys.pop();continue;default:if(Q=$.trys,!(Q=Q.length>0&&Q[Q.length-1])&&(le[0]===6||le[0]===2)){$=0;continue}if(le[0]===3&&(!Q||le[1]>Q[0]&&le[1]<Q[3])){$.label=le[1];break}if(le[0]===6&&$.label<Q[1]){$.label=Q[1],Q=le;break}if(Q&&$.label<Q[2]){$.label=Q[2],$.ops.push(le);break}Q[2]&&$.ops.pop(),$.trys.pop();continue}le=z.call(R,$)}catch(be){le=[6,be],J=0}finally{S=Q=0}if(le[0]&5)throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}}var w=Object.create?function(R,z,$,S){S===void 0&&(S=$),Object.defineProperty(R,S,{enumerable:!0,get:function(){return z[$]}})}:function(R,z,$,S){S===void 0&&(S=$),R[S]=z[$]};function E(R,z){for(var $ in R)$!=="default"&&!Object.prototype.hasOwnProperty.call(z,$)&&w(z,R,$)}function b(R){var z=typeof Symbol=="function"&&Symbol.iterator,$=z&&R[z],S=0;if($)return $.call(R);if(R&&typeof R.length=="number")return{next:function(){return R&&S>=R.length&&(R=void 0),{value:R&&R[S++],done:!R}}};throw new TypeError(z?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(R,z){var $=typeof Symbol=="function"&&R[Symbol.iterator];if(!$)return R;var S=$.call(R),J,Q=[],G;try{for(;(z===void 0||z-- >0)&&!(J=S.next()).done;)Q.push(J.value)}catch(ie){G={error:ie}}finally{try{J&&!J.done&&($=S.return)&&$.call(S)}finally{if(G)throw G.error}}return Q}function _(){for(var R=[],z=0;z<arguments.length;z++)R=R.concat(g(arguments[z]));return R}function x(){for(var R=0,z=0,$=arguments.length;z<$;z++)R+=arguments[z].length;for(var S=Array(R),J=0,z=0;z<$;z++)for(var Q=arguments[z],G=0,ie=Q.length;G<ie;G++,J++)S[J]=Q[G];return S}function k(R,z){for(var $=0,S=z.length,J=R.length;$<S;$++,J++)R[J]=z[$];return R}function T(R){return this instanceof T?(this.v=R,this):new T(R)}function O(R,z,$){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var S=$.apply(R,z||[]),J,Q=[];return J={},G("next"),G("throw"),G("return"),J[Symbol.asyncIterator]=function(){return this},J;function G(de){S[de]&&(J[de]=function(pe){return new Promise(function(se,ge){Q.push([de,pe,se,ge])>1||ie(de,pe)})})}function ie(de,pe){try{X(S[de](pe))}catch(se){ce(Q[0][3],se)}}function X(de){de.value instanceof T?Promise.resolve(de.value.v).then(le,be):ce(Q[0][2],de)}function le(de){ie("next",de)}function be(de){ie("throw",de)}function ce(de,pe){de(pe),Q.shift(),Q.length&&ie(Q[0][0],Q[0][1])}}function F(R){var z,$;return z={},S("next"),S("throw",function(J){throw J}),S("return"),z[Symbol.iterator]=function(){return this},z;function S(J,Q){z[J]=R[J]?function(G){return($=!$)?{value:T(R[J](G)),done:J==="return"}:Q?Q(G):G}:Q}}function I(R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z=R[Symbol.asyncIterator],$;return z?z.call(R):(R=typeof b=="function"?b(R):R[Symbol.iterator](),$={},S("next"),S("throw"),S("return"),$[Symbol.asyncIterator]=function(){return this},$);function S(Q){$[Q]=R[Q]&&function(G){return new Promise(function(ie,X){G=R[Q](G),J(ie,X,G.done,G.value)})}}function J(Q,G,ie,X){Promise.resolve(X).then(function(le){Q({value:le,done:ie})},G)}}function M(R,z){return Object.defineProperty?Object.defineProperty(R,"raw",{value:z}):R.raw=z,R}var N=Object.create?function(R,z){Object.defineProperty(R,"default",{enumerable:!0,value:z})}:function(R,z){R.default=z};function B(R){if(R&&R.__esModule)return R;var z={};if(R!=null)for(var $ in R)$!=="default"&&Object.prototype.hasOwnProperty.call(R,$)&&w(z,R,$);return N(z,R),z}function L(R){return R&&R.__esModule?R:{default:R}}function U(R,z){if(!z.has(R))throw new TypeError("attempted to get private field on non-instance");return z.get(R)}function H(R,z,$){if(!z.has(R))throw new TypeError("attempted to set private field on non-instance");return z.set(R,$),$}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(89)),u=l(i(4)),h=l(i(26)),m=l(i(17)),y=l(i(121)),C=l(i(27)),A=l(i(91)),w=l(i(70)),E=l(i(28)),b=l(i(57));(0,d.default)(o,"__esModule",{value:!0}),o.DomElement=void 0;var g=i(2),_=i(6),x=[];function k(N){var B=document.createElement("div");B.innerHTML=N;var L=B.children;return _.toArray(L)}function T(N){return N?N instanceof HTMLCollection||N instanceof NodeList:!1}function O(N){var B=document.querySelectorAll(N);return _.toArray(B)}function F(N){var B=[],L=[];return(0,c.default)(N)?B=N:B=N.split(";"),(0,u.default)(B).call(B,function(U){var H,R=(0,h.default)(H=U.split(":")).call(H,function(z){return(0,m.default)(z).call(z)});R.length===2&&L.push(R[0]+":"+R[1])}),L}var I=function(){function N(B){if(this.elems=[],this.length=this.elems.length,this.dataSource=new y.default,!!B){if(B instanceof N)return B;var L=[],U=B instanceof Node?B.nodeType:-1;if(this.selector=B,U===1||U===9)L=[B];else if(T(B))L=_.toArray(B);else if(B instanceof Array)L=B;else if(typeof B=="string"){var H,R=(0,m.default)(H=B.replace(`/
|
||
/mg`,"")).call(H);(0,C.default)(R).call(R,"<")===0?L=k(R):L=O(R)}var z=L.length;if(!z)return this;for(var $=0;$<z;$++)this.elems.push(L[$]);this.length=z}}return(0,d.default)(N.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),N.prototype.forEach=function(B){for(var L=0;L<this.length;L++){var U=this.elems[L],H=B.call(U,U,L);if(H===!1)break}return this},N.prototype.clone=function(B){var L;B===void 0&&(B=!1);var U=[];return(0,u.default)(L=this.elems).call(L,function(H){U.push(H.cloneNode(!!B))}),M(U)},N.prototype.get=function(B){B===void 0&&(B=0);var L=this.length;return B>=L&&(B=B%L),M(this.elems[B])},N.prototype.first=function(){return this.get(0)},N.prototype.last=function(){var B=this.length;return this.get(B-1)},N.prototype.on=function(B,L,U){var H;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(H=this).call(H,function(R){if(!L){R.addEventListener(B,U);return}var z=function(S){var J=S.target;J.matches(L)&&U.call(J,S)};R.addEventListener(B,z),x.push({elem:R,selector:L,fn:U,agentFn:z})})):this},N.prototype.off=function(B,L,U){var H;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(H=this).call(H,function(R){if(L){for(var z=-1,$=0;$<x.length;$++){var S=x[$];if(S.selector===L&&S.fn===U&&S.elem===R){z=$;break}}if(z!==-1){var J=(0,A.default)(x).call(x,z,1)[0].agentFn;R.removeEventListener(B,J)}}else R.removeEventListener(B,U)})):this},N.prototype.attr=function(B,L){var U;return L==null?this.elems[0].getAttribute(B)||"":(0,u.default)(U=this).call(U,function(H){H.setAttribute(B,L)})},N.prototype.removeAttr=function(B){var L;(0,u.default)(L=this).call(L,function(U){U.removeAttribute(B)})},N.prototype.addClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(U.className){var H=U.className.split(/\s/);H=(0,w.default)(H).call(H,function(R){return!!(0,m.default)(R).call(R)}),(0,C.default)(H).call(H,B)<0&&H.push(B),U.className=H.join(" ")}else U.className=B}):this},N.prototype.removeClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(!!U.className){var H=U.className.split(/\s/);H=(0,w.default)(H).call(H,function(R){return R=(0,m.default)(R).call(R),!(!R||R===B)}),U.className=H.join(" ")}}):this},N.prototype.hasClass=function(B){if(!B)return!1;var L=this.elems[0];if(!L.className)return!1;var U=L.className.split(/\s/);return(0,E.default)(U).call(U,B)},N.prototype.css=function(B,L){var U,H;return L==""?H="":H=B+":"+L+";",(0,u.default)(U=this).call(U,function(R){var z,$=(0,m.default)(z=R.getAttribute("style")||"").call(z);if($){var S=F($);S=(0,h.default)(S).call(S,function(J){return(0,C.default)(J).call(J,B)===0?H:J}),H!=""&&(0,C.default)(S).call(S,H)<0&&S.push(H),H==""&&(S=F(S)),R.setAttribute("style",S.join("; "))}else R.setAttribute("style",H)})},N.prototype.getBoundingClientRect=function(){var B=this.elems[0];return B.getBoundingClientRect()},N.prototype.show=function(){return this.css("display","block")},N.prototype.hide=function(){return this.css("display","none")},N.prototype.children=function(){var B=this.elems[0];return B?M(B.children):null},N.prototype.childNodes=function(){var B=this.elems[0];return B?M(B.childNodes):null},N.prototype.replaceChildAll=function(B){for(var L=this.getNode(),U=this.elems[0];U.hasChildNodes();)L.firstChild&&U.removeChild(L.firstChild);this.append(B)},N.prototype.append=function(B){var L;return(0,u.default)(L=this).call(L,function(U){(0,u.default)(B).call(B,function(H){U.appendChild(H)})})},N.prototype.remove=function(){var B;return(0,u.default)(B=this).call(B,function(L){if(L.remove)L.remove();else{var U=L.parentElement;U&&U.removeChild(L)}})},N.prototype.isContain=function(B){var L=this.elems[0],U=B.elems[0];return L.contains(U)},N.prototype.getNodeName=function(){var B=this.elems[0];return B.nodeName},N.prototype.getNode=function(B){B===void 0&&(B=0);var L;return L=this.elems[B],L},N.prototype.find=function(B){var L=this.elems[0];return M(L.querySelectorAll(B))},N.prototype.text=function(B){if(B){var U;return(0,u.default)(U=this).call(U,function(H){H.innerHTML=B})}else{var L=this.elems[0];return L.innerHTML.replace(/<[^>]+>/g,function(){return""})}},N.prototype.html=function(B){var L=this.elems[0];return B?(L.innerHTML=B,this):L.innerHTML},N.prototype.val=function(){var B,L=this.elems[0];return(0,m.default)(B=L.value).call(B)},N.prototype.focus=function(){var B;return(0,u.default)(B=this).call(B,function(L){L.focus()})},N.prototype.prev=function(){var B=this.elems[0];return M(B.previousElementSibling)},N.prototype.next=function(){var B=this.elems[0];return M(B.nextElementSibling)},N.prototype.getNextSibling=function(){var B=this.elems[0];return M(B.nextSibling)},N.prototype.parent=function(){var B=this.elems[0];return M(B.parentElement)},N.prototype.parentUntil=function(B,L){var U=L||this.elems[0];if(U.nodeName==="BODY")return null;var H=U.parentElement;return H===null?null:H.matches(B)?M(H):this.parentUntil(B,H)},N.prototype.parentUntilEditor=function(B,L,U){var H=U||this.elems[0];if(M(H).equal(L.$textContainerElem)||M(H).equal(L.$toolbarElem))return null;var R=H.parentElement;return R===null?null:R.matches(B)?M(R):this.parentUntilEditor(B,L,R)},N.prototype.equal=function(B){return B instanceof N?this.elems[0]===B.elems[0]:B instanceof HTMLElement?this.elems[0]===B:!1},N.prototype.insertBefore=function(B){var L,U=M(B),H=U.elems[0];return H?(0,u.default)(L=this).call(L,function(R){var z=H.parentNode;z==null||z.insertBefore(R,H)}):this},N.prototype.insertAfter=function(B){var L,U=M(B),H=U.elems[0],R=H&&H.nextSibling;return H?(0,u.default)(L=this).call(L,function(z){var $=H.parentNode;R?$.insertBefore(z,R):$.appendChild(z)}):this},N.prototype.data=function(B,L){if(L!=null)this.dataSource.set(B,L);else return this.dataSource.get(B)},N.prototype.getNodeTop=function(B){if(this.length<1)return this;var L=this.parent();return B.$textElem.equal(this)||B.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(B))},N.prototype.getOffsetData=function(){var B=this.elems[0];return{top:B.offsetTop,left:B.offsetLeft,width:B.offsetWidth,height:B.offsetHeight,parent:B.offsetParent}},N.prototype.scrollTop=function(B){var L=this.elems[0];L.scrollTo({top:B})},N}();o.DomElement=I;function M(){for(var N=[],B=0;B<arguments.length;B++)N[B]=arguments[B];return new((0,b.default)(I).apply(I,g.__spreadArrays([void 0],N)))}o.default=M},function(r,o,i){r.exports=i(180)},function(r,o,i){var l=i(8),d=i(71).f,c=i(101),u=i(9),h=i(40),m=i(19),y=i(16),C=function(w){var E=function(g,_,x){if(this instanceof w){switch(arguments.length){case 0:return new w;case 1:return new w(g);case 2:return new w(g,_)}return new w(g,_,x)}return w.apply(this,arguments)};return E.prototype=w.prototype,E};r.exports=function(A,w){var E=A.target,b=A.global,g=A.stat,_=A.proto,x=b?l:g?l[E]:(l[E]||{}).prototype,k=b?u:u[E]||(u[E]={}),T=k.prototype,O,F,I,M,N,B,L,U,H;for(M in w)O=c(b?M:E+(g?".":"#")+M,A.forced),F=!O&&x&&y(x,M),B=k[M],F&&(A.noTargetGet?(H=d(x,M),L=H&&H.value):L=x[M]),N=F&&L?L:w[M],!(F&&Jt(B)===Jt(N))&&(A.bind&&F?U=h(N,l):A.wrap&&F?U=C(N):_&&typeof N=="function"?U=h(Function.call,N):U=N,(A.sham||N&&N.sham||B&&B.sham)&&m(U,"sham",!0),k[M]=U,_&&(I=E+"Prototype",y(u,I)||m(u,I,{}),u[I][M]=N,A.real&&T&&!T[M]&&m(T,M,N)))}},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(256)),h=l(i(45)),m=l(i(46)),y=l(i(89)),C=l(i(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 A=i(2),w=function(){function B(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,u.default)(L[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return B.prototype.isIE=function(){return"ActiveXObject"in window},B.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},B}();o.UA=new w;function E(B){var L;return B===void 0&&(B=""),B+(0,h.default)(L=Math.random().toString()).call(L,2)}o.getRandom=E;function b(B){return B.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")}o.replaceHtmlSymbol=b;function g(B){return B.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}o.replaceSpecialSymbol=g;function _(B,L){for(var U in B)if(Object.prototype.hasOwnProperty.call(B,U)){var H=L(U,B[U]);if(H===!1)break}}o.forEach=_;function x(B,L){var U,H,R,z=B.length||0;for(U=0;U<z&&(H=B[U],R=L.call(B,H,U),R!==!1);U++);}o.arrForEach=x;function k(B,L){L===void 0&&(L=200);var U=!1;return function(){for(var H=this,R=[],z=0;z<arguments.length;z++)R[z]=arguments[z];U||(U=!0,(0,m.default)(function(){U=!1,B.call.apply(B,A.__spreadArrays([H],R))},L))}}o.throttle=k;function T(B,L){L===void 0&&(L=200);var U=0;return function(){for(var H=this,R=[],z=0;z<arguments.length;z++)R[z]=arguments[z];U&&window.clearTimeout(U),U=(0,m.default)(function(){U=0,B.call.apply(B,A.__spreadArrays([H],R))},L)}}o.debounce=T;function O(B){return typeof B=="function"}o.isFunction=O;function F(B){if((0,d.default)(B)!=="object"||typeof B=="function"||B===null)return B;var L;(0,y.default)(B)&&(L=[]),(0,y.default)(B)||(L={});for(var U in B)Object.prototype.hasOwnProperty.call(B,U)&&(L[U]=F(B[U]));return L}o.deepClone=F;function I(B){return(0,h.default)(Array.prototype).call(B)}o.toArray=I;function M(){var B;return(0,h.default)(B=Math.random().toString(36)).call(B,-5)}o.getRandomCode=M;function N(B){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(B);if(L==null)return null;var U=(0,C.default)(L).call(L,function($){return(0,u.default)($,16)}),H=U[1],R=U[2],z=U[3];return"rgb("+H+", "+R+", "+z+")"}o.hexToRgb=N},function(r,o,i){var l=i(0),d=l(i(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(r,o,i){(function(l){var d=function(u){return u&&u.Math==Math&&u};r.exports=d((typeof globalThis>"u"?"undefined":Jt(globalThis))=="object"&&globalThis)||d((typeof window>"u"?"undefined":Jt(window))=="object"&&window)||d((typeof self>"u"?"undefined":Jt(self))=="object"&&self)||d(Jt(l)=="object"&&l)||Function("return this")()}).call(this,i(145))},function(r,o){r.exports={}},function(r,o,i){var l=i(8),d=i(74),c=i(16),u=i(64),h=i(76),m=i(106),y=d("wks"),C=l.Symbol,A=m?C:C&&C.withoutSetter||u;r.exports=function(w){return c(y,w)||(h&&c(C,w)?y[w]=C[w]:y[w]=A("Symbol."+w)),y[w]}},function(r,o){r.exports=function(i){try{return!!i()}catch{return!0}}},function(r,o,i){var l=i(9),d=i(16),c=i(93),u=i(18).f;r.exports=function(h){var m=l.Symbol||(l.Symbol={});d(m,h)||u(m,h,{value:c.f(h)})}},function(r,o){r.exports=function(i){return Jt(i)==="object"?i!==null:typeof i=="function"}},function(r,o,i){var l=i(11);r.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(r,o,i){var l=i(9);r.exports=function(d){return l[d+"Prototype"]}},function(r,o){var i={}.hasOwnProperty;r.exports=function(l,d){return i.call(l,d)}},function(r,o,i){r.exports=i(192)},function(r,o,i){var l=i(14),d=i(100),c=i(25),u=i(60),h=Object.defineProperty;o.f=l?h:function(y,C,A){if(c(y),C=u(C,!0),c(A),d)try{return h(y,C,A)}catch{}if("get"in A||"set"in A)throw TypeError("Accessors not supported");return"value"in A&&(y[C]=A.value),y}},function(r,o,i){var l=i(14),d=i(18),c=i(48);r.exports=l?function(u,h,m){return d.f(u,h,c(1,m))}:function(u,h,m){return u[h]=m,u}},function(r,o,i){var l=function(){var x;return function(){return typeof x>"u"&&(x=Boolean(window&&document&&document.all&&!window.atob)),x}}(),d=function(){var x={};return function(T){if(typeof x[T]>"u"){var O=document.querySelector(T);if(window.HTMLIFrameElement&&O instanceof window.HTMLIFrameElement)try{O=O.contentDocument.head}catch{O=null}x[T]=O}return x[T]}}(),c=[];function u(_){for(var x=-1,k=0;k<c.length;k++)if(c[k].identifier===_){x=k;break}return x}function h(_,x){for(var k={},T=[],O=0;O<_.length;O++){var F=_[O],I=x.base?F[0]+x.base:F[0],M=k[I]||0,N="".concat(I," ").concat(M);k[I]=M+1;var B=u(N),L={css:F[1],media:F[2],sourceMap:F[3]};B!==-1?(c[B].references++,c[B].updater(L)):c.push({identifier:N,updater:g(L,x),references:1}),T.push(N)}return T}function m(_){var x=document.createElement("style"),k=_.attributes||{};if(typeof k.nonce>"u"){var T=i.nc;T&&(k.nonce=T)}if(Object.keys(k).forEach(function(F){x.setAttribute(F,k[F])}),typeof _.insert=="function")_.insert(x);else{var O=d(_.insert||"head");if(!O)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");O.appendChild(x)}return x}function y(_){if(_.parentNode===null)return!1;_.parentNode.removeChild(_)}var C=function(){var x=[];return function(T,O){return x[T]=O,x.filter(Boolean).join(`
|
||
`)}}();function A(_,x,k,T){var O=k?"":T.media?"@media ".concat(T.media," {").concat(T.css,"}"):T.css;if(_.styleSheet)_.styleSheet.cssText=C(x,O);else{var F=document.createTextNode(O),I=_.childNodes;I[x]&&_.removeChild(I[x]),I.length?_.insertBefore(F,I[x]):_.appendChild(F)}}function w(_,x,k){var T=k.css,O=k.media,F=k.sourceMap;if(O?_.setAttribute("media",O):_.removeAttribute("media"),F&&typeof btoa<"u"&&(T+=`
|
||
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(F))))," */")),_.styleSheet)_.styleSheet.cssText=T;else{for(;_.firstChild;)_.removeChild(_.firstChild);_.appendChild(document.createTextNode(T))}}var E=null,b=0;function g(_,x){var k,T,O;if(x.singleton){var F=b++;k=E||(E=m(x)),T=A.bind(null,k,F,!1),O=A.bind(null,k,F,!0)}else k=m(x),T=w.bind(null,k,x),O=function(){y(k)};return T(_),function(M){if(M){if(M.css===_.css&&M.media===_.media&&M.sourceMap===_.sourceMap)return;T(_=M)}else O()}}r.exports=function(_,x){x=x||{},!x.singleton&&typeof x.singleton!="boolean"&&(x.singleton=l()),_=_||[];var k=h(_,x);return function(O){if(O=O||[],Object.prototype.toString.call(O)==="[object Array]"){for(var F=0;F<k.length;F++){var I=k[F],M=u(I);c[M].references--}for(var N=h(O,x),B=0;B<k.length;B++){var L=k[B],U=u(L);c[U].references===0&&(c[U].updater(),c.splice(U,1))}k=N}}}},function(r,o,i){r.exports=function(c){var u=[];return u.toString=function(){return this.map(function(m){var y=l(m,c);return m[2]?"@media ".concat(m[2]," {").concat(y,"}"):y}).join("")},u.i=function(h,m,y){typeof h=="string"&&(h=[[null,h,""]]);var C={};if(y)for(var A=0;A<this.length;A++){var w=this[A][0];w!=null&&(C[w]=!0)}for(var E=0;E<h.length;E++){var b=[].concat(h[E]);y&&C[b[0]]||(m&&(b[2]?b[2]="".concat(m," and ").concat(b[2]):b[2]=m),u.push(b))}},u};function l(c,u){var h=c[1]||"",m=c[3];if(!m)return h;if(u&&typeof btoa=="function"){var y=d(m),C=m.sources.map(function(A){return"/*# sourceURL=".concat(m.sourceRoot||"").concat(A," */")});return[h].concat(C).concat([y]).join(`
|
||
`)}return[h].join(`
|
||
`)}function d(c){var u=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),h="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u);return"/*# ".concat(h," */")}},function(r,o,i){var l=i(14),d=i(11),c=i(16),u=Object.defineProperty,h={},m=function(C){throw C};r.exports=function(y,C){if(c(h,y))return h[y];C||(C={});var A=[][y],w=c(C,"ACCESSORS")?C.ACCESSORS:!1,E=c(C,0)?C[0]:m,b=c(C,1)?C[1]:void 0;return h[y]=!!A&&!d(function(){if(w&&!l)return!0;var g={length:-1};w?u(g,1,{enumerable:!0,get:m}):g[1]=1,A.call(g,E,b)})}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(95)),h=function(m){c.__extends(y,m);function y(C,A){return m.call(this,C,A)||this}return y}(u.default);o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=h.__importDefault(i(95)),C=h.__importDefault(i(134)),A=function(w){h.__extends(E,w);function E(b,g,_){var x=w.call(this,b,g)||this;_.title=g.i18next.t("menus.dropListMenu."+_.title);var k=g.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(k!==""&&_.type==="list"){var T;(0,c.default)(T=_.list).call(T,function(F){var I=F.$elem,M=m.default(I.children());if(M.length>0){var N=M==null?void 0:M.getNodeName();N&&N==="I"&&I.addClass(k)}})}var O=new C.default(x,_);return x.dropList=O,b.on("click",function(){var F;g.selection.getRange()!=null&&(b.css("z-index",g.zIndex.get("menu")),(0,c.default)(F=g.txt.eventHooks.dropListMenuHoverEvents).call(F,function(I){return I()}),O.show())}).on("mouseleave",function(){b.css("z-index","auto"),O.hideTimeoutId=(0,u.default)(function(){O.hide()})}),x}return E}(y.default);o.default=A},function(r,o,i){var l=i(13);r.exports=function(d){if(!l(d))throw TypeError(String(d)+" is not an object");return d}},function(r,o,i){r.exports=i(188)},function(r,o,i){r.exports=i(201)},function(r,o,i){r.exports=i(213)},function(r,o,i){r.exports=i(283)},function(r,o,i){var l=i(72),d=i(49);r.exports=function(c){return l(d(c))}},function(r,o,i){var l=i(49);r.exports=function(d){return Object(l(d))}},function(r,o,i){var l=i(40),d=i(72),c=i(31),u=i(35),h=i(88),m=[].push,y=function(A){var w=A==1,E=A==2,b=A==3,g=A==4,_=A==6,x=A==5||_;return function(k,T,O,F){for(var I=c(k),M=d(I),N=l(T,O,3),B=u(M.length),L=0,U=F||h,H=w?U(k,B):E?U(k,0):void 0,R,z;B>L;L++)if((x||L in M)&&(R=M[L],z=N(R,L,I),A)){if(w)H[L]=z;else if(z)switch(A){case 3:return!0;case 5:return R;case 6:return L;case 2:m.call(H,R)}else if(g)return!1}return _?-1:b||g?g:H}};r.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(29)),h=l(i(132));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),y=m.__importDefault(i(3)),C=i(7),A=function(){function w(E,b){this.menu=E,this.conf=b,this.$container=y.default('<div class="w-e-panel-container"></div>');var g=E.editor;g.txt.eventHooks.clickEvents.push(w.hideCurAllPanels),g.txt.eventHooks.toolbarClickEvents.push(w.hideCurAllPanels),g.txt.eventHooks.dropListMenuHoverEvents.push(w.hideCurAllPanels)}return w.prototype.create=function(){var E=this,b=this.menu;if(!w.createdMenus.has(b)){var g=this.conf,_=this.$container,x=g.width||300,k=b.editor.$toolbarElem.getBoundingClientRect(),T=b.$elem.getBoundingClientRect(),O=k.height+k.top-T.top,F=(k.width-x)/2+k.left-T.left,I=300;Math.abs(F)>I&&(T.left<document.documentElement.clientWidth/2?F=-T.width/2:F=-x+T.width/2),_.css("width",x+"px").css("margin-top",O+"px").css("margin-left",F+"px").css("z-index",b.editor.zIndex.get("panel"));var M=y.default('<i class="w-e-icon-close w-e-panel-close"></i>');_.append(M),M.on("click",function(){E.remove()});var N=y.default('<ul class="w-e-panel-tab-title"></ul>'),B=y.default('<div class="w-e-panel-tab-content"></div>');_.append(N).append(B);var L=g.height;L&&B.css("height",L+"px").css("overflow-y","auto");var U=g.tabs||[],H=[],R=[];(0,c.default)(U).call(U,function($,S){if(!!$){var J=$.title||"",Q=$.tpl||"",G=y.default('<li class="w-e-item">'+J+"</li>");N.append(G);var ie=y.default(Q);B.append(ie),H.push(G),R.push(ie),S===0?(G.data("active",!0),G.addClass("w-e-active")):ie.hide(),G.on("click",function(){G.data("active")||((0,c.default)(H).call(H,function(X){X.data("active",!1),X.removeClass("w-e-active")}),(0,c.default)(R).call(R,function(X){X.hide()}),G.data("active",!0),G.addClass("w-e-active"),ie.show())})}}),_.on("click",function($){$.stopPropagation()}),b.$elem.append(_),g.setLinkValue&&g.setLinkValue(_,"text"),g.setLinkValue&&g.setLinkValue(_,"link"),(0,c.default)(U).call(U,function($,S){if(!!$){var J=$.events||[];(0,c.default)(J).call(J,function(Q){var G,ie=Q.selector,X=Q.type,le=Q.fn||C.EMPTY_FN,be=R[S],ce=(G=Q.bindEnter)!==null&&G!==void 0?G:!1,de=function(se){return m.__awaiter(E,void 0,void 0,function(){var ge;return m.__generator(this,function(ye){switch(ye.label){case 0:return se.stopPropagation(),[4,le(se)];case 1:return ge=ye.sent(),ge&&this.remove(),[2]}})})};(0,u.default)(be).call(be,ie).on(X,de),ce&&X==="click"&&be.on("keyup",function(pe){pe.keyCode==13&&de(pe)})})}});var z=(0,u.default)(_).call(_,"input[type=text],textarea");z.length&&z.get(0).focus(),w.hideCurAllPanels(),b.setPanel(this),w.createdMenus.add(b)}},w.prototype.remove=function(){var E=this.menu,b=this.$container;b&&b.remove(),w.createdMenus.delete(E)},w.hideCurAllPanels=function(){var E;w.createdMenus.size!==0&&(0,c.default)(E=w.createdMenus).call(E,function(b){var g=b.panel;g&&g.remove()})},w.createdMenus=new h.default,w}();o.default=A},function(r,o){var i={}.toString;r.exports=function(l){return i.call(l).slice(8,-1)}},function(r,o,i){var l=i(62),d=Math.min;r.exports=function(c){return c>0?d(l(c),9007199254740991):0}},function(r,o,i){var l=i(9),d=i(8),c=function(h){return typeof h=="function"?h:void 0};r.exports=function(u,h){return arguments.length<2?c(l[u])||c(d[u]):l[u]&&l[u][h]||d[u]&&d[u][h]}},function(r,o,i){var l=i(81),d=i(18).f,c=i(19),u=i(16),h=i(170),m=i(10),y=m("toStringTag");r.exports=function(C,A,w,E){if(C){var b=w?C:C.prototype;u(b,y)||d(b,y,{configurable:!0,value:A}),E&&!l&&c(b,"toString",h)}}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(95)),h=function(m){c.__extends(y,m);function y(C,A){return m.call(this,C,A)||this}return y.prototype.setPanel=function(C){this.panel=C},y}(u.default);o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(57));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=function(){function C(A,w,E){this.editor=A,this.$targetElem=w,this.conf=E,this._show=!1,this._isInsertTextContainer=!1;var b=m.default("<div></div>");b.addClass("w-e-tooltip"),this.$container=b}return C.prototype.getPositionData=function(){var A=this.$container,w=0,E=0,b=20,g=document.documentElement.scrollTop,_=this.$targetElem.getBoundingClientRect(),x=this.editor.$textElem.getBoundingClientRect(),k=this.$targetElem.getOffsetData(),T=m.default(k.parent),O=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=T.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var F=T.getBoundingClientRect().height,I=k.top,M=k.left,N=k.height,B=I-O;B>b+5?(w=B-b-15,A.addClass("w-e-tooltip-up")):B+N+b<F?(w=B+N+10,A.addClass("w-e-tooltip-down")):(w=(B>0?B:0)+b+10,A.addClass("w-e-tooltip-down")),M<0?E=0:E=M}else _.top<b||_.top-x.top<b?(w=_.bottom+g+5,A.addClass("w-e-tooltip-down")):(w=_.top+g-b-15,A.addClass("w-e-tooltip-up")),_.left<0?E=0:E=_.left;return{top:w,left:E}},C.prototype.appendMenus=function(){var A=this,w=this.conf,E=this.editor,b=this.$targetElem,g=this.$container;(0,c.default)(w).call(w,function(_,x){var k=_.$elem,T=m.default("<div></div>");T.addClass("w-e-tooltip-item-wrapper "),T.append(k),g.append(T),k.on("click",function(O){O.preventDefault();var F=_.onClick(E,b);F&&A.remove()})})},C.prototype.create=function(){var A,w,E=this.editor,b=this.$container;this.appendMenus();var g=this.getPositionData(),_=g.top,x=g.left;b.css("top",_+"px"),b.css("left",x+"px"),b.css("z-index",E.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(b):m.default("body").append(b),this._show=!0,E.beforeDestroy((0,u.default)(A=this.remove).call(A,this)),E.txt.eventHooks.onBlurEvents.push((0,u.default)(w=this.remove).call(w,this))},C.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,d.default)(C.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),C}();o.default=y},function(r,o,i){var l=i(41);r.exports=function(d,c,u){if(l(d),c===void 0)return d;switch(u){case 0:return function(){return d.call(c)};case 1:return function(h){return d.call(c,h)};case 2:return function(h,m){return d.call(c,h,m)};case 3:return function(h,m,y){return d.call(c,h,m,y)}}return function(){return d.apply(c,arguments)}}},function(r,o){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},function(r,o,i){var l=i(165),d=i(8),c=i(13),u=i(19),h=i(16),m=i(63),y=i(51),C=d.WeakMap,A,w,E,b=function(I){return E(I)?w(I):A(I,{})},g=function(I){return function(M){var N;if(!c(M)||(N=w(M)).type!==I)throw TypeError("Incompatible receiver, "+I+" required");return N}};if(l){var _=new C,x=_.get,k=_.has,T=_.set;A=function(I,M){return T.call(_,I,M),M},w=function(I){return x.call(_,I)||{}},E=function(I){return k.call(_,I)}}else{var O=m("state");y[O]=!0,A=function(I,M){return u(I,O,M),M},w=function(I){return h(I,O)?I[O]:{}},E=function(I){return h(I,O)}}r.exports={set:A,get:w,has:E,enforce:b,getterFor:g}},function(r,o){r.exports=!0},function(r,o){r.exports={}},function(r,o,i){r.exports=i(261)},function(r,o,i){r.exports=i(265)},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(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 u=i(2),h=i(137),m=u.__importDefault(i(3));function y(x){var k=[];return(0,c.default)(x).call(x,function(T){var O=T.getNodeName();if(O!==h.ListType.OrderedList&&O!==h.ListType.UnorderedList)k.push(T);else if(T.prior)k.push(T.prior);else{var F=T.children();F==null||(0,c.default)(F).call(F,function(I){k.push(m.default(I))})}}),k}o.filterSelectionNodes=y;function C(x,k,T){var O=x.selection,F=document.createRange();k.length>1?(F.setStart(k.elems[0],0),F.setEnd(k.elems[k.length-1],k.elems[k.length-1].childNodes.length)):F.selectNodeContents(k.elems[0]),T&&F.collapse(!1),O.saveRange(F),O.restoreSelection()}o.updateRange=C;function A(x){var k;return x.prior?x.prior:m.default((k=x.children())===null||k===void 0?void 0:k.elems[0])}o.getStartPoint=A;function w(x){var k;return x.prior?x.prior:m.default((k=x.children())===null||k===void 0?void 0:k.last().elems[0])}o.getEndPoint=w;function E(x,k,T){T===void 0&&(T=null),x.parent().elems[0].insertBefore(k,T)}o.insertBefore=E;function b(x){return document.createElement(x)}o.createElement=b;function g(){return document.createDocumentFragment()}o.createDocumentFragment=g;function _(x,k,T){return T===void 0&&(T="li"),(0,c.default)(x).call(x,function(O){var F=b(T);F.innerHTML=O.html(),k.appendChild(F),O.remove()}),k}o.createElementFragment=_},function(r,o){r.exports=function(i,l){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:l}}},function(r,o){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(r,o,i){var l=i(164).charAt,d=i(42),c=i(75),u="String Iterator",h=d.set,m=d.getterFor(u);c(String,"String",function(y){h(this,{type:u,string:String(y),index:0})},function(){var C=m(this),A=C.string,w=C.index,E;return w>=A.length?{value:void 0,done:!0}:(E=l(A,w),C.index+=E.length,{value:E,done:!1})})},function(r,o){r.exports={}},function(r,o,i){var l=i(107),d=i(80);r.exports=Object.keys||function(u){return l(u,d)}},function(r,o,i){var l=i(19);r.exports=function(d,c,u,h){h&&h.enumerable?d[c]=u:l(d,c,u)}},function(r,o,i){i(173);var l=i(174),d=i(8),c=i(65),u=i(19),h=i(44),m=i(10),y=m("toStringTag");for(var C in l){var A=d[C],w=A&&A.prototype;w&&c(w)!==y&&u(w,y,C),h[C]=h.Array}},function(r,o,i){var l=i(34);r.exports=Array.isArray||function(c){return l(c)=="Array"}},function(r,o,i){var l=i(11),d=i(10),c=i(86),u=d("species");r.exports=function(h){return c>=51||!l(function(){var m=[],y=m.constructor={};return y[u]=function(){return{foo:1}},m[h](Boolean).foo!==1})}},function(r,o,i){r.exports=i(222)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListHandle=void 0;var c=i(2),u=c.__importDefault(i(373)),h=function(){function m(y){this.options=y,this.selectionRangeElem=new u.default}return m}();o.ListHandle=h},function(r,o,i){var l={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,c=d&&!l.call({1:2},1);o.f=c?function(h){var m=d(this,h);return!!m&&m.enumerable}:l},function(r,o,i){var l=i(13);r.exports=function(d,c){if(!l(d))return d;var u,h;if(c&&typeof(u=d.toString)=="function"&&!l(h=u.call(d))||typeof(u=d.valueOf)=="function"&&!l(h=u.call(d))||!c&&typeof(u=d.toString)=="function"&&!l(h=u.call(d)))return h;throw TypeError("Can't convert object to primitive value")}},function(r,o){},function(r,o){var i=Math.ceil,l=Math.floor;r.exports=function(d){return isNaN(d=+d)?0:(d>0?l:i)(d)}},function(r,o,i){var l=i(74),d=i(64),c=l("keys");r.exports=function(u){return c[u]||(c[u]=d(u))}},function(r,o){var i=0,l=Math.random();r.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++i+l).toString(36)}},function(r,o,i){var l=i(81),d=i(34),c=i(10),u=c("toStringTag"),h=d(function(){return arguments}())=="Arguments",m=function(C,A){try{return C[A]}catch{}};r.exports=l?d:function(y){var C,A,w;return y===void 0?"Undefined":y===null?"Null":typeof(A=m(C=Object(y),u))=="string"?A:h?d(C):(w=d(C))=="Object"&&typeof C.callee=="function"?"Arguments":w}},function(r,o,i){var l=i(25),d=i(112),c=i(35),u=i(40),h=i(113),m=i(114),y=function(w,E){this.stopped=w,this.result=E},C=r.exports=function(A,w,E,b,g){var _=u(w,E,b?2:1),x,k,T,O,F,I,M;if(g)x=A;else{if(k=h(A),typeof k!="function")throw TypeError("Target is not iterable");if(d(k)){for(T=0,O=c(A.length);O>T;T++)if(F=b?_(l(M=A[T])[0],M[1]):_(A[T]),F&&F instanceof y)return F;return new y(!1)}x=k.call(A)}for(I=x.next;!(M=I.call(x)).done;)if(F=m(x,_,M.value,b),Jt(F)=="object"&&F&&F instanceof y)return F;return new y(!1)};C.stop=function(A){return new y(!0,A)}},function(r,o,i){var l=i(11);r.exports=function(d,c){var u=[][d];return!!u&&l(function(){u.call(null,c||function(){throw 1},1)})}},function(r,o){r.exports=`
|
||
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(r,o,i){var l=i(60),d=i(18),c=i(48);r.exports=function(u,h,m){var y=l(h);y in u?d.f(u,y,c(0,m)):u[y]=m}},function(r,o,i){r.exports=i(209)},function(r,o,i){var l=i(14),d=i(59),c=i(48),u=i(30),h=i(60),m=i(16),y=i(100),C=Object.getOwnPropertyDescriptor;o.f=l?C:function(w,E){if(w=u(w),E=h(E,!0),y)try{return C(w,E)}catch{}if(m(w,E))return c(!d.f.call(w,E),w[E])}},function(r,o,i){var l=i(11),d=i(34),c="".split;r.exports=l(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return d(u)=="String"?c.call(u,""):Object(u)}:Object},function(r,o,i){var l=i(8),d=i(13),c=l.document,u=d(c)&&d(c.createElement);r.exports=function(h){return u?c.createElement(h):{}}},function(r,o,i){var l=i(43),d=i(103);(r.exports=function(c,u){return d[c]||(d[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.4",mode:l?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(r,o,i){var l=i(5),d=i(167),c=i(105),u=i(171),h=i(37),m=i(19),y=i(53),C=i(10),A=i(43),w=i(44),E=i(104),b=E.IteratorPrototype,g=E.BUGGY_SAFARI_ITERATORS,_=C("iterator"),x="keys",k="values",T="entries",O=function(){return this};r.exports=function(F,I,M,N,B,L,U){d(M,I,N);var H=function(be){if(be===B&&J)return J;if(!g&&be in $)return $[be];switch(be){case x:return function(){return new M(this,be)};case k:return function(){return new M(this,be)};case T:return function(){return new M(this,be)}}return function(){return new M(this)}},R=I+" Iterator",z=!1,$=F.prototype,S=$[_]||$["@@iterator"]||B&&$[B],J=!g&&S||H(B),Q=I=="Array"&&$.entries||S,G,ie,X;if(Q&&(G=c(Q.call(new F)),b!==Object.prototype&&G.next&&(!A&&c(G)!==b&&(u?u(G,b):typeof G[_]!="function"&&m(G,_,O)),h(G,R,!0,!0),A&&(w[R]=O))),B==k&&S&&S.name!==k&&(z=!0,J=function(){return S.call(this)}),(!A||U)&&$[_]!==J&&m($,_,J),w[I]=J,B)if(ie={values:H(k),keys:L?J:H(x),entries:H(T)},U)for(X in ie)(g||z||!(X in $))&&y($,X,ie[X]);else l({target:I,proto:!0,forced:g||z},ie);return ie}},function(r,o,i){var l=i(11);r.exports=!!Object.getOwnPropertySymbols&&!l(function(){return!String(Symbol())})},function(r,o,i){var l=i(25),d=i(169),c=i(80),u=i(51),h=i(108),m=i(73),y=i(63),C=">",A="<",w="prototype",E="script",b=y("IE_PROTO"),g=function(){},_=function(I){return A+E+C+I+A+"/"+E+C},x=function(I){I.write(_("")),I.close();var M=I.parentWindow.Object;return I=null,M},k=function(){var I=m("iframe"),M="java"+E+":",N;return I.style.display="none",h.appendChild(I),I.src=String(M),N=I.contentWindow.document,N.open(),N.write(_("document.F=Object")),N.close(),N.F},T,O=function(){try{T=document.domain&&new ActiveXObject("htmlfile")}catch{}O=T?x(T):k();for(var I=c.length;I--;)delete O[w][c[I]];return O()};u[b]=!0,r.exports=Object.create||function(I,M){var N;return I!==null?(g[w]=l(I),N=new g,g[w]=null,N[b]=I):N=O(),M===void 0?N:d(N,M)}},function(r,o,i){var l=i(30),d=i(35),c=i(79),u=function(m){return function(y,C,A){var w=l(y),E=d(w.length),b=c(A,E),g;if(m&&C!=C){for(;E>b;)if(g=w[b++],g!=g)return!0}else for(;E>b;b++)if((m||b in w)&&w[b]===C)return m||b||0;return!m&&-1}};r.exports={includes:u(!0),indexOf:u(!1)}},function(r,o,i){var l=i(62),d=Math.max,c=Math.min;r.exports=function(u,h){var m=l(u);return m<0?d(m+h,0):c(m,h)}},function(r,o){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,o,i){var l=i(10),d=l("toStringTag"),c={};c[d]="z",r.exports=String(c)==="[object z]"},function(r,o){r.exports=function(){}},function(r,o){r.exports=function(i,l,d){if(!(i instanceof l))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return i}},function(r,o,i){var l=i(36);r.exports=l("navigator","userAgent")||""},function(r,o,i){var l=i(41),d=function(u){var h,m;this.promise=new u(function(y,C){if(h!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");h=y,m=C}),this.resolve=l(h),this.reject=l(m)};r.exports.f=function(c){return new d(c)}},function(r,o,i){var l=i(8),d=i(84),c=l.process,u=c&&c.versions,h=u&&u.v8,m,y;h?(m=h.split("."),y=m[0]+m[1]):d&&(m=d.match(/Edge\/(\d+)/),(!m||m[1]>=74)&&(m=d.match(/Chrome\/(\d+)/),m&&(y=m[1]))),r.exports=y&&+y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(6),y=u.__importDefault(i(267)),C=u.__importDefault(i(280)),A=u.__importDefault(i(281)),w=u.__importDefault(i(282)),E=u.__importDefault(i(301)),b=u.__importStar(i(416)),g=u.__importDefault(i(417)),_=u.__importDefault(i(418)),x=u.__importDefault(i(419)),k=u.__importStar(i(420)),T=u.__importDefault(i(423)),O=u.__importDefault(i(424)),F=u.__importDefault(i(425)),I=u.__importDefault(i(427)),M=u.__importDefault(i(437)),N=u.__importDefault(i(440)),B=u.__importStar(i(441)),L=u.__importDefault(i(23)),U=u.__importDefault(i(134)),H=u.__importDefault(i(24)),R=u.__importDefault(i(33)),z=u.__importDefault(i(38)),$=u.__importDefault(i(39)),S=1,J=function(){function Q(G,ie){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+S++,this.toolbarSelector=G,this.textSelector=ie,b.selectorValidator(this),this.config=m.deepClone(y.default),this.$toolbarElem=h.default("<div></div>"),this.$textContainerElem=h.default("<div></div>"),this.$textElem=h.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new C.default(this),this.cmd=new A.default(this),this.txt=new w.default(this),this.menus=new E.default(this),this.zIndex=new O.default,this.change=new F.default(this),this.history=new I.default(this),this.onSelectionChange=new N.default(this);var X=M.default(this),le=X.disable,be=X.enable;this.disable=le,this.enable=be,this.isEnable=!0}return Q.prototype.initSelection=function(G){g.default(this,G)},Q.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),x.default(this),b.default(this),this.txt.init(),this.menus.init(),k.default(this),this.initSelection(!0),_.default(this),this.change.observe(),this.history.observe(),B.default(this)},Q.prototype.beforeDestroy=function(G){return this.beforeDestroyHooks.push(G),this},Q.prototype.destroy=function(){var G,ie=this;(0,c.default)(G=this.beforeDestroyHooks).call(G,function(X){return X.call(ie)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},Q.prototype.fullScreen=function(){k.setFullScreen(this)},Q.prototype.unFullScreen=function(){k.setUnFullScreen(this)},Q.prototype.scrollToHead=function(G){T.default(this,G)},Q.registerMenu=function(G,ie){!ie||typeof ie!="function"||(Q.globalCustomMenuConstructorList[G]=ie)},Q.prototype.registerPlugin=function(G,ie){B.registerPlugin(G,ie,this.pluginsFunctionList)},Q.registerPlugin=function(G,ie){B.registerPlugin(G,ie,Q.globalPluginsFunctionList)},Q.$=h.default,Q.BtnMenu=L.default,Q.DropList=U.default,Q.DropListMenu=H.default,Q.Panel=R.default,Q.PanelMenu=z.default,Q.Tooltip=$.default,Q.globalCustomMenuConstructorList={},Q.globalPluginsFunctionList={},Q}();o.default=J},function(r,o,i){var l=i(13),d=i(55),c=i(10),u=c("species");r.exports=function(h,m){var y;return d(h)&&(y=h.constructor,typeof y=="function"&&(y===Array||d(y.prototype))?y=void 0:l(y)&&(y=y[u],y===null&&(y=void 0))),new(y===void 0?Array:y)(m===0?0:m)}},function(r,o,i){r.exports=i(185)},function(r,o,i){var l=i(49),d=i(68),c="["+d+"]",u=RegExp("^"+c+c+"*"),h=RegExp(c+c+"*$"),m=function(C){return function(A){var w=String(l(A));return C&1&&(w=w.replace(u,"")),C&2&&(w=w.replace(h,"")),w}};r.exports={start:m(1),end:m(2),trim:m(3)}},function(r,o,i){r.exports=i(205)},function(r,o,i){var l=i(227),d=i(230);function c(u){return typeof d=="function"&&typeof l=="symbol"?r.exports=c=function(m){return typeof m}:r.exports=c=function(m){return m&&typeof d=="function"&&m.constructor===d&&m!==d.prototype?"symbol":typeof m},c(u)}r.exports=c},function(r,o,i){var l=i(10);o.f=l},function(r,o,i){r.exports=i(306)},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(33)),m=function(){function y(C,A){var w=this;this.$elem=C,this.editor=A,this._active=!1,C.on("click",function(E){var b;h.default.hideCurAllPanels(),(0,c.default)(b=A.txt.eventHooks.menuClickEvents).call(b,function(g){return g()}),E.stopPropagation(),A.selection.getRange()!=null&&w.clickHandler(E)})}return y.prototype.clickHandler=function(C){},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=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(o,"__esModule",{value:!0}),o.getParentNodeA=o.EXTRA_TAG=void 0,o.EXTRA_TAG=["B","FONT","I","STRIKE"];function u(m){for(var y=m.elems[0];y&&(0,c.default)(C=o.EXTRA_TAG).call(C,y.nodeName);){var C;if(y=y.parentElement,y.nodeName==="A")return y}}o.getParentNodeA=u;function h(m){var y,C=m.selection.getSelectionContainerElem();if(!(!((y=C==null?void 0:C.elems)===null||y===void 0)&&y.length))return!1;if(C.getNodeName()==="A")return!0;var A=u(C);return!!(A&&A.nodeName==="A")}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(57)),u=l(i(4)),h=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),y=i(6),C=m.__importDefault(i(135)),A=m.__importDefault(i(136)),w=function(){function E(b){this.editor=b}return E.prototype.insertImg=function(b,g,_){var x=this.editor,k=x.config,T="validate.",O=function(L,U){return U===void 0&&(U=T),x.i18next.t(U+L)},F=b.replace(/</g,"<").replace(/>/g,">");F=F.replace("'",'"');var I="";_&&(I=_.replace("'",'"'),I="data-href='"+encodeURIComponent(I)+"' ");var M="";g&&(M=g.replace(/</g,"<").replace(/>/g,">"),M=M.replace("'",'"'),M="alt='"+M+"' "),x.cmd.do("insertHTML","<img src='"+F+"' "+M+I+'style="max-width:100%;" contenteditable="false"/>'),k.linkImgCallback(b,g,_);var N=document.createElement("img");N.onload=function(){N=null},N.onerror=function(){k.customAlert(O("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+O("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+O("\u56FE\u7247\u94FE\u63A5")+' "'+b+'"\uFF0C'+O("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),N=null},N.onabort=function(){return N=null},N.src=b},E.prototype.uploadImg=function(b){var g=this;if(!!b.length){var _=this.editor,x=_.config,k="validate.",T=function(de){return _.i18next.t(k+de)},O=x.uploadImgServer,F=x.uploadImgShowBase64,I=x.uploadImgMaxSize,M=I/1024/1024,N=x.uploadImgMaxLength,B=x.uploadFileName,L=x.uploadImgParams,U=x.uploadImgParamsWithUrl,H=x.uploadImgHeaders,R=x.uploadImgHooks,z=x.uploadImgTimeout,$=x.withCredentials,S=x.customUploadImg;if(!(!S&&!O&&!F)){var J=[],Q=[];if(y.arrForEach(b,function(ce){if(!!ce){var de=ce.name||ce.type.replace("/","."),pe=ce.size;if(!(!de||!pe)){var se=_.config.uploadImgAccept.join("|"),ge=".("+se+")$",ye=new RegExp(ge,"i");if(ye.test(de)===!1){Q.push("\u3010"+de+"\u3011"+T("\u4E0D\u662F\u56FE\u7247"));return}if(I<pe){Q.push("\u3010"+de+"\u3011"+T("\u5927\u4E8E")+" "+M+"M");return}J.push(ce)}}}),Q.length){x.customAlert(T("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
|
||
`+Q.join(`
|
||
`),"warning");return}if(J.length===0){x.customAlert(T("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(J.length>N){x.customAlert(T("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+N+T("\u5F20\u56FE\u7247"),"warning");return}if(S&&typeof S=="function"){var G;S(J,(0,c.default)(G=this.insertImg).call(G,this));return}var ie=new FormData;if((0,u.default)(J).call(J,function(ce,de){var pe=B||ce.name;J.length>1&&(pe=pe+(de+1)),ie.append(pe,ce)}),O){var X=O.split("#");O=X[0];var le=X[1]||"";(0,u.default)(y).call(y,L,function(ce,de){U&&((0,h.default)(O).call(O,"?")>0?O+="&":O+="?",O=O+ce+"="+de),ie.append(ce,de)}),le&&(O+="#"+le);var be=C.default(O,{timeout:z,formData:ie,headers:H,withCredentials:!!$,beforeSend:function(de){if(R.before)return R.before(de,_,J)},onTimeout:function(de){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),R.timeout&&R.timeout(de,_)},onProgress:function(de,pe){var se=new A.default(_);pe.lengthComputable&&(de=pe.loaded/pe.total,se.show(de))},onError:function(de){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",T("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+T("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+de.status),R.error&&R.error(de,_)},onFail:function(de,pe){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+": ")+pe),R.fail&&R.fail(de,_,pe)},onSuccess:function(de,pe){if(R.customInsert){var se;R.customInsert((0,c.default)(se=g.insertImg).call(se,g),pe,_);return}if(pe.errno!="0"){x.customAlert(T("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",T("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+T("\u8FD4\u56DE\u7ED3\u679C")+" errno="+pe.errno),R.fail&&R.fail(de,_,pe);return}var ge=pe.data;(0,u.default)(ge).call(ge,function(ye){typeof ye=="string"?g.insertImg(ye):g.insertImg(ye.url,ye.alt,ye.href)}),R.success&&R.success(de,_,pe)}});typeof be=="string"&&x.customAlert(be,"error");return}F&&y.arrForEach(b,function(ce){var de=g,pe=new FileReader;pe.readAsDataURL(ce),pe.onload=function(){if(!!this.result){var se=this.result.toString();de.insertImg(se,se)}}})}}},E}();o.default=w},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(410)),u=l(i(4)),h=l(i(45));(0,d.default)(o,"__esModule",{value:!0}),o.dealTextNode=o.isAllTodo=o.isTodo=o.getCursorNextNode=void 0;function m(E){return E.length?E.attr("class")==="w-e-todo":!1}o.isTodo=m;function y(E){var b=E.selection.getSelectionRangeTopNodes();if(b.length!==0)return(0,c.default)(b).call(b,function(g){return m(g)})}o.isAllTodo=y;function C(E,b,g){var _;if(!!E.hasChildNodes()){var x=E.cloneNode(),k=!1;b.nodeValue===""&&(k=!0);var T=[];return(0,u.default)(_=E.childNodes).call(_,function(O){if(!A(O,b)&&k&&(x.appendChild(O.cloneNode(!0)),O.nodeName!=="BR"&&T.push(O)),A(O,b)){if(O.nodeType===1){var F=C(O,b,g);F&&F.textContent!==""&&(x==null||x.appendChild(F))}if(O.nodeType===3&&b.isEqualNode(O)){var I=w(O,g);x.textContent=I}k=!0}}),(0,u.default)(T).call(T,function(O){var F=O;F.remove()}),x}}o.getCursorNextNode=C;function A(E,b){return E.nodeType===3?E.nodeValue===b.nodeValue:E.contains(b)}function w(E,b,g){g===void 0&&(g=!0);var _=E.nodeValue,x=_==null?void 0:(0,h.default)(_).call(_,0,b);if(_=_==null?void 0:(0,h.default)(_).call(_,b),!g){var k=_;_=x,x=k}return E.nodeValue=x,_}o.dealTextNode=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(430),u=function(){function h(m){this.maxSize=m,this.isRe=!1,this.data=new c.CeilStack(m),this.revokeData=new c.CeilStack(m)}return(0,d.default)(h.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),h.prototype.resetMaxSize=function(m){this.data.resetMax(m),this.revokeData.resetMax(m)},h.prototype.save=function(m){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(m),this},h.prototype.revoke=function(m){!this.isRe&&(this.isRe=!0);var y=this.data.outstack();return y?(this.revokeData.instack(y),m(y),!0):!1},h.prototype.restore=function(m){!this.isRe&&(this.isRe=!0);var y=this.revokeData.outstack();return y?(this.data.instack(y),m(y),!0):!1},h}();o.default=u},function(r,o,i){var l=i(14),d=i(11),c=i(73);r.exports=!l&&!d(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(r,o,i){var l=i(11),d=/#|\.prototype\./,c=function(A,w){var E=h[u(A)];return E==y?!0:E==m?!1:typeof w=="function"?l(w):!!w},u=c.normalize=function(C){return String(C).replace(d,".").toLowerCase()},h=c.data={},m=c.NATIVE="N",y=c.POLYFILL="P";r.exports=c},function(r,o,i){var l=i(103),d=Function.toString;typeof l.inspectSource!="function"&&(l.inspectSource=function(c){return d.call(c)}),r.exports=l.inspectSource},function(r,o,i){var l=i(8),d=i(166),c="__core-js_shared__",u=l[c]||d(c,{});r.exports=u},function(r,o,i){var l=i(105),d=i(19),c=i(16),u=i(10),h=i(43),m=u("iterator"),y=!1,C=function(){return this},A,w,E;[].keys&&(E=[].keys(),"next"in E?(w=l(l(E)),w!==Object.prototype&&(A=w)):y=!0),A==null&&(A={}),!h&&!c(A,m)&&d(A,m,C),r.exports={IteratorPrototype:A,BUGGY_SAFARI_ITERATORS:y}},function(r,o,i){var l=i(16),d=i(31),c=i(63),u=i(168),h=c("IE_PROTO"),m=Object.prototype;r.exports=u?Object.getPrototypeOf:function(y){return y=d(y),l(y,h)?y[h]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?m:null}},function(r,o,i){var l=i(76);r.exports=l&&!Symbol.sham&&Jt(Symbol.iterator)=="symbol"},function(r,o,i){var l=i(16),d=i(30),c=i(78).indexOf,u=i(51);r.exports=function(h,m){var y=d(h),C=0,A=[],w;for(w in y)!l(u,w)&&l(y,w)&&A.push(w);for(;m.length>C;)l(y,w=m[C++])&&(~c(A,w)||A.push(w));return A}},function(r,o,i){var l=i(36);r.exports=l("document","documentElement")},function(r,o,i){var l=i(8);r.exports=l.Promise},function(r,o,i){var l=i(53);r.exports=function(d,c,u){for(var h in c)u&&u.unsafe&&d[h]?d[h]=c[h]:l(d,h,c[h],u);return d}},function(r,o,i){var l=i(36),d=i(18),c=i(10),u=i(14),h=c("species");r.exports=function(m){var y=l(m),C=d.f;u&&y&&!y[h]&&C(y,h,{configurable:!0,get:function(){return this}})}},function(r,o,i){var l=i(10),d=i(44),c=l("iterator"),u=Array.prototype;r.exports=function(h){return h!==void 0&&(d.Array===h||u[c]===h)}},function(r,o,i){var l=i(65),d=i(44),c=i(10),u=c("iterator");r.exports=function(h){if(h!=null)return h[u]||h["@@iterator"]||d[l(h)]}},function(r,o,i){var l=i(25);r.exports=function(d,c,u,h){try{return h?c(l(u)[0],u[1]):c(u)}catch(y){var m=d.return;throw m!==void 0&&l(m.call(d)),y}}},function(r,o,i){var l=i(10),d=l("iterator"),c=!1;try{var u=0,h={next:function(){return{done:!!u++}},return:function(){c=!0}};h[d]=function(){return this},Array.from(h,function(){throw 2})}catch{}r.exports=function(m,y){if(!y&&!c)return!1;var C=!1;try{var A={};A[d]=function(){return{next:function(){return{done:C=!0}}}},m(A)}catch{}return C}},function(r,o,i){var l=i(25),d=i(41),c=i(10),u=c("species");r.exports=function(h,m){var y=l(h).constructor,C;return y===void 0||(C=l(y)[u])==null?m:d(C)}},function(r,o,i){var l=i(8),d=i(11),c=i(34),u=i(40),h=i(108),m=i(73),y=i(118),C=l.location,A=l.setImmediate,w=l.clearImmediate,E=l.process,b=l.MessageChannel,g=l.Dispatch,_=0,x={},k="onreadystatechange",T,O,F,I=function(U){if(x.hasOwnProperty(U)){var H=x[U];delete x[U],H()}},M=function(U){return function(){I(U)}},N=function(U){I(U.data)},B=function(U){l.postMessage(U+"",C.protocol+"//"+C.host)};(!A||!w)&&(A=function(U){for(var H=[],R=1;arguments.length>R;)H.push(arguments[R++]);return x[++_]=function(){(typeof U=="function"?U:Function(U)).apply(void 0,H)},T(_),_},w=function(U){delete x[U]},c(E)=="process"?T=function(U){E.nextTick(M(U))}:g&&g.now?T=function(U){g.now(M(U))}:b&&!y?(O=new b,F=O.port2,O.port1.onmessage=N,T=u(F.postMessage,F,1)):l.addEventListener&&typeof postMessage=="function"&&!l.importScripts&&!d(B)&&C.protocol!=="file:"?(T=B,l.addEventListener("message",N,!1)):k in m("script")?T=function(U){h.appendChild(m("script"))[k]=function(){h.removeChild(this),I(U)}}:T=function(U){setTimeout(M(U),0)}),r.exports={set:A,clear:w}},function(r,o,i){var l=i(84);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(l)},function(r,o,i){var l=i(25),d=i(13),c=i(85);r.exports=function(u,h){if(l(u),d(h)&&h.constructor===u)return h;var m=c.f(u),y=m.resolve;return y(h),m.promise}},function(r,o){r.exports=function(i){try{return{error:!1,value:i()}}catch(l){return{error:!0,value:l}}}},function(r,o,i){r.exports=i(197)},function(r,o,i){var l=i(5),d=i(8),c=i(123),u=i(11),h=i(19),m=i(66),y=i(83),C=i(13),A=i(37),w=i(18).f,E=i(32).forEach,b=i(14),g=i(42),_=g.set,x=g.getterFor;r.exports=function(k,T,O){var F=k.indexOf("Map")!==-1,I=k.indexOf("Weak")!==-1,M=F?"set":"add",N=d[k],B=N&&N.prototype,L={},U;if(!b||typeof N!="function"||!(I||B.forEach&&!u(function(){new N().entries().next()})))U=O.getConstructor(T,k,F,M),c.REQUIRED=!0;else{U=T(function(R,z){_(y(R,U,k),{type:k,collection:new N}),z!=null&&m(z,R[M],R,F)});var H=x(k);E(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(R){var z=R=="add"||R=="set";R in B&&!(I&&R=="clear")&&h(U.prototype,R,function($,S){var J=H(this).collection;if(!z&&I&&!C($))return R=="get"?void 0:!1;var Q=J[R]($===0?0:$,S);return z?this:Q})}),I||w(U.prototype,"size",{configurable:!0,get:function(){return H(this).collection.size}})}return A(U,k,!1,!0),L[k]=U,l({global:!0,forced:!0},L),I||O.setStrong(U,k,F),U}},function(r,o,i){var l=i(51),d=i(13),c=i(16),u=i(18).f,h=i(64),m=i(200),y=h("meta"),C=0,A=Object.isExtensible||function(){return!0},w=function(k){u(k,y,{value:{objectID:"O"+ ++C,weakData:{}}})},E=function(k,T){if(!d(k))return Jt(k)=="symbol"?k:(typeof k=="string"?"S":"P")+k;if(!c(k,y)){if(!A(k))return"F";if(!T)return"E";w(k)}return k[y].objectID},b=function(k,T){if(!c(k,y)){if(!A(k))return!0;if(!T)return!1;w(k)}return k[y].weakData},g=function(k){return m&&_.REQUIRED&&A(k)&&!c(k,y)&&w(k),k},_=r.exports={REQUIRED:!1,fastKey:E,getWeakData:b,onFreeze:g};l[y]=!0},function(r,o,i){var l=i(18).f,d=i(77),c=i(110),u=i(40),h=i(83),m=i(66),y=i(75),C=i(111),A=i(14),w=i(123).fastKey,E=i(42),b=E.set,g=E.getterFor;r.exports={getConstructor:function(x,k,T,O){var F=x(function(B,L){h(B,F,k),b(B,{type:k,index:d(null),first:void 0,last:void 0,size:0}),A||(B.size=0),L!=null&&m(L,B[O],B,T)}),I=g(k),M=function(L,U,H){var R=I(L),z=N(L,U),$,S;return z?z.value=H:(R.last=z={index:S=w(U,!0),key:U,value:H,previous:$=R.last,next:void 0,removed:!1},R.first||(R.first=z),$&&($.next=z),A?R.size++:L.size++,S!=="F"&&(R.index[S]=z)),L},N=function(L,U){var H=I(L),R=w(U),z;if(R!=="F")return H.index[R];for(z=H.first;z;z=z.next)if(z.key==U)return z};return c(F.prototype,{clear:function(){for(var L=this,U=I(L),H=U.index,R=U.first;R;)R.removed=!0,R.previous&&(R.previous=R.previous.next=void 0),delete H[R.index],R=R.next;U.first=U.last=void 0,A?U.size=0:L.size=0},delete:function(L){var U=this,H=I(U),R=N(U,L);if(R){var z=R.next,$=R.previous;delete H.index[R.index],R.removed=!0,$&&($.next=z),z&&(z.previous=$),H.first==R&&(H.first=z),H.last==R&&(H.last=$),A?H.size--:U.size--}return!!R},forEach:function(L){for(var U=I(this),H=u(L,arguments.length>1?arguments[1]:void 0,3),R;R=R?R.next:U.first;)for(H(R.value,R.key,this);R&&R.removed;)R=R.previous},has:function(L){return!!N(this,L)}}),c(F.prototype,T?{get:function(L){var U=N(this,L);return U&&U.value},set:function(L,U){return M(this,L===0?0:L,U)}}:{add:function(L){return M(this,L=L===0?0:L,L)}}),A&&l(F.prototype,"size",{get:function(){return I(this).size}}),F},setStrong:function(x,k,T){var O=k+" Iterator",F=g(k),I=g(O);y(x,k,function(M,N){b(this,{type:O,target:M,state:F(M),kind:N,last:void 0})},function(){for(var M=I(this),N=M.kind,B=M.last;B&&B.removed;)B=B.previous;return!M.target||!(M.last=B=B?B.next:M.state.first)?(M.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:B.key,done:!1}:N=="values"?{value:B.value,done:!1}:{value:[B.key,B.value],done:!1}},T?"entries":"values",!T,!0),C(k)}}},function(r,o,i){var l=i(12);l("iterator")},function(r,o,i){var l=i(107),d=i(80),c=d.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(h){return l(h,c)}},function(r,o){o.f=Object.getOwnPropertySymbols},function(r,o,i){r.exports=i(268)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={zIndex:1e4}},function(r,o,i){var l=i(0),d=l(i(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(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.getPasteImgs=o.getPasteHtml=o.getPasteText=void 0;var u=i(2),h=i(6),m=u.__importDefault(i(292));function y(w){var E=w.clipboardData,b="";return E==null?b=window.clipboardData&&window.clipboardData.getData("text"):b=E.getData("text/plain"),h.replaceHtmlSymbol(b)}o.getPasteText=y;function C(w,E,b){E===void 0&&(E=!0),b===void 0&&(b=!1);var g=w.clipboardData,_="";if(g&&(_=g.getData("text/html")),!_){var x=y(w);if(!x)return"";_="<p>"+x+"</p>"}return _=_.replace(/<(\d)/gm,function(k,T){return"<"+T}),_=_.replace(/<(\/?meta.*?)>/gim,""),_=m.default(_,E,b),_}o.getPasteHtml=C;function A(w){var E,b=[],g=y(w);if(g)return b;var _=(E=w.clipboardData)===null||E===void 0?void 0:E.items;return _&&(0,c.default)(h).call(h,_,function(x,k){var T=k.type;/image/i.test(T)&&b.push(k.getAsFile())}),b}o.getPasteImgs=A},function(r,o,i){r.exports=i(294)},function(r,o,i){r.exports=i(310)},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=i(7),C=function(){function A(w,E){var b=this;this.hideTimeoutId=0,this.menu=w,this.conf=E;var g=m.default('<div class="w-e-droplist"></div>'),_=m.default("<p>"+E.title+"</p>");_.addClass("w-e-dp-title"),g.append(_);var x=E.list||[],k=E.type||"list",T=E.clickHandler||y.EMPTY_FN,O=m.default('<ul class="'+(k==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(x).call(x,function(F){var I=F.$elem,M=F.value,N=m.default('<li class="w-e-item"></li>');I&&(N.append(I),O.append(N),N.on("click",function(B){T(M),B.stopPropagation(),b.hideTimeoutId=(0,u.default)(function(){b.hide()})}))}),g.append(O),g.on("mouseleave",function(){b.hideTimeoutId=(0,u.default)(function(){b.hide()})}),this.$container=g,this.rendered=!1,this._show=!1}return A.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var w=this.menu,E=w.$elem,b=this.$container;if(!this._show){if(this.rendered)b.show();else{var g=E.getBoundingClientRect().height||0,_=this.conf.width||100;b.css("margin-top",g+"px").css("width",_+"px"),E.append(b),this.rendered=!0}this._show=!0}},A.prototype.hide=function(){var w=this.$container;!this._show||(w.hide(),this._show=!1)},(0,d.default)(A.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),A}();o.default=C},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(4));(0,c.default)(o,"__esModule",{value:!0});var h=i(6);function m(y,C){var A=new XMLHttpRequest;if(A.open("POST",y),A.timeout=C.timeout||10*1e3,A.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),C.onTimeout&&C.onTimeout(A)},A.upload&&(A.upload.onprogress=function(E){var b=E.loaded/E.total;C.onProgress&&C.onProgress(b,E)}),C.headers&&(0,u.default)(h).call(h,C.headers,function(E,b){A.setRequestHeader(E,b)}),A.withCredentials=!!C.withCredentials,C.beforeSend){var w=C.beforeSend(A);if(w&&(0,d.default)(w)==="object"&&w.prevent)return w.msg}return A.onreadystatechange=function(){if(A.readyState===4){var E=A.status;if(!(E<200)&&!(E>=300&&E<400)){if(E>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+E),C.onError&&C.onError(A);return}var b=A.responseText,g;if((0,d.default)(b)!=="object")try{g=JSON.parse(b)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",b),C.onFail&&C.onFail(A,b);return}else g=b;C.onSuccess(A,g)}}},A.send(C.formData||null),A}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(342)),u=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=function(){function C(A){this.editor=A,this.$textContainer=A.$textContainerElem,this.$bar=m.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return C.prototype.show=function(A){var w=this;if(!this.isShow){this.isShow=!0;var E=this.$bar,b=this.$textContainer;b.append(E),(0,c.default)()-this.time>100&&A<=1&&(E.css("width",A*100+"%"),this.time=(0,c.default)());var g=this.timeoutId;g&&clearTimeout(g),this.timeoutId=(0,u.default)(function(){w.hide()},500)}},C.prototype.hide=function(){var A=this.$bar;A.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},C}();o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListType=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(24)),m=i(47),y=c.__importStar(i(371)),C;(function(w){w.OrderedList="OL",w.UnorderedList="UL"})(C=o.ListType||(o.ListType={}));var A=function(w){c.__extends(E,w);function E(b){var g=this,_=u.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
|
||
<i class="w-e-icon-list2"></i>
|
||
</div>`),x={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:u.default(`
|
||
<p>
|
||
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
|
||
`+b.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
|
||
<p>`),value:C.UnorderedList},{$elem:u.default(`<p>
|
||
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
|
||
`+b.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
|
||
<p>`),value:C.OrderedList}],clickHandler:function(T){g.command(T)}};return g=w.call(this,_,b,x)||this,g}return E.prototype.command=function(b){var g=this.editor,_=g.selection.getSelectionContainerElem();_!==void 0&&(this.handleSelectionRangeNodes(b),this.tryChangeActive())},E.prototype.validator=function(b,g,_){return!(!b.length||!g.length||_.equal(b)||_.equal(g))},E.prototype.handleSelectionRangeNodes=function(b){var g=this.editor,_=g.selection,x=b.toLowerCase(),k=_.getSelectionContainerElem(),T=_.getSelectionStartElem().getNodeTop(g),O=_.getSelectionEndElem().getNodeTop(g);if(!!this.validator(T,O,g.$textElem)){var F=_.getRange(),I=F==null?void 0:F.collapsed;g.$textElem.equal(k)||(k=k.getNodeTop(g));var M={editor:g,listType:b,listTarget:x,$selectionElem:k,$startElem:T,$endElem:O},N;this.isOrderElem(k)?N=y.ClassType.Wrap:this.isOrderElem(T)&&this.isOrderElem(O)?N=y.ClassType.Join:this.isOrderElem(T)?N=y.ClassType.StartJoin:this.isOrderElem(O)?N=y.ClassType.EndJoin:N=y.ClassType.Other;var B=new y.default(y.createListHandle(N,M,F));m.updateRange(g,B.getSelectionRangeElem(),!!I)}},E.prototype.isOrderElem=function(b){var g=b.getNodeName();return g===C.OrderedList||g===C.UnorderedList},E.prototype.tryChangeActive=function(){},E}(h.default);o.default=A},function(r,o,i){r.exports=i(395)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u){var h=u.selection.getSelectionContainerElem();return h!=null&&h.length?!!(h.getNodeName()=="CODE"||h.getNodeName()=="PRE"||h.parent().getNodeName()=="CODE"||h.parent().getNodeName()=="PRE"||/hljs/.test(h.parent().attr("class"))):!1}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0}),o.todo=void 0;var u=i(2),h=u.__importDefault(i(3)),m=function(){function C(A){var w;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=h.default(this.template),this.$child=(w=A==null?void 0:A.childNodes())===null||w===void 0?void 0:w.clone(!0)}return C.prototype.init=function(){var A=this.$child,w=this.getInputContainer();A&&A.insertAfter(w)},C.prototype.getInput=function(){var A=this.$todo,w=(0,c.default)(A).call(A,"input");return w},C.prototype.getInputContainer=function(){var A=this.getInput().parent();return A},C.prototype.getTodo=function(){return this.$todo},C}();o.todo=m;function y(C){var A=new m(C);return A.init(),A}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2);i(146),i(148),i(152),i(154),i(156),i(158),i(160);var u=c.__importDefault(i(87));c.__exportStar(i(442),o);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}o.default=u.default},function(r,o,i){var l=i(143);r.exports=l},function(r,o,i){i(144);var l=i(9),d=l.Object,c=r.exports=function(h,m,y){return d.defineProperty(h,m,y)};d.defineProperty.sham&&(c.sham=!0)},function(r,o,i){var l=i(5),d=i(14),c=i(18);l({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(r,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{(typeof window>"u"?"undefined":Jt(window))==="object"&&(i=window)}r.exports=i},function(r,o,i){var l=i(20),d=i(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-toolbar,
|
||
.w-e-text-container,
|
||
.w-e-menu-panel {
|
||
padding: 0;
|
||
margin: 0;
|
||
box-sizing: border-box;
|
||
background-color: #fff;
|
||
/*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
|
||
/*\u5206\u5272\u7EBF\u6837\u5F0F*/
|
||
}
|
||
.w-e-toolbar h1,
|
||
.w-e-text-container h1,
|
||
.w-e-menu-panel h1 {
|
||
font-size: 32px !important;
|
||
}
|
||
.w-e-toolbar h2,
|
||
.w-e-text-container h2,
|
||
.w-e-menu-panel h2 {
|
||
font-size: 24px !important;
|
||
}
|
||
.w-e-toolbar h3,
|
||
.w-e-text-container h3,
|
||
.w-e-menu-panel h3 {
|
||
font-size: 18.72px !important;
|
||
}
|
||
.w-e-toolbar h4,
|
||
.w-e-text-container h4,
|
||
.w-e-menu-panel h4 {
|
||
font-size: 16px !important;
|
||
}
|
||
.w-e-toolbar h5,
|
||
.w-e-text-container h5,
|
||
.w-e-menu-panel h5 {
|
||
font-size: 13.28px !important;
|
||
}
|
||
.w-e-toolbar p,
|
||
.w-e-text-container p,
|
||
.w-e-menu-panel p {
|
||
font-size: 16px !important;
|
||
}
|
||
.w-e-toolbar .eleImg,
|
||
.w-e-text-container .eleImg,
|
||
.w-e-menu-panel .eleImg {
|
||
cursor: pointer;
|
||
display: inline-block;
|
||
font-size: 18px;
|
||
padding: 0 3px;
|
||
}
|
||
.w-e-toolbar *,
|
||
.w-e-text-container *,
|
||
.w-e-menu-panel * {
|
||
padding: 0;
|
||
margin: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
.w-e-toolbar hr,
|
||
.w-e-text-container hr,
|
||
.w-e-menu-panel hr {
|
||
cursor: pointer;
|
||
display: block;
|
||
height: 0px;
|
||
border: 0;
|
||
border-top: 3px solid #ccc;
|
||
margin: 20px 0;
|
||
}
|
||
.w-e-clear-fix:after {
|
||
content: "";
|
||
display: table;
|
||
clear: both;
|
||
}
|
||
.w-e-drop-list-item {
|
||
position: relative;
|
||
top: 1px;
|
||
padding-right: 7px;
|
||
color: #333 !important;
|
||
}
|
||
.w-e-drop-list-tl {
|
||
padding-left: 10px;
|
||
text-align: left;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21),d=i(150),c=i(151);o=l(!1);var u=d(c);o.push([r.i,`@font-face {
|
||
font-family: 'w-e-icon';
|
||
src: url(`+u+`) format('truetype');
|
||
font-weight: normal;
|
||
font-style: normal;
|
||
}
|
||
[class^="w-e-icon-"],
|
||
[class*=" w-e-icon-"] {
|
||
/* use !important to prevent issues with browser extensions that change fonts */
|
||
font-family: 'w-e-icon' !important;
|
||
speak: none;
|
||
font-style: normal;
|
||
font-weight: normal;
|
||
font-variant: normal;
|
||
text-transform: none;
|
||
line-height: 1;
|
||
/* Better Font Rendering =========== */
|
||
-webkit-font-smoothing: antialiased;
|
||
-moz-osx-font-smoothing: grayscale;
|
||
}
|
||
.w-e-icon-close:before {
|
||
content: "\\f00d";
|
||
}
|
||
.w-e-icon-upload2:before {
|
||
content: "\\e9c6";
|
||
}
|
||
.w-e-icon-trash-o:before {
|
||
content: "\\f014";
|
||
}
|
||
.w-e-icon-header:before {
|
||
content: "\\f1dc";
|
||
}
|
||
.w-e-icon-pencil2:before {
|
||
content: "\\e906";
|
||
}
|
||
.w-e-icon-paint-brush:before {
|
||
content: "\\f1fc";
|
||
}
|
||
.w-e-icon-image:before {
|
||
content: "\\e90d";
|
||
}
|
||
.w-e-icon-play:before {
|
||
content: "\\e912";
|
||
}
|
||
.w-e-icon-location:before {
|
||
content: "\\e947";
|
||
}
|
||
.w-e-icon-undo:before {
|
||
content: "\\e965";
|
||
}
|
||
.w-e-icon-redo:before {
|
||
content: "\\e966";
|
||
}
|
||
.w-e-icon-quotes-left:before {
|
||
content: "\\e977";
|
||
}
|
||
.w-e-icon-list-numbered:before {
|
||
content: "\\e9b9";
|
||
}
|
||
.w-e-icon-list2:before {
|
||
content: "\\e9bb";
|
||
}
|
||
.w-e-icon-link:before {
|
||
content: "\\e9cb";
|
||
}
|
||
.w-e-icon-happy:before {
|
||
content: "\\e9df";
|
||
}
|
||
.w-e-icon-bold:before {
|
||
content: "\\ea62";
|
||
}
|
||
.w-e-icon-underline:before {
|
||
content: "\\ea63";
|
||
}
|
||
.w-e-icon-italic:before {
|
||
content: "\\ea64";
|
||
}
|
||
.w-e-icon-strikethrough:before {
|
||
content: "\\ea65";
|
||
}
|
||
.w-e-icon-table2:before {
|
||
content: "\\ea71";
|
||
}
|
||
.w-e-icon-paragraph-left:before {
|
||
content: "\\ea77";
|
||
}
|
||
.w-e-icon-paragraph-center:before {
|
||
content: "\\ea78";
|
||
}
|
||
.w-e-icon-paragraph-right:before {
|
||
content: "\\ea79";
|
||
}
|
||
.w-e-icon-paragraph-justify:before {
|
||
content: "\\ea7a";
|
||
}
|
||
.w-e-icon-terminal:before {
|
||
content: "\\f120";
|
||
}
|
||
.w-e-icon-page-break:before {
|
||
content: "\\ea68";
|
||
}
|
||
.w-e-icon-cancel-circle:before {
|
||
content: "\\ea0d";
|
||
}
|
||
.w-e-icon-font:before {
|
||
content: "\\ea5c";
|
||
}
|
||
.w-e-icon-text-heigh:before {
|
||
content: "\\ea5f";
|
||
}
|
||
.w-e-icon-paint-format:before {
|
||
content: "\\e90c";
|
||
}
|
||
.w-e-icon-indent-increase:before {
|
||
content: "\\ea7b";
|
||
}
|
||
.w-e-icon-indent-decrease:before {
|
||
content: "\\ea7c";
|
||
}
|
||
.w-e-icon-row-height:before {
|
||
content: "\\e9be";
|
||
}
|
||
.w-e-icon-fullscreen_exit:before {
|
||
content: "\\e900";
|
||
}
|
||
.w-e-icon-fullscreen:before {
|
||
content: "\\e901";
|
||
}
|
||
.w-e-icon-split-line:before {
|
||
content: "\\ea0b";
|
||
}
|
||
.w-e-icon-checkbox-checked:before {
|
||
content: "\\ea52";
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){r.exports=function(l,d){return d||(d={}),l=l&&l.__esModule?l.default:l,typeof l!="string"?l:(/^['"].*['"]$/.test(l)&&(l=l.slice(1,-1)),d.hash&&(l+=d.hash),/["'() \t\n]/.test(l)||d.needQuotes?'"'.concat(l.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):l)}},function(r,o,i){i.r(o),o.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(r,o,i){var l=i(20),d=i(153);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-toolbar {
|
||
display: flex;
|
||
padding: 0 6px;
|
||
flex-wrap: wrap;
|
||
position: relative;
|
||
/* \u5355\u4E2A\u83DC\u5355 */
|
||
}
|
||
.w-e-toolbar .w-e-menu {
|
||
position: relative;
|
||
display: flex;
|
||
width: 40px;
|
||
height: 40px;
|
||
align-items: center;
|
||
justify-content: center;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
}
|
||
.w-e-toolbar .w-e-menu i {
|
||
color: #999;
|
||
}
|
||
.w-e-toolbar .w-e-menu:hover {
|
||
background-color: #F6F6F6;
|
||
}
|
||
.w-e-toolbar .w-e-menu:hover i {
|
||
color: #333;
|
||
}
|
||
.w-e-toolbar .w-e-active i {
|
||
color: #1e88e5;
|
||
}
|
||
.w-e-toolbar .w-e-active:hover i {
|
||
color: #1e88e5;
|
||
}
|
||
.w-e-menu-tooltip {
|
||
position: absolute;
|
||
display: flex;
|
||
color: #f1f1f1;
|
||
background-color: rgba(0, 0, 0, 0.75);
|
||
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
|
||
border-radius: 4px;
|
||
padding: 4px 5px 6px;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.w-e-menu-tooltip-up::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 50%;
|
||
margin-left: -5px;
|
||
border: 5px solid rgba(0, 0, 0, 0);
|
||
border-top-color: rgba(0, 0, 0, 0.73);
|
||
}
|
||
.w-e-menu-tooltip-down::after {
|
||
content: "";
|
||
position: absolute;
|
||
bottom: 100%;
|
||
left: 50%;
|
||
margin-left: -5px;
|
||
border: 5px solid rgba(0, 0, 0, 0);
|
||
border-bottom-color: rgba(0, 0, 0, 0.73);
|
||
}
|
||
.w-e-menu-tooltip-item-wrapper {
|
||
font-size: 14px;
|
||
margin: 0 5px;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-text-container {
|
||
position: relative;
|
||
height: 100%;
|
||
}
|
||
.w-e-text-container .w-e-progress {
|
||
position: absolute;
|
||
background-color: #1e88e5;
|
||
top: 0;
|
||
left: 0;
|
||
height: 1px;
|
||
}
|
||
.w-e-text-container .placeholder {
|
||
color: #D4D4D4;
|
||
position: absolute;
|
||
font-size: 11pt;
|
||
line-height: 22px;
|
||
left: 10px;
|
||
top: 10px;
|
||
-webkit-user-select: none;
|
||
-moz-user-select: none;
|
||
-ms-user-select: none;
|
||
user-select: none;
|
||
z-index: -1;
|
||
}
|
||
.w-e-text {
|
||
padding: 0 10px;
|
||
overflow-y: auto;
|
||
}
|
||
.w-e-text p,
|
||
.w-e-text h1,
|
||
.w-e-text h2,
|
||
.w-e-text h3,
|
||
.w-e-text h4,
|
||
.w-e-text h5,
|
||
.w-e-text table,
|
||
.w-e-text pre {
|
||
margin: 10px 0;
|
||
line-height: 1.5;
|
||
}
|
||
.w-e-text ul,
|
||
.w-e-text ol {
|
||
margin: 10px 0 10px 20px;
|
||
}
|
||
.w-e-text blockquote {
|
||
display: block;
|
||
border-left: 8px solid #d0e5f2;
|
||
padding: 5px 10px;
|
||
margin: 10px 0;
|
||
line-height: 1.4;
|
||
font-size: 100%;
|
||
background-color: #f1f1f1;
|
||
}
|
||
.w-e-text code {
|
||
display: inline-block;
|
||
background-color: #f1f1f1;
|
||
border-radius: 3px;
|
||
padding: 3px 5px;
|
||
margin: 0 3px;
|
||
}
|
||
.w-e-text pre code {
|
||
display: block;
|
||
}
|
||
.w-e-text table {
|
||
border-top: 1px solid #ccc;
|
||
border-left: 1px solid #ccc;
|
||
}
|
||
.w-e-text table td,
|
||
.w-e-text table th {
|
||
border-bottom: 1px solid #ccc;
|
||
border-right: 1px solid #ccc;
|
||
padding: 3px 5px;
|
||
min-height: 30px;
|
||
height: 30px;
|
||
}
|
||
.w-e-text table th {
|
||
border-bottom: 2px solid #ccc;
|
||
text-align: center;
|
||
background-color: #f1f1f1;
|
||
}
|
||
.w-e-text:focus {
|
||
outline: none;
|
||
}
|
||
.w-e-text img {
|
||
cursor: pointer;
|
||
}
|
||
.w-e-text img:hover {
|
||
box-shadow: 0 0 5px #333;
|
||
}
|
||
.w-e-text .w-e-todo {
|
||
margin: 0 0 0 20px;
|
||
}
|
||
.w-e-text .w-e-todo li {
|
||
list-style: none;
|
||
font-size: 1em;
|
||
}
|
||
.w-e-text .w-e-todo li span:nth-child(1) {
|
||
position: relative;
|
||
left: -18px;
|
||
}
|
||
.w-e-text .w-e-todo li span:nth-child(1) input {
|
||
position: absolute;
|
||
margin-right: 3px;
|
||
}
|
||
.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
|
||
top: 50%;
|
||
margin-top: -6px;
|
||
}
|
||
.w-e-tooltip {
|
||
position: absolute;
|
||
display: flex;
|
||
color: #f1f1f1;
|
||
background-color: rgba(0, 0, 0, 0.75);
|
||
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
|
||
border-radius: 4px;
|
||
padding: 4px 5px 6px;
|
||
justify-content: center;
|
||
align-items: center;
|
||
}
|
||
.w-e-tooltip-up::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 50%;
|
||
margin-left: -5px;
|
||
border: 5px solid rgba(0, 0, 0, 0);
|
||
border-top-color: rgba(0, 0, 0, 0.73);
|
||
}
|
||
.w-e-tooltip-down::after {
|
||
content: "";
|
||
position: absolute;
|
||
bottom: 100%;
|
||
left: 50%;
|
||
margin-left: -5px;
|
||
border: 5px solid rgba(0, 0, 0, 0);
|
||
border-bottom-color: rgba(0, 0, 0, 0.73);
|
||
}
|
||
.w-e-tooltip-item-wrapper {
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
margin: 0 5px;
|
||
}
|
||
.w-e-tooltip-item-wrapper:hover {
|
||
color: #ccc;
|
||
text-decoration: underline;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-menu .w-e-panel-container {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 50%;
|
||
border: 1px solid #ccc;
|
||
border-top: 0;
|
||
box-shadow: 1px 1px 2px #ccc;
|
||
color: #333;
|
||
background-color: #fff;
|
||
text-align: left;
|
||
/* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
|
||
/* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-close {
|
||
position: absolute;
|
||
right: 0;
|
||
top: 0;
|
||
padding: 5px;
|
||
margin: 2px 5px 0 0;
|
||
cursor: pointer;
|
||
color: #999;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
|
||
color: #333;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
|
||
list-style: none;
|
||
display: flex;
|
||
font-size: 14px;
|
||
margin: 2px 10px 0 10px;
|
||
border-bottom: 1px solid #f1f1f1;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
|
||
padding: 3px 5px;
|
||
color: #999;
|
||
cursor: pointer;
|
||
margin: 0 3px;
|
||
position: relative;
|
||
top: 1px;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
|
||
color: #333;
|
||
border-bottom: 1px solid #333;
|
||
cursor: default;
|
||
font-weight: 700;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
|
||
padding: 10px 15px 10px 15px;
|
||
font-size: 16px;
|
||
/* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
|
||
/* \u6309\u94AE\u7684\u6837\u5F0F */
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
|
||
outline: none;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
|
||
width: 100%;
|
||
border: 1px solid #ccc;
|
||
padding: 5px;
|
||
margin-top: 10px;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
|
||
border-color: #1e88e5;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
|
||
border: none;
|
||
border-bottom: 1px solid #ccc;
|
||
font-size: 14px;
|
||
height: 20px;
|
||
color: #333;
|
||
text-align: left;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
|
||
width: 30px;
|
||
text-align: center;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
|
||
display: block;
|
||
width: 100%;
|
||
margin: 10px 0;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
|
||
border-bottom: 2px solid #1e88e5;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
|
||
font-size: 14px;
|
||
color: #1e88e5;
|
||
border: none;
|
||
padding: 5px 10px;
|
||
background-color: #fff;
|
||
cursor: pointer;
|
||
border-radius: 3px;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
|
||
float: left;
|
||
margin-right: 10px;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
|
||
float: right;
|
||
margin-left: 10px;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
|
||
color: #999;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
|
||
color: #c24f4a;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
|
||
background-color: #f1f1f1;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
|
||
content: "";
|
||
display: table;
|
||
clear: both;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
|
||
cursor: pointer;
|
||
font-size: 18px;
|
||
padding: 0 3px;
|
||
display: inline-block;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-up-img-container,
|
||
.w-e-menu .w-e-panel-container .w-e-up-video-container {
|
||
text-align: center;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
|
||
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
|
||
display: inline-block;
|
||
color: #999;
|
||
cursor: pointer;
|
||
font-size: 60px;
|
||
line-height: 1;
|
||
}
|
||
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
|
||
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
|
||
color: #333;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(20),d=i(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-toolbar .w-e-droplist {
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
background-color: #fff;
|
||
border: 1px solid #f1f1f1;
|
||
border-right-color: #ccc;
|
||
border-bottom-color: #ccc;
|
||
}
|
||
.w-e-toolbar .w-e-droplist .w-e-dp-title {
|
||
text-align: center;
|
||
color: #999;
|
||
line-height: 2;
|
||
border-bottom: 1px solid #f1f1f1;
|
||
font-size: 13px;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-list {
|
||
list-style: none;
|
||
line-height: 1;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
|
||
color: #333;
|
||
padding: 5px 0;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
|
||
background-color: #f1f1f1;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-block {
|
||
list-style: none;
|
||
text-align: left;
|
||
padding: 5px;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
|
||
display: inline-block;
|
||
padding: 3px 5px;
|
||
}
|
||
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
|
||
background-color: #f1f1f1;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(161));Element.prototype.matches||(Element.prototype.matches=function(c){var u=this.ownerDocument.querySelectorAll(c),h=u.length;for(h;h>=0&&u.item(h)!==this;h--);return h>-1}),d.default||(window.Promise=d.default)},function(r,o,i){r.exports=i(162)},function(r,o,i){var l=i(163);r.exports=l},function(r,o,i){i(61),i(50),i(54),i(175),i(178),i(179);var l=i(9);r.exports=l.Promise},function(r,o,i){var l=i(62),d=i(49),c=function(h){return function(m,y){var C=String(d(m)),A=l(y),w=C.length,E,b;return A<0||A>=w?h?"":void 0:(E=C.charCodeAt(A),E<55296||E>56319||A+1===w||(b=C.charCodeAt(A+1))<56320||b>57343?h?C.charAt(A):E:h?C.slice(A,A+2):(E-55296<<10)+(b-56320)+65536)}};r.exports={codeAt:c(!1),charAt:c(!0)}},function(r,o,i){var l=i(8),d=i(102),c=l.WeakMap;r.exports=typeof c=="function"&&/native code/.test(d(c))},function(r,o,i){var l=i(8),d=i(19);r.exports=function(c,u){try{d(l,c,u)}catch{l[c]=u}return u}},function(r,o,i){var l=i(104).IteratorPrototype,d=i(77),c=i(48),u=i(37),h=i(44),m=function(){return this};r.exports=function(y,C,A){var w=C+" Iterator";return y.prototype=d(l,{next:c(1,A)}),u(y,w,!1,!0),h[w]=m,y}},function(r,o,i){var l=i(11);r.exports=!l(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(r,o,i){var l=i(14),d=i(18),c=i(25),u=i(52);r.exports=l?Object.defineProperties:function(m,y){c(m);for(var C=u(y),A=C.length,w=0,E;A>w;)d.f(m,E=C[w++],y[E]);return m}},function(r,o,i){var l=i(81),d=i(65);r.exports=l?{}.toString:function(){return"[object "+d(this)+"]"}},function(r,o,i){var l=i(25),d=i(172);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},h;try{h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,h.call(u,[]),c=u instanceof Array}catch{}return function(y,C){return l(y),d(C),c?h.call(y,C):y.__proto__=C,y}}():void 0)},function(r,o,i){var l=i(13);r.exports=function(d){if(!l(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(r,o,i){var l=i(30),d=i(82),c=i(44),u=i(42),h=i(75),m="Array Iterator",y=u.set,C=u.getterFor(m);r.exports=h(Array,"Array",function(A,w){y(this,{type:m,target:l(A),index:0,kind:w})},function(){var A=C(this),w=A.target,E=A.kind,b=A.index++;return!w||b>=w.length?(A.target=void 0,{value:void 0,done:!0}):E=="keys"?{value:b,done:!1}:E=="values"?{value:w[b],done:!1}:{value:[b,w[b]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(r,o){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(r,o,i){var l=i(5),d=i(43),c=i(8),u=i(36),h=i(109),m=i(53),y=i(110),C=i(37),A=i(111),w=i(13),E=i(41),b=i(83),g=i(34),_=i(102),x=i(66),k=i(115),T=i(116),O=i(117).set,F=i(176),I=i(119),M=i(177),N=i(85),B=i(120),L=i(42),U=i(101),H=i(10),R=i(86),z=H("species"),$="Promise",S=L.get,J=L.set,Q=L.getterFor($),G=h,ie=c.TypeError,X=c.document,le=c.process,be=u("fetch"),ce=N.f,de=ce,pe=g(le)=="process",se=!!(X&&X.createEvent&&c.dispatchEvent),ge="unhandledrejection",ye="rejectionhandled",D=0,W=1,Y=2,q=1,ee=2,oe,he,Ae,Me,Le=U($,function(){var Ze=_(G)!==String(G);if(!Ze&&(R===66||!pe&&typeof PromiseRejectionEvent!="function")||d&&!G.prototype.finally)return!0;if(R>=51&&/native code/.test(G))return!1;var De=G.resolve(1),Pe=function(Ce){Ce(function(){},function(){})},tt=De.constructor={};return tt[z]=Pe,!(De.then(function(){})instanceof Pe)}),fe=Le||!k(function(Ze){G.all(Ze).catch(function(){})}),ke=function(De){var Pe;return w(De)&&typeof(Pe=De.then)=="function"?Pe:!1},we=function(De,Pe,tt){if(!Pe.notified){Pe.notified=!0;var $e=Pe.reactions;F(function(){for(var Ce=Pe.value,Xe=Pe.state==W,Ye=0;$e.length>Ye;){var Qe=$e[Ye++],ct=Xe?Qe.ok:Qe.fail,gn=Qe.resolve,Rt=Qe.reject,Tt=Qe.domain,bt,Gn,Gi;try{ct?(Xe||(Pe.rejection===ee&&Oe(De,Pe),Pe.rejection=q),ct===!0?bt=Ce:(Tt&&Tt.enter(),bt=ct(Ce),Tt&&(Tt.exit(),Gi=!0)),bt===Qe.promise?Rt(ie("Promise-chain cycle")):(Gn=ke(bt))?Gn.call(bt,gn,Rt):gn(bt)):Rt(Ce)}catch(ei){Tt&&!Gi&&Tt.exit(),Rt(ei)}}Pe.reactions=[],Pe.notified=!1,tt&&!Pe.rejection&&et(De,Pe)})}},He=function(De,Pe,tt){var $e,Ce;se?($e=X.createEvent("Event"),$e.promise=Pe,$e.reason=tt,$e.initEvent(De,!1,!0),c.dispatchEvent($e)):$e={promise:Pe,reason:tt},(Ce=c["on"+De])?Ce($e):De===ge&&M("Unhandled promise rejection",tt)},et=function(De,Pe){O.call(c,function(){var tt=Pe.value,$e=_e(Pe),Ce;if($e&&(Ce=B(function(){pe?le.emit("unhandledRejection",tt,De):He(ge,De,tt)}),Pe.rejection=pe||_e(Pe)?ee:q,Ce.error))throw Ce.value})},_e=function(De){return De.rejection!==q&&!De.parent},Oe=function(De,Pe){O.call(c,function(){pe?le.emit("rejectionHandled",De):He(ye,De,Pe.value)})},Ke=function(De,Pe,tt,$e){return function(Ce){De(Pe,tt,Ce,$e)}},Re=function(De,Pe,tt,$e){Pe.done||(Pe.done=!0,$e&&(Pe=$e),Pe.value=tt,Pe.state=Y,we(De,Pe,!0))},mt=function Ze(De,Pe,tt,$e){if(!Pe.done){Pe.done=!0,$e&&(Pe=$e);try{if(De===tt)throw ie("Promise can't be resolved itself");var Ce=ke(tt);Ce?F(function(){var Xe={done:!1};try{Ce.call(tt,Ke(Ze,De,Xe,Pe),Ke(Re,De,Xe,Pe))}catch(Ye){Re(De,Xe,Ye,Pe)}}):(Pe.value=tt,Pe.state=W,we(De,Pe,!1))}catch(Xe){Re(De,{done:!1},Xe,Pe)}}};Le&&(G=function(De){b(this,G,$),E(De),oe.call(this);var Pe=S(this);try{De(Ke(mt,this,Pe),Ke(Re,this,Pe))}catch(tt){Re(this,Pe,tt)}},oe=function(De){J(this,{type:$,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:D,value:void 0})},oe.prototype=y(G.prototype,{then:function(De,Pe){var tt=Q(this),$e=ce(T(this,G));return $e.ok=typeof De=="function"?De:!0,$e.fail=typeof Pe=="function"&&Pe,$e.domain=pe?le.domain:void 0,tt.parent=!0,tt.reactions.push($e),tt.state!=D&&we(this,tt,!1),$e.promise},catch:function(De){return this.then(void 0,De)}}),he=function(){var De=new oe,Pe=S(De);this.promise=De,this.resolve=Ke(mt,De,Pe),this.reject=Ke(Re,De,Pe)},N.f=ce=function(De){return De===G||De===Ae?new he(De):de(De)},!d&&typeof h=="function"&&(Me=h.prototype.then,m(h.prototype,"then",function(De,Pe){var tt=this;return new G(function($e,Ce){Me.call(tt,$e,Ce)}).then(De,Pe)},{unsafe:!0}),typeof be=="function"&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(De){return I(G,be.apply(c,arguments))}}))),l({global:!0,wrap:!0,forced:Le},{Promise:G}),C(G,$,!1,!0),A($),Ae=u($),l({target:$,stat:!0,forced:Le},{reject:function(De){var Pe=ce(this);return Pe.reject.call(void 0,De),Pe.promise}}),l({target:$,stat:!0,forced:d||Le},{resolve:function(De){return I(d&&this===Ae?G:this,De)}}),l({target:$,stat:!0,forced:fe},{all:function(De){var Pe=this,tt=ce(Pe),$e=tt.resolve,Ce=tt.reject,Xe=B(function(){var Ye=E(Pe.resolve),Qe=[],ct=0,gn=1;x(De,function(Rt){var Tt=ct++,bt=!1;Qe.push(void 0),gn++,Ye.call(Pe,Rt).then(function(Gn){bt||(bt=!0,Qe[Tt]=Gn,--gn||$e(Qe))},Ce)}),--gn||$e(Qe)});return Xe.error&&Ce(Xe.value),tt.promise},race:function(De){var Pe=this,tt=ce(Pe),$e=tt.reject,Ce=B(function(){var Xe=E(Pe.resolve);x(De,function(Ye){Xe.call(Pe,Ye).then(tt.resolve,$e)})});return Ce.error&&$e(Ce.value),tt.promise}})},function(r,o,i){var l=i(8),d=i(71).f,c=i(34),u=i(117).set,h=i(118),m=l.MutationObserver||l.WebKitMutationObserver,y=l.process,C=l.Promise,A=c(y)=="process",w=d(l,"queueMicrotask"),E=w&&w.value,b,g,_,x,k,T,O,F;E||(b=function(){var M,N;for(A&&(M=y.domain)&&M.exit();g;){N=g.fn,g=g.next;try{N()}catch(B){throw g?x():_=void 0,B}}_=void 0,M&&M.enter()},A?x=function(){y.nextTick(b)}:m&&!h?(k=!0,T=document.createTextNode(""),new m(b).observe(T,{characterData:!0}),x=function(){T.data=k=!k}):C&&C.resolve?(O=C.resolve(void 0),F=O.then,x=function(){F.call(O,b)}):x=function(){u.call(l,b)}),r.exports=E||function(I){var M={fn:I,next:void 0};_&&(_.next=M),g||(g=M,x()),_=M}},function(r,o,i){var l=i(8);r.exports=function(d,c){var u=l.console;u&&u.error&&(arguments.length===1?u.error(d):u.error(d,c))}},function(r,o,i){var l=i(5),d=i(41),c=i(85),u=i(120),h=i(66);l({target:"Promise",stat:!0},{allSettled:function(y){var C=this,A=c.f(C),w=A.resolve,E=A.reject,b=u(function(){var g=d(C.resolve),_=[],x=0,k=1;h(y,function(T){var O=x++,F=!1;_.push(void 0),k++,g.call(C,T).then(function(I){F||(F=!0,_[O]={status:"fulfilled",value:I},--k||w(_))},function(I){F||(F=!0,_[O]={status:"rejected",reason:I},--k||w(_))})}),--k||w(_)});return b.error&&E(b.value),A.promise}})},function(r,o,i){var l=i(5),d=i(43),c=i(109),u=i(11),h=i(36),m=i(116),y=i(119),C=i(53),A=!!c&&u(function(){c.prototype.finally.call({then:function(){}},function(){})});l({target:"Promise",proto:!0,real:!0,forced:A},{finally:function(E){var b=m(this,h("Promise")),g=typeof E=="function";return this.then(g?function(_){return y(b,E()).then(function(){return _})}:E,g?function(_){return y(b,E()).then(function(){throw _})}:E)}}),!d&&typeof c=="function"&&!c.prototype.finally&&C(c.prototype,"finally",h("Promise").prototype.finally)},function(r,o,i){i(54);var l=i(181),d=i(65),c=Array.prototype,u={DOMTokenList:!0,NodeList:!0};r.exports=function(h){var m=h.forEach;return h===c||h instanceof Array&&m===c.forEach||u.hasOwnProperty(d(h))?l:m}},function(r,o,i){var l=i(182);r.exports=l},function(r,o,i){i(183);var l=i(15);r.exports=l("Array").forEach},function(r,o,i){var l=i(5),d=i(184);l({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},function(r,o,i){var l=i(32).forEach,d=i(67),c=i(22),u=d("forEach"),h=c("forEach");r.exports=!u||!h?function(y){return l(this,y,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(r,o,i){var l=i(186);r.exports=l},function(r,o,i){i(187);var l=i(9);r.exports=l.Array.isArray},function(r,o,i){var l=i(5),d=i(55);l({target:"Array",stat:!0},{isArray:d})},function(r,o,i){var l=i(189);r.exports=l},function(r,o,i){var l=i(190),d=Array.prototype;r.exports=function(c){var u=c.map;return c===d||c instanceof Array&&u===d.map?l:u}},function(r,o,i){i(191);var l=i(15);r.exports=l("Array").map},function(r,o,i){var l=i(5),d=i(32).map,c=i(56),u=i(22),h=c("map"),m=u("map");l({target:"Array",proto:!0,forced:!h||!m},{map:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(193);r.exports=l},function(r,o,i){var l=i(194),d=String.prototype;r.exports=function(c){var u=c.trim;return typeof c=="string"||c===d||c instanceof String&&u===d.trim?l:u}},function(r,o,i){i(195);var l=i(15);r.exports=l("String").trim},function(r,o,i){var l=i(5),d=i(90).trim,c=i(196);l({target:"String",proto:!0,forced:c("trim")},{trim:function(){return d(this)}})},function(r,o,i){var l=i(11),d=i(68),c="\u200B\x85\u180E";r.exports=function(u){return l(function(){return!!d[u]()||c[u]()!=c||d[u].name!==u})}},function(r,o,i){var l=i(198);r.exports=l},function(r,o,i){i(199),i(61),i(50),i(54);var l=i(9);r.exports=l.Map},function(r,o,i){var l=i(122),d=i(124);r.exports=l("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(r,o,i){var l=i(11);r.exports=!l(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(r,o,i){var l=i(202);r.exports=l},function(r,o,i){var l=i(203),d=Array.prototype;r.exports=function(c){var u=c.indexOf;return c===d||c instanceof Array&&u===d.indexOf?l:u}},function(r,o,i){i(204);var l=i(15);r.exports=l("Array").indexOf},function(r,o,i){var l=i(5),d=i(78).indexOf,c=i(67),u=i(22),h=[].indexOf,m=!!h&&1/[1].indexOf(1,-0)<0,y=c("indexOf"),C=u("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:m||!y||!C},{indexOf:function(w){return m?h.apply(this,arguments)||0:d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(206);r.exports=l},function(r,o,i){var l=i(207),d=Array.prototype;r.exports=function(c){var u=c.splice;return c===d||c instanceof Array&&u===d.splice?l:u}},function(r,o,i){i(208);var l=i(15);r.exports=l("Array").splice},function(r,o,i){var l=i(5),d=i(79),c=i(62),u=i(35),h=i(31),m=i(88),y=i(69),C=i(56),A=i(22),w=C("splice"),E=A("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,g=Math.min,_=9007199254740991,x="Maximum allowed length exceeded";l({target:"Array",proto:!0,forced:!w||!E},{splice:function(T,O){var F=h(this),I=u(F.length),M=d(T,I),N=arguments.length,B,L,U,H,R,z;if(N===0?B=L=0:N===1?(B=0,L=I-M):(B=N-2,L=g(b(c(O),0),I-M)),I+B-L>_)throw TypeError(x);for(U=m(F,L),H=0;H<L;H++)R=M+H,R in F&&y(U,H,F[R]);if(U.length=L,B<L){for(H=M;H<I-L;H++)R=H+L,z=H+B,R in F?F[z]=F[R]:delete F[z];for(H=I;H>I-L+B;H--)delete F[H-1]}else if(B>L)for(H=I-L;H>M;H--)R=H+L-1,z=H+B-1,R in F?F[z]=F[R]:delete F[z];for(H=0;H<B;H++)F[H+M]=arguments[H+2];return F.length=I-L+B,U}})},function(r,o,i){var l=i(210);r.exports=l},function(r,o,i){var l=i(211),d=Array.prototype;r.exports=function(c){var u=c.filter;return c===d||c instanceof Array&&u===d.filter?l:u}},function(r,o,i){i(212);var l=i(15);r.exports=l("Array").filter},function(r,o,i){var l=i(5),d=i(32).filter,c=i(56),u=i(22),h=c("filter"),m=u("filter");l({target:"Array",proto:!0,forced:!h||!m},{filter:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(214);r.exports=l},function(r,o,i){var l=i(215),d=i(217),c=Array.prototype,u=String.prototype;r.exports=function(h){var m=h.includes;return h===c||h instanceof Array&&m===c.includes?l:typeof h=="string"||h===u||h instanceof String&&m===u.includes?d:m}},function(r,o,i){i(216);var l=i(15);r.exports=l("Array").includes},function(r,o,i){var l=i(5),d=i(78).includes,c=i(82),u=i(22),h=u("indexOf",{ACCESSORS:!0,1:0});l({target:"Array",proto:!0,forced:!h},{includes:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(r,o,i){i(218);var l=i(15);r.exports=l("String").includes},function(r,o,i){var l=i(5),d=i(219),c=i(49),u=i(221);l({target:"String",proto:!0,forced:!u("includes")},{includes:function(m){return!!~String(c(this)).indexOf(d(m),arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(220);r.exports=function(d){if(l(d))throw TypeError("The method doesn't accept regular expressions");return d}},function(r,o,i){var l=i(13),d=i(34),c=i(10),u=c("match");r.exports=function(h){var m;return l(h)&&((m=h[u])!==void 0?!!m:d(h)=="RegExp")}},function(r,o,i){var l=i(10),d=l("match");r.exports=function(c){var u=/./;try{"/./"[c](u)}catch{try{return u[d]=!1,"/./"[c](u)}catch{}}return!1}},function(r,o,i){var l=i(223);r.exports=l},function(r,o,i){var l=i(224),d=Function.prototype;r.exports=function(c){var u=c.bind;return c===d||c instanceof Function&&u===d.bind?l:u}},function(r,o,i){i(225);var l=i(15);r.exports=l("Function").bind},function(r,o,i){var l=i(5),d=i(226);l({target:"Function",proto:!0},{bind:d})},function(r,o,i){var l=i(41),d=i(13),c=[].slice,u={},h=function(y,C,A){if(!(C in u)){for(var w=[],E=0;E<C;E++)w[E]="a["+E+"]";u[C]=Function("C,a","return new C("+w.join(",")+")")}return u[C](y,A)};r.exports=Function.bind||function(y){var C=l(this),A=c.call(arguments,1),w=function(){var b=A.concat(c.call(arguments));return this instanceof w?h(C,b.length,b):C.apply(y,b)};return d(C.prototype)&&(w.prototype=C.prototype),w}},function(r,o,i){r.exports=i(228)},function(r,o,i){var l=i(229);r.exports=l},function(r,o,i){i(125),i(50),i(54);var l=i(93);r.exports=l.f("iterator")},function(r,o,i){r.exports=i(231)},function(r,o,i){var l=i(232);i(251),i(252),i(253),i(254),i(255),r.exports=l},function(r,o,i){i(233),i(61),i(234),i(236),i(237),i(238),i(239),i(125),i(240),i(241),i(242),i(243),i(244),i(245),i(246),i(247),i(248),i(249),i(250);var l=i(9);r.exports=l.Symbol},function(r,o,i){var l=i(5),d=i(11),c=i(55),u=i(13),h=i(31),m=i(35),y=i(69),C=i(88),A=i(56),w=i(10),E=i(86),b=w("isConcatSpreadable"),g=9007199254740991,_="Maximum allowed index exceeded",x=E>=51||!d(function(){var F=[];return F[b]=!1,F.concat()[0]!==F}),k=A("concat"),T=function(I){if(!u(I))return!1;var M=I[b];return M!==void 0?!!M:c(I)},O=!x||!k;l({target:"Array",proto:!0,forced:O},{concat:function(I){var M=h(this),N=C(M,0),B=0,L,U,H,R,z;for(L=-1,H=arguments.length;L<H;L++)if(z=L===-1?M:arguments[L],T(z)){if(R=m(z.length),B+R>g)throw TypeError(_);for(U=0;U<R;U++,B++)U in z&&y(N,B,z[U])}else{if(B>=g)throw TypeError(_);y(N,B++,z)}return N.length=B,N}})},function(r,o,i){var l=i(5),d=i(8),c=i(36),u=i(43),h=i(14),m=i(76),y=i(106),C=i(11),A=i(16),w=i(55),E=i(13),b=i(25),g=i(31),_=i(30),x=i(60),k=i(48),T=i(77),O=i(52),F=i(126),I=i(235),M=i(127),N=i(71),B=i(18),L=i(59),U=i(19),H=i(53),R=i(74),z=i(63),$=i(51),S=i(64),J=i(10),Q=i(93),G=i(12),ie=i(37),X=i(42),le=i(32).forEach,be=z("hidden"),ce="Symbol",de="prototype",pe=J("toPrimitive"),se=X.set,ge=X.getterFor(ce),ye=Object[de],D=d.Symbol,W=c("JSON","stringify"),Y=N.f,q=B.f,ee=I.f,oe=L.f,he=R("symbols"),Ae=R("op-symbols"),Me=R("string-to-symbol-registry"),Le=R("symbol-to-string-registry"),fe=R("wks"),ke=d.QObject,we=!ke||!ke[de]||!ke[de].findChild,He=h&&C(function(){return T(q({},"a",{get:function(){return q(this,"a",{value:7}).a}})).a!=7})?function($e,Ce,Xe){var Ye=Y(ye,Ce);Ye&&delete ye[Ce],q($e,Ce,Xe),Ye&&$e!==ye&&q(ye,Ce,Ye)}:q,et=function(Ce,Xe){var Ye=he[Ce]=T(D[de]);return se(Ye,{type:ce,tag:Ce,description:Xe}),h||(Ye.description=Xe),Ye},_e=y?function($e){return Jt($e)=="symbol"}:function($e){return Object($e)instanceof D},Oe=function(Ce,Xe,Ye){Ce===ye&&Oe(Ae,Xe,Ye),b(Ce);var Qe=x(Xe,!0);return b(Ye),A(he,Qe)?(Ye.enumerable?(A(Ce,be)&&Ce[be][Qe]&&(Ce[be][Qe]=!1),Ye=T(Ye,{enumerable:k(0,!1)})):(A(Ce,be)||q(Ce,be,k(1,{})),Ce[be][Qe]=!0),He(Ce,Qe,Ye)):q(Ce,Qe,Ye)},Ke=function(Ce,Xe){b(Ce);var Ye=_(Xe),Qe=O(Ye).concat(Pe(Ye));return le(Qe,function(ct){(!h||mt.call(Ye,ct))&&Oe(Ce,ct,Ye[ct])}),Ce},Re=function(Ce,Xe){return Xe===void 0?T(Ce):Ke(T(Ce),Xe)},mt=function(Ce){var Xe=x(Ce,!0),Ye=oe.call(this,Xe);return this===ye&&A(he,Xe)&&!A(Ae,Xe)?!1:Ye||!A(this,Xe)||!A(he,Xe)||A(this,be)&&this[be][Xe]?Ye:!0},Ze=function(Ce,Xe){var Ye=_(Ce),Qe=x(Xe,!0);if(!(Ye===ye&&A(he,Qe)&&!A(Ae,Qe))){var ct=Y(Ye,Qe);return ct&&A(he,Qe)&&!(A(Ye,be)&&Ye[be][Qe])&&(ct.enumerable=!0),ct}},De=function(Ce){var Xe=ee(_(Ce)),Ye=[];return le(Xe,function(Qe){!A(he,Qe)&&!A($,Qe)&&Ye.push(Qe)}),Ye},Pe=function(Ce){var Xe=Ce===ye,Ye=ee(Xe?Ae:_(Ce)),Qe=[];return le(Ye,function(ct){A(he,ct)&&(!Xe||A(ye,ct))&&Qe.push(he[ct])}),Qe};if(m||(D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),Xe=S(Ce),Ye=function Qe(ct){this===ye&&Qe.call(Ae,ct),A(this,be)&&A(this[be],Xe)&&(this[be][Xe]=!1),He(this,Xe,k(1,ct))};return h&&we&&He(ye,Xe,{configurable:!0,set:Ye}),et(Xe,Ce)},H(D[de],"toString",function(){return ge(this).tag}),H(D,"withoutSetter",function($e){return et(S($e),$e)}),L.f=mt,B.f=Oe,N.f=Ze,F.f=I.f=De,M.f=Pe,Q.f=function($e){return et(J($e),$e)},h&&(q(D[de],"description",{configurable:!0,get:function(){return ge(this).description}}),u||H(ye,"propertyIsEnumerable",mt,{unsafe:!0}))),l({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:D}),le(O(fe),function($e){G($e)}),l({target:ce,stat:!0,forced:!m},{for:function(Ce){var Xe=String(Ce);if(A(Me,Xe))return Me[Xe];var Ye=D(Xe);return Me[Xe]=Ye,Le[Ye]=Xe,Ye},keyFor:function(Ce){if(!_e(Ce))throw TypeError(Ce+" is not a symbol");if(A(Le,Ce))return Le[Ce]},useSetter:function(){we=!0},useSimple:function(){we=!1}}),l({target:"Object",stat:!0,forced:!m,sham:!h},{create:Re,defineProperty:Oe,defineProperties:Ke,getOwnPropertyDescriptor:Ze}),l({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:De,getOwnPropertySymbols:Pe}),l({target:"Object",stat:!0,forced:C(function(){M.f(1)})},{getOwnPropertySymbols:function(Ce){return M.f(g(Ce))}}),W){var tt=!m||C(function(){var $e=D();return W([$e])!="[null]"||W({a:$e})!="{}"||W(Object($e))!="{}"});l({target:"JSON",stat:!0,forced:tt},{stringify:function(Ce,Xe,Ye){for(var Qe=[Ce],ct=1,gn;arguments.length>ct;)Qe.push(arguments[ct++]);if(gn=Xe,!(!E(Xe)&&Ce===void 0||_e(Ce)))return w(Xe)||(Xe=function(Tt,bt){if(typeof gn=="function"&&(bt=gn.call(this,Tt,bt)),!_e(bt))return bt}),Qe[1]=Xe,W.apply(null,Qe)}})}D[de][pe]||U(D[de],pe,D[de].valueOf),ie(D,ce),$[be]=!0},function(r,o,i){var l=i(30),d=i(126).f,c={}.toString,u=(typeof window>"u"?"undefined":Jt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(y){try{return d(y)}catch{return u.slice()}};r.exports.f=function(y){return u&&c.call(y)=="[object Window]"?h(y):d(l(y))}},function(r,o,i){var l=i(12);l("asyncIterator")},function(r,o){},function(r,o,i){var l=i(12);l("hasInstance")},function(r,o,i){var l=i(12);l("isConcatSpreadable")},function(r,o,i){var l=i(12);l("match")},function(r,o,i){var l=i(12);l("matchAll")},function(r,o,i){var l=i(12);l("replace")},function(r,o,i){var l=i(12);l("search")},function(r,o,i){var l=i(12);l("species")},function(r,o,i){var l=i(12);l("split")},function(r,o,i){var l=i(12);l("toPrimitive")},function(r,o,i){var l=i(12);l("toStringTag")},function(r,o,i){var l=i(12);l("unscopables")},function(r,o,i){var l=i(37);l(Math,"Math",!0)},function(r,o,i){var l=i(8),d=i(37);d(l.JSON,"JSON",!0)},function(r,o,i){var l=i(12);l("asyncDispose")},function(r,o,i){var l=i(12);l("dispose")},function(r,o,i){var l=i(12);l("observable")},function(r,o,i){var l=i(12);l("patternMatch")},function(r,o,i){var l=i(12);l("replaceAll")},function(r,o,i){r.exports=i(257)},function(r,o,i){var l=i(258);r.exports=l},function(r,o,i){i(259);var l=i(9);r.exports=l.parseInt},function(r,o,i){var l=i(5),d=i(260);l({global:!0,forced:parseInt!=d},{parseInt:d})},function(r,o,i){var l=i(8),d=i(90).trim,c=i(68),u=l.parseInt,h=/^[+-]?0[Xx]/,m=u(c+"08")!==8||u(c+"0x16")!==22;r.exports=m?function(C,A){var w=d(String(C));return u(w,A>>>0||(h.test(w)?16:10))}:u},function(r,o,i){var l=i(262);r.exports=l},function(r,o,i){var l=i(263),d=Array.prototype;r.exports=function(c){var u=c.slice;return c===d||c instanceof Array&&u===d.slice?l:u}},function(r,o,i){i(264);var l=i(15);r.exports=l("Array").slice},function(r,o,i){var l=i(5),d=i(13),c=i(55),u=i(79),h=i(35),m=i(30),y=i(69),C=i(10),A=i(56),w=i(22),E=A("slice"),b=w("slice",{ACCESSORS:!0,0:0,1:2}),g=C("species"),_=[].slice,x=Math.max;l({target:"Array",proto:!0,forced:!E||!b},{slice:function(T,O){var F=m(this),I=h(F.length),M=u(T,I),N=u(O===void 0?I:O,I),B,L,U;if(c(F)&&(B=F.constructor,typeof B=="function"&&(B===Array||c(B.prototype))?B=void 0:d(B)&&(B=B[g],B===null&&(B=void 0)),B===Array||B===void 0))return _.call(F,M,N);for(L=new(B===void 0?Array:B)(x(N-M,0)),U=0;M<N;M++,U++)M in F&&y(L,U,F[M]);return L.length=U,L}})},function(r,o,i){i(266);var l=i(9);r.exports=l.setTimeout},function(r,o,i){var l=i(5),d=i(8),c=i(84),u=[].slice,h=/MSIE .\./.test(c),m=function(C){return function(A,w){var E=arguments.length>2,b=E?u.call(arguments,2):void 0;return C(E?function(){(typeof A=="function"?A:Function(A)).apply(this,b)}:A,w)}};l({global:!0,bind:!0,forced:h},{setTimeout:m(d.setTimeout),setInterval:m(d.setInterval)})},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(128));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(272)),m=u.__importDefault(i(273)),y=u.__importDefault(i(129)),C=u.__importDefault(i(274)),A=u.__importDefault(i(275)),w=u.__importDefault(i(276)),E=u.__importDefault(i(130)),b=u.__importDefault(i(277)),g=u.__importDefault(i(278)),_=u.__importDefault(i(279)),x=(0,c.default)({},h.default,m.default,y.default,A.default,C.default,w.default,E.default,b.default,g.default,_.default,{linkCheck:function(T,O){return!0}});o.default=x},function(r,o,i){var l=i(269);r.exports=l},function(r,o,i){i(270);var l=i(9);r.exports=l.Object.assign},function(r,o,i){var l=i(5),d=i(271);l({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(r,o,i){var l=i(14),d=i(11),c=i(52),u=i(127),h=i(59),m=i(31),y=i(72),C=Object.assign,A=Object.defineProperty;r.exports=!C||d(function(){if(l&&C({b:1},C(A({},"a",{enumerable:!0,get:function(){A(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},E={},b=Symbol(),g="abcdefghijklmnopqrst";return w[b]=7,g.split("").forEach(function(_){E[_]=_}),C({},w)[b]!=7||c(C({},E)).join("")!=g})?function(E,b){for(var g=m(E),_=arguments.length,x=1,k=u.f,T=h.f;_>x;)for(var O=y(arguments[x++]),F=k?c(O).concat(k(O)):c(O),I=F.length,M=0,N;I>M;)N=F[M++],(!l||T.call(O,N))&&(g[N]=O[N]);return g}:C},function(r,o,i){var l=i(0),d=l(i(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(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);function u(h,m,y){window.alert(h),y&&console.error("wangEditor: "+y)}o.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:u}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(u){return u}}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={styleWithCSS:!1}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);o.default={linkImgCheck:function(h,m,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(r,o,i){var l=i(0),d=l(i(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(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(6);function u(){return!!(c.UA.isIE()||c.UA.isOldEdge)}o.default={compatibleMode:u,historyMaxSize:30}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(7);o.default={onlineVideoCheck:function(h){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(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(6),y=i(7),C=function(){function A(w){this._currentRange=null,this.editor=w}return A.prototype.getRange=function(){return this._currentRange},A.prototype.saveRange=function(w){if(w){this._currentRange=w;return}var E=window.getSelection();if(E.rangeCount!==0){var b=E.getRangeAt(0),g=this.getSelectionContainerElem(b);if(!!(g!=null&&g.length)&&!(g.attr("contenteditable")==="false"||g.parentUntil("[contenteditable=false]"))){var _=this.editor,x=_.$textElem;if(x.isContain(g)){if(x.elems[0]===g.elems[0]){var k;if((0,c.default)(k=x.html()).call(k)===y.EMPTY_P){var T=x.children(),O=T==null?void 0:T.last();_.selection.createRangeByElem(O,!0,!0),_.selection.restoreSelection()}}this._currentRange=b}}}},A.prototype.collapseRange=function(w){w===void 0&&(w=!1);var E=this._currentRange;E&&E.collapse(w)},A.prototype.getSelectionText=function(){var w=this._currentRange;return w?w.toString():""},A.prototype.getSelectionContainerElem=function(w){var E;E=w||this._currentRange;var b;if(E)return b=E.commonAncestorContainer,h.default(b.nodeType===1?b:b.parentNode)},A.prototype.getSelectionStartElem=function(w){var E;E=w||this._currentRange;var b;if(E)return b=E.startContainer,h.default(b.nodeType===1?b:b.parentNode)},A.prototype.getSelectionEndElem=function(w){var E;E=w||this._currentRange;var b;if(E)return b=E.endContainer,h.default(b.nodeType===1?b:b.parentNode)},A.prototype.isSelectionEmpty=function(){var w=this._currentRange;return!!(w&&w.startContainer&&w.startContainer===w.endContainer&&w.startOffset===w.endOffset)},A.prototype.restoreSelection=function(){var w=window.getSelection(),E=this._currentRange;w&&E&&(w.removeAllRanges(),w.addRange(E))},A.prototype.createEmptyRange=function(){var w=this.editor,E=this.getRange(),b;if(!!E&&!!this.isSelectionEmpty())try{m.UA.isWebkit()?(w.cmd.do("insertHTML","​"),E.setEnd(E.endContainer,E.endOffset+1),this.saveRange(E)):(b=h.default("<strong>​</strong>"),w.cmd.do("insertElem",b),this.createRangeByElem(b,!0))}catch{}},A.prototype.createRangeByElems=function(w,E){var b=window.getSelection?window.getSelection():document.getSelection();b==null||b.removeAllRanges();var g=document.createRange();g.setStart(w,0),g.setEnd(E,E.childNodes.length||1),this.saveRange(g),this.restoreSelection()},A.prototype.createRangeByElem=function(w,E,b){if(!!w.length){var g=w.elems[0],_=document.createRange();b?_.selectNodeContents(g):_.selectNode(g),E!=null&&(_.collapse(E),E||(this.saveRange(_),this.editor.selection.moveCursor(g))),this.saveRange(_)}},A.prototype.getSelectionRangeTopNodes=function(){var w,E,b,g=(w=this.getSelectionStartElem())===null||w===void 0?void 0:w.getNodeTop(this.editor),_=(E=this.getSelectionEndElem())===null||E===void 0?void 0:E.getNodeTop(this.editor);return b=this.recordSelectionNodes(h.default(g),h.default(_)),b},A.prototype.moveCursor=function(w,E){var b,g=this.getRange(),_=w.nodeType===3?(b=w.nodeValue)===null||b===void 0?void 0:b.length:w.childNodes.length;(m.UA.isFirefox||m.UA.isIE())&&_!==0&&(w.nodeType===3||w.childNodes[_-1].nodeName==="BR")&&(_=_-1);var x=E!=null?E:_;!g||w&&(g.setStart(w,x),g.setEnd(w,x),this.restoreSelection())},A.prototype.getCursorPos=function(){var w=window.getSelection();return w==null?void 0:w.anchorOffset},A.prototype.clearWindowSelectionRange=function(){var w=window.getSelection();w&&w.removeAllRanges()},A.prototype.recordSelectionNodes=function(w,E){var b=[],g=!0;try{for(var _=w,x=this.editor.$textElem;g;){var k=_==null?void 0:_.getNodeTop(this.editor);k.getNodeName()==="BODY"&&(g=!1),k.length>0&&(b.push(h.default(_)),(E==null?void 0:E.equal(k))||x.equal(k)?g=!1:_=k.getNextSibling())}}catch{g=!1}return b},A.prototype.setRangeToElem=function(w){var E=this.getRange();E==null||E.setStart(w,0),E==null||E.setEnd(w,0)},A}();o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=function(){function m(y){this.editor=y}return m.prototype.do=function(y,C){var A=this.editor;A.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var w=A.selection;if(!!w.getRange()){switch(w.restoreSelection(),y){case"insertHTML":this.insertHTML(C);break;case"insertElem":this.insertElem(C);break;default:this.execCommand(y,C);break}A.menus.changeActive(),w.saveRange(),w.restoreSelection()}},m.prototype.insertHTML=function(y){var C=this.editor,A=C.selection.getRange();if(A!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",y);else if(A.insertNode){if(A.deleteContents(),u.default(y).elems.length>0)A.insertNode(u.default(y).elems[0]);else{var w=document.createElement("p");w.appendChild(document.createTextNode(y)),A.insertNode(w)}C.selection.collapseRange()}}},m.prototype.insertElem=function(y){var C=this.editor,A=C.selection.getRange();A!=null&&A.insertNode&&(A.deleteContents(),A.insertNode(y.elems[0]))},m.prototype.execCommand=function(y,C){document.execCommand(y,!1,C)},m.prototype.queryCommandValue=function(y){return document.queryCommandValue(y)},m.prototype.queryCommandState=function(y){return document.queryCommandState(y)},m.prototype.queryCommandSupported=function(y){return document.queryCommandSupported(y)},m}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29)),u=l(i(4)),h=l(i(17)),m=l(i(27)),y=l(i(46));(0,d.default)(o,"__esModule",{value:!0});var C=i(2),A=C.__importDefault(i(3)),w=C.__importDefault(i(287)),E=i(6),b=C.__importDefault(i(299)),g=C.__importDefault(i(300)),_=i(7),x=function(){function k(T){this.editor=T,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return k.prototype.init=function(){this._saveRange(),this._bindEventHooks(),w.default(this)},k.prototype.togglePlaceholder=function(){var T,O=this.html(),F=(0,c.default)(T=this.editor.$textContainerElem).call(T,".placeholder");F.hide(),!this.editor.isComposing&&(!O||O===" ")&&F.show()},k.prototype.clear=function(){this.html(_.EMPTY_P)},k.prototype.html=function(T){var O=this.editor,F=O.$textElem;if(T==null){var I=F.html();I=I.replace(/\u200b/gm,""),I=I.replace(/<p><\/p>/gim,""),I=I.replace(_.EMPTY_P_LAST_REGEX,""),I=I.replace(_.EMPTY_P_REGEX,"<p>");var M=I.match(/<(img|br|hr|input)[^>]*>/gi);return M!==null&&(0,u.default)(M).call(M,function(N){N.match(/\/>/)||(I=I.replace(N,N.substring(0,N.length-1)+"/>"))}),I}T=(0,h.default)(T).call(T),T===""&&(T=_.EMPTY_P),(0,m.default)(T).call(T,"<")!==0&&(T="<p>"+T+"</p>"),F.html(T),O.initSelection()},k.prototype.setJSON=function(T){var O=g.default(T).children(),F=this.editor,I=F.$textElem;!O||I.replaceChildAll(O)},k.prototype.getJSON=function(){var T=this.editor,O=T.$textElem;return b.default(O)},k.prototype.text=function(T){var O=this.editor,F=O.$textElem;if(T==null){var I=F.text();return I=I.replace(/\u200b/gm,""),I}F.text("<p>"+T+"</p>"),O.initSelection()},k.prototype.append=function(T){var O=this.editor;(0,m.default)(T).call(T,"<")!==0&&(T="<p>"+T+"</p>"),this.html(this.html()+T),O.initSelection()},k.prototype._saveRange=function(){var T=this.editor,O=T.$textElem,F=A.default(document);function I(){T.selection.saveRange(),T.menus.changeActive()}O.on("keyup",I);function M(){I(),O.off("click",M)}O.on("click",M);function N(){I(),F.off("mouseup",N)}function B(){F.on("mouseup",N),O.off("mouseleave",B)}O.on("mousedown",function(){O.on("mouseleave",B)}),O.on("mouseup",function(L){O.off("mouseleave",B),(0,y.default)(function(){var U=T.selection,H=U.getRange();H!==null&&I()},0)})},k.prototype._bindEventHooks=function(){var T=this.editor,O=T.$textElem,F=this.eventHooks;O.on("click",function(M){var N=F.clickEvents;(0,u.default)(N).call(N,function(B){return B(M)})}),O.on("keyup",function(M){if(M.keyCode===13){var N=F.enterUpEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("keyup",function(M){var N=F.keyupEvents;(0,u.default)(N).call(N,function(B){return B(M)})}),O.on("keydown",function(M){var N=F.keydownEvents;(0,u.default)(N).call(N,function(B){return B(M)})}),O.on("keyup",function(M){if(!(M.keyCode!==8&&M.keyCode!==46)){var N=F.deleteUpEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("keydown",function(M){if(!(M.keyCode!==8&&M.keyCode!==46)){var N=F.deleteDownEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("paste",function(M){if(!E.UA.isIE()){M.preventDefault();var N=F.pasteEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("keydown",function(M){(T.isFocus||T.isCompatibleMode)&&(M.ctrlKey||M.metaKey)&&M.keyCode===90&&(M.preventDefault(),M.shiftKey?T.history.restore():T.history.revoke())}),O.on("keyup",function(M){if(M.keyCode===9){M.preventDefault();var N=F.tabUpEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("keydown",function(M){if(M.keyCode===9){M.preventDefault();var N=F.tabDownEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("scroll",E.throttle(function(M){var N=F.textScrollEvents;(0,u.default)(N).call(N,function(B){return B(M)})},100));function I(M){M.preventDefault()}A.default(document).on("dragleave",I).on("drop",I).on("dragenter",I).on("dragover",I),T.beforeDestroy(function(){A.default(document).off("dragleave",I).off("drop",I).off("dragenter",I).off("dragover",I)}),O.on("drop",function(M){M.preventDefault();var N=F.dropEvents;(0,u.default)(N).call(N,function(B){return B(M)})}),O.on("click",function(M){var N=null,B=M.target,L=A.default(B);if(L.getNodeName()==="A")N=L;else{var U=L.parentUntil("a");U!=null&&(N=U)}if(!!N){var H=F.linkClickEvents;(0,u.default)(H).call(H,function(R){return R(N)})}}),O.on("click",function(M){var N=null,B=M.target,L=A.default(B);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(M.stopPropagation(),N=L),!!N){var U=F.imgClickEvents;(0,u.default)(U).call(U,function(H){return H(N)})}}),O.on("click",function(M){var N=null,B=M.target,L=A.default(B);if(L.getNodeName()==="PRE")N=L;else{var U=L.parentUntil("pre");U!==null&&(N=U)}if(!!N){var H=F.codeClickEvents;(0,u.default)(H).call(H,function(R){return R(N)})}}),O.on("click",function(M){var N=null,B=M.target,L=A.default(B);if(L.getNodeName()==="HR"&&(N=L),!!N){T.selection.createRangeByElem(N),T.selection.restoreSelection();var U=F.splitLineEvents;(0,u.default)(U).call(U,function(H){return H(N)})}}),T.$toolbarElem.on("click",function(M){var N=F.toolbarClickEvents;(0,u.default)(N).call(N,function(B){return B(M)})}),T.$textContainerElem.on("mousedown",function(M){var N=M.target,B=A.default(N);if(B.hasClass("w-e-img-drag-rb")){var L=F.imgDragBarMouseDownEvents;(0,u.default)(L).call(L,function(U){return U()})}}),O.on("click",function(M){var N=null,B=M.target;if(N=A.default(B).parentUntilEditor("TABLE",T,B),!!N){var L=F.tableClickEvents;(0,u.default)(L).call(L,function(U){return U(N,M)})}}),O.on("keydown",function(M){if(M.keyCode===13){var N=F.enterDownEvents;(0,u.default)(N).call(N,function(B){return B(M)})}}),O.on("click",function(M){var N=null,B=M.target,L=A.default(B);if(L.getNodeName()==="VIDEO"&&(M.stopPropagation(),N=L),!!N){var U=F.videoClickEvents;(0,u.default)(U).call(U,function(H){return H(N)})}})},k}();o.default=x},function(r,o,i){var l=i(284);r.exports=l},function(r,o,i){var l=i(285),d=Array.prototype;r.exports=function(c){var u=c.find;return c===d||c instanceof Array&&u===d.find?l:u}},function(r,o,i){i(286);var l=i(15);r.exports=l("Array").find},function(r,o,i){var l=i(5),d=i(32).find,c=i(82),u=i(22),h="find",m=!0,y=u(h);h in[]&&Array(1)[h](function(){m=!1}),l({target:"Array",proto:!0,forced:m||!y},{find:function(A){return d(this,A,arguments.length>1?arguments[1]:void 0)}}),c(h)},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(288)),h=c.__importStar(i(289)),m=c.__importDefault(i(290)),y=c.__importDefault(i(291)),C=c.__importDefault(i(298));function A(w){var E=w.editor,b=w.eventHooks;u.default(E,b.enterUpEvents,b.enterDownEvents),h.default(E,b.deleteUpEvents,b.deleteDownEvents),h.cutToKeepP(E,b.keyupEvents),m.default(E,b.tabDownEvents),y.default(E,b.pasteEvents),C.default(E,b.imgClickEvents)}o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(7),m=u.__importDefault(i(3));function y(C,A,w){function E(_){var x,k=m.default(h.EMPTY_P);if(k.insertBefore(_),(0,c.default)(x=_.html()).call(x,"<img")>=0){k.remove();return}C.selection.createRangeByElem(k,!0,!0),C.selection.restoreSelection(),_.remove()}function b(){var _=C.$textElem,x=C.selection.getSelectionContainerElem(),k=x.parent();if(k.html()==="<code><br></code>"){E(k);return}if(x.getNodeName()==="FONT"&&x.text()===""&&x.attr("face")==="monospace"){E(k);return}if(!!k.equal(_)){var T=x.getNodeName();T==="P"&&x.attr("data-we-empty-p")===null||x.text()||E(x)}}A.push(b);function g(_){var x;C.selection.saveRange((x=getSelection())===null||x===void 0?void 0:x.getRangeAt(0));var k=C.selection.getSelectionContainerElem();k.id===C.textElemId&&(_.preventDefault(),C.cmd.do("insertHTML","<p><br></p>"))}w.push(g)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(28));(0,d.default)(o,"__esModule",{value:!0}),o.cutToKeepP=void 0;var h=i(2),m=i(7),y=h.__importDefault(i(3));function C(w,E,b){function g(){var x=w.$textElem,k=w.$textElem.html(),T=w.$textElem.text(),O=(0,c.default)(k).call(k),F=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',m.EMPTY_P];if(/^\s*$/.test(T)&&(!O||(0,u.default)(F).call(F,O))){x.html(m.EMPTY_P);var I=x.getNode();w.selection.createRangeByElems(I.childNodes[0],I.childNodes[0]);var M=w.selection.getSelectionContainerElem();w.selection.restoreSelection(),w.selection.moveCursor(M.getNode(),0)}}E.push(g);function _(x){var k,T=w.$textElem,O=(0,c.default)(k=T.html().toLowerCase()).call(k);if(O===m.EMPTY_P){x.preventDefault();return}}b.push(_)}function A(w,E){function b(g){var _;if(g.keyCode===88){var x=w.$textElem,k=(0,c.default)(_=x.html().toLowerCase()).call(_);if(!k||k==="<br>"){var T=y.default(m.EMPTY_P);x.html(" "),x.append(T),w.selection.createRangeByElem(T,!1,!0),w.selection.restoreSelection(),w.selection.moveCursor(T.getNode(),0)}}}E.push(b)}o.cutToKeepP=A,o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u,h){function m(){if(!!u.cmd.queryCommandSupported("insertHTML")){var y=u.selection.getSelectionContainerElem();if(!!y){var C=y.parent(),A=y.getNodeName(),w=C.getNodeName();A=="CODE"||w==="CODE"||w==="PRE"||/hljs/.test(w)?u.cmd.do("insertHTML",u.config.languageTab):u.cmd.do("insertHTML"," ")}}}h.push(m)}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var h=i(131),m=i(6),y=i(7);function C(g){var _,x=(0,c.default)(_=g.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(_),k=document.createElement("div");return k.innerHTML=x,k.innerHTML.replace(/<p><\/p>/gim,"")}function A(g){var _=g.replace(/<br>|<br\/>/gm,`
|
||
`).replace(/<[^>]+>/gm,"");return _}function w(g){var _;if(g==="")return!1;var x=document.createElement("div");return x.innerHTML=g,((_=x.firstChild)===null||_===void 0?void 0:_.nodeName)==="P"}function E(g){if(!(g!=null&&g.length))return!1;var _=g.elems[0];return _.nodeName==="P"&&_.innerHTML==="<br>"}function b(g,_){function x(k){var T=g.config,O=T.pasteFilterStyle,F=T.pasteIgnoreImg,I=T.pasteTextHandle,M=h.getPasteHtml(k,O,F),N=h.getPasteText(k);N=N.replace(/\n/gm,"<br>");var B=g.selection.getSelectionContainerElem();if(!!B){var L=B==null?void 0:B.getNodeName(),U=B==null?void 0:B.getNodeTop(g),H="";if(U.elems[0]&&(H=U==null?void 0:U.getNodeName()),L==="CODE"||H==="PRE"){I&&m.isFunction(I)&&(N=""+(I(N)||"")),g.cmd.do("insertHTML",A(N));return}if(y.urlRegex.test(N)&&O){I&&m.isFunction(I)&&(N=""+(I(N)||""));var R=N.replace(y.urlRegex,function(X){return'<a href="'+X+'" target="_blank">'+X+"</a>"}),z=g.selection.getRange(),$=document.createElement("div"),S=document.createDocumentFragment();if($.innerHTML=R,z==null)return;for(;$.childNodes.length;)S.append($.childNodes[0]);var J=S.querySelectorAll("a");(0,u.default)(J).call(J,function(X){X.innerText=X.href}),z.insertNode&&(z.deleteContents(),z.insertNode(S)),g.selection.clearWindowSelectionRange();return}if(!!M)try{I&&m.isFunction(I)&&(M=""+(I(M)||""));var Q=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(M);if(Q&&O)g.cmd.do("insertHTML",""+C(N));else{var G=C(M);if(w(G)){var ie=g.$textElem;if(g.cmd.do("insertHTML",G),ie.equal(B)){g.selection.createEmptyRange();return}E(U)&&U.remove()}else g.cmd.do("insertHTML",G)}}catch{I&&m.isFunction(I)&&(N=""+(I(N)||"")),g.cmd.do("insertHTML",""+C(N))}}}_.push(x)}o.default=b},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17)),u=l(i(4)),h=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),y=i(293),C=m.__importDefault(i(297));function A(_){var x=/<span>.*?<\/span>/gi,k=/<span>(.*?)<\/span>/;return _.replace(x,function(T){var O=T.match(k);return O==null?"":O[1]})}function w(_,x){var k;return _=(0,c.default)(k=_.toLowerCase()).call(k),!!(y.IGNORE_TAGS.has(_)||x&&_==="img")}function E(_,x){var k="";k="<"+_;var T=[];(0,u.default)(x).call(x,function(F){T.push(F.name+'="'+F.value+'"')}),T.length>0&&(k=k+" "+T.join(" "));var O=y.EMPTY_TAGS.has(_);return k=k+(O?"/":"")+">",k}function b(_){return"</"+_+">"}function g(_,x,k){x===void 0&&(x=!0),k===void 0&&(k=!1);var T=[],O="";function F(B){B=(0,c.default)(B).call(B),B&&(y.EMPTY_TAGS.has(B)||(O=B))}function I(){O=""}var M=new C.default;M.parse(_,{startElement:function(L,U){if(F(L),!w(L,k)){var H=y.NECESSARY_ATTRS.get(L)||[],R=[];(0,u.default)(U).call(U,function($){var S=$.name;if(S==="style"){x||R.push($);return}(0,h.default)(H).call(H,S)!==!1&&R.push($)});var z=E(L,R);T.push(z)}},characters:function(L){!L||w(O,k)||T.push(L)},endElement:function(L){if(!w(L,k)){var U=b(L);T.push(U),I()}},comment:function(L){F(L)}});var N=T.join("");return N=A(N),N}o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(132)),u=l(i(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 u.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(r,o,i){var l=i(295);r.exports=l},function(r,o,i){i(296),i(61),i(50),i(54);var l=i(9);r.exports=l.Set},function(r,o,i){var l=i(122),d=i(124);r.exports=l("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(r,o){function i(){}i.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 u,h,m,y=!1,C=this;d.length>0;)d.substring(0,4)=="<!--"?(m=d.indexOf("-->"),m!=-1?(this.contentHandler.comment(d.substring(4,m)),d=d.substring(m+3),y=!1):y=!0):d.substring(0,2)=="</"?this.endTagRe.test(d)?(u=RegExp.lastMatch,h=RegExp.rightContext,u.replace(this.endTagRe,function(){return C.parseEndTag.apply(C,arguments)}),d=h,y=!1):y=!0:d.charAt(0)=="<"&&(this.startTagRe.test(d)?(u=RegExp.lastMatch,h=RegExp.rightContext,u.replace(this.startTagRe,function(){return C.parseStartTag.apply(C,arguments)}),d=h,y=!1):y=!0),y&&(m=d.indexOf("<"),m==-1?(this.contentHandler.characters(d),d=""):(this.contentHandler.characters(d.substring(0,m)),d=d.substring(m))),y=!0},parseStartTag:function(d,c,u){var h=this.parseAttributes(c,u);this.contentHandler.startElement(c,h)},parseEndTag:function(d,c){this.contentHandler.endElement(c)},parseAttributes:function(d,c){var u=this,h=[];return c.replace(this.attrRe,function(m,y,C,A,w,E,b,g){h.push(u.parseAttribute(d,m,y,C,A,w,E,b,g))}),h},parseAttribute:function(d,c,u){var h="";arguments[7]?h=arguments[8]:arguments[5]?h=arguments[6]:arguments[3]&&(h=arguments[4]);var m=!h&&!arguments[3];return{name:u,value:m?null:h}}},r.exports=i},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u,h){function m(y){u.selection.createRangeByElem(y),u.selection.restoreSelection()}h.push(m)}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3));function y(C){var A=[],w=C.childNodes()||[];return(0,c.default)(w).call(w,function(E){var b,g=E.nodeType;if(g===3&&(b=E.textContent||"",b=h.replaceHtmlSymbol(b)),g===1){b={},b=b,b.tag=E.nodeName.toLowerCase();for(var _=[],x=E.attributes,k=x.length||0,T=0;T<k;T++){var O=x[T];_.push({name:O.name,value:O.value})}b.attrs=_,b.children=y(m.default(E))}b&&A.push(b)}),A}o.default=y},function(r,o,i){var l=i(0),d=l(i(92)),c=l(i(1)),u=l(i(4));(0,c.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3));function y(C,A){A===void 0&&(A=document.createElement("div"));var w=A;return(0,u.default)(C).call(C,function(E){var b;if(typeof E=="string"&&(b=document.createTextNode(E)),(0,d.default)(E)==="object"){var g;b=document.createElement(E.tag),(0,u.default)(g=E.attrs).call(g,function(_){m.default(b).attr(_.name,_.value)}),E.children&&E.children.length>0&&y(E.children,b.getRootNode())}b&&w.appendChild(b)}),m.default(w)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(89)),u=l(i(70)),h=l(i(28)),m=l(i(302)),y=l(i(4)),C=l(i(94)),A=l(i(133)),w=l(i(46)),E=l(i(57));(0,d.default)(o,"__esModule",{value:!0});var b=i(2),g=b.__importDefault(i(87)),_=b.__importDefault(i(314)),x=b.__importDefault(i(3)),k=function(){function T(O){this.editor=O,this.menuList=[],this.constructorList=_.default}return T.prototype.extend=function(O,F){!F||typeof F!="function"||(this.constructorList[O]=F)},T.prototype.init=function(){var O,F,I=this,M=this.editor.config,N=M.excludeMenus;(0,c.default)(N)===!1&&(N=[]),M.menus=(0,u.default)(O=M.menus).call(O,function(S){return(0,h.default)(N).call(N,S)===!1});var B=(0,m.default)(g.default.globalCustomMenuConstructorList);B=(0,u.default)(B).call(B,function(S){return(0,h.default)(N).call(N,S)}),(0,y.default)(B).call(B,function(S){delete g.default.globalCustomMenuConstructorList[S]}),(0,y.default)(F=M.menus).call(F,function(S){var J=I.constructorList[S];I._initMenuList(S,J)});for(var L=0,U=(0,C.default)(g.default.globalCustomMenuConstructorList);L<U.length;L++){var H=U[L],R=H[0],z=H[1],$=z;this._initMenuList(R,$)}this._addToToolbar(),M.showMenuTooltips&&this._bindMenuTooltips()},T.prototype._initMenuList=function(O,F){var I;if(!(F==null||typeof F!="function"))if((0,A.default)(I=this.menuList).call(I,function(N){return N.key===O}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+O);else{var M=new F(this.editor);M.key=O,this.menuList.push(M)}},T.prototype._bindMenuTooltips=function(){var O=this.editor,F=O.$toolbarElem,I=O.config,M=I.menuTooltipPosition,N=x.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+M+`">
|
||
<div class="w-e-menu-tooltip-item-wrapper">
|
||
<div></div>
|
||
</div>
|
||
</div>`);N.css("visibility","hidden"),F.append(N),N.css("z-index",O.zIndex.get("tooltip"));var B=0;function L(){B&&clearTimeout(B)}function U(){L(),N.css("visibility","hidden")}F.on("mouseover",function(H){var R=H.target,z=x.default(R),$,S;if(z.isContain(F)){U();return}if(z.parentUntil(".w-e-droplist")!=null)U();else if(z.attr("data-title"))$=z.attr("data-title"),S=z;else{var J=z.parentUntil(".w-e-menu");J!=null&&($=J.attr("data-title"),S=J)}if($&&S){L();var Q=S.getOffsetData();N.text(O.i18next.t("menus.title."+$));var G=N.getOffsetData(),ie=Q.left+Q.width/2-G.width/2;N.css("left",ie+"px"),M==="up"?N.css("top",Q.top-G.height-8+"px"):M==="down"&&N.css("top",Q.top+Q.height+8+"px"),B=(0,w.default)(function(){N.css("visibility","visible")},200)}else U()}).on("mouseleave",function(){U()})},T.prototype._addToToolbar=function(){var O,F=this.editor,I=F.$toolbarElem;(0,y.default)(O=this.menuList).call(O,function(M){var N=M.$elem;N&&I.append(N)})},T.prototype.menuFind=function(O){for(var F=this.menuList,I=0,M=F.length;I<M;I++)if(F[I].key===O)return F[I];return F[0]},T.prototype.changeActive=function(){var O;(0,y.default)(O=this.menuList).call(O,function(F){var I;(0,w.default)((0,E.default)(I=F.tryChangeActive).call(I,F),100)})},T}();o.default=k},function(r,o,i){r.exports=i(303)},function(r,o,i){var l=i(304);r.exports=l},function(r,o,i){i(305);var l=i(9);r.exports=l.Object.keys},function(r,o,i){var l=i(5),d=i(31),c=i(52),u=i(11),h=u(function(){c(1)});l({target:"Object",stat:!0,forced:h},{keys:function(y){return c(d(y))}})},function(r,o,i){var l=i(307);r.exports=l},function(r,o,i){i(308);var l=i(9);r.exports=l.Object.entries},function(r,o,i){var l=i(5),d=i(309).entries;l({target:"Object",stat:!0},{entries:function(u){return d(u)}})},function(r,o,i){var l=i(14),d=i(52),c=i(30),u=i(59).f,h=function(y){return function(C){for(var A=c(C),w=d(A),E=w.length,b=0,g=[],_;E>b;)_=w[b++],(!l||u.call(A,_))&&g.push(y?[_,A[_]]:A[_]);return g}};r.exports={entries:h(!0),values:h(!1)}},function(r,o,i){var l=i(311);r.exports=l},function(r,o,i){var l=i(312),d=Array.prototype;r.exports=function(c){var u=c.some;return c===d||c instanceof Array&&u===d.some?l:u}},function(r,o,i){i(313);var l=i(15);r.exports=l("Array").some},function(r,o,i){var l=i(5),d=i(32).some,c=i(67),u=i(22),h=c("some"),m=u("some");l({target:"Array",proto:!0,forced:!h||!m},{some:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(315)),h=c.__importDefault(i(316)),m=c.__importDefault(i(321)),y=c.__importDefault(i(326)),C=c.__importDefault(i(327)),A=c.__importDefault(i(328)),w=c.__importDefault(i(329)),E=c.__importDefault(i(331)),b=c.__importDefault(i(333)),g=c.__importDefault(i(334)),_=c.__importDefault(i(337)),x=c.__importDefault(i(338)),k=c.__importDefault(i(339)),T=c.__importDefault(i(350)),O=c.__importDefault(i(365)),F=c.__importDefault(i(369)),I=c.__importDefault(i(137)),M=c.__importDefault(i(378)),N=c.__importDefault(i(380)),B=c.__importDefault(i(381)),L=c.__importDefault(i(382)),U=c.__importDefault(i(401)),H=c.__importDefault(i(406)),R=c.__importDefault(i(409));o.default={bold:u.default,head:h.default,italic:y.default,link:m.default,underline:C.default,strikeThrough:A.default,fontName:w.default,fontSize:E.default,justify:b.default,quote:g.default,backColor:_.default,foreColor:x.default,video:k.default,image:T.default,indent:O.default,emoticon:F.default,list:I.default,lineHeight:M.default,undo:N.default,redo:B.default,table:L.default,code:U.default,splitLine:H.default,todo:R.default}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
|
||
<i class="w-e-icon-bold"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor,w=A.selection.isSelectionEmpty();w&&A.selection.createEmptyRange(),A.cmd.do("bold"),w&&(A.selection.collapseRange(),A.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("bold")?this.active():this.unActive()},C}(u.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(27)),u=l(i(29)),h=l(i(4)),m=l(i(317)),y=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var C=i(2),A=C.__importDefault(i(24)),w=C.__importDefault(i(3)),E=i(6),b=i(7),g=function(_){C.__extends(x,_);function x(k){var T=this,O=w.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),F={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:w.default("<h1>H1</h1>"),value:"<h1>"},{$elem:w.default("<h2>H2</h2>"),value:"<h2>"},{$elem:w.default("<h3>H3</h3>"),value:"<h3>"},{$elem:w.default("<h4>H4</h4>"),value:"<h4>"},{$elem:w.default("<h5>H5</h5>"),value:"<h5>"},{$elem:w.default("<p>"+k.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(N){T.command(N)}};T=_.call(this,O,k,F)||this;var I=k.config.onCatalogChange;return I&&(T.oldCatalogs=[],T.addListenerCatalog(),T.getCatalogs()),T}return x.prototype.command=function(k){var T=this.editor,O=T.selection.getSelectionContainerElem();if(O&&T.$textElem.equal(O))this.setMultilineHead(k);else{var F;if((0,c.default)(F=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(F,w.default(O).getNodeName())>-1)return;T.cmd.do("formatBlock",k)}k!=="<p>"&&this.addUidForSelectionElem()},x.prototype.addUidForSelectionElem=function(){var k=this.editor,T=k.selection.getSelectionContainerElem(),O=E.getRandomCode();w.default(T).attr("id",O)},x.prototype.addListenerCatalog=function(){var k=this,T=this.editor;T.txt.eventHooks.changeEvents.push(function(){k.getCatalogs()})},x.prototype.getCatalogs=function(){var k=this.editor,T=this.editor.$textElem,O=k.config.onCatalogChange,F=(0,u.default)(T).call(T,"h1,h2,h3,h4,h5"),I=[];(0,h.default)(F).call(F,function(M,N){var B=w.default(M),L=B.attr("id"),U=B.getNodeName(),H=B.text();L||(L=E.getRandomCode(),B.attr("id",L)),H&&I.push({tag:U,id:L,text:H})}),(0,m.default)(this.oldCatalogs)!==(0,m.default)(I)&&(this.oldCatalogs=I,O&&O(I))},x.prototype.setMultilineHead=function(k){var T=this,O,F,I=this.editor,M=I.selection,N=(O=M.getSelectionContainerElem())===null||O===void 0?void 0:O.elems[0],B=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=w.default(M.getSelectionStartElem()),U=w.default(M.getSelectionEndElem());U.elems[0].outerHTML===w.default(b.EMPTY_P).elems[0].outerHTML&&!U.elems[0].nextSibling&&(U=U.prev());var H=[];H.push(L.getNodeTop(I));var R=[],z=(F=M.getRange())===null||F===void 0?void 0:F.commonAncestorContainer.childNodes;z==null||(0,h.default)(z).call(z,function(J,Q){J===H[0].getNode()&&R.push(Q),J===U.getNodeTop(I).getNode()&&R.push(Q)});for(var $=0;H[$].getNode()!==U.getNodeTop(I).getNode();){if(!H[$].elems[0])return;var S=w.default(H[$].next().getNode());H.push(S),$++}H==null||(0,h.default)(H).call(H,function(J,Q){if(!T.hasTag(J,B)){var G=w.default(k),ie=J.parent().getNode();G.html(""+J.html()),ie.insertBefore(G.getNode(),J.getNode()),J.remove()}}),M.createRangeByElems(N.children[R[0]],N.children[R[1]])},x.prototype.hasTag=function(k,T){var O=this,F;if(!k)return!1;if((0,y.default)(T).call(T,k==null?void 0:k.getNodeName()))return!0;var I=!1;return(F=k.children())===null||F===void 0||(0,h.default)(F).call(F,function(M){I=O.hasTag(w.default(M),T)}),I},x.prototype.tryChangeActive=function(){var k=this.editor,T=/^h/i,O=k.cmd.queryCommandValue("formatBlock");T.test(O)?this.active():this.unActive()},x}(A.default);o.default=g},function(r,o,i){r.exports=i(318)},function(r,o,i){var l=i(319);r.exports=l},function(r,o,i){i(320);var l=i(9);l.JSON||(l.JSON={stringify:JSON.stringify}),r.exports=function(c,u,h){return l.JSON.stringify.apply(null,arguments)}},function(r,o,i){var l=i(5),d=i(36),c=i(11),u=d("JSON","stringify"),h=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,C=function(E,b,g){var _=g.charAt(b-1),x=g.charAt(b+1);return m.test(E)&&!y.test(x)||y.test(E)&&!m.test(_)?"\\u"+E.charCodeAt(0).toString(16):E},A=c(function(){return u("\uDF06\uD834")!=='"\\udf06\\ud834"'||u("\uDEAD")!=='"\\udead"'});u&&l({target:"JSON",stat:!0,forced:A},{stringify:function(E,b,g){var _=u.apply(null,arguments);return typeof _=="string"?_.replace(h,C):_}})},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(38)),m=u.__importDefault(i(3)),y=u.__importDefault(i(322)),C=u.__importStar(i(96)),A=u.__importDefault(i(33)),w=u.__importDefault(i(324)),E=i(7),b=function(g){u.__extends(_,g);function _(x){var k=this,T=m.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return k=g.call(this,T,x)||this,w.default(x),k}return _.prototype.clickHandler=function(){var x=this.editor,k,T=x.selection.getSelectionContainerElem(),O=x.$textElem,F=O.html(),I=(0,c.default)(F).call(F);if(I===E.EMPTY_P){var M=O.children();x.selection.createRangeByElem(M,!0,!0),T=x.selection.getSelectionContainerElem()}if(!(T&&x.$textElem.equal(T)))if(this.isActive){var N="",B="";if(k=x.selection.getSelectionContainerElem(),!k)return;if(k.getNodeName()!=="A"){var L=C.getParentNodeA(k);k=m.default(L)}N=k.elems[0].innerText,B=k.attr("href"),this.createPanel(N,B)}else x.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(x.selection.getSelectionText(),"")},_.prototype.createPanel=function(x,k){var T=y.default(this.editor,x,k),O=new A.default(this,T);O.create()},_.prototype.tryChangeActive=function(){var x=this.editor;C.default(x)?this.active():this.unActive()},_}(h.default);o.default=b},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28)),u=l(i(17)),h=l(i(29));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),y=i(6),C=m.__importDefault(i(3)),A=m.__importStar(i(96)),w=i(323);function E(b,g,_){var x=y.getRandom("input-link"),k=y.getRandom("input-text"),T=y.getRandom("btn-ok"),O=y.getRandom("btn-del"),F=A.default(b)?"inline-block":"none",I;function M(){if(!!A.default(b)){var H=b.selection.getSelectionContainerElem();!H||(b.selection.createRangeByElem(H),b.selection.restoreSelection(),I=H)}}function N(H,R){var z=H.replace(/</g,"<").replace(/>/g,">"),$=C.default('<a target="_blank">'+z+"</a>"),S=$.elems[0];S.innerText=H,S.href=R,A.default(b)&&M(),b.cmd.do("insertElem",$)}function B(){if(!!A.default(b))if(M(),I.getNodeName()==="A"){var H,R=I.elems[0],z=R.parentElement;z&&(0,c.default)(H=A.EXTRA_TAG).call(H,z.nodeName)?z.innerHTML=R.innerHTML:b.cmd.do("insertHTML","<span>"+R.innerHTML+"</span>")}else{var $=A.getParentNodeA(I),S=$.innerHTML;b.cmd.do("insertHTML","<span>"+S+"</span>")}}function L(H,R){var z=b.config.linkCheck(H,R);if(z!==void 0){if(z===!0)return!0;b.config.customAlert(z,"warning")}return!1}var U={width:300,height:0,tabs:[{title:b.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
|
||
<input
|
||
id="`+k+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+b.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
|
||
</td>
|
||
<input
|
||
id="`+x+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+b.i18next.t("\u5982")+` https://..."/>
|
||
</td>
|
||
<div class="w-e-button-container">
|
||
<button type="button" id="`+T+`" class="right">
|
||
`+b.i18next.t("\u63D2\u5165")+`
|
||
</button>
|
||
<button type="button" id="`+O+'" class="gray right" style="display:'+F+`">
|
||
`+b.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
|
||
</button>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var R,z,$,S,J,Q=b.selection.getSelectionContainerElem(),G=Q==null?void 0:Q.elems[0];b.selection.restoreSelection();var ie=b.selection.getSelectionRangeTopNodes()[0].getNode(),X=window.getSelection(),le=C.default("#"+x),be=C.default("#"+k),ce=(0,u.default)(R=le.val()).call(R),de=(0,u.default)(z=be.val()).call(z),pe="";X&&!(X!=null&&X.isCollapsed)&&(pe=(S=w.insertHtml(X,ie))===null||S===void 0?void 0:(0,u.default)(S).call(S));var se=pe==null?void 0:pe.replace(/<.*?>/g,""),ge=(J=se==null?void 0:se.length)!==null&&J!==void 0?J:0;if(ge<=de.length){var ye=de.substring(0,ge),D=de.substring(ge);se===ye&&(de=se+D)}if(!!ce&&(de||(de=ce),!!L(de,ce))){if((G==null?void 0:G.nodeName)==="A")return G.setAttribute("href",ce),G.innerText=de,!0;if((G==null?void 0:G.nodeName)!=="A"&&(0,c.default)($=A.EXTRA_TAG).call($,G.nodeName)){var W=A.getParentNodeA(Q);if(W)return W.setAttribute("href",ce),G.innerText=de,!0}return N(de,ce),!0}},bindEnter:!0},{selector:"#"+O,type:"click",fn:function(){return B(),!0}}]}],setLinkValue:function(R,z){var $="",S="",J;z==="text"&&($="#"+k,S=g),z==="link"&&($="#"+x,S=_),J=(0,h.default)(R).call(R,$).elems[0],J.value=S}};return U}o.default=E},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.insertHtml=o.createPartHtml=o.makeHtmlString=o.getTopNode=void 0;function u(w,E){var b=w,g=w;do{if(b.textContent===E)break;g=b,b.parentNode&&(b=b==null?void 0:b.parentNode)}while((b==null?void 0:b.nodeName)!=="P");return g}o.getTopNode=u;function h(w,E){var b=w.nodeName,g="";if(w.nodeType===3||/^(h|H)[1-6]$/.test(b))return E;if(w.nodeType===1){var _=w.getAttribute("style"),x=w.getAttribute("face"),k=w.getAttribute("color");_&&(g=g+(' style="'+_+'"')),x&&(g=g+(' face="'+x+'"')),k&&(g=g+(' color="'+k+'"'))}return b=b.toLowerCase(),"<"+b+g+">"+E+"</"+b+">"}o.makeHtmlString=h;function m(w,E,b,g){var _,x=(_=E.textContent)===null||_===void 0?void 0:_.substring(b,g),k=E,T="";do T=h(k,x!=null?x:""),x=T,k=k==null?void 0:k.parentElement;while(k&&k.textContent!==w);return T}o.createPartHtml=m;function y(w,E){var b,g,_,x,k,T=w.anchorNode,O=w.focusNode,F=w.anchorOffset,I=w.focusOffset,M=(b=E.textContent)!==null&&b!==void 0?b:"",N=C(E),B="",L="",U="",H="",R=T,z=O,$=T;if(T!=null&&T.isEqualNode(O!=null?O:null)){var S=m(M,T,F,I);return S=A(N,S),S}for(T&&(L=m(M,T,F!=null?F:0)),O&&(H=m(M,O,0,I)),T&&(R=u(T,M)),O&&(z=u(O,M)),$=(g=R==null?void 0:R.nextSibling)!==null&&g!==void 0?g:T;!($!=null&&$.isEqualNode(z!=null?z:null));){var J=$==null?void 0:$.nodeName;if(J==="#text")U=U+($==null?void 0:$.textContent);else{var Q=(x=(_=$==null?void 0:$.firstChild)===null||_===void 0?void 0:_.parentElement)===null||x===void 0?void 0:x.innerHTML;$&&(U=U+h($,Q!=null?Q:""))}var G=(k=$==null?void 0:$.nextSibling)!==null&&k!==void 0?k:$;if(G===$)break;$=G}return B=""+L+U+H,B=A(N,B),B}o.insertHtml=y;function C(w){for(var E,b=(E=w.textContent)!==null&&E!==void 0?E:"",g=[];(w==null?void 0:w.textContent)===b;)w.nodeName!=="P"&&w.nodeName!=="TABLE"&&g.push(w),w=w.childNodes[0];return g}function A(w,E){return(0,c.default)(w).call(w,function(b){E=h(b,E)}),E}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(325));function h(m){u.default(m)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(39)),y=i(96);function C(w){var E;function b(_){var x=[{$elem:h.default("<span>"+w.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(T,O){var F=O.attr("href");return window.open(F,"_target"),!0}},{$elem:h.default("<span>"+w.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(T,O){var F,I;T.selection.createRangeByElem(O),T.selection.restoreSelection();var M=O.childNodes();if((M==null?void 0:M.getNodeName())==="IMG"){var N=(I=(F=T.selection.getSelectionContainerElem())===null||F===void 0?void 0:F.children())===null||I===void 0?void 0:I.elems[0].children[0];T.cmd.do("insertHTML",`<img
|
||
src=`+(N==null?void 0:N.getAttribute("src"))+`
|
||
style=`+(N==null?void 0:N.getAttribute("style"))+">")}else{var B,L=O.elems[0],U=L.innerHTML,H=L.parentElement;H&&(0,c.default)(B=y.EXTRA_TAG).call(B,H.nodeName)?H.innerHTML=U:T.cmd.do("insertHTML","<span>"+U+"</span>")}return!0}}];E=new m.default(w,_,x),E.create()}function g(){E&&(E.remove(),E=null)}return{showLinkTooltip:b,hideLinkTooltip:g}}function A(w){var E=C(w),b=E.showLinkTooltip,g=E.hideLinkTooltip;w.txt.eventHooks.linkClickEvents.push(b),w.txt.eventHooks.clickEvents.push(g),w.txt.eventHooks.keyupEvents.push(g),w.txt.eventHooks.toolbarClickEvents.push(g),w.txt.eventHooks.menuClickEvents.push(g),w.txt.eventHooks.textScrollEvents.push(g)}o.default=A},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
|
||
<i class="w-e-icon-italic"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor,w=A.selection.isSelectionEmpty();w&&A.selection.createEmptyRange(),A.cmd.do("italic"),w&&(A.selection.collapseRange(),A.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("italic")?this.active():this.unActive()},C}(u.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
|
||
<i class="w-e-icon-underline"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor,w=A.selection.isSelectionEmpty();w&&A.selection.createEmptyRange(),A.cmd.do("underline"),w&&(A.selection.collapseRange(),A.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("underline")?this.active():this.unActive()},C}(u.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=h.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
|
||
<i class="w-e-icon-strikethrough"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor,w=A.selection.isSelectionEmpty();w&&A.selection.createEmptyRange(),A.cmd.do("strikeThrough"),w&&(A.selection.collapseRange(),A.selection.restoreSelection())},C.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},C}(u.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),h=c.__importDefault(i(3)),m=c.__importDefault(i(330)),y=function(C){c.__extends(A,C);function A(w){var E=this,b=h.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
|
||
<i class="w-e-icon-font"></i>
|
||
</div>`),g=new m.default(w.config.fontNames),_={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,b,w,_)||this,E}return A.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(_!=null){var x=(_==null?void 0:_.nodeName.toLowerCase())!=="p",k=(_==null?void 0:_.getAttribute("face"))===w;if(g){if(x&&!k){var T=b.selection.getSelectionRangeTopNodes();b.selection.createRangeByElem(T[0]),b.selection.moveCursor(T[0].elems[0])}b.selection.setRangeToElem(_),b.selection.createEmptyRange()}b.cmd.do("fontName",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(u.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=function(){function y(C){var A=this;this.itemList=[],(0,c.default)(C).call(C,function(w){var E=typeof w=="string"?w:w.value,b=typeof w=="string"?w:w.name;A.itemList.push({$elem:h.default(`<p style="font-family:'`+E+`'">`+b+"</p>"),value:b})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(24)),h=c.__importDefault(i(3)),m=c.__importDefault(i(332)),y=function(C){c.__extends(A,C);function A(w){var E=this,b=h.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
|
||
<i class="w-e-icon-text-heigh"></i>
|
||
</div>`),g=new m.default(w.config.fontSizes),_={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:g.getItemList(),clickHandler:function(k){E.command(k)}};return E=C.call(this,b,w,_)||this,E}return A.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];_!=null&&(b.cmd.do("fontSize",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection()))},A.prototype.tryChangeActive=function(){},A}(u.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=function(){function m(y){this.itemList=[];for(var C in y){var A=y[C];this.itemList.push({$elem:u.default('<p style="font-size:'+C+'">'+A.name+"</p>"),value:A.value})}}return m.prototype.getItemList=function(){return this.itemList},m}();o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(24)),y=h.__importDefault(i(3)),C=["LI"],A=["BLOCKQUOTE"],w=function(E){h.__extends(b,E);function b(g){var _=this,x=y.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),k={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem: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(O){_.command(O)}};return _=E.call(this,x,g,k)||this,_}return b.prototype.command=function(g){var _=this.editor,x=_.selection,k=x.getSelectionContainerElem();x.saveRange();var T=_.selection.getSelectionRangeTopNodes();if(k!=null&&k.length)if(this.isSpecialNode(k,T[0])||this.isSpecialTopNode(T[0])){var O=this.getSpecialNodeUntilTop(k,T[0]);if(O==null)return;y.default(O).css("text-align",g)}else(0,c.default)(T).call(T,function(F){F.css("text-align",g)});x.restoreSelection()},b.prototype.getSpecialNodeUntilTop=function(g,_){for(var x=g.elems[0],k=_.elems[0];x!=null;){if((0,u.default)(C).call(C,x==null?void 0:x.nodeName)!==-1||x.parentNode===k)return x;x=x.parentNode}return x},b.prototype.isSpecialNode=function(g,_){var x=this.getSpecialNodeUntilTop(g,_);return x==null?!1:(0,u.default)(C).call(C,x.nodeName)!==-1},b.prototype.isSpecialTopNode=function(g){var _;return g==null?!1:(0,u.default)(A).call(A,(_=g.elems[0])===null||_===void 0?void 0:_.nodeName)!==-1},b.prototype.tryChangeActive=function(){},b}(m.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(23)),y=u.__importDefault(i(335)),C=u.__importDefault(i(336)),A=i(7),w=function(E){u.__extends(b,E);function b(g){var _=this,x=h.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
|
||
<i class="w-e-icon-quotes-left"></i>
|
||
</div>`);return _=E.call(this,x,g)||this,y.default(g),_}return b.prototype.clickHandler=function(){var g,_,x=this.editor,k=x.selection.isSelectionEmpty(),T=x.selection.getSelectionRangeTopNodes(),O=T[T.length-1],F=this.getTopNodeName();if(F==="BLOCKQUOTE"){var I=h.default(O.childNodes()),M=I.length,N=O;(0,c.default)(I).call(I,function(H){var R=h.default(H);R.insertAfter(N),N=R}),O.remove(),x.selection.moveCursor(I.elems[M-1]),this.tryChangeActive()}else{var B=C.default(T);if(x.$textElem.equal(O)){var L=(g=x.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0];x.selection.createRangeByElems(L.children[0],L.children[0]),T=x.selection.getSelectionRangeTopNodes(),B=C.default(T),O.append(B)}else B.insertAfter(O);this.delSelectNode(T);var U=(_=B.childNodes())===null||_===void 0?void 0:_.last().getNode();if(U==null)return;U.textContent?x.selection.moveCursor(U):x.selection.moveCursor(U,0),this.tryChangeActive(),h.default(A.EMPTY_P).insertAfter(B);return}k&&(x.selection.collapseRange(),x.selection.restoreSelection())},b.prototype.tryChangeActive=function(){var g,_=this.editor,x=(g=_.selection.getSelectionRangeTopNodes()[0])===null||g===void 0?void 0:g.getNodeName();x==="BLOCKQUOTE"?this.active():this.unActive()},b.prototype.getTopNodeName=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes()[0],x=_==null?void 0:_.getNodeName();return x},b.prototype.delSelectNode=function(g){(0,c.default)(g).call(g,function(_){_.remove()})},b}(m.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3));function m(y){function C(A){var w,E=y.selection.getSelectionContainerElem(),b=y.selection.getSelectionRangeTopNodes()[0];if((b==null?void 0:b.getNodeName())==="BLOCKQUOTE"){if(E.getNodeName()==="BLOCKQUOTE"){var g=(w=E.childNodes())===null||w===void 0?void 0:w.getNode();y.selection.moveCursor(g)}if(E.text()===""){A.preventDefault(),E.remove();var _=h.default(u.EMPTY_P);_.insertAfter(b),y.selection.moveCursor(_.getNode(),0)}b.text()===""&&b.remove()}}y.txt.eventHooks.enterDownEvents.push(C)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3));function m(y){var C=h.default("<blockquote></blockquote>");return(0,c.default)(y).call(y,function(A){C.append(A.clone(!0))}),C}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(24)),m=u.__importDefault(i(3)),y=i(6),C=function(A){u.__extends(w,A);function w(E){var b,g=this,_=m.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
|
||
<i class="w-e-icon-paint-brush"></i>
|
||
</div>`),x={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(b=E.config.colors).call(b,function(k){return{$elem:m.default('<i style="color:'+k+';" class="w-e-icon-paint-brush"></i>'),value:k}}),clickHandler:function(T){g.command(T)}};return g=A.call(this,_,E,x)||this,g}return w.prototype.command=function(E){var b,g=this.editor,_=g.selection.isSelectionEmpty(),x=(b=g.selection.getSelectionContainerElem())===null||b===void 0?void 0:b.elems[0];if(x!=null){var k=(x==null?void 0:x.nodeName.toLowerCase())!=="p",T=x==null?void 0:x.style.backgroundColor,O=y.hexToRgb(E)===T;if(_){if(k&&!O){var F=g.selection.getSelectionRangeTopNodes();g.selection.createRangeByElem(F[0]),g.selection.moveCursor(F[0].elems[0])}g.selection.createEmptyRange()}g.cmd.do("backColor",E),_&&(g.selection.collapseRange(),g.selection.restoreSelection())}},w.prototype.tryChangeActive=function(){},w}(h.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(24)),m=u.__importDefault(i(3)),y=function(C){u.__extends(A,C);function A(w){var E,b=this,g=m.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
|
||
<i class="w-e-icon-pencil2"></i>
|
||
</div>`),_={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(E=w.config.colors).call(E,function(x){return{$elem:m.default('<i style="color:'+x+';" class="w-e-icon-pencil2"></i>'),value:x}}),clickHandler:function(k){b.command(k)}};return b=C.call(this,g,w,_)||this,b}return A.prototype.command=function(w){var E,b=this.editor,g=b.selection.isSelectionEmpty(),_=(E=b.selection.getSelectionContainerElem())===null||E===void 0?void 0:E.elems[0];if(_!=null){var x=b.selection.getSelectionText();if(_.nodeName==="A"&&_.textContent===x){var k=m.default("<span>​</span>").getNode();_.appendChild(k)}b.cmd.do("foreColor",w),g&&(b.selection.collapseRange(),b.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(h.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(33)),m=c.__importDefault(i(38)),y=c.__importDefault(i(340)),C=c.__importDefault(i(346)),A=function(w){c.__extends(E,w);function E(b){var g=this,_=u.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
|
||
<i class="w-e-icon-play"></i>
|
||
</div>`);return g=w.call(this,_,b)||this,C.default(b),g}return E.prototype.clickHandler=function(){this.createPanel("")},E.prototype.createPanel=function(b){var g=y.default(this.editor,b),_=new h.default(this,g);_.create()},E.prototype.tryChangeActive=function(){},E}(m.default);o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3)),y=u.__importDefault(i(341)),C=i(7);function A(w,E){var b=w.config,g=new y.default(w),_=h.getRandom("input-iframe"),x=h.getRandom("btn-ok"),k=h.getRandom("input-upload"),T=h.getRandom("btn-local-ok");function O(N){w.cmd.do("insertHTML",N+C.EMPTY_P),w.config.onlineVideoCallback(N)}function F(N){var B=w.config.onlineVideoCheck(N);return B===!0?!0:(typeof B=="string"&&w.config.customAlert(B,"error"),!1)}var I=[{title:w.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
|
||
<div id="`+T+`" class="w-e-up-btn">
|
||
<i class="w-e-icon-upload2"></i>
|
||
</div>
|
||
<div style="display:none;">
|
||
<input id="`+k+`" type="file" accept="video/*"/>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var B=m.default("#"+k),L=B.elems[0];if(L)L.click();else return!0}},{selector:"#"+k,type:"change",fn:function(){var B=m.default("#"+k),L=B.elems[0];if(!L)return!0;var U=L.files;return U.length&&g.uploadVideo(U),!0}}]},{title:w.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
|
||
<input
|
||
id="`+_+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+w.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
|
||
</td>
|
||
<div class="w-e-button-container">
|
||
<button type="button" id="`+x+`" class="right">
|
||
`+w.i18next.t("\u63D2\u5165")+`
|
||
</button>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+x,type:"click",fn:function(){var B,L=m.default("#"+_),U=(0,c.default)(B=L.val()).call(B);if(!!U&&!!F(U))return O(U),!0},bindEnter:!0}]}],M={width:300,height:0,tabs:[]};return window.FileReader&&(b.uploadVideoServer||b.customUploadVideo)&&M.tabs.push(I[0]),b.showLinkVideo&&M.tabs.push(I[1]),M}o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(133)),u=l(i(57)),h=l(i(4)),m=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var y=i(2),C=i(6),A=y.__importDefault(i(135)),w=y.__importDefault(i(136)),E=i(7),b=i(6),g=function(){function _(x){this.editor=x}return _.prototype.uploadVideo=function(x){var k=this;if(!!x.length){var T=this.editor,O=T.config,F="validate.",I=function(se){return T.i18next.t(F+se)},M=O.uploadVideoServer,N=O.uploadVideoMaxSize,B=N/1024,L=O.uploadVideoName,U=O.uploadVideoParams,H=O.uploadVideoParamsWithUrl,R=O.uploadVideoHeaders,z=O.uploadVideoHooks,$=O.uploadVideoTimeout,S=O.withVideoCredentials,J=O.customUploadVideo,Q=O.uploadVideoAccept,G=[],ie=[];if(C.arrForEach(x,function(pe){var se=pe.name,ge=pe.size/1024/1024;if(!(!se||!ge)){if(!(Q instanceof Array)){ie.push("\u3010"+Q+"\u3011"+I("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(Q).call(Q,function(ye){return ye===se.split(".")[se.split(".").length-1]})){ie.push("\u3010"+se+"\u3011"+I("\u4E0D\u662F\u89C6\u9891"));return}if(B<ge){ie.push("\u3010"+se+"\u3011"+I("\u5927\u4E8E")+" "+B+"M");return}G.push(pe)}}),ie.length){O.customAlert(I("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
|
||
`+ie.join(`
|
||
`),"warning");return}if(G.length===0){O.customAlert(I("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(J&&typeof J=="function"){var X;J(G,(0,u.default)(X=this.insertVideo).call(X,this));return}var le=new FormData;if((0,h.default)(G).call(G,function(pe,se){var ge=L||pe.name;G.length>1&&(ge=ge+(se+1)),le.append(ge,pe)}),M){var be=M.split("#");M=be[0];var ce=be[1]||"";(0,h.default)(C).call(C,U,function(pe,se){H&&((0,m.default)(M).call(M,"?")>0?M+="&":M+="?",M=M+pe+"="+se),le.append(pe,se)}),ce&&(M+="#"+ce);var de=A.default(M,{timeout:$,formData:le,headers:R,withCredentials:!!S,beforeSend:function(se){if(z.before)return z.before(se,T,G)},onTimeout:function(se){O.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),z.timeout&&z.timeout(se,T)},onProgress:function(se,ge){var ye=new w.default(T);ge.lengthComputable&&(se=ge.loaded/ge.total,ye.show(se))},onError:function(se){O.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",I("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+I("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+se.status),z.error&&z.error(se,T)},onFail:function(se,ge){O.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+": ")+ge),z.fail&&z.fail(se,T,ge)},onSuccess:function(se,ge){if(z.customInsert){var ye;z.customInsert((0,u.default)(ye=k.insertVideo).call(ye,k),ge,T);return}if(ge.errno!="0"){O.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",I("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+I("\u8FD4\u56DE\u7ED3\u679C")+" errno="+ge.errno),z.fail&&z.fail(se,T,ge);return}var D=ge.data;k.insertVideo(D.url),z.success&&z.success(se,T,ge)}});typeof de=="string"&&O.customAlert(de,"error")}}},_.prototype.insertVideo=function(x){var k=this.editor,T=k.config,O="validate.",F=function(N,B){return B===void 0&&(B=O),k.i18next.t(B+N)};if(!T.customInsertVideo)b.UA.isFirefox?k.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+x+'" controls="controls" style="max-width:100%"></video></p><p>​</p>'):k.cmd.do("insertHTML",'<video src="'+x+'" controls="controls" style="max-width:100%"></video>'+E.EMPTY_P);else{T.customInsertVideo(x);return}var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){T.customAlert(F("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+F("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+F("\u89C6\u9891\u94FE\u63A5")+' "'+x+'"\uFF0C'+F("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=x},_}();o.default=g},function(r,o,i){r.exports=i(343)},function(r,o,i){var l=i(344);r.exports=l},function(r,o,i){i(345);var l=i(9);r.exports=l.Date.now},function(r,o,i){var l=i(5);l({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(347)),h=c.__importDefault(i(349));function m(y){u.default(y),h.default(y)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39)),m=c.__importDefault(i(348));function y(A){var w,E=function(x,k){return k===void 0&&(k=""),A.i18next.t(k+x)};function b(_){var x=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(T,O){return O.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(T,O){return O.attr("width","100%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(T,O){return O.attr("width","50%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(T,O){return O.attr("width","30%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(T,O){return O.removeAttr("width"),O.removeAttr("height"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(T,O){return m.default(O,"left"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(T,O){return m.default(O,"center"),!0}},{$elem:u.default("<span>"+E("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(T,O){return m.default(O,"right"),!0}}];w=new h.default(A,_,x),w.create()}function g(){w&&(w.remove(),w=null)}return{showVideoTooltip:b,hideVideoTooltip:g}}o.createShowHideFn=y;function C(A){var w=y(A),E=w.showVideoTooltip,b=w.hideVideoTooltip;A.txt.eventHooks.videoClickEvents.push(E),A.txt.eventHooks.clickEvents.push(b),A.txt.eventHooks.keyupEvents.push(b),A.txt.eventHooks.toolbarClickEvents.push(b),A.txt.eventHooks.menuClickEvents.push(b),A.txt.eventHooks.textScrollEvents.push(b),A.txt.eventHooks.changeEvents.push(b)}o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(28));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3));function m(C,A){var w=["P"],E=y(C,w);E&&h.default(E).css("text-align",A)}o.default=m;function y(C,A){for(var w,E=C.elems[0];E!=null;){if((0,c.default)(A).call(A,E==null?void 0:E.nodeName))return E;if(((w=E==null?void 0:E.parentNode)===null||w===void 0?void 0:w.nodeName)==="BODY")return null;E=E.parentNode}return E}},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(6);function u(h){if(!!c.UA.isFirefox){var m=h.txt,y=h.selection,C=m.eventHooks.keydownEvents;C.push(function(A){var w=y.getSelectionContainerElem();if(w){var E=w.getNodeTop(h),b=E.length&&E.prev().length?E.prev():null;b&&b.attr("data-we-video-p")&&y.getCursorPos()===0&&A.keyCode===8&&b.remove()}})}}o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(7),m=u.__importDefault(i(3)),y=u.__importDefault(i(33)),C=u.__importDefault(i(38)),A=u.__importDefault(i(351)),w=u.__importDefault(i(364)),E=function(b){u.__extends(g,b);function g(_){var x=this,k=m.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),T=w.default(_);if(T.onlyUploadConf){var O;k=T.onlyUploadConf.$elem,(0,c.default)(O=T.onlyUploadConf.events).call(O,function(F){var I=F.type,M=F.fn||h.EMPTY_FN;k.on(I,function(N){N.stopPropagation(),M(N)})})}return x=b.call(this,k,_)||this,x.imgPanelConfig=T,A.default(_),x}return g.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},g.prototype.createPanel=function(){var _=this.imgPanelConfig,x=new y.default(this,_);this.setPanel(x),x.create()},g.prototype.tryChangeActive=function(){},g}(C.default);o.default=E},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(352)),h=c.__importDefault(i(353)),m=c.__importDefault(i(354)),y=c.__importDefault(i(362)),C=c.__importDefault(i(363));function A(w){u.default(w),h.default(w),m.default(w),y.default(w),C.default(w)}o.default=A},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(131),h=c.__importDefault(i(97));function m(w,E){var b=w.config,g=b.pasteFilterStyle,_=b.pasteIgnoreImg,x=u.getPasteHtml(E,g,_);if(x)return!0;var k=u.getPasteText(E);return!!k}function y(w,E){for(var b,g=((b=E.clipboardData)===null||b===void 0?void 0:b.types)||[],_=0;_<g.length;_++){var x=g[_];if(x==="Files")return!0}return!1}function C(w,E){if(!(!y(E,w)&&m(E,w))){var b=u.getPasteImgs(w);if(!!b.length){var g=new h.default(E);g.uploadImg(b)}}}function A(w){w.txt.eventHooks.pasteEvents.unshift(function(E){C(E,w)})}o.default=A},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(97));function h(m){function y(C){var A=C.dataTransfer&&C.dataTransfer.files;if(!(!A||!A.length)){var w=new u.default(m);w.uploadImg(A)}}m.txt.eventHooks.dropEvents.push(y)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29)),u=l(i(355));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var h=i(2),m=h.__importDefault(i(3));i(360);var y=i(6);function C(g,_,x,k,T){g.attr("style","width:"+_+"px; height:"+x+"px; left:"+k+"px; top:"+T+"px;")}function A(g,_){var x=m.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 x.hide(),_.append(x),x}function w(g,_,x){var k=g.getBoundingClientRect(),T=x.getBoundingClientRect(),O=T.width.toFixed(2),F=T.height.toFixed(2);(0,c.default)(_).call(_,".w-e-img-drag-show-size").text(O+"px * "+F+"px"),C(_,(0,u.default)(O),(0,u.default)(F),T.left-k.left,T.top-k.top),_.show()}function E(g){var _=g.$textContainerElem,x,k=A(g,_);function T(I,M){I.on("click",function(N){N.stopPropagation()}),I.on("mousedown",".w-e-img-drag-rb",function(N){if(N.preventDefault(),!x)return;var B=N.clientX,L=N.clientY,U=M.getBoundingClientRect(),H=x.getBoundingClientRect(),R=H.width,z=H.height,$=H.left-U.left,S=H.top-U.top,J=R/z,Q=R,G=z,ie=m.default(document);function X(){ie.off("mousemove",le),ie.off("mouseup",be)}function le(ce){ce.stopPropagation(),ce.preventDefault(),Q=R+(ce.clientX-B),G=z+(ce.clientY-L),Q/G!=J&&(G=Q/J),Q=(0,u.default)(Q.toFixed(2)),G=(0,u.default)(G.toFixed(2)),(0,c.default)(I).call(I,".w-e-img-drag-show-size").text(Q.toFixed(2).replace(".00","")+"px * "+G.toFixed(2).replace(".00","")+"px"),C(I,Q,G,$,S)}ie.on("mousemove",le);function be(){x.attr("width",Q+""),x.attr("height",G+"");var ce=x.getBoundingClientRect();C(I,Q,G,ce.left-U.left,ce.top-U.top),X()}ie.on("mouseup",be),ie.on("mouseleave",X)})}function O(I){if(y.UA.isIE())return!1;I&&(x=I,w(_,k,x))}function F(){(0,c.default)(_).call(_,".w-e-img-drag-mask").hide()}return T(k,_),m.default(document).on("click",F),g.beforeDestroy(function(){m.default(document).off("click",F)}),{showDrag:O,hideDrag:F}}o.createShowHideFn=E;function b(g){var _=E(g),x=_.showDrag,k=_.hideDrag;g.txt.eventHooks.imgClickEvents.push(x),g.txt.eventHooks.textScrollEvents.push(k),g.txt.eventHooks.keyupEvents.push(k),g.txt.eventHooks.toolbarClickEvents.push(k),g.txt.eventHooks.menuClickEvents.push(k),g.txt.eventHooks.changeEvents.push(k)}o.default=b},function(r,o,i){r.exports=i(356)},function(r,o,i){var l=i(357);r.exports=l},function(r,o,i){i(358);var l=i(9);r.exports=l.parseFloat},function(r,o,i){var l=i(5),d=i(359);l({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(r,o,i){var l=i(8),d=i(90).trim,c=i(68),u=l.parseFloat,h=1/u(c+"-0")!==-1/0;r.exports=h?function(y){var C=d(String(y)),A=u(C);return A===0&&C.charAt(0)=="-"?-0:A}:u},function(r,o,i){var l=i(20),d=i(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-text-container {
|
||
overflow: hidden;
|
||
}
|
||
.w-e-img-drag-mask {
|
||
position: absolute;
|
||
z-index: 1;
|
||
border: 1px dashed #ccc;
|
||
box-sizing: border-box;
|
||
}
|
||
.w-e-img-drag-mask .w-e-img-drag-rb {
|
||
position: absolute;
|
||
right: -5px;
|
||
bottom: -5px;
|
||
width: 16px;
|
||
height: 16px;
|
||
border-radius: 50%;
|
||
background: #ccc;
|
||
cursor: se-resize;
|
||
}
|
||
.w-e-img-drag-mask .w-e-img-drag-show-size {
|
||
min-width: 110px;
|
||
height: 22px;
|
||
line-height: 22px;
|
||
font-size: 14px;
|
||
color: #999;
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
background-color: #999;
|
||
color: #fff;
|
||
border-radius: 2px;
|
||
padding: 0 5px;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var A,w=function(_,x){return x===void 0&&(x=""),C.i18next.t(x+_)};function E(g){var _=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(k,T){return k.selection.createRangeByElem(T),k.selection.restoreSelection(),k.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(k,T){return T.attr("width","30%"),T.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(k,T){return T.attr("width","50%"),T.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(k,T){return T.attr("width","100%"),T.removeAttr("height"),!0}}];_.push({$elem:u.default("<span>"+w("\u91CD\u7F6E")+"</span>"),onClick:function(k,T){return T.removeAttr("width"),T.removeAttr("height"),!0}}),g.attr("data-href")&&_.push({$elem:u.default("<span>"+w("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(k,T){var O=T.attr("data-href");return O&&(O=decodeURIComponent(O),window.open(O,"_target")),!0}}),A=new h.default(C,g,_),A.create()}function b(){A&&(A.remove(),A=null)}return{showImgTooltip:E,hideImgTooltip:b}}o.createShowHideFn=m;function y(C){var A=m(C),w=A.showImgTooltip,E=A.hideImgTooltip;C.txt.eventHooks.imgClickEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.keyupEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E),C.txt.eventHooks.imgDragBarMouseDownEvents.push(E),C.txt.eventHooks.changeEvents.push(E)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u){var h=u.txt,m=u.selection,y=h.eventHooks.keydownEvents;y.push(function(C){var A=m.getSelectionContainerElem(),w=m.getRange();if(!(!w||!A||C.keyCode!==8||!m.isSelectionEmpty())){var E=w.startContainer,b=w.startOffset,g=null;if(b===0)for(;E!==A.elems[0]&&A.elems[0].contains(E)&&E.parentNode&&!g;){if(E.previousSibling){g=E.previousSibling;break}E=E.parentNode}else E.nodeType!==3&&(g=E.childNodes[b-1]);if(!!g){for(var _=g;_.childNodes.length;)_=_.childNodes[_.childNodes.length-1];_ instanceof HTMLElement&&_.tagName==="IMG"&&(_.remove(),C.preventDefault())}}})}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=i(6),C=h.__importDefault(i(97));function A(w){var E,b=w.config,g=new C.default(w),_=y.getRandom("up-trigger-id"),x=y.getRandom("up-file-id"),k=y.getRandom("input-link-url"),T=y.getRandom("input-link-url-alt"),O=y.getRandom("input-link-url-href"),F=y.getRandom("btn-link"),I="menus.panelMenus.image.",M=function(J,Q){return Q===void 0&&(Q=I),w.i18next.t(Q+J)};function N(S,J,Q){var G=b.linkImgCheck(S);return G===!0?!0:(typeof G=="string"&&b.customAlert(G,"error"),!1)}var B=b.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(E=b.uploadImgAccept).call(E,function(S){return"image/"+S}).join(","),U=function(J,Q,G){return'<div class="'+J+'" data-title="'+G+`">
|
||
<div id="`+_+`" class="w-e-up-btn">
|
||
<i class="`+Q+`"></i>
|
||
</div>
|
||
<div style="display:none;">
|
||
<input id="`+x+'" type="file" '+B+' accept="'+L+`"/>
|
||
</div>
|
||
</div>`},H=[{selector:"#"+_,type:"click",fn:function(){var J=b.uploadImgFromMedia;if(J&&typeof J=="function")return J(),!0;var Q=m.default("#"+x),G=Q.elems[0];if(G)G.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var J=m.default("#"+x),Q=J.elems[0];if(!Q)return!0;var G=Q.files;return G!=null&&G.length&&g.uploadImg(G),Q&&(Q.value=""),!0}}],R=[`<input
|
||
id="`+k+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+M("\u56FE\u7247\u5730\u5740")+'"/>'];b.showLinkImgAlt&&R.push(`
|
||
<input
|
||
id="`+T+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+M("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),b.showLinkImgHref&&R.push(`
|
||
<input
|
||
id="`+O+`"
|
||
type="text"
|
||
class="block"
|
||
placeholder="`+M("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var z=[{title:M("\u4E0A\u4F20\u56FE\u7247"),tpl:U("w-e-up-img-container","w-e-icon-upload2",""),events:H},{title:M("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
|
||
`+R.join("")+`
|
||
<div class="w-e-button-container">
|
||
<button type="button" id="`+F+'" class="right">'+M("\u63D2\u5165","")+`</button>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+F,type:"click",fn:function(){var J,Q=m.default("#"+k),G=(0,u.default)(J=Q.val()).call(J);if(!!G){var ie;if(b.showLinkImgAlt){var X;ie=(0,u.default)(X=m.default("#"+T).val()).call(X)}var le;if(b.showLinkImgHref){var be;le=(0,u.default)(be=m.default("#"+O).val()).call(be)}if(!!N(G))return g.insertImg(G,ie,le),!0}},bindEnter:!0}]}],$={width:300,height:0,tabs:[],onlyUploadConf:{$elem:m.default(U("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:H}};return window.FileReader&&(b.uploadImgShowBase64||b.uploadImgServer||b.customUploadImg||b.uploadImgFromMedia)&&$.tabs.push(z[0]),b.showLinkImg&&($.tabs.push(z[1]),$.onlyUploadConf=void 0),$}o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(24)),y=u.__importDefault(i(366)),C=function(A){u.__extends(w,A);function w(E){var b=this,g=h.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
|
||
<i class="w-e-icon-indent-increase"></i>
|
||
</div>`),_={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:h.default(`<p>
|
||
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
|
||
`+E.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
|
||
<p>`),value:"increase"},{$elem:h.default(`<p>
|
||
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
|
||
`+E.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
|
||
<p>`),value:"decrease"}],clickHandler:function(k){b.command(k)}};return b=A.call(this,g,E,_)||this,b}return w.prototype.command=function(E){var b=this.editor,g=b.selection.getSelectionContainerElem();if(g&&b.$textElem.equal(g)){var _=b.selection.getSelectionRangeTopNodes();_.length>0&&(0,c.default)(_).call(_,function(x){y.default(h.default(x),E,b)})}else g&&g.length>0&&(0,c.default)(g).call(g,function(x){y.default(h.default(x),E,b)});b.selection.restoreSelection(),this.tryChangeActive()},w.prototype.tryChangeActive=function(){var E=this.editor,b=E.selection.getSelectionStartElem(),g=h.default(b).getNodeTop(E);g.length<=0||(g.elems[0].style.paddingLeft!=""?this.active():this.unActive())},w}(m.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45)),u=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(367)),y=h.__importDefault(i(368)),C=/^(\d+)(\w+)$/,A=/^(\d+)%$/;function w(b){var g=b.config.indentation;if(typeof g=="string"){if(C.test(g)){var _,x=(0,c.default)(_=(0,u.default)(g).call(g).match(C)).call(_,1,3),k=x[0],T=x[1];return{value:Number(k),unit:T}}else if(A.test(g))return{value:Number((0,u.default)(g).call(g).match(A)[1]),unit:"%"}}else if(g.value!==void 0&&g.unit)return g;return{value:2,unit:"em"}}function E(b,g,_){var x=b.getNodeTop(_),k=/^(P|H[0-9]*)$/;k.test(x.getNodeName())&&(g==="increase"?m.default(x,w(_)):g==="decrease"&&y.default(x,w(_)))}o.default=E},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(o,"__esModule",{value:!0});function u(h,m){var y=h.elems[0];if(y.style.paddingLeft==="")h.css("padding-left",m.value+m.unit);else{var C=y.style.paddingLeft,A=(0,c.default)(C).call(C,0,C.length-m.unit.length),w=Number(A)+m.value;h.css("padding-left",""+w+m.unit)}}o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45));(0,d.default)(o,"__esModule",{value:!0});function u(h,m){var y=h.elems[0];if(y.style.paddingLeft!==""){var C=y.style.paddingLeft,A=(0,c.default)(C).call(C,0,C.length-m.unit.length),w=Number(A)-m.value;w>0?h.css("padding-left",""+w+m.unit):h.css("padding-left","")}}o.default=u},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(38)),m=c.__importDefault(i(33)),y=c.__importDefault(i(370)),C=function(A){c.__extends(w,A);function w(E){var b=this,g=u.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
|
||
<i class="w-e-icon-happy"></i>
|
||
</div>`);return b=A.call(this,g,E)||this,b}return w.prototype.createPanel=function(){var E=y.default(this.editor),b=new m.default(this,E);b.create()},w.prototype.clickHandler=function(){this.createPanel()},w.prototype.tryChangeActive=function(){},w}(h.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26)),u=l(i(70)),h=l(i(17));(0,d.default)(o,"__esModule",{value:!0});var m=i(2),y=m.__importDefault(i(3));function C(A){var w=A.config.emotions;function E(_){var x=[];if(_.type=="image"){var k;x=(0,c.default)(k=_.content).call(k,function(O){return typeof O=="string"?"":'<span title="'+O.alt+`">
|
||
<img class="eleImg" data-emoji="`+O.alt+'" style src="'+O.src+'" alt="['+O.alt+`]">
|
||
</span>`}),x=(0,u.default)(x).call(x,function(O){return O!==""})}else{var T;x=(0,c.default)(T=_.content).call(T,function(O){return'<span class="eleImg" title="'+O+'">'+O+"</span>"})}return x.join("").replace(/ /g,"")}var b=(0,c.default)(w).call(w,function(_){return{title:A.i18next.t("menus.panelMenus.emoticon."+_.title),tpl:"<div>"+E(_)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(k){var T=y.default(k.target),O=T.getNodeName(),F;if(O==="IMG"){var I;F=(0,h.default)(I=T.parent().html()).call(I)}else F="<span>"+T.html()+"</span>";return A.cmd.do("insertHTML",F),!0}}]}}),g={width:300,height:230,tabs:b};return g}o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createListHandle=o.ClassType=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(372)),m=c.__importDefault(i(374)),y=c.__importDefault(i(375)),C=c.__importDefault(i(376)),A=c.__importDefault(i(377)),w;(function(_){_.Wrap="WrapListHandle",_.Join="JoinListHandle",_.StartJoin="StartJoinListHandle",_.EndJoin="EndJoinListHandle",_.Other="OtherListHandle"})(w=o.ClassType||(o.ClassType={}));var E={WrapListHandle:h.default,JoinListHandle:m.default,StartJoinListHandle:y.default,EndJoinListHandle:C.default,OtherListHandle:A.default};function b(_,x,k){if(_===w.Other&&k===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return _!==w.Other?new E[_](x):new E[_](x,k)}o.createListHandle=b;var g=function(){function _(x){this.handle=x,this.handle.exec()}return _.prototype.getSelectionRangeElem=function(){return u.default(this.handle.selectionRangeElem.get())},_}();o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),y=i(47),C=function(A){u.__extends(w,A);function w(E){return A.call(this,E)||this}return w.prototype.exec=function(){var E=this.options,b=E.listType,g=E.listTarget,_=E.$selectionElem,x=E.$startElem,k=E.$endElem,T,O=[],F=_==null?void 0:_.getNodeName(),I=x.prior,M=k.prior;if(!x.prior&&!k.prior||!(I!=null&&I.prev().length)&&!(M!=null&&M.next().length)){var N;(0,c.default)(N=_==null?void 0:_.children()).call(N,function($){O.push(h.default($))}),F===b?T=y.createElementFragment(O,y.createDocumentFragment(),"p"):(T=y.createElement(g),(0,c.default)(O).call(O,function($){T.appendChild($.elems[0])})),this.selectionRangeElem.set(T),y.insertBefore(_,T,_.elems[0]),_.remove()}else{for(var B=I;B.length;)O.push(B),M!=null&&M.equal(B)?B=h.default(void 0):B=B.next();var L=I.prev(),U=M.next();if(F===b?T=y.createElementFragment(O,y.createDocumentFragment(),"p"):(T=y.createElement(g),(0,c.default)(O).call(O,function($){T.append($.elems[0])})),L.length&&U.length){for(var H=[];U.length;)H.push(U),U=U.next();var R=y.createElement(F);(0,c.default)(H).call(H,function($){R.append($.elems[0])}),h.default(R).insertAfter(_),this.selectionRangeElem.set(T);var z=_.next();z.length?y.insertBefore(_,T,z.elems[0]):_.parent().elems[0].append(T)}else if(!L.length)this.selectionRangeElem.set(T),y.insertBefore(_,T,_.elems[0]);else{this.selectionRangeElem.set(T);var z=_.next();z.length?y.insertBefore(_,T,z.elems[0]):_.parent().elems[0].append(T)}}},w}(m.ListHandle);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=function(){function h(){this._element=null}return h.prototype.set=function(m){if(m instanceof DocumentFragment){var y,C=[];(0,c.default)(y=m.childNodes).call(y,function(A){C.push(A)}),m=C}this._element=m},h.prototype.get=function(){return this._element},h.prototype.clear=function(){this._element=null},h}();o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),y=i(47),C=function(A){u.__extends(w,A);function w(E){return A.call(this,E)||this}return w.prototype.exec=function(){var E,b,g,_,x,k,T,O=this.options,F=O.editor,I=O.listType,M=O.listTarget,N=O.$startElem,B=O.$endElem,L,U=F.selection.getSelectionRangeTopNodes(),H=N==null?void 0:N.getNodeName(),R=B==null?void 0:B.getNodeName();if(H===R)if(U.length>2)if(U.shift(),U.pop(),L=y.createElementFragment(y.filterSelectionNodes(U),y.createDocumentFragment()),H===I)(E=B.children())===null||E===void 0||(0,c.default)(E).call(E,function(ce){L.append(ce)}),B.remove(),this.selectionRangeElem.set(L),N.elems[0].append(L);else{for(var z=document.createDocumentFragment(),$=document.createDocumentFragment(),S=y.getStartPoint(N);S.length;){var J=S.elems[0];S=S.next(),z.append(J)}for(var Q=y.getEndPoint(B),G=[];Q.length;)G.unshift(Q.elems[0]),Q=Q.prev();(0,c.default)(G).call(G,function(ce){$.append(ce)});var ie=y.createElement(M);ie.append(z),ie.append(L),ie.append($),L=ie,this.selectionRangeElem.set(L),h.default(ie).insertAfter(N),!(!((b=N.children())===null||b===void 0)&&b.length)&&N.remove(),!(!((g=B.children())===null||g===void 0)&&g.length)&&B.remove()}else{U.length=0;for(var S=y.getStartPoint(N);S.length;)U.push(S),S=S.next();for(var Q=y.getEndPoint(B),G=[];Q.length;)G.unshift(Q),Q=Q.prev();U.push.apply(U,G),H===I?(L=y.createElementFragment(U,y.createDocumentFragment(),"p"),this.selectionRangeElem.set(L),y.insertBefore(N,L,B.elems[0])):(L=y.createElement(M),(0,c.default)(U).call(U,function(se){L.append(se.elems[0])}),this.selectionRangeElem.set(L),h.default(L).insertAfter(N)),!(!((_=N.children())===null||_===void 0)&&_.length)&&B.remove(),!(!((x=B.children())===null||x===void 0)&&x.length)&&B.remove()}else{for(var X=[],Q=y.getEndPoint(B);Q.length;)X.unshift(Q),Q=Q.prev();for(var le=[],S=y.getStartPoint(N);S.length;)le.push(S),S=S.next();if(L=y.createDocumentFragment(),U.shift(),U.pop(),(0,c.default)(le).call(le,function(pe){return L.append(pe.elems[0])}),L=y.createElementFragment(y.filterSelectionNodes(U),L),(0,c.default)(X).call(X,function(pe){return L.append(pe.elems[0])}),this.selectionRangeElem.set(L),H===I)N.elems[0].append(L),!(!((k=B.children())===null||k===void 0)&&k.length)&&B.remove();else if(!((T=B.children())===null||T===void 0)&&T.length){var be=B.children();y.insertBefore(be,L,be.elems[0])}else B.elems[0].append(L)}},w}(m.ListHandle);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),y=i(47),C=function(A){u.__extends(w,A);function w(E){return A.call(this,E)||this}return w.prototype.exec=function(){var E,b=this.options,g=b.editor,_=b.listType,x=b.listTarget,k=b.$startElem,T,O=g.selection.getSelectionRangeTopNodes(),F=k==null?void 0:k.getNodeName();O.shift();for(var I=[],M=y.getStartPoint(k);M.length;)I.push(M),M=M.next();F===_?(T=y.createDocumentFragment(),(0,c.default)(I).call(I,function(N){return T.append(N.elems[0])}),T=y.createElementFragment(y.filterSelectionNodes(O),T),this.selectionRangeElem.set(T),k.elems[0].append(T)):(T=y.createElement(x),(0,c.default)(I).call(I,function(N){return T.append(N.elems[0])}),T=y.createElementFragment(y.filterSelectionNodes(O),T),this.selectionRangeElem.set(T),h.default(T).insertAfter(k),!(!((E=k.children())===null||E===void 0)&&E.length)&&k.remove())},w}(m.ListHandle);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(58),y=i(47),C=function(A){u.__extends(w,A);function w(E){return A.call(this,E)||this}return w.prototype.exec=function(){var E,b,g=this.options,_=g.editor,x=g.listType,k=g.listTarget,T=g.$endElem,O,F=_.selection.getSelectionRangeTopNodes(),I=T==null?void 0:T.getNodeName();F.pop();for(var M=[],N=y.getEndPoint(T);N.length;)M.unshift(N),N=N.prev();if(I===x)if(O=y.createElementFragment(y.filterSelectionNodes(F),y.createDocumentFragment()),(0,c.default)(M).call(M,function(U){return O.append(U.elems[0])}),this.selectionRangeElem.set(O),!((E=T.children())===null||E===void 0)&&E.length){var B=T.children();y.insertBefore(B,O,B.elems[0])}else T.elems[0].append(O);else{var L=y.filterSelectionNodes(F);L.push.apply(L,M),O=y.createElementFragment(L,y.createElement(k)),this.selectionRangeElem.set(O),h.default(O).insertBefore(T),!(!((b=T.children())===null||b===void 0)&&b.length)&&T.remove()}},w}(m.ListHandle);o.default=C},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(58),h=i(47),m=function(y){c.__extends(C,y);function C(A,w){var E=y.call(this,A)||this;return E.range=w,E}return C.prototype.exec=function(){var A=this.options,w=A.editor,E=A.listTarget,b=w.selection.getSelectionRangeTopNodes(),g=h.createElementFragment(h.filterSelectionNodes(b),h.createElement(E));this.selectionRangeElem.set(g),this.range.insertNode(g)},C}(u.ListHandle);o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(27));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(24)),y=h.__importDefault(i(3)),C=h.__importDefault(i(379)),A=function(w){h.__extends(E,w);function E(b){var g=this,_=y.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
|
||
<i class="w-e-icon-row-height"></i>
|
||
</div>`),x=new C.default(b,b.config.lineHeights),k={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:x.getItemList(),clickHandler:function(O){b.selection.saveRange(),g.command(O)}};return g=w.call(this,_,b,k)||this,g}return E.prototype.command=function(b){var g=this.editor;g.selection.restoreSelection();var _=y.default(g.selection.getSelectionContainerElem());if(!!_.elems.length){if(_&&g.$textElem.equal(_)){for(var x=!1,k=y.default(g.selection.getSelectionStartElem()).elems[0],T=y.default(g.selection.getSelectionEndElem()).elems[0],O=this.getDom(k),F=this.getDom(T),I=_.elems[0].children,M=0;M<I.length;M++){var N=I[M];if(y.default(N).getNodeName()==="P"&&(N===O&&(x=!0),x&&(y.default(N).css("line-height",b),N===F))){x=!1;return}}g.selection.createRangeByElems(k,T);return}var B=_.elems[0],L=this.getDom(B);y.default(L).getNodeName()==="P"&&(y.default(L).css("line-height",b),g.selection.createRangeByElems(L,L))}},E.prototype.getDom=function(b){var g=y.default(b).elems[0];if(!g.parentNode)return g;function _(x,k){var T=y.default(x.parentNode);return k.$textElem.equal(T)?x:_(T.elems[0],k)}return g=_(g,this.editor),g},E.prototype.styleProcessing=function(b){var g="";return(0,c.default)(b).call(b,function(_){_!==""&&(0,u.default)(_).call(_,"line-height")===-1&&(g=g+_+";")}),g},E.prototype.setRange=function(b,g){var _=this.editor,x=window.getSelection?window.getSelection():document.getSelection();x==null||x.removeAllRanges();var k=document.createRange(),T=b,O=g;k.setStart(T,0),k.setEnd(O,1),x==null||x.addRange(k),_.selection.saveRange(),x==null||x.removeAllRanges(),_.selection.restoreSelection()},E.prototype.tryChangeActive=function(){var b=this.editor,g=b.selection.getSelectionContainerElem();if(!(g&&b.$textElem.equal(g))){var _=y.default(b.selection.getSelectionStartElem());if(_.length!==0){_=this.getDom(_.elems[0]);var x=_.getAttribute("style")?_.getAttribute("style"):"";x&&(0,u.default)(x).call(x,"line-height")!==-1?this.active():this.unActive()}}},E}(m.default);o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=function(){function y(C,A){var w=this;this.itemList=[{$elem:h.default("<span>"+C.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(A).call(A,function(E){w.itemList.push({$elem:h.default("<span>"+E+"</span>"),value:E})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(23)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=u.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
|
||
<i class="w-e-icon-undo"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor;A.history.revoke();var w=A.$textElem.children();if(!!(w!=null&&w.length)){var E=w.last();A.selection.createRangeByElem(E,!1,!0),A.selection.restoreSelection()}},C.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},C}(h.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(23)),m=function(y){c.__extends(C,y);function C(A){var w=this,E=u.default(`<div class="w-e-menu" data-title="\u6062\u590D">
|
||
<i class="w-e-icon-redo"></i>
|
||
</div>`);return w=y.call(this,E,A)||this,w}return C.prototype.clickHandler=function(){var A=this.editor;A.history.restore();var w=A.$textElem.children();if(!!(w!=null&&w.length)){var E=w.last();A.selection.createRangeByElem(E,!1,!0),A.selection.restoreSelection()}},C.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},C}(h.default);o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(38)),h=c.__importDefault(i(3)),m=c.__importDefault(i(383)),y=c.__importDefault(i(33)),C=c.__importDefault(i(392)),A=function(w){c.__extends(E,w);function E(b){var g=this,_=h.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return g=w.call(this,_,b)||this,C.default(b),g}return E.prototype.clickHandler=function(){this.createPanel()},E.prototype.createPanel=function(){var b=m.default(this.editor),g=new y.default(this,b);g.create()},E.prototype.tryChangeActive=function(){},E}(u.default);o.default=A},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(384));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3));i(389);var y=u.__importDefault(i(391));function C(w){return w>0&&(0,c.default)(w)}function A(w){var E=new y.default(w),b=h.getRandom("w-col-id"),g=h.getRandom("w-row-id"),_=h.getRandom("btn-link"),x="menus.panelMenus.table.",k=function(I){return w.i18next.t(I)},T=[{title:k(x+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
|
||
<div class="w-e-table">
|
||
<span>`+k("\u521B\u5EFA")+`</span>
|
||
<input id="`+g+`" type="text" class="w-e-table-input" value="5"/></td>
|
||
<span>`+k(x+"\u884C")+`</span>
|
||
<input id="`+b+`" type="text" class="w-e-table-input" value="5"/></td>
|
||
<span>`+(k(x+"\u5217")+k(x+"\u7684")+k(x+"\u8868\u683C"))+`</span>
|
||
</div>
|
||
<div class="w-e-button-container">
|
||
<button type="button" id="`+_+'" class="right">'+k("\u63D2\u5165")+`</button>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+_,type:"click",fn:function(){var I=Number(m.default("#"+b).val()),M=Number(m.default("#"+g).val());return C(M)&&C(I)?(E.createAction(M,I),!0):(w.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],O={width:330,height:0,tabs:[]};return O.tabs.push(T[0]),O}o.default=A},function(r,o,i){r.exports=i(385)},function(r,o,i){var l=i(386);r.exports=l},function(r,o,i){i(387);var l=i(9);r.exports=l.Number.isInteger},function(r,o,i){var l=i(5),d=i(388);l({target:"Number",stat:!0},{isInteger:d})},function(r,o,i){var l=i(13),d=Math.floor;r.exports=function(u){return!l(u)&&isFinite(u)&&d(u)===u}},function(r,o,i){var l=i(20),d=i(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-table {
|
||
display: flex;
|
||
}
|
||
.w-e-table .w-e-table-input {
|
||
width: 40px;
|
||
text-align: center!important;
|
||
margin: 0 5px;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3)),m=function(){function y(C){this.editor=C}return y.prototype.createAction=function(C,A){var w=this.editor,E=h.default(w.selection.getSelectionContainerElem()),b=h.default(E.elems[0]).parentUntilEditor("UL",w),g=h.default(E.elems[0]).parentUntilEditor("OL",w);if(!(b||g)){var _=this.createTableHtml(C,A);w.cmd.do("insertHTML",_)}},y.prototype.createTableHtml=function(C,A){for(var w="",E="",b=0;b<C;b++){E="";for(var g=0;g<A;g++)b===0?E=E+"<th></th>":E=E+"<td></td>";w=w+"<tr>"+E+"</tr>"}var _='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+w+("</tbody></table>"+u.EMPTY_P);return _},y}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(393)),h=i(400);function m(y){u.default(y),h.bindEventKeyboardEvent(y),h.bindClickEvent(y)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39)),m=c.__importDefault(i(394)),y=c.__importDefault(i(399)),C=i(7);function A(g){var _;function x(T){var O=new y.default(g),F="menus.panelMenus.table.",I=function(B,L){return L===void 0&&(L=F),g.i18next.t(L+B)},M=[{$elem:u.default("<span>"+I("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(B,L){return B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",C.EMPTY_P),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=O.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(O.getCurrentRowIndex(L.elems[0],R)),$=O.getTableHtml(L.elems[0]),S=O.getTableHtml(m.default.ProcessingRow(u.default($),z).elems[0]);return S=b(L,S),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",S),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u884C")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=O.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(O.getCurrentRowIndex(L.elems[0],R)),$=O.getTableHtml(L.elems[0]),S=m.default.DeleteRow(u.default($),z).elems[0].children[0].children.length,J="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),S===0?J=C.EMPTY_P:J=O.getTableHtml(m.default.DeleteRow(u.default($),z).elems[0]),J=b(L,J),B.cmd.do("insertHTML",J),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=O.getCurrentColIndex(H.elems[0]),z=O.getTableHtml(L.elems[0]),$=O.getTableHtml(m.default.ProcessingCol(u.default(z),R).elems[0]);return $=b(L,$),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",$),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u5217")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=O.getCurrentColIndex(H.elems[0]),z=O.getTableHtml(L.elems[0]),$=m.default.DeleteCol(u.default(z),R),S=$.elems[0].children[0].children[0].children.length,J="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),S===0?J=C.EMPTY_P:J=O.getTableHtml($.elems[0]),J=b(L,J),B.cmd.do("insertHTML",J),!0}},{$elem:u.default("<span>"+I("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(B,L){var U=w(B);if(U)return!0;var H=u.default(B.selection.getSelectionStartElem()),R=O.getRowNode(H.elems[0]);if(!R)return!0;var z=Number(O.getCurrentRowIndex(L.elems[0],R));z!==0&&(z=0);var $=O.getTableHtml(L.elems[0]),S=O.getTableHtml(m.default.setTheHeader(u.default($),z,"th").elems[0]);return S=b(L,S),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",S),!0}},{$elem:u.default("<span>"+I("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(B,L){var U=u.default(B.selection.getSelectionStartElem()),H=O.getRowNode(U.elems[0]);if(!H)return!0;var R=Number(O.getCurrentRowIndex(L.elems[0],H));R!==0&&(R=0);var z=O.getTableHtml(L.elems[0]),$=O.getTableHtml(m.default.setTheHeader(u.default(z),R,"td").elems[0]);return $=b(L,$),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",$),!0}}];_=new h.default(g,T,M),_.create()}function k(){_&&(_.remove(),_=null)}return{showTableTooltip:x,hideTableTooltip:k}}function w(g){var _=g.selection.getSelectionStartElem(),x=g.selection.getSelectionEndElem();return(_==null?void 0:_.elems[0])!==(x==null?void 0:x.elems[0])}function E(g){var _=A(g),x=_.showTableTooltip,k=_.hideTableTooltip;g.txt.eventHooks.tableClickEvents.push(x),g.txt.eventHooks.clickEvents.push(k),g.txt.eventHooks.keyupEvents.push(k),g.txt.eventHooks.toolbarClickEvents.push(k),g.txt.eventHooks.menuClickEvents.push(k),g.txt.eventHooks.textScrollEvents.push(k)}o.default=E;function b(g,_){var x=g.elems[0].nextSibling;return(!x||x.innerHTML==="<br>")&&(_+=""+C.EMPTY_P),_}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(45)),u=l(i(91)),h=l(i(4)),m=l(i(138));(0,d.default)(o,"__esModule",{value:!0});var y=i(2),C=y.__importDefault(i(3));function A(k,T){for(var O=x(k),F=(0,c.default)(Array.prototype).apply(O.children),I=F[0].children.length,M=document.createElement("tr"),N=0;N<I;N++){var B=document.createElement("td");M.appendChild(B)}return(0,u.default)(F).call(F,T+1,0,M),_(O,F),C.default(O.parentNode)}function w(k,T){for(var O=x(k),F=(0,c.default)(Array.prototype).apply(O.children),I=function(B){var L,U=[];for((0,h.default)(L=(0,m.default)(F[B].children)).call(L,function(z){U.push(z)});F[B].children.length!==0;)F[B].removeChild(F[B].children[0]);var H=C.default(U[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,u.default)(U).call(U,T+1,0,H);for(var R=0;R<U.length;R++)F[B].appendChild(U[R])},M=0;M<F.length;M++)I(M);return _(O,F),C.default(O.parentNode)}function E(k,T){var O=x(k),F=(0,c.default)(Array.prototype).apply(O.children);return(0,u.default)(F).call(F,T,1),_(O,F),C.default(O.parentNode)}function b(k,T){for(var O=x(k),F=(0,c.default)(Array.prototype).apply(O.children),I=function(B){var L,U=[];for((0,h.default)(L=(0,m.default)(F[B].children)).call(L,function(R){U.push(R)});F[B].children.length!==0;)F[B].removeChild(F[B].children[0]);(0,u.default)(U).call(U,T,1);for(var H=0;H<U.length;H++)F[B].appendChild(U[H])},M=0;M<F.length;M++)I(M);return _(O,F),C.default(O.parentNode)}function g(k,T,O){for(var F=x(k),I=(0,c.default)(Array.prototype).apply(F.children),M=I[T].children,N=document.createElement("tr"),B=function(H){var R,z=document.createElement(O),$=M[H];(0,h.default)(R=(0,m.default)($.childNodes)).call(R,function(S){z.appendChild(S)}),N.appendChild(z)},L=0;L<M.length;L++)B(L);return(0,u.default)(I).call(I,T,1,N),_(F,I),C.default(F.parentNode)}function _(k,T){for(;k.children.length!==0;)k.removeChild(k.children[0]);for(var O=0;O<T.length;O++)k.appendChild(T[O])}function x(k){var T=k.elems[0].children[0];return T.nodeName==="COLGROUP"&&(T=k.elems[0].children[k.elems[0].children.length-1]),T}o.default={ProcessingRow:A,ProcessingCol:w,DeleteRow:E,DeleteCol:b,setTheHeader:g}},function(r,o,i){var l=i(396);r.exports=l},function(r,o,i){i(50),i(397);var l=i(9);r.exports=l.Array.from},function(r,o,i){var l=i(5),d=i(398),c=i(115),u=!c(function(h){Array.from(h)});l({target:"Array",stat:!0,forced:u},{from:d})},function(r,o,i){var l=i(40),d=i(31),c=i(114),u=i(112),h=i(35),m=i(69),y=i(113);r.exports=function(A){var w=d(A),E=typeof this=="function"?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,_=g!==void 0,x=y(w),k=0,T,O,F,I,M,N;if(_&&(g=l(g,b>2?arguments[2]:void 0,2)),x!=null&&!(E==Array&&u(x)))for(I=x.call(w),M=I.next,O=new E;!(F=M.call(I)).done;k++)N=_?c(I,g,[F.value,k],!0):F.value,m(O,k,N);else for(T=h(w.length),O=new E(T);T>k;k++)N=_?g(w[k],k):w[k],m(O,k,N);return O.length=k,O}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(138));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(3)),y=function(){function C(A){this.editor=A}return C.prototype.getRowNode=function(A){var w,E=m.default(A).elems[0];return E.parentNode&&(E=(w=m.default(E).parentUntil("TR",E))===null||w===void 0?void 0:w.elems[0]),E},C.prototype.getCurrentRowIndex=function(A,w){var E,b=0,g=A.children[0];return g.nodeName==="COLGROUP"&&(g=A.children[A.children.length-1]),(0,c.default)(E=(0,u.default)(g.children)).call(E,function(_,x){_===w&&(b=x)}),b},C.prototype.getCurrentColIndex=function(A){var w,E,b=0,g=m.default(A).getNodeName()==="TD"||m.default(A).getNodeName()==="TH"?A:(E=m.default(A).parentUntil("TD",A))===null||E===void 0?void 0:E.elems[0],_=m.default(g).parent();return(0,c.default)(w=(0,u.default)(_.elems[0].children)).call(w,function(x,k){x===g&&(b=k)}),b},C.prototype.getTableHtml=function(A){var w='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+m.default(A).html()+"</table>";return w},C}();o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.bindEventKeyboardEvent=o.bindClickEvent=void 0;var c=i(2),u=c.__importDefault(i(3));function h(C){if(!C.length)return!1;var A=C.elems[0];return A.nodeName==="P"&&A.innerHTML==="<br>"}function m(C){function A(w,E){if(E.detail>=3){var b=window.getSelection();if(b){var g=b.focusNode,_=b.anchorNode,x=u.default(_==null?void 0:_.parentElement);if(!w.isContain(u.default(g))){var k=x.elems[0].tagName==="TD"?x:x.parentUntilEditor("td",C);if(k){var T=C.selection.getRange();T==null||T.setEnd(k.elems[0],k.elems[0].childNodes.length),C.selection.restoreSelection()}}}}}C.txt.eventHooks.tableClickEvents.push(A)}o.bindClickEvent=m;function y(C){var A=C.txt,w=C.selection,E=A.eventHooks.keydownEvents;E.push(function(b){C.selection.saveRange();var g=w.getSelectionContainerElem();if(g){var _=g.getNodeTop(C),x=_.length&&_.prev().length?_.prev():null;if(x&&x.getNodeName()==="TABLE"&&w.isSelectionEmpty()&&w.getCursorPos()===0&&b.keyCode===8){var k=_.next(),T=!!k.length;T&&h(_)&&(_.remove(),C.selection.setRangeToElem(k.elems[0])),b.preventDefault()}}})}o.bindEventKeyboardEvent=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0}),o.formatCodeHtml=void 0;var u=i(2),h=u.__importDefault(i(38)),m=u.__importDefault(i(3)),y=i(6),C=u.__importDefault(i(402)),A=u.__importDefault(i(139)),w=u.__importDefault(i(33)),E=u.__importDefault(i(403));function b(_,x){if(!x)return x;return x=T(x),x=k(x),x=y.replaceSpecialSymbol(x),x;function k(O){var F=O.match(/<pre[\s|\S]+?\/pre>/g);return F===null||(0,c.default)(F).call(F,function(I){O=O.replace(I,I.replace(/<\/code><code>/g,`
|
||
`).replace(/<br>/g,""))}),O}function T(O){var F,I=O.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!I||!I.length)return O;for(var M=(0,c.default)(F=y.deepClone(I)).call(F,function(B){return B=B.replace(/<span\sclass="hljs[^>]+>/,""),B.replace(/<\/span>/,"")}),N=0;N<I.length;N++)O=O.replace(I[N],M[N]);return T(O)}}o.formatCodeHtml=b;var g=function(_){u.__extends(x,_);function x(k){var T=this,O=m.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return T=_.call(this,O,k)||this,E.default(k),T}return x.prototype.insertLineCode=function(k){var T=this.editor,O=m.default("<code>"+k+"</code>");T.cmd.do("insertElem",O),T.selection.createRangeByElem(O,!1),T.selection.restoreSelection()},x.prototype.clickHandler=function(){var k=this.editor,T=k.selection.getSelectionText();this.isActive||(k.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(T))},x.prototype.createPanel=function(k,T){var O=C.default(this.editor,k,T),F=new w.default(this,O);F.create()},x.prototype.tryChangeActive=function(){var k=this.editor;A.default(k)?this.active():this.unActive()},x}(h.default);o.default=g},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(26));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=i(6),m=u.__importDefault(i(3)),y=u.__importDefault(i(139)),C=i(7);function A(w,E,b){var g,_=h.getRandom("input-iframe"),x=h.getRandom("select"),k=h.getRandom("btn-ok");function T(M,N){var B,L=y.default(w);L&&O();var U=(B=w.selection.getSelectionStartElem())===null||B===void 0?void 0:B.elems[0].innerHTML;U&&w.cmd.do("insertHTML",C.EMPTY_P);var H=N.replace(/</g,"<").replace(/>/g,">");w.highlight&&(H=w.highlight.highlightAuto(H).value),w.cmd.do("insertHTML",'<pre><code class="'+M+'">'+H+"</code></pre>");var R=w.selection.getSelectionStartElem(),z=R==null?void 0:R.getNodeTop(w);(z==null?void 0:z.getNextSibling().elems.length)===0&&m.default(C.EMPTY_P).insertAfter(z)}function O(){if(!!y.default(w)){var M=w.selection.getSelectionStartElem(),N=M==null?void 0:M.getNodeTop(w);!N||(w.selection.createRangeByElem(N),w.selection.restoreSelection())}}var F=function(N){return w.i18next.t(N)},I={width:500,height:0,tabs:[{title:F("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
|
||
<select name="" id="`+x+`">
|
||
`+(0,c.default)(g=w.config.languageType).call(g,function(M){return"<option "+(b==M?"selected":"")+' value ="'+M+'">'+M+"</option>"})+`
|
||
</select>
|
||
<textarea id="`+_+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+E.replace(/"/g,'"')+`</textarea>
|
||
<div class="w-e-button-container">
|
||
<button type="button" id="`+k+'" class="right">'+(y.default(w)?F("\u4FEE\u6539"):F("\u63D2\u5165"))+`</button>
|
||
</div>
|
||
</div>`,events:[{selector:"#"+k,type:"click",fn:function(){var N=document.getElementById(_),B=m.default("#"+x),L=B.val(),U=N.value;if(!!U)return y.default(w)?!1:(T(L,U),!0)}}]}]};return I}o.default=A},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(404)),h=c.__importDefault(i(405));function m(y){u.default(y),h.default(y)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var A;function w(b){var g="menus.panelMenus.code.",_=function(T,O){return O===void 0&&(O=g),C.i18next.t(O+T)},x=[{$elem:u.default("<span>"+_("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(T,O){return O.remove(),!0}}];A=new h.default(C,b,x),A.create()}function E(){A&&(A.remove(),A=null)}return{showCodeTooltip:w,hideCodeTooltip:E}}o.createShowHideFn=m;function y(C){var A=m(C),w=A.showCodeTooltip,E=A.hideCodeTooltip;C.txt.eventHooks.codeClickEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=i(7),h=c.__importDefault(i(3));function m(y){var C=y.$textElem,A=y.selection,w=y.txt,E=w.eventHooks.keydownEvents;E.push(function(b){var g;if(b.keyCode===40){var _=A.getSelectionContainerElem(),x=(g=C.children())===null||g===void 0?void 0:g.last();if((_==null?void 0:_.elems[0].tagName)==="XMP"&&(x==null?void 0:x.elems[0].tagName)==="PRE"){var k=h.default(u.EMPTY_P);C.append(k)}}}),E.push(function(b){y.selection.saveRange();var g=A.getSelectionContainerElem();if(g){var _=g.getNodeTop(y),x=_==null?void 0:_.prev(),k=_==null?void 0:_.getNextSibling();if(x.length&&(x==null?void 0:x.getNodeName())==="PRE"&&k.length===0&&A.getCursorPos()===0&&b.keyCode===8){var T=h.default(u.EMPTY_P);C.append(T)}}})}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(23)),h=c.__importDefault(i(3)),m=c.__importDefault(i(407)),y=i(6),C=i(7),A=function(w){c.__extends(E,w);function E(b){var g=this,_=h.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return g=w.call(this,_,b)||this,m.default(b),g}return E.prototype.clickHandler=function(){var b=this.editor,g=b.selection.getRange(),_=b.selection.getSelectionContainerElem();if(!!(_!=null&&_.length)){var x=h.default(_.elems[0]),k=x.parentUntil("TABLE",_.elems[0]),T=x.children();x.getNodeName()!=="CODE"&&(k&&h.default(k.elems[0]).getNodeName()==="TABLE"||T&&T.length!==0&&h.default(T.elems[0]).getNodeName()==="IMG"&&!(g!=null&&g.collapsed)||this.createSplitLine())}},E.prototype.createSplitLine=function(){var b="<hr/>"+C.EMPTY_P;y.UA.isFirefox&&(b="<hr/><p></p>"),this.editor.cmd.do("insertHTML",b)},E.prototype.tryChangeActive=function(){},E}(u.default);o.default=A},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(408));function h(m){u.default(m)}o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=c.__importDefault(i(39));function m(C){var A;function w(b){var g=[{$elem:u.default("<span>"+C.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(x,k){return x.selection.createRangeByElem(k),x.selection.restoreSelection(),x.cmd.do("delete"),!0}}];A=new h.default(C,b,g),A.create()}function E(){A&&(A.remove(),A=null)}return{showSplitLineTooltip:w,hideSplitLineTooltip:E}}function y(C){var A=m(C),w=A.showSplitLineTooltip,E=A.hideSplitLineTooltip;C.txt.eventHooks.splitLineEvents.push(w),C.txt.eventHooks.clickEvents.push(E),C.txt.eventHooks.keyupEvents.push(E),C.txt.eventHooks.toolbarClickEvents.push(E),C.txt.eventHooks.menuClickEvents.push(E),C.txt.eventHooks.textScrollEvents.push(E)}o.default=y},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=u.__importDefault(i(23)),y=i(98),C=u.__importDefault(i(415)),A=u.__importDefault(i(140)),w=function(E){u.__extends(b,E);function b(g){var _=this,x=h.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
|
||
<i class="w-e-icon-checkbox-checked"></i>
|
||
</div>`);return _=E.call(this,x,g)||this,C.default(g),_}return b.prototype.clickHandler=function(){var g=this.editor;y.isAllTodo(g)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},b.prototype.tryChangeActive=function(){y.isAllTodo(this.editor)?this.active():this.unActive()},b.prototype.setTodo=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes();(0,c.default)(_).call(_,function(x){var k,T=x==null?void 0:x.getNodeName();if(T==="P"){var O=A.default(x),F=O.getTodo(),I=(k=F.children())===null||k===void 0?void 0:k.getNode();F.insertAfter(x),g.selection.moveCursor(I),x.remove()}}),this.tryChangeActive()},b.prototype.cancelTodo=function(){var g=this.editor,_=g.selection.getSelectionRangeTopNodes();(0,c.default)(_).call(_,function(x){var k,T,O,F=(T=(k=x.childNodes())===null||k===void 0?void 0:k.childNodes())===null||T===void 0?void 0:T.clone(!0),I=h.default("<p></p>");I.append(F),I.insertAfter(x),(O=I.childNodes())===null||O===void 0||O.get(0).remove(),g.selection.moveCursor(I.getNode()),x.remove()})},b}(m.default);o.default=w},function(r,o,i){r.exports=i(411)},function(r,o,i){var l=i(412);r.exports=l},function(r,o,i){var l=i(413),d=Array.prototype;r.exports=function(c){var u=c.every;return c===d||c instanceof Array&&u===d.every?l:u}},function(r,o,i){i(414);var l=i(15);r.exports=l("Array").every},function(r,o,i){var l=i(5),d=i(32).every,c=i(67),u=i(22),h=c("every"),m=u("every");l({target:"Array",proto:!0,forced:!h||!m},{every:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3)),m=i(98),y=u.__importDefault(i(140)),C=i(98),A=i(7);function w(E){function b(k){var T,O;if(m.isAllTodo(E)){k.preventDefault();var F=E.selection,I=F.getSelectionRangeTopNodes()[0],M=(T=I.childNodes())===null||T===void 0?void 0:T.get(0),N=(O=window.getSelection())===null||O===void 0?void 0:O.anchorNode,B=F.getRange();if(!(B!=null&&B.collapsed)){var L=B==null?void 0:B.commonAncestorContainer.childNodes,U=B==null?void 0:B.startContainer,H=B==null?void 0:B.endContainer,R=B==null?void 0:B.startOffset,z=B==null?void 0:B.endOffset,$=0,S=0,J=[];L==null||(0,c.default)(L).call(L,function(se,ge){se.contains(U)&&($=ge),se.contains(H)&&(S=ge)}),S-$>1&&(L==null||(0,c.default)(L).call(L,function(se,ge){ge<=$||ge>=S||J.push(se)}),(0,c.default)(J).call(J,function(se){se.remove()})),C.dealTextNode(U,R),C.dealTextNode(H,z,!1),E.selection.moveCursor(H,0)}if(I.text()===""){var Q=h.default(A.EMPTY_P);Q.insertAfter(I),F.moveCursor(Q.getNode()),I.remove();return}var G=F.getCursorPos(),ie=m.getCursorNextNode(M==null?void 0:M.getNode(),N,G),X=y.default(h.default(ie)),le=X.getInputContainer(),be=le.parent().getNode(),ce=X.getTodo(),de=le.getNode().nextSibling;if((M==null?void 0:M.text())===""&&(M==null||M.append(h.default("<br>"))),ce.insertAfter(I),!de||(de==null?void 0:de.textContent)===""){if((de==null?void 0:de.nodeName)!=="BR"){var pe=h.default("<br>");pe.insertAfter(le)}F.moveCursor(be,1)}else F.moveCursor(be)}}function g(k){var T,O;if(m.isAllTodo(E)){var F=E.selection,I=F.getSelectionRangeTopNodes()[0],M=(T=I.childNodes())===null||T===void 0?void 0:T.getNode(),N=h.default("<p></p>"),B=N.getNode(),L=(O=window.getSelection())===null||O===void 0?void 0:O.anchorNode,U=F.getCursorPos(),H=L.previousSibling;if(I.text()===""){k.preventDefault();var R=h.default(A.EMPTY_P);R.insertAfter(I),I.remove(),F.moveCursor(R.getNode(),0);return}if((H==null?void 0:H.nodeName)==="SPAN"&&H.childNodes[0].nodeName==="INPUT"&&U===0){var z;k.preventDefault(),M==null||(0,c.default)(z=M.childNodes).call(z,function($,S){S!==0&&B.appendChild($.cloneNode(!0))}),N.insertAfter(I),I.remove()}}}function _(){var k=E.selection,T=k.getSelectionRangeTopNodes()[0];T&&C.isTodo(T)&&T.text()===""&&(h.default(A.EMPTY_P).insertAfter(T),T.remove())}function x(k){k&&k.target instanceof HTMLInputElement&&k.target.type==="checkbox"&&(k.target.checked?k.target.setAttribute("checked","true"):k.target.removeAttribute("checked"))}E.txt.eventHooks.enterDownEvents.push(b),E.txt.eventHooks.deleteUpEvents.push(_),E.txt.eventHooks.deleteDownEvents.push(g),E.txt.eventHooks.clickEvents.push(x)}o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.selectorValidator=void 0;var c=i(2),u=c.__importDefault(i(3)),h=i(6),m=i(7),y=c.__importDefault(i(130)),C={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function A(E){var b=E.toolbarSelector,g=u.default(b),_=E.textSelector,x=E.config,k=x.height,T=E.i18next,O=u.default("<div></div>"),F=u.default("<div></div>"),I,M,N=null;_==null?(M=g.children(),g.append(O).append(F),O.css("background-color",C.toolbarBgColor).css("border",C.border).css("border-bottom",C.toolbarBottomBorder),F.css("border",C.border).css("border-top","none").css("height",k+"px")):(g.append(O),N=u.default(_).children(),u.default(_).append(F),M=F.children()),I=u.default("<div></div>"),I.attr("contenteditable","true").css("width","100%").css("height","100%");var B,L=E.config.placeholder;L!==y.default.placeholder?B=u.default("<div>"+L+"</div>"):B=u.default("<div>"+T.t(L)+"</div>"),B.addClass("placeholder"),M&&M.length?(I.append(M),B.hide()):I.append(u.default(m.EMPTY_P)),N&&N.length&&(I.append(N),B.hide()),F.append(I),F.append(B),O.addClass("w-e-toolbar").css("z-index",E.zIndex.get("toolbar")),F.addClass("w-e-text-container"),F.css("z-index",E.zIndex.get()),I.addClass("w-e-text");var U=h.getRandom("toolbar-elem");O.attr("id",U);var H=h.getRandom("text-elem");I.attr("id",H);var R=F.getBoundingClientRect().height,z=I.getBoundingClientRect().height;R!==z&&I.css("min-height",R+"px"),E.$toolbarElem=O,E.$textContainerElem=F,E.$textElem=I,E.toolbarElemId=U,E.textElemId=H}o.default=A;function w(E){var b="data-we-id",g=/^wangEditor-\d+$/,_=E.textSelector,x=E.toolbarSelector,k={bar:u.default("<div></div>"),text:u.default("<div></div>")};if(x==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(k.bar=u.default(x),!k.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+x);if(g.test(k.bar.attr(b)))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(_){if(k.text=u.default(_),!k.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+_);if(g.test(k.text.attr(b)))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")}k.bar.attr(b,E.id),k.text.attr(b,E.id),E.beforeDestroy(function(){k.bar.removeAttr(b),k.text.removeAttr(b)})}o.selectorValidator=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(3)),h=i(7);function m(y,C){var A=y.$textElem,w=A.children();if(!w||!w.length){A.append(u.default(h.EMPTY_P)),m(y);return}var E=w.last();if(C){var b=E.html().toLowerCase(),g=E.getNodeName();if(b!=="<br>"&&b!=="<br/>"||g!=="P"){A.append(u.default(h.EMPTY_P)),m(y);return}}y.selection.createRangeByElem(E,!1,!0),y.config.focus?y.selection.restoreSelection():y.selection.clearWindowSelectionRange()}o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3));function m(b){y(b),C(b),A(b)}function y(b){b.txt.eventHooks.changeEvents.push(function(){var g=b.config.onchange;if(g){var _=b.txt.html()||"";b.isFocus=!0,g(_)}b.txt.togglePlaceholder()})}function C(b){b.isFocus=!1;function g(_){var x=_.target,k=h.default(x),T=b.$textElem,O=b.$toolbarElem,F=T.isContain(k),I=O.isContain(k),M=O.elems[0]==_.target;if(F)b.isFocus||E(b),b.isFocus=!0;else{if(I&&!M||!b.isFocus)return;w(b),b.isFocus=!1}}document.activeElement===b.$textElem.elems[0]&&b.config.focus&&(E(b),b.isFocus=!0),h.default(document).on("click",g),b.beforeDestroy(function(){h.default(document).off("click",g)})}function A(b){b.$textElem.on("compositionstart",function(){b.isComposing=!0,b.txt.togglePlaceholder()}).on("compositionend",function(){b.isComposing=!1,b.txt.togglePlaceholder()})}function w(b){var g,_=b.config,x=_.onblur,k=b.txt.html()||"";(0,c.default)(g=b.txt.eventHooks.onBlurEvents).call(g,function(T){return T()}),x(k)}function E(b){var g=b.config,_=g.onfocus,x=b.txt.html()||"";_(x)}o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});function c(u){var h=u.config,m=h.lang,y=h.languages;if(u.i18next!=null){try{u.i18next.init({ns:"wangEditor",lng:m,defaultNS:"wangEditor",resources:y})}catch(C){throw new Error("i18next:"+C)}return}u.i18next={t:function(A){var w=A.split(".");return w[w.length-1]}}}o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0}),o.setUnFullScreen=o.setFullScreen=void 0;var u=i(2),h=u.__importDefault(i(3));i(421);var m="w-e-icon-fullscreen",y="w-e-icon-fullscreen_exit",C="w-e-full-screen-editor";o.setFullScreen=function(w){var E=h.default(w.toolbarSelector),b=w.$textContainerElem,g=w.$toolbarElem,_=(0,c.default)(g).call(g,"i."+m),x=w.config;_.removeClass(m),_.addClass(y),E.addClass(C),E.css("z-index",x.zIndexFullScreen);var k=g.getBoundingClientRect();b.css("height","calc(100% - "+k.height+"px)")},o.setUnFullScreen=function(w){var E=h.default(w.toolbarSelector),b=w.$textContainerElem,g=w.$toolbarElem,_=(0,c.default)(g).call(g,"i."+y),x=w.config;_.removeClass(y),_.addClass(m),E.removeClass(C),E.css("z-index","auto"),b.css("height",x.height+"px")};var A=function(E){if(!E.textSelector&&!!E.config.showFullScreen){var b=E.$toolbarElem,g=h.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
|
||
<i class="`+m+`"></i>
|
||
</div>`);g.on("click",function(_){var x,k=(0,c.default)(x=h.default(_.currentTarget)).call(x,"i");k.hasClass(m)?(g.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),o.setFullScreen(E)):(g.attr("data-title","\u5168\u5C4F"),o.setUnFullScreen(E))}),b.append(g)}};o.default=A},function(r,o,i){var l=i(20),d=i(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-full-screen-editor {
|
||
position: fixed;
|
||
width: 100%!important;
|
||
height: 100%!important;
|
||
left: 0;
|
||
top: 0;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0});var u=function(m,y){var C,A=m.isEnable?m.$textElem:(0,c.default)(C=m.$textContainerElem).call(C,".w-e-content-mantle"),w=(0,c.default)(A).call(A,"[id='"+y+"']"),E=w.getOffsetData().top;A.scrollTop(E)};o.default=u},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(129)),h={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},m=function(){function y(){this.tier=h,this.baseZIndex=u.default.zIndex}return y.prototype.get=function(C){return C&&this.tier[C]?this.baseZIndex+this.tier[C]:this.baseZIndex},y.prototype.init=function(C){this.baseZIndex==u.default.zIndex&&(this.baseZIndex=C.config.zIndex)},y}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(70)),u=l(i(4));(0,d.default)(o,"__esModule",{value:!0});var h=i(2),m=h.__importDefault(i(426)),y=i(6),C=i(7);function A(E,b){return(0,c.default)(E).call(E,function(g){var _=g.type,x=g.target,k=g.attributeName;return _!="attributes"||_=="attributes"&&(k=="contenteditable"||x!=b)})}var w=function(E){h.__extends(b,E);function b(g){var _=E.call(this,function(x,k){var T;if(x=A(x,k.target),(T=_.data).push.apply(T,x),g.isCompatibleMode)_.asyncSave();else if(!g.isComposing)return _.asyncSave()})||this;return _.editor=g,_.data=[],_.asyncSave=C.EMPTY_FN,_}return b.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},b.prototype.emit=function(){var g;(0,u.default)(g=this.editor.txt.eventHooks.changeEvents).call(g,function(_){return _()})},b.prototype.observe=function(){var g=this;E.prototype.observe.call(this,this.editor.$textElem.elems[0]);var _=this.editor.config.onchangeTimeout;this.asyncSave=y.debounce(function(){g.save()},_),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){g.asyncSave()})},b}(m.default);o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function u(h,m){var y=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(C){h(C,y)},this.observer=new MutationObserver(this.callback),m&&(this.options=m)}return(0,d.default)(u.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),u.prototype.observe=function(h){this.node instanceof Node||(this.node=h,this.connect())},u.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")},u.prototype.disconnect=function(){var h=this.observer.takeRecords();h.length&&this.callback(h),this.observer.disconnect()},u}();o.default=c},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(428)),h=c.__importDefault(i(435)),m=c.__importDefault(i(436)),y=function(){function C(A){this.editor=A,this.content=new u.default(A),this.scroll=new h.default(A),this.range=new m.default(A)}return(0,d.default)(C.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),C.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},C.prototype.save=function(A){A.length&&(this.content.save(A),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},C.prototype.revoke=function(){this.editor.change.disconnect();var A=this.content.revoke();A&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},C.prototype.restore=function(){this.editor.change.disconnect();var A=this.content.restore();A&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),A&&this.editor.change.emit()},C}();o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(429)),h=c.__importDefault(i(433)),m=function(){function y(C){this.editor=C}return y.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new h.default(this.editor):this.cache=new u.default(this.editor),this.cache.observe()},y.prototype.save=function(C){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(C)},y.prototype.revoke=function(){var C;return(C=this.cache)===null||C===void 0?void 0:C.revoke()},y.prototype.restore=function(){var C;return(C=this.cache)===null||C===void 0?void 0:C.restore()},y}();o.default=m},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(99)),h=c.__importDefault(i(431)),m=i(432),y=function(C){c.__extends(A,C);function A(w){var E=C.call(this,w.config.historyMaxSize)||this;return E.editor=w,E}return A.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},A.prototype.compile=function(w){return this.save(h.default(w)),this},A.prototype.revoke=function(){return C.prototype.revoke.call(this,function(w){m.revoke(w)})},A.prototype.restore=function(){return C.prototype.restore.call(this,function(w){m.restore(w)})},A}(u.default);o.default=y},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0}),o.CeilStack=void 0;var c=function(){function u(h){h===void 0&&(h=0),this.data=[],this.max=0,this.reset=!1,h=Math.abs(h),h&&(this.max=h)}return u.prototype.resetMax=function(h){h=Math.abs(h),!this.reset&&!isNaN(h)&&(this.max=h,this.reset=!0)},(0,d.default)(u.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),u.prototype.instack=function(h){return this.data.unshift(h),this.max&&this.size>this.max&&(this.data.length=this.max),this},u.prototype.outstack=function(){return this.data.shift()},u.prototype.clear=function(){return this.data.length=0,this},u}();o.CeilStack=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(27));(0,d.default)(o,"__esModule",{value:!0}),o.compliePosition=o.complieNodes=o.compileValue=o.compileType=void 0;var h=i(6);function m(g){switch(g){case"childList":return"node";case"attributes":return"attr";default:return"text"}}o.compileType=m;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 C(g){var _={};return g.addedNodes.length&&(_.add=h.toArray(g.addedNodes)),g.removedNodes.length&&(_.remove=h.toArray(g.removedNodes)),_}o.complieNodes=C;function A(g){var _;return g.previousSibling?_={type:"before",target:g.previousSibling}:g.nextSibling?_={type:"after",target:g.nextSibling}:_={type:"parent",target:g.target},_}o.compliePosition=A;var w=["UL","OL","H1","H2","H3","H4","H5","H6"];function E(g){var _=[],x=!1,k=[];return(0,c.default)(g).call(g,function(T,O){var F={type:m(T.type),target:T.target,attr:T.attributeName||"",value:y(T)||"",oldValue:T.oldValue||"",nodes:C(T),position:A(T)};if(_.push(F),!!h.UA.isFirefox){if(x&&T.addedNodes.length&&T.addedNodes[0].nodeType==1){var I=T.addedNodes[0],M={type:"node",target:I,attr:"",value:"",oldValue:"",nodes:{add:[x]},position:{type:"parent",target:I}};(0,u.default)(w).call(w,I.nodeName)!=-1?(M.nodes.add=h.toArray(I.childNodes),_.push(M)):x.nodeType==3?(b(I,k)&&(M.nodes.add=h.toArray(I.childNodes)),_.push(M)):(0,u.default)(w).call(w,T.target.nodeName)==-1&&b(I,k)&&(M.nodes.add=h.toArray(I.childNodes),_.push(M))}F.type=="node"&&T.removedNodes.length==1?(x=T.removedNodes[0],k.push(x)):(x=!1,k.length=0)}}),_}o.default=E;function b(g,_){for(var x=0,k=_.length-1;k>0&&g.contains(_[k]);k--)x++;return x}},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(4)),u=l(i(94));(0,d.default)(o,"__esModule",{value:!0}),o.restore=o.revoke=void 0;function h(k,T){var O=k.position.target;switch(k.position.type){case"before":O.nextSibling?(O=O.nextSibling,(0,c.default)(T).call(T,function(F){k.target.insertBefore(F,O)})):(0,c.default)(T).call(T,function(F){k.target.appendChild(F)});break;case"after":(0,c.default)(T).call(T,function(F){k.target.insertBefore(F,O)});break;default:(0,c.default)(T).call(T,function(F){O.appendChild(F)});break}}function m(k){for(var T=0,O=(0,u.default)(k.nodes);T<O.length;T++){var F=O[T],I=F[0],M=F[1];switch(I){case"add":(0,c.default)(M).call(M,function(N){k.target.removeChild(N)});break;default:{h(k,M);break}}}}function y(k){var T=k.target;k.oldValue==null?T.removeAttribute(k.attr):T.setAttribute(k.attr,k.oldValue)}function C(k){k.target.textContent=k.oldValue}var A={node:m,text:C,attr:y};function w(k){for(var T=k.length-1;T>-1;T--){var O=k[T];A[O.type](O)}}o.revoke=w;function E(k){for(var T=0,O=(0,u.default)(k.nodes);T<O.length;T++){var F=O[T],I=F[0],M=F[1];switch(I){case"add":{h(k,M);break}default:{(0,c.default)(M).call(M,function(N){N.parentNode.removeChild(N)});break}}}}function b(k){k.target.textContent=k.value}function g(k){k.target.setAttribute(k.attr,k.value)}var _={node:E,text:b,attr:g};function x(k){for(var T=0,O=k;T<O.length;T++){var F=O[T];_[F.type](F)}}o.restore=x},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(434),u=function(){function h(m){this.editor=m,this.data=new c.TailChain}return h.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},h.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},h.prototype.revoke=function(){var m=this.data.prev();return m?(this.editor.$textElem.html(m),!0):!1},h.prototype.restore=function(){var m=this.data.next();return m?(this.editor.$textElem.html(m),!0):!1},h}();o.default=u},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(91));(0,d.default)(o,"__esModule",{value:!0}),o.TailChain=void 0;var u=function(){function h(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return h.prototype.resetMax=function(m){m=Math.abs(m),m&&(this.max=m)},(0,d.default)(h.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),h.prototype.insertLast=function(m){if(this.isRe){var y;(0,c.default)(y=this.data).call(y,this.point+1),this.isRe=!1}for(this.data.push(m);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},h.prototype.current=function(){return this.data[this.point]},h.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},h.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},h}();o.TailChain=u},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(99)),h=function(m){c.__extends(y,m);function y(C){var A=m.call(this,C.config.historyMaxSize)||this;return A.editor=C,A.last=0,A.target=C.$textElem.elems[0],A}return y.prototype.observe=function(){var C=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){C.last=C.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},y.prototype.save=function(){return m.prototype.save.call(this,[this.last,this.target.scrollTop]),this},y.prototype.revoke=function(){var C=this;return m.prototype.revoke.call(this,function(A){C.target.scrollTop=A[0]})},y.prototype.restore=function(){var C=this;return m.prototype.restore.call(this,function(A){C.target.scrollTop=A[1]})},y}(u.default);o.default=h},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=i(2),u=c.__importDefault(i(99)),h=c.__importDefault(i(3)),m=i(6);function y(A){return{start:[A.startContainer,A.startOffset],end:[A.endContainer,A.endOffset],root:A.commonAncestorContainer,collapsed:A.collapsed}}var C=function(A){c.__extends(w,A);function w(E){var b=A.call(this,E.config.historyMaxSize)||this;return b.editor=E,b.lastRange=y(document.createRange()),b.root=E.$textElem.elems[0],b.updateLastRange=m.debounce(function(){b.lastRange=y(b.rangeHandle)},E.config.onchangeTimeout),b}return(0,d.default)(w.prototype,"rangeHandle",{get:function(){var b=document.getSelection();return b&&b.rangeCount?b.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),w.prototype.observe=function(){var E=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function b(){var _=E.rangeHandle;(E.root===_.commonAncestorContainer||E.root.contains(_.commonAncestorContainer))&&(E.editor.isComposing||E.updateLastRange())}function g(_){(_.key=="Backspace"||_.key=="Delete")&&E.updateLastRange()}h.default(document).on("selectionchange",b),this.editor.beforeDestroy(function(){h.default(document).off("selectionchange",b)}),E.editor.$textElem.on("keydown",g)},w.prototype.save=function(){var E=y(this.rangeHandle);return A.prototype.save.call(this,[this.lastRange,E]),this.lastRange=E,this},w.prototype.set=function(E){try{if(E){var b=this.rangeHandle;return b.setStart.apply(b,E.start),b.setEnd.apply(b,E.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},w.prototype.revoke=function(){var E=this;return A.prototype.revoke.call(this,function(b){E.set(b[0])})},w.prototype.restore=function(){var E=this;return A.prototype.restore.call(this,function(b){E.set(b[1])})},w}(u.default);o.default=C},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(29));(0,d.default)(o,"__esModule",{value:!0});var u=i(2),h=u.__importDefault(i(3));i(438);function m(y){var C=!1,A,w;y.txt.eventHooks.changeEvents.push(function(){C&&(0,c.default)(A).call(A,".w-e-content-preview").html(y.$textElem.html())});function E(){if(!C){y.$textElem.hide();var g=y.zIndex.get("textContainer"),_=y.txt.html();A=h.default('<div class="w-e-content-mantle" style="z-index:'+g+`">
|
||
<div class="w-e-content-preview w-e-text">`+_+`</div>
|
||
</div>`),y.$textContainerElem.append(A);var x=y.zIndex.get("menu");w=h.default('<div class="w-e-menue-mantle" style="z-index:'+x+'"></div>'),y.$toolbarElem.append(w),C=!0,y.isEnable=!1}}function b(){!C||(A.remove(),w.remove(),y.$textElem.show(),C=!1,y.isEnable=!0)}return{disable:E,enable:b}}o.default=m},function(r,o,i){var l=i(20),d=i(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[r.i,d,""]]);var c={};c.insert="head",c.singleton=!1,l(d,c),r.exports=d.locals||{}},function(r,o,i){var l=i(21);o=l(!1),o.push([r.i,`.w-e-content-mantle {
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow-y: auto;
|
||
}
|
||
.w-e-content-mantle .w-e-content-preview {
|
||
width: 100%;
|
||
min-height: 100%;
|
||
padding: 0 10px;
|
||
line-height: 1.5;
|
||
}
|
||
.w-e-content-mantle .w-e-content-preview img {
|
||
cursor: default;
|
||
}
|
||
.w-e-content-mantle .w-e-content-preview img:hover {
|
||
box-shadow: none;
|
||
}
|
||
.w-e-menue-mantle {
|
||
position: absolute;
|
||
height: 100%;
|
||
width: 100%;
|
||
top: 0;
|
||
left: 0;
|
||
}
|
||
`,""]),r.exports=o},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function u(h){var m=this;this.editor=h;var y=function(){var A=document.activeElement;A===h.$textElem.elems[0]&&m.emit()};window.document.addEventListener("selectionchange",y),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",y)})}return u.prototype.emit=function(){var h,m=this.editor.config.onSelectionChange;if(m){var y=this.editor.selection;y.saveRange(),y.isSelectionEmpty()||m({text:y.getSelectionText(),html:(h=y.getSelectionContainerElem())===null||h===void 0?void 0:h.elems[0].innerHTML,selection:y})}},u}();o.default=c},function(r,o,i){var l=i(0),d=l(i(1)),c=l(i(128)),u=l(i(94)),h=l(i(4));(0,d.default)(o,"__esModule",{value:!0}),o.registerPlugin=void 0;var m=i(2),y=m.__importDefault(i(87)),C=i(6);function A(E,b,g){if(!E)throw new TypeError("name is not define");if(!b)throw new TypeError("options is not define");if(!b.intention)throw new TypeError("options.intention is not define");if(b.intention&&typeof b.intention!="function")throw new TypeError("options.intention is not function");g[E]&&console.warn("plugin "+E+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),g[E]=b}o.registerPlugin=A;function w(E){var b=(0,c.default)({},C.deepClone(y.default.globalPluginsFunctionList),C.deepClone(E.pluginsFunctionList)),g=(0,u.default)(b);(0,h.default)(g).call(g,function(_){var x=_[0],k=_[1];console.info("plugin "+x+" initializing");var T=k.intention,O=k.config;T(E,O),console.info("plugin "+x+" initialization complete")})}o.default=w},function(r,o,i){var l=i(0),d=l(i(1));(0,d.default)(o,"__esModule",{value:!0})}]).default})})(Ey);var R8=B8(Ey.exports),$8="fcEditor",I8=1,F8=Object.assign||function(e){for(var t,r=1;r<arguments.length;r++)for(var o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P8=n.defineComponent({name:$8,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:I8++}},watch:{disabled:function(){this.enable()},modelValue:function(t){t!==this.editor.txt.html()&&this.editor.txt.html(t||"")}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var t=this;this.$nextTick(function(){t.editor=new R8("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&F8(t.editor.config,t.config),t.init&&t.init(t.editor),t.editor.create(),t.enable(),t.editor.txt.html(t.modelValue)})},render:function(){var t=V8({},this.$attrs);return delete t.id,n.createVNode("div",n.mergeProps(t,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});(function(e,t){(function(r){r(Zr())})(function(r){r.defineSimpleMode=function(C,A){r.defineMode(C,function(w){return r.simpleMode(w,A)})},r.simpleMode=function(C,A){o(A,"start");var w={},E=A.meta||{},b=!1;for(var g in A)if(g!=E&&A.hasOwnProperty(g))for(var _=w[g]=[],x=A[g],k=0;k<x.length;k++){var T=x[k];_.push(new d(T,A)),(T.indent||T.dedent)&&(b=!0)}var O={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:b?[]:null}},copyState:function(I){var M={state:I.state,pending:I.pending,local:I.local,localState:null,indent:I.indent&&I.indent.slice(0)};I.localState&&(M.localState=r.copyState(I.local.mode,I.localState)),I.stack&&(M.stack=I.stack.slice(0));for(var N=I.persistentStates;N;N=N.next)M.persistentStates={mode:N.mode,spec:N.spec,state:N.state==I.localState?M.localState:r.copyState(N.mode,N.state),next:M.persistentStates};return M},token:c(w,C),innerMode:function(I){return I.local&&{mode:I.local.mode,state:I.localState}},indent:y(w,E)};if(E)for(var F in E)E.hasOwnProperty(F)&&(O[F]=E[F]);return O};function o(C,A){if(!C.hasOwnProperty(A))throw new Error("Undefined state "+A+" in simple mode")}function i(C,A){if(!C)return/(?:)/;var w="";return C instanceof RegExp?(C.ignoreCase&&(w="i"),C.unicode&&(w+="u"),C=C.source):C=String(C),new RegExp((A===!1?"":"^")+"(?:"+C+")",w)}function l(C){if(!C)return null;if(C.apply)return C;if(typeof C=="string")return C.replace(/\./g," ");for(var A=[],w=0;w<C.length;w++)A.push(C[w]&&C[w].replace(/\./g," "));return A}function d(C,A){(C.next||C.push)&&o(A,C.next||C.push),this.regex=i(C.regex),this.token=l(C.token),this.data=C}function c(C,A){return function(w,E){if(E.pending){var b=E.pending.shift();return E.pending.length==0&&(E.pending=null),w.pos+=b.text.length,b.token}if(E.local)if(E.local.end&&w.match(E.local.end)){var g=E.local.endToken||null;return E.local=E.localState=null,g}else{var g=E.local.mode.token(w,E.localState),_;return E.local.endScan&&(_=E.local.endScan.exec(w.current()))&&(w.pos=w.start+_.index),g}for(var x=C[E.state],k=0;k<x.length;k++){var T=x[k],O=(!T.data.sol||w.sol())&&w.match(T.regex);if(O){T.data.next?E.state=T.data.next:T.data.push?((E.stack||(E.stack=[])).push(E.state),E.state=T.data.push):T.data.pop&&E.stack&&E.stack.length&&(E.state=E.stack.pop()),T.data.mode&&h(A,E,T.data.mode,T.token),T.data.indent&&E.indent.push(w.indentation()+A.indentUnit),T.data.dedent&&E.indent.pop();var F=T.token;if(F&&F.apply&&(F=F(O)),O.length>2&&T.token&&typeof T.token!="string"){for(var I=2;I<O.length;I++)O[I]&&(E.pending||(E.pending=[])).push({text:O[I],token:T.token[I-1]});return w.backUp(O[0].length-(O[1]?O[1].length:0)),F[0]}else return F&&F.join?F[0]:F}}return w.next(),null}}function u(C,A){if(C===A)return!0;if(!C||typeof C!="object"||!A||typeof A!="object")return!1;var w=0;for(var E in C)if(C.hasOwnProperty(E)){if(!A.hasOwnProperty(E)||!u(C[E],A[E]))return!1;w++}for(var E in A)A.hasOwnProperty(E)&&w--;return w==0}function h(C,A,w,E){var b;if(w.persistent)for(var g=A.persistentStates;g&&!b;g=g.next)(w.spec?u(w.spec,g.spec):w.mode==g.mode)&&(b=g);var _=b?b.mode:w.mode||r.getMode(C,w.spec),x=b?b.state:r.startState(_);w.persistent&&!b&&(A.persistentStates={mode:_,spec:w.spec,state:x,next:A.persistentStates}),A.localState=x,A.local={mode:_,end:w.end&&i(w.end),endScan:w.end&&w.forceEnd!==!1&&i(w.end,!1),endToken:E&&E.join?E[E.length-1]:E}}function m(C,A){for(var w=0;w<A.length;w++)if(A[w]===C)return!0}function y(C,A){return function(w,E,b){if(w.local&&w.local.mode.indent)return w.local.mode.indent(w.localState,E,b);if(w.indent==null||w.local||A.dontIndentStates&&m(w.state,A.dontIndentStates)>-1)return r.Pass;var g=w.indent.length-1,_=C[w.state];e:for(;;){for(var x=0;x<_.length;x++){var k=_[x];if(k.data.dedent&&k.data.dedentIfLineStart!==!1){var T=k.regex.exec(E);if(T&&T[0]){g--,(k.next||k.push)&&(_=C[k.next||k.push]),E=E.slice(T[0].length);continue e}}}break}return g<0?0:w.indent[g]}}})})();const Jz="",Xz="",Zz="",qz="";ki.defineSimpleMode("fcComputedMode",{start:[{regex:/[a-zA-Z_]\w*/,token:"keyword"},{regex:/[a-z]+/,token:"def"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+]?(\d*\.)?\d+/,token:"number"},{regex:/"(?:[^\\]|\\.)*?(?:"|$)/,token:"string"},{regex:/[\(\),]/,token:"bracket"},{regex:/==/,token:"operator"},{regex:/=/,token:"operator"},{regex:/[!<>]=?/,token:"operator"},{regex:/&&|\|\|/,token:"operator"},{regex:/[\+\-\*\%\/]/,token:"builtin"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}]});const kt=(e,t,r)=>{ze.component(e,r||t),An.component(e,t)};ze.component("draggable",jr),ze.component("DragTool",gy),ze.component("DragBox",yy),ze.component("Validate",P3),ze.component("Struct",Vv),ze.component("HtmlEditor",lM),ze.component("FnEditor",Ni),ze.component("ComputedConfig",vg),ze.component("Required",z3),ze.component("TableOptions",Ev),ze.component("TreeOptions",q3),ze.component("TableFormColumn",Cy),ze.component("TableFormColumn2",Cy),ze.component("EventConfig",bg),ze.component("FetchConfig",wM),ze.component("TableColumnConfig",TM),ze.component("TableButtonConfig",FM),ze.component("SizeInput",ro),ze.component("PatternInput",Du),ze.component("StyleConfig",Nv),ze.component("GlobalFetchConfig",_v),ze.component("GlobalFetchSelect",e3),ze.component("GlobalEventConfig",Cv),ze.component("GlobalClassConfig",Tv),ze.component("GlobalClassSelect",o3),ze.component("GlobalVariableConfig",Dv),ze.component("FetchTable",f3),ze.component("VariableConfig",ra),ze.component("ColorInput",oo),ze.component("ConfigItem",Fn),ze.component("ConfigTitle",bv),ze.component("FieldInput",uM),ze.component("PromptInput",hM),ze.component("ValueInput",Kl),ze.component("StepFormItem",$L),ze.component("FcRow",l8),ze.component("FnConfig",GM),ze.component("FnInput",vy),ze.component("RuleSelect",Vu),ze.component("HideConfig",c8),ze.component("SpanInput",p8),ze.component("LanguageInput",wf),kt("FcSlot",Wh,E3),kt("FcJson",Gh,S3),kt("DataTable",xc),kt("FcEditor",P8),kt("fcInlineForm",kc),kt("FcCell",Uh,r8),kt("TableForm",Mh,wy),kt("TableFormPro",Lh,wy),kt("StepForm",iL,lL),kt("FcValue",Hh,_3),kt("FcTable",Ph,y3),kt("NestedTableForm",zh,wL),kt("InfiniteTableForm",jh,xL),kt("FcDialog",mm,UL),kt("FcDrawer",t8,JL),kt("AudioBox",vm),kt("VideoBox",og),kt("BarCodeBox",rg),kt("IframeBox",ym),kt("QrCodeBox",lg),kt("SignaturePad",S8),kt("FcEcharts",Kh),kt("FcTitle",Jh),kt("FcCity",v8),kt("FcId",Qh),kt("FcMarkdown",hm),kt("fcDataSelect",gm,D8);const M8=function(e){(Array.isArray(e)?e:[e]).forEach(r=>{jt[r.name]=r.handle,_c[r.name]=r.example,Wl.value.formula[r.name]=r.info,kh.forEach(o=>{o.key===r.menu&&o.children.push(r.name),An.setFormula(r.name,r.handle),ze.setFormula(r.name,r.handle)})})},L8=function(e){(Array.isArray(e)?e:[e]).forEach(r=>{Ec[r.name]=r.handle,Th[r.name]=r.rule,Wl.value.behavior[r.name]={info:r.info,name:r.label},Nh.forEach(o=>{o.key===r.menu&&o.children.push(r.name)})})},Sy=function(e){e.component("FcDesigner",It)};It.install=Sy,It.makeOptionsRule=Pi,It.formCreate=An,It.designerForm=ze,It.component=kt,It.setFormula=M8,It.setBehavior=L8,It.useLocale=hg,It.copyTextToClipboard=di,It.getInjectArg=on,It.localeOptions=it,It.localeProps=Be,It.makeRequiredRule=od,It.makeTreeOptions=Qn,It.makeTreeOptionsRule=Or,It.makeTitleRule=ad,It.makeDataRule=Ln,It.toJSON=En,It.loadjs=nn,It.t=Gl,It.utils={copyTextToClipboard:di,getInjectArg:on,localeOptions:it,localeProps:Be,makeTitleRule:ad,makeOptionsRule:Pi,makeRequiredRule:od,makeTreeOptions:Qn,makeTreeOptionsRule:Or,makeDataRule:Ln,toJSON:En};const Ay="3.2.22";Mb(Ay,An.version)===1&&console.error("Please use FormCreate version "+Ay+" or greater, see https://github.com/xaboy/form-create."),gt.copyTextToClipboard=di,gt.default=It,gt.designerForm=ze,gt.formCreate=An,gt.getInjectArg=on,gt.install=Sy,gt.loadjs=nn,gt.localeOptions=it,gt.localeProps=Be,gt.makeDataRule=Ln,gt.makeOptionsRule=Pi,gt.makeRequiredRule=od,gt.makeTitleRule=ad,gt.makeTreeOptions=Qn,gt.makeTreeOptionsRule=Or,gt.t=Gl,gt.toJSON=En,Object.defineProperties(gt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|