web-view-antd/lib/fcDesignerPro/dist/index.umd.js

1337 lines
1.5 MiB
JavaScript
Raw Normal View History

2025-02-20 14:40:31 +08:00
/*!
* FormCreate商业版可视化表单设计器-让表单设计更简单
* fc-designer-pro v5.6.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 .ant-pagination{display:flex;margin-top:10px}._fc-data-table .ant-pagination.left{justify-content:flex-start}._fc-data-table .ant-pagination.center{justify-content:center}._fc-data-table .ant-pagination.right{justify-content:flex-end}._fc-data-table ._fc-data-table-img-list .ant-image{height:60px;max-width:150px}._fc-data-table ._fc-data-table-img-list .ant-image img{height:100%;object-fit:cover;width:100%}._fc-data-table .ant-btn+.ant-btn{margin-left:12px}._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-form{color:var(--fc-text-color-2);overflow:auto}._fc-table-form .form-create .ant-form-item{margin-bottom:1px!important}._fc-table-form .ant-form-item-label,._fc-table-form .van-field__label{display:none!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>.ant-btn{align-items:center;display:flex;padding:2px}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.ant-btn{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 .ant-cascader,._fc-tf-table .ant-input-number,._fc-tf-table .ant-picker,._fc-tf-table .ant-select,._fc-tf-table .ant-slider{width:100%}._fc-tf-head-required:before{color:#f56c6c;content:"*";margin-right:4px}._fc-infinite-table-form{color:var(--fc-text-color-2);overflow:auto}._fc-infinite-table-form .form-create .ant-form-item{margin-bottom:1px}._fc-infinite-table-form .ant-form-item-label,._fc-infinite-table-form .van-field__label{display:none!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>.ant-btn{align-items:center;display:flex;padding:2px}._fc-infinite-table-form._fc-disabled ._fc-itf-btn .fc-icon,._fc-infinite-table-form._fc-disabled>.ant-btn{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
(function(Et,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("ant-design-vue"),require("@form-create/ant-design-vue"),require("@form-create/vant")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue","@form-create/ant-design-vue","@form-create/vant"],n):(Et=typeof globalThis<"u"?globalThis:Et||self,n(Et.FcDesigner={},Et.Vue,Et.antd,Et.formCreate,Et.formCreateMobile))})(this,function(Et,n,Jl,Uv,Wv){"use strict";const Pu=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},ua=Pu(Uv),At=Pu(Wv),at={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&&!at.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=>{at[e]=function(t){return at.type(t,e)}});function In(e,t){return{}.hasOwnProperty.call(e,t)}function ci(e,t,i){e[t]=i}function Zl(e,t={},i){let r=!1;for(let o in t)if(Object.prototype.hasOwnProperty.call(t,o)){let s=t[o];if((r=Array.isArray(s))||at.Object(s)){let d=e[o]===void 0;if(r)r=!1,d&&ci(e,o,[]);else if(s._clone&&i!==void 0)if(i)s=s.getRule(),d&&ci(e,o,{});else{ci(e,o,s._clone());continue}else d&&ci(e,o,{});e[o]=Zl(e[o],s,i)}else ci(e,o,s),at.Undef(s)||(at.Undef(s.__json)||(e[o].__json=s.__json),at.Undef(s.__origin)||(e[o].__origin=s.__origin))}return i!==void 0&&Array.isArray(e)?e.filter(o=>!o||!o.__ctrl):e}function et(e){return Zl({},{value:e}).value}function Gv(e,t,i){return`[form-create ${e}]: ${t}`+(i?`
rule: `+JSON.stringify(i.getRule?i.getRule():i):"")}function Kv(e,t){console.error(Gv("err",e,t))}const Mu="[[FORM-CREATE-PREFIX-",Lu="-FORM-CREATE-SUFFIX]]";function ql(e){return new Function("return "+e)()}function es(e,t){if(e&&at.String(e)&&e.length>4){let i=e.trim(),r=!1;try{if(i.indexOf(Lu)>0&&i.indexOf(Mu)===0)i=i.replace(Lu,"").replace(Mu,""),r=!0;else if(i.indexOf("$FN:")===0)i=i.substring(4),r=!0;else if(i.indexOf("$EXEC:")===0)i=i.substring(6),r=!0;else if(i.indexOf("$GLOBAL:")===0){const s=i.substring(8);return i=function(...d){const c=d[0].api.getGlobalEvent(s);if(c)return c.call(this,...d)},i.__json=e,i.__inject=!0,i}else{if(i.indexOf("$FNX:")===0)return i=ql("function($inject){"+i.substring(5)+"}"),i.__json=e,i.__inject=!0,i;(!t&&i.indexOf("function ")===0&&i!=="function "||!t&&i.indexOf("function(")===0&&i!=="function(")&&(r=!0)}if(!r)return e;let o;try{o=ql(i)}catch{o=ql("function "+i)}return o.__json=e,o}catch(o){Kv(`\u89E3\u6790\u5931\u8D25:${i}
err: ${o}`);return}}return e}function ju(e){const t=e.replace(/(-[a-z])/g,function(i){return i.replace("-","").toLocaleUpperCase()});return fa(t)}function fa(e){return e.replace(e[0],e[0].toLowerCase())}const zu={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",ignore:"\u5FFD\u7565\u5B57\u6BB5",native:"\u662F\u5426\u663E\u793A\u6807\u9898",control:"\u8054\u52A8\u6570\u636E",labelShow:"\u662F\u5426\u663E\u793A",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",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",layout:"\u8868\u5355\u5E03\u5C40",labelAlign:"\u6807\u7B7E\u7684\u4F4D\u7F6E",labelWrap:"\u5141\u8BB8\u6807\u7B7E\u6362\u884C",colon:"\u662F\u5426\u663E\u793A\u6807\u7B7E\u540E\u9762\u7684\u5192\u53F7",labelCol:"\u6807\u7B7E\u7684\u5BBD\u5EA6",hideRequiredMark:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",formItemMarginBottom:"\u8868\u5355\u9879\u7684\u4E0B\u8FB9\u8DDD",scrollToFirstError:"\u63D0\u4EA4\u5931\u8D25\u81EA\u52A8\u6EDA\u52A8\u5230\u7B2C\u4E00\u4E2A\u9519\u8BEF\u5B57\u6BB5",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",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\
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script>
import formCreate from "@form-create/ant-design-vue";
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 Jv(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/ant-design-vue";
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 Zv(e,t){return`<template>
<form-create-mobile
driver="antd"
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 qv(e,t){return`<template>
<form-create-mobile
driver="antd"
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 ns(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function IM(e){}function Tn(e,t,i){const r=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],o=[{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"+fi(t).replace(".",">"),title:i||e("props.options"),_fc_important_prop:!0,wrap:{show:!1}}]}];return{type:"radio",title:i||e("props.options"),field:"_optionType",value:2,options:r,props:{type:"button"},control:o}}function Fn(e,t,i,r=[]){t.id||(t.id=1),i&&i--;for(let o=0;o<3;o++){const s={[t.label]:e+i*10+(o+1),[t.value]:""+t.id++};i&&Fn(e+(o+1)+"-",t,i,s.children=[]),r.push(s)}return r}function os(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_important_prop:!1,col:{show:!1},slot:"append"},{type:"select",field:"formCreateWrap>labelAlign",_fc_important_prop:!1,col:{show:!1},options:st(e,[{label:"left",value:"left"},{label:"right",value:"right"}]),slot:"append",title:e("form.labelAlign")},{type:"SizeInput",field:"formCreateWrap>labelCol>style>width",_fc_important_prop:!1,col:{show:!1},value:"",slot:"append",title:e("form.labelCol")}]}]}function Eo(e,t,i,r){const o=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{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"+fi(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{column:[{label:"label",key:i||"label"},{value:!0,label:"value",key:r||"value"}],keyValue:i||"label"}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:o,props:{optionType:"button"},control:s}}function ui(e,t,i,r){const o=[{label:e("fetch.optionsType.struct"),value:2},{label:e("fetch.optionsType.fetch"),value:3},{label:e("fetch.optionsType.global"),value:1}],s=[{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"+fi(t).replace(".",">"),title:e("props.options"),_fc_important_prop:!0,wrap:{show:!1},props:{columns:{label:i,value:r},keyValue:i}}]}];return{type:"radio",title:e("props.options"),field:"_optionType",value:2,options:o,props:{optionType:"button"},control:s}}function fi(e){return e.replace(e[0],e[0].toLocaleUpperCase())}const fn=function(e){const t=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(e));return t&&Hu[t[1].toLowerCase()]?Hu[t[1].toLowerCase()](e):e},Hu={object:function(e){var t=[];for(var i in e)!In(e,i)||t.push(fn(i)+": "+(e[i]!=null?fn(e[i]):"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,i=[];t<e.length;t++)i[t]=e[t]!=null?fn(e[t]):"null";return"["+i.join(", ")+"]"},string:function(e){for(var t=e.split(""),i=0;i<t.length;i++){var r=t[i];r>=" "?r==="\\"?t[i]="\\\\":r==='"'&&(t[i]='\\"'):t[i]=r===`
`?"\\n":r==="\r"?"\\r":r===" "?"\\t":r==="\b"?"\\b":r==="\f"?"\\f":(r=r.charCodeAt(),"\\u00"+(r>15?1:0)+r%16)}return'"'+t.join("")+'"'}},Uu=function(e){if(e&&typeof e=="object"){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let i=e[t];(Array.isArray(i)||at.Object(i))&&Uu(i),at.String(i)&&(e[t]=es(i))}}return e};function pi(e,t,i){t=(t||"").split(".");let r=0,o=t.length;for(;e!=null&&r<o;)e=e[t[r++]];return r&&r===o&&e!==void 0?e:i}const ey=e=>(t,i)=>ty(t,i,n.unref(e)),ty=(e,t,i)=>pi(i,e,"").replace(/\{(\w+)\}/g,(r,o)=>{var s;return`${(s=t==null?void 0:t[o])!=null?s:`{${o}}`}`}),ny=e=>{const t=n.computed(()=>n.unref(e).name),i=n.computed(()=>fi(ju(t.value||""))),r=n.isRef(e)?e:n.ref(e);return{lang:t,name:i,locale:r,t:ey(e)}},is=e=>ny(n.computed(()=>(n.isRef(e)?e.value:e)||zu)),st=(e,t,i)=>t.map(r=>(r.label=e((i||"props")+"."+(r.label||r.value))||r.label,r)),Pe=(e,t,i)=>i.map(r=>(r.field==="formCreate$required"?r.title=e("validate.required")||r.title:r.field&&r.field!=="_optionType"&&(r.title=e("com."+t+"."+r.field)||r.title),r.type==="template"&&at.trueArray(r.children)&&(r.children=Pe(e,t,r.children)),r)),rs=e=>{const t=[];return e&&e.forEach(i=>{if(!i._fc_drag_skip)if(i._fc_drag_tag){const r={id:i.__fc__.id,rule:i,children:rs(i.children)};r.children.length||delete r.children,t.push(r)}else t.push(...rs(i.children))}),t},Wu=e=>{const t=i=>{const r=[];return i&&i.forEach(o=>{o._fc_drag_skip||(o.field?(o.children=t(o.children||[]),o.children.length||delete o.children,r.push(o)):r.push(...t(o.children||[])))}),r};return t(e)},Gu=e=>{const t=i=>{const r=[];return i&&i.forEach(o=>{if(typeof o=="object")if(o._fc_drag_tag){const s={_fc_id:o._fc_id,_fc_drag_tag:o._fc_drag_tag==="_"?void 0:o._fc_drag_tag,type:o.type,field:o.field,title:o.title,name:o.name,slot:o.slot,props:{...o.props||{}},children:t(o.children||[])};o.children&&typeof o.children[0]=="string"&&(s.content=o.children[0]),s.children.length||delete s.children,r.push(s)}else r.push(...t(o.children))}),r};return t(e)};function bn(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 Gn(e){return["",null,void 0].indexOf(e)!==-1}function Ku(e){return e.replace(/[\ .*+?^${}()|[\]\\]/g,"\\$&")}function oy(e,t){const i=e.split("."),r=t.split("."),o=Math.min(i.length,r.length);for(var s=0;s<o;s++){var d=parseInt(i[s],10)-parseInt(r[s],10);if(d>0)return 1;if(d<0)return-1}return i.length===r.length?0:i.length<r.length?-1:1}function Kn(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")}ts("\u5DF2\u590D\u5236!","success"),document.body.removeChild(t)}function as(e){return e.filter((t,i)=>e.indexOf(t)===i)}function ls(e,t=null){return e.forEach(i=>{Object.defineProperty(i,"$parent",{value:t,enumerable:!1,writable:!0,configurable:!0}),i.children&&Array.isArray(i.children)&&ls(i.children,i)}),e}let iy=0;function Ye(){const e=370+ ++iy;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+e.toString(36)+"c"}function ry(e,t){return function(i,r,o){const s={...i||{}};Object.keys(s).forEach(d=>{Gn(s[d])&&delete s[d]}),o.getRule(e).props.info=Object.keys(s).length>0?t("struct.configured"):""}}function Yu({t:e}){const t=Ye();return[{type:"input",field:">formName",value:"",title:e("form.formName")},{type:"radio",field:"layout",value:"horizontal",title:e("form.layout"),options:st(e,[{value:"horizontal",label:"horizontal"},{value:"vertical",label:"vertical"}])},{type:"radio",field:"labelAlign",value:"left",title:e("form.layout"),options:st(e,[{value:"left",label:"left"},{value:"right",label:"right"}])},{type:"switch",field:"labelWrap",value:!1,title
file.url = file.response.url;`}}},props(e,{t}){return Pe(t,ws+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:st(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:[bn(t)],name:"beforeUpload"}},{type:"FnInput",field:"onSuccess",warning:t("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"onSuccess"}},{type:"FnInput",field:"customRequest",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"customRequest"}},{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:"inputNumber",field:"maxCount",props:{min:0}}])}},zy="\u7A7F\u68AD\u6846",Es="aTransfer",Hy={menu:"main",icon:"icon-transfer",label:zy,name:Es,input:!0,event:["change","search","selectChange"],validate:["array"],condition:function(e){return{type:"select",options:e.props.dataSource?e.props.dataSource.map(t=>({label:t.title,value:t.key})):[]}},sfc(e){e.type="aTransfer",e._sfc.modelField="targetKeys"},rule({t:e}){return{type:Es,field:Ye(),modelField:"targetKeys",title:e("com.aTransfer.name"),info:"",$required:!1,props:{render:new Function("item","return item.label || item.title"),dataSource:Fn(e("props.option"),{label:"label",value:"key"},1)}}},props(e,{t}){return Pe(t,Es+".props",[Eo(t,"props.dataSource","label","key"),{type:"switch",field:"oneWay"},{type:"switch",field:"pagination"},{type:"switch",field:"showSearch"},{type:"switch",field:"showSelectAll"},{type:"TableOptions",field:"titles",props:{column:[{label:t("props.value"),key:"value"}],valueType:"string",max:2}}])}},Uy="\u6811\u5F62\u63A7\u4EF6",As="tree",Wy={menu:"main",icon:"icon-tree",label:Uy,name:As,input:!0,event:["check","expand","select","rightClick"],validate:["string","number","array"],condition:function(e){const t=e.props.fieldNames||{};return{type:"cascader",options:e.props.treeData||[],props:{fieldNames:{label:t.title||"label",value:t.key||"id"}}}},sfc(e){e.type="aTree",e._sfc.modelField="checkedKeys"},rule({t:e}){return{type:As,field:Ye(),title:e("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{fieldNames:{title:"label",key:"id"},checkable:!0,treeData:Fn(e("props.option"),{label:"label",value:"id"},3)}}},props(e,{t}){return Pe(t,As+".props",[ui(t,"props.treeData","label","id"),{type:"TableOptions",field:"fieldNames",props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"showLine"},{type:"switch",field:"defaultExpandAll"}])}},Gy="\u63D0\u793A",Ss="aAlert",Ky={menu:"aide",icon:"icon-alert",label:Gy,name:Ss,event:["close"],rule({t:e}){return{type:Ss,props:{message:e("com.aAlert.name"),description:e("com.aAlert.description"),type:"success"},style:{width:"100%"},children:[]}},props(e,{t}){return Pe(t,Ss+".props",[{type:"input",field:"message"},{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:!1},{type:"switch",field:"banner",value:!1},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"}])}},Yy="\u6587\u5B57",nf="text",Qy={menu:"aide",icon:"icon-span",label:Yy,name:nf,inline:!0,rule({t:e}){return{type:"div",title:"",style:{whiteSpace:"pre-line"},chi
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((y,C)=>(y[C.slot]||(y[C.slot]=[]),y[C.slot].push(C),delete C.slot,y),{}),{row:i,col:r,style:o,class:s,layout:d}=e.props.rule,c={},u=[];d.forEach(y=>{const C=y.row||1,w=y.col||1,A=`${y.top}:${y.left}`;c[A]={row:C,col:w};for(let E=0;E<C;E++)for(let _=0;_<w;_++){if(E===0&&E===_)continue;const v=`${y.top+E}:${y.left+_}`;t[v]&&(t[A]=(t[A]||[]).concat(t[v]),delete t[v]),u.push(v)}});const g=[];for(let y=0;y<i;y++){const C=[];for(let w=0;w<r;w++){const A=`${y}:${w}`;if(u.indexOf(A)>-1)continue;const E=t[A];C.push({type:"td",props:{rowspan:""+(c[A]?c[A].row:1),colspan:""+(c[A]?c[A].col:1)},style:o[A],class:s[A],children:E})}g.push({type:"tr",children:C})}return{type:"aCol",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:g}]}]}}},rule(){return{type:Ms,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(e,{t}){return Pe(t,Ms+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},T0="\u8868\u683C\u8868\u5355",Ls="tableForm",O0={menu:"subform",icon:"icon-table-form",label:T0,name:Ls,mask:!1,input:!0,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(i=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:i.label,required:i.required||!1,width:i.style.width||"",color:i.style.color||""},children:i.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(i=>({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:Ls,field:Ye(),title:e("com.tableForm.name"),info:"",props:{},children:[]}},props(e,{t}){return Pe(t,Ls+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"max",props:{min:0}}])}},D0="\u65E0\u9650\u7EA7\u8868\u5355",ha="infiniteTableForm",B0={menu:"subform",icon:"icon-table-form3",label:D0,name:ha,input:!0,mask:!1,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("props.title"),vnode:t(i("a-input"),{size:"small",value:r.props.label,"onUpdate:value":o=>{r.props.label=o}})}]},loadRule(e){e.props||(e.props={});const t=e.props.columns||[];e.children=t.map(i=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:i.label,required:i.required||!1,width:i.style.width||"",color:i.style.color||""},children:i.rule||[]})),delete e.props.columns},parseRule(e){const t=e.children||[];e.props.columns=t.map(i=>({label:i.props.label,required:i.props.required,style:{width:i.props.width,color:i.props.color},rule:i.children||[]})),e.children=[]},sfc:!1,rule({t:e}){return{type:ha,field:Ye(),title:e("com."+ha+".name"),info:"",props:{},children:[]}},props(e,{t}){return Pe(t,ha+".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}}])}},$0="\u5D4C\u5957\u8868\u5355",ma="nestedTableForm",V0=e=>e.map(t=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{required:t.required||!1,label:t.label,width:t.style.width||"",color:t.style.color||""},children:t.rule||[]})),R0={menu:"subform",icon:"icon-table-form2",label:$0,name:ma,mask:!1,input:!0,subForm:"array",languageKey:["add","operation"],event:["change","add","delete"],slot:["default",{name:"nested",type:"nestedSubTableForm"}],children:"tableFormColumn",subRender({t:e,h:t,resolveComponent:i,subRule:r}){return[{label:e("pro
callback();}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:""}],_fc_template:"duration",_fc_id:"id_Fyjom51cjc1qahc",name:"ref_Fzqim51cjc1qaic",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Fvv5m51cjc1padc",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_Fpjhm51cjc1qalc",name:"ref_Fpr6m51cjc1qamc",display:!0,hidden:!1,style:{width:"150px"}}],style:{marginBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fq0nm51cjshzbfc",name:"ref_Fpazm51cjshzbgc",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"datePicker",field:"Fdnxm51cjc1paec",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('Fzogm51cjc1pacc');
if(startTime && value && Date.parse(startTime) > Date.parse(value)) {
callback(false);
return;
}
callback()}-FORM-CREATE-SUFFIX]]`,mode:"validator",message:"\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u7ED3\u675F\u65F6\u95F4"}],_fc_template:"duration",_fc_id:"id_F6hgm51cjc1qarc",name:"ref_F18lm51cjc1qasc",display:!0,hidden:!1,style:{width:"250px"}},{type:"select",field:"Ff4rm51cjc1pafc",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_Fcshm51cjc1qavc",name:"ref_F5xqm51cjc1qawc",display:!0,hidden:!1,style:{width:"150px"}}],style:{paddingBottom:"12px"}},{type:"fcInlineForm",_fc_id:"id_Fvuxm51cjt51bhc",name:"ref_F6a5m51cjt51bic",display:!0,hidden:!1,_fc_drag_tag:"fcInlineForm",children:[{type:"inputNumber",field:"F68jm51cjc1pagc",title:"\u65F6\u957F",$required:!1,props:{controls:!1},_fc_drag_tag:"inputNumber",_fc_template:"duration",_fc_id:"id_Fqtim51cjc1qb1c",name:"ref_Fla0m51cjc1qb2c",display:!0,hidden:!1,style:{width:"250px"},computed:{value:"MAX(IF(Fzogm51cjc1pacc && Fdnxm51cjc1paec && TIMESTAMP(Fdnxm51cjc1paec) > TIMESTAMP(Fzogm51cjc1pacc), DIFFDAYS(Fzogm51cjc1pacc, Fdnxm51cjc1paec), -1) + IF(Ff4rm51cjc1pafc && Fvv5m51cjc1padc, Ff4rm51cjc1pafc - Fvv5m51cjc1padc + 0.5, 0), 0);"}},{type:"text",native:!0,children:["\u5929"],_fc_drag_tag:"text",_fc_template:"duration",_fc_id:"id_Frd4m51cjc1qb5c",name:"ref_Fhwjm51cjc1qb6c",display:!0,hidden:!1,style:{marginTop:"5px"}}]}]},Y0={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"}]},Q0={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"}]},X0={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"}]},J0="\u6570\u636E\u8868\u683C",ya="dataTable",Z0=()=>{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},q0={menu:"main",icon:"icon-data-table",label:J0,name:ya,languageKey:["operation"],event:["handleClick","change","rowSelectionChange"],sfc:!1,rule(){return{type:ya,native:!0,props:{scroll:{x:"1000px",y:"500px"},button:{},data:Z0(),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 i=function(o){return Pe(t,ya+".props",o)},r=i([{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 Pe(t,ya+".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:{optionType:"button"},control:[{value:1,rule:[{type:"GlobalFetchSelect",field:"globalDataKey"},...r]},{value:2,rule:[{type:"FetchConfig",field:"fetch"},...r]},{value:0,rule:[{type:"Struct",title:t("com.dataTable.props._optionType"),fiel
width: 100%;
display: flex;
flex-wrap: wrap;
}
._fc-line-form .ant-form-item {
flex: none;
flex-wrap: nowrap;
margin-inline-end: 16px;
margin-bottom: 0;
}
._fc-line-form .ant-select, ._fc-line-form .ant-slider {
width: 220px;
}`,handle(e){return{type:"div",class:"_fc-line-form",children:e.children}}},rule(){return{type:sf,props:{}}},props(){return[]}},s1="\u56FE\u7247",Us="aImage",d1={menu:"aide",icon:"icon-image",label:s1,name:Us,inline:!0,rule(){return{type:Us,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(e,{t}){return Pe(t,Us+".props",[{type:"input",field:"src"},{type:"switch",field:"preview",value:!0}])}},c1={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")}]}},u1="\u8868\u5355\u9879",Ws="aFormItem",f1={menu:"container",icon:"icon-form-item",label:u1,name:Ws,drag:!0,mask:!1,event:!1,rule({t:e}){return{type:Ws,props:{label:e("com.aFormItem.name")},children:[]}},props(e,{t}){return Pe(t,Ws+".props",[{type:"input",field:"label"},{type:"SizeInput",field:"labelCol>style>width",value:"",title:t("form.labelCol")},{type:"radio",field:"labelAlign",title:t("form.layout"),options:st(t,[{value:"left",label:"left"},{value:"right",label:"right"}])}])}},p1="\u97F3\u9891\u64AD\u653E\u5668",Gs="audioBox",h1={menu:"aide",icon:"icon-audio",label:p1,name:Gs,mask:!1,event:["pause","play","ended"],rule(){return{type:Gs,props:{src:"https://static.form-create.com/res/demo.mp3",type:"audio/mpeg"}}},props(e,{t}){return Pe(t,Gs+".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:st(t,[{label:"auto",value:"auto"},{label:"metadata",value:"metadata"},{label:"none",value:"none"}],"com.audioBox.preloadOpt")}])}},m1="\u89C6\u9891\u64AD\u653E\u5668",Ks="videoBox",g1={menu:"aide",icon:"icon-video",label:m1,name:Ks,mask:!1,event:["pause","play","ended","error"],rule(){return{type:Ks,props:{src:"https://static.form-create.com/res/demo.mp4",type:"mp4"}}},props(e,{t}){return Pe(t,Ks+".props",[{type:"input",field:"src"},{type:"select",field:"type",options:[{la
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 Pe(t,"lineChart.props",[Tn(t,"props.config",t("com.lineChart.data")),{type:"FnInput",field:"loadOptions",props:{body:!0,button:!0,fnx:!0,args:[bn(t)],name:"loadOptions"}}])}},By,N0,l1,c1,P0,M0,Zy,Xy,s0,c0,C0,e1,t1,Y0,Q0,X0,G0,K0,$y,Ry,f0,y0,A0];function I1(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 hf(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function Yn(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(i),!0).forEach(function(r){F1(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hf(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function wa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?wa=function(t){return typeof t}:wa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function F1(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function ao(){return ao=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},ao.apply(this,arguments)}function P1(e,t){if(e==null)return{};var i={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(i[o]=e[o]);return i}function M1(e,t){if(e==null)return{};var i=P1(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(i[r]=e[r]))}return i}var L1="1.14.0";function lo(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var so=lo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dr=lo(/Edge/i),mf=lo(/firefox/i),cr=lo(/safari/i)&&!lo(/chrome/i)&&!lo(/android/i),gf=lo(/iP(ad|od|hone)/i),j1=lo(/chrome/i)&&lo(/android/i),vf={capture:!1,passive:!1};function yt(e,t,i){e.addEventListener(t,i,!so&&vf)}function pt(e,t,i){e.removeEventListener(t,i,!so&&vf)}function Ea(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 z1(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Qn(e,t,i,r){if(e){i=i||document;do{if(t!=null&&(t[0]===">"?e.parentNode===i&&Ea(e,t):Ea(e,t))||r&&e===i)return e;if(e===i)break}while(e=z1(e))}return null}var yf=/\s+/g;function Cn(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(yf," ").replace(" "+t+" "," ");e.className=(r+(i?" "+t:"")).replace(yf," ")}}function ot(e,t,i){var r=e&&e.style;if(r){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),t===void 0?i:i[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=i+(typeof i=="string"?"":"px")}}function hi(e,t){var i="";if(typeof e=="string")i=e;else do{var r=ot(e,"transform");r&&r!=="none"&&(i=r+" "+i)}while(!t&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(i)}function bf(e,t,i){if(e){var r=e.getElementsByTagName(t),o=0,s=r.length;if(i)for(;o<s;o++)i(r[o],o);return r}return[]}function Xn(){var e=document.scrollingElement;return e||document.documentElement}function zt(e,t,i,r,o){if(!(!e.getBoundingClientRect&&e!==window)){var s,d,c,u,g,y,C;if(e!==window&&e.parentNode&&e!==Xn()?(s=e.getBoundingClientRect(),d=s.top,c=s.left,u=s.bottom,g=s.right,y=s.height,C=s.width):(d=0,c=0,u=window.innerHeight,g=window.innerWidth,y=window.innerHeight,C=window.innerWidth),(t||i)&&e!==window&&(o=o||e.parentNode,!so))do if(o&&o.getBoundingClientRect&&(ot(o,"transform")!=="none"||i&&ot(o,"position")!=="static")){var w=o.getBoundingClientRect();d-=w.top+parseInt(ot(o,"border-top-width")),c-=w.left+parseInt(ot(o,"border-left-width")),u=d+s.height,g=c+s.width;break}while(o=o.parentNode);if(r&&e!==window){var A=hi(o||e),E=A&&A.a,_=A&&A.d;A&&
* @form-create/component-antdv-upload v3.2.15
* (c) 2018-2024 xaboy
* Github https://github.com/xaboy/form-create with upload
* Released under the MIT License.
*/function Xf(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function wd(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?Xf(Object(i),!0).forEach(function(r){Jf(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Xf(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function Pa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pa=function(t){return typeof t}:Pa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function Jf(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Ib(e){return Array.isArray(e)?e:[null,void 0,""].indexOf(e)>-1?[]:[e]}function Fb(e,t){return Object.keys(e).reduce(function(i,r){return(!t||t.indexOf(r)===-1)&&i.push(e[r]),i},[])}var Zf={name:"PlusOutlined"},Pb={class:"anticon"},Mb=n.createElementVNode("svg",{height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[n.createElementVNode("defs"),n.createElementVNode("path",{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z",fill:"currentColor"}),n.createElementVNode("path",{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z",fill:"currentColor"})],-1),Lb=[Mb];function jb(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("span",Pb,Lb)}Zf.render=jb;var qf={name:"UploadOutlined"},zb={class:"anticon"},Hb=n.createElementVNode("svg",{focusable:"false","data-icon":"upload",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",viewBox:"64 64 896 896"},[n.createElementVNode("path",{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"})],-1),Ub=[Hb];function Wb(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("span",zb,Ub)}qf.render=Wb;var ep=function(t,i){return Pa(t)==="object"?t:{url:t,is_string:!0,name:Gb(t),status:"done",uid:-1*(i+1)}},Gb=function(t){return(""+t).split("/").pop()},tp=function(t){return wd(wd({},t),{},{file:t,value:t})},Kb="fcUpload",Yb=n.defineComponent({name:Kb,inheritAttrs:!1,formCreateParser:{toFormValue:function(t){return Ib(t)},toValue:function(t,i){return i.prop.props.limit===1?t[0]||"":t}},props:{limit:{type:Number,default:0},modelValue:{type:[Array,String,Object],default:function(){return[]}},onSuccess:{type:Function,required:!0},onPreview:Function,listType:String,modalTitle:String,previewMask:void 0},emits:["update:modelValue","change","fc.el"],data:function(){return{previewImage:"",previewVisible:!1,uploadList:this.modelValue.map(ep).map(tp)}},watch:{modelValue:function(t){this.uploadList=t.map(ep).map(tp)}},methods:{handlePreview:function(t){this.onPreview?this.onPreview.apply(this,arguments):(this.previewImage=t.url,this.previewVisible=!0)},handleChange:function(t){var i=t.file,r=t.fileList;this.$emit.apply(this,["change"].concat(Array.prototype.slice.call(arguments))),this.uploadList=r,i.status==="done"?(this.onSuccess(i,r),this.input()):i.status==="removed"&&(r.forEach(function(o,s){o.file===i&&r.splice(s,1)}),this.input())},input:function(){this.$emit("update:modelValue",this.uploadList.map(function(t){return t.is_string?t.url:t.value||t.url}))}},render:function(){var t,i,r=this,o=!this.limit||this.limit>this.uploadList.length,s=n.resolveComponent("AModal"),d=Jf({},s.props.open?"open":"visible",this.previewVisible);return n.createVNode(n.Fragment,null,[n.createVNode(n.resolveComponent("AUpload"),n.mergeProps({maxCount:this.limit,listType:this.listType||"picture-card"},this.$attrs,{onPreview:this.handlePreview,onChange:this.handleChange,fileList:this.upl
* Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
* (c) 2024 Szymon Nowak | Released under the MIT license
*/class Ma{constructor(t,i,r,o){if(isNaN(t)||isNaN(i))throw new Error(`Point is invalid: (${t}, ${i})`);this.x=+t,this.y=+i,this.pressure=r||0,this.time=o||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 Ad{static fromPoints(t,i){const r=this.calculateControlPoints(t[0],t[1],t[2]).c2,o=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new Ad(t[1],r,o,t[2],i.start,i.end)}static calculateControlPoints(t,i,r){const o=t.x-i.x,s=t.y-i.y,d=i.x-r.x,c=i.y-r.y,u={x:(t.x+i.x)/2,y:(t.y+i.y)/2},g={x:(i.x+r.x)/2,y:(i.y+r.y)/2},y=Math.sqrt(o*o+s*s),C=Math.sqrt(d*d+c*c),w=u.x-g.x,A=u.y-g.y,E=y+C==0?0:C/(y+C),_={x:g.x+w*E,y:g.y+A*E},v=i.x-_.x,m=i.y-_.y;return{c1:new Ma(u.x+v,u.y+m),c2:new Ma(g.x+v,g.y+m)}}constructor(t,i,r,o,s,d){this.startPoint=t,this.control2=i,this.control1=r,this.endPoint=o,this.startWidth=s,this.endWidth=d}length(){let i=0,r,o;for(let s=0;s<=10;s+=1){const d=s/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),u=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(s>0){const g=c-r,y=u-o;i+=Math.sqrt(g*g+y*y)}r=c,o=u}return i}point(t,i,r,o,s){return i*(1-t)*(1-t)*(1-t)+3*r*(1-t)*(1-t)*t+3*o*(1-t)*t*t+s*t*t*t}}class kC{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(t,i,r){this._et.addEventListener(t,i,r)}dispatchEvent(t){return this._et.dispatchEvent(t)}removeEventListener(t,i,r){this._et.removeEventListener(t,i,r)}}function NC(e,t=250){let i=0,r=null,o,s,d;const c=()=>{i=Date.now(),r=null,o=e.apply(s,d),r||(s=null,d=[])};return function(...g){const y=Date.now(),C=t-(y-i);return s=this,d=g,C<=0||C>t?(r&&(clearTimeout(r),r=null),i=y,o=e.apply(s,d),r||(s=null,d=[])):r||(r=window.setTimeout(c,C)),o}}class Cr extends kC{constructor(t,i={}){var r,o,s;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=i.velocityFilterWeight||.7,this.minWidth=i.minWidth||.5,this.maxWidth=i.maxWidth||2.5,this.throttle=(r=i.throttle)!==null&&r!==void 0?r:16,this.minDistance=(o=i.minDistance)!==null&&o!==void 0?o:5,this.dotSize=i.dotSize||0,this.penColor=i.penColor||"black",this.backgroundColo
`}return Ct%2&&we>0?De.substring(0,De.length-Ct-1)+Array(Ct+1).join("\u2580"):De.substring(0,De.length-1)}(te);K-=1,te=te===void 0?2*K:te;var q,oe,de,Ee,Se=ie.getModuleCount()*K+2*te,ke=te,qe=Se-te,Re=Array(K+1).join("\u2588\u2588"),ge=Array(K+1).join(" "),Ae="",le="";for(q=0;q<Se;q+=1){for(de=Math.floor((q-ke)/K),le="",oe=0;oe<Se;oe+=1)Ee=1,ke<=oe&&oe<qe&&ke<=q&&q<qe&&ie.isDark(de,Math.floor((oe-ke)/K))&&(Ee=0),le+=Ee?Re:ge;for(de=0;de<K;de+=1)Ae+=le+`
`}return Ae.substring(0,Ae.length-1)},ie.renderTo2dContext=function(K,te){te=te||2;for(var q=ie.getModuleCount(),oe=0;oe<q;oe++)for(var de=0;de<q;de++)K.fillStyle=ie.isDark(oe,de)?"black":"white",K.fillRect(oe*te,de*te,te,te)},ie};C.stringToBytes=(C.stringToBytesFuncs={default:function(W){for(var V=[],k=0;k<W.length;k+=1){var M=W.charCodeAt(k);V.push(255&M)}return V}}).default,C.createStringToBytes=function(W,V){var k=function(){for(var j=L(W),Z=function(){var ye=j.read();if(ye==-1)throw"eof";return ye},J=0,F={};;){var ie=j.read();if(ie==-1)break;var pe=Z(),se=Z()<<8|Z();F[String.fromCharCode(ie<<8|pe)]=se,J+=1}if(J!=V)throw J+" != "+V;return F}(),M="?".charCodeAt(0);return function(j){for(var Z=[],J=0;J<j.length;J+=1){var F=j.charCodeAt(J);if(F<128)Z.push(F);else{var ie=k[j.charAt(J)];typeof ie=="number"?(255&ie)==ie?Z.push(ie):(Z.push(ie>>>8),Z.push(255&ie)):Z.push(M)}}return Z}};var w,A,E,_,v,m={L:1,M:0,Q:3,H:2},b=(w=[[],[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,E=7973,v=function(W){for(var V=0;W!=0;)V+=1,W>>>=1;return V},(_={}).getBCHTypeInfo=function(W){for(var V=W<<10;v(V)-v(A)>=0;)V^=A<<v(V)-v(A);return 21522^(W<<10|V)},_.getBCHTypeNumber=function(W){for(var V=W<<12;v(V)-v(E)>=0;)V^=E<<v(V)-v(E);return W<<12|V},_.getPatternPosition=function(W){return w[W-1]},_.getMaskFunction=function(W){switch(W){case 0:return function(V,k){return(V+k)%2==0};case 1:return function(V,k){return V%2==0};case 2:return function(V,k){return k%3==0};case 3:return function(V,k){return(V+k)%3==0};case 4:return function(V,k){return(Math.floor(V/2)+Math.floor(k/3))%2==0};case 5:return function(V,k){return V*k%2+V*k%3==0};case 6:return function(V,k){return(V*k%2+V*k%3)%2==0};case 7:return function(V,k){return(V*k%3+(V+k)%2)%2==0};default:throw"bad maskPattern:"+W}},_.getErrorCorrectPolynomial=function(W){for(var V=x([1],0),k=0;k<W;k+=1)V=V.multiply(x([1,S.gexp(k)],0));return V},_.getLengthInBits=function(W,V){if(1<=V&&V<10)switch(W){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+W}else if(V<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+W}else{if(!(V<41))throw"type:"+V;switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+W}}},_.getLostPoint=function(W){for(var V=W.getModuleCount(),k=0,M=0;M<V;M+=1)for(var j=0;j<V;j+=1){for(var Z=0,J=W.isDark(M,j),F=-1;F<=1;F+=1)if(!(M+F<0||V<=M+F))for(var ie=-1;ie<=1;ie+=1)j+ie<0||V<=j+ie||F==0&&ie==0||J==W.isDark(M+F,j+ie)&&(Z+=1);Z>5&&(k+=3+Z-5)}for(M=0;M<V-1;M+=1)for(j=0;j<V-1;j+=1){var pe=0;W.isDark(M,j)&&(pe+=1),W.isDark(M+1,j)&&(pe+=1),W.isDark(M,j+1)&&(pe+=1),W.isDark(M+1,j+1)&&(pe+=1),pe!=0&&pe!=4||(k+=3)}for(M=0;M<V;M+=1)for(j=0;j<V-6;j+=1)W.isDark(M,j)&&!W.isDark(M,j+1)&&W.isDark(M,j+2)&&W.isDark(M,j+3)&&W.isDark(M,j+4)&&!W.isDark(M,j+5)&&W.isDark(M,j+6)&&(k+=40);for(j=0;j<V;j+=1)for(M=0;M<V-6;M+=1)W.isDark(M,j)&&!W.isDark(M+1,j)&&W.isDark(M+2,j)&&W.isDark(M+3,j)&&W.isDark(M+4,j)&&!W.isDark(M+5,j)&&W.isDark(M+6,j)&&(k+=40);var se=0;for(j=0;j<V;j+=1)for(M=0;M<V;M+=1)W.isDark(M,j)&&(se+=1);return k+Math.abs(100*se/V/V-50)/5*10},_),S=function(){for(var W=new Array(256),V=new Array(256),k=0;k<8;k+=1)W[k]=1<<k;for(k=8;k<256;k+=1)W[k]=W[k-4]^W[k-5]^W[k-6]^W[k-8];for(k=0;k<255;k+=1)V[W[k]]=k;return{glog:function(M){if(M<1)throw"glog("+M+")";return V[M]},gexp:function(M){for(;M<0;)M+=255;for(;M>=256;)M-=255;return W[M]}}}();function x(W,V){if(W.length===void 0)throw W.length+"/"+V;var k=function(){for(var j=0;j<W
${new this._window.XMLSerializer().serializeToString(j)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(J):new Blob([J],{type:Z})}return new Promise(J=>{const F=j;if("toBuffer"in F)if(Z==="image/png")J(F.toBuffer(Z));else if(Z==="image/jpeg")J(F.toBuffer(Z));else{if(Z!=="application/pdf")throw Error("Unsupported extension");J(F.toBuffer(Z))}else"toBlob"in F&&F.toBlob(J,Z,1)})}async download(M){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let j="png",Z="qr";typeof M=="string"?(j=M,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof M=="object"&&M!==null&&(M.name&&(Z=M.name),M.extension&&(j=M.extension));const J=await this._getElement(j);if(J)if(j.toLowerCase()==="svg"){let F=new XMLSerializer().serializeToString(J);F=`<?xml version="1.0" standalone="no"?>\r
`+F,u(`data:${U(j)};charset=utf-8,${encodeURIComponent(F)}`,`${Z}.svg`)}else u(J.toDataURL(U(j)),`${Z}.${j}`)}}const V=W})(),s.default})())})(sh);const Fx=EC(sh.exports),Px=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 Fx(e)),this.qrcode.append(this.$refs.qr))})},deep:!0,immediate:!0}}}),Mx={class:"_fc-qrcode",ref:"qr"};function Lx(e,t,i,r,o,s){return n.openBlock(),n.createElementBlock("div",Mx,null,512)}const dh=Ne(Px,[["render",Lx]]),KL="",YL="",ch={date:"YYYY-MM-DD",month:"YYYY-MM",week:"YYYY-wo",quarter:"YYYY-qQ",year:"YYYY"};function jx(e){return e/20+"em"}const uh=function(e,t,i){return t.forEach(r=>{e.indexOf(r[i||"id"])>-1&&e.splice(e.indexOf(r[i||"id"]),1,r.label||r.text),at.trueArray(r.children)&&uh(e,r.children,i)}),e},zx=function(e,t){return t.forEach(i=>{e.indexOf(i.value)>-1&&(e[e.indexOf(i.value)]=i.label||i.text)}),e};function fc(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e}function fh(e){Object.keys(ko).forEach(t=>{e.setFormula(t,ko[t])}),_d(e),e.register("behavior",Qf),e.register("easySlots",br),e.setDriver("antd",{defaultPreview(t,i){let r=t.rule.value;const o=t.$render.vNode.h,s=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"].indexOf(t.trueType)>-1)return t.parser.render(i,t);if(["radio","select","checkbox"].indexOf(s)>-1)r=zx([...fc(r)],t.prop.props.options||t.prop.props.formCreateInject.options||[]).join(", ");else if(["timePicker","datePicker","slider"].indexOf(s)>-1)r=Array.isArray(r)?r.join(" - "):r;else if(s==="cascader")r=[...fc(r)],Array.isArray(r[0])||(r=[r]),r=r.map(u=>uh(u,t.prop.props.options||t.prop.props.formCreateInject.options||[],"value").join("/")).join(", ");else{if(s==="fcEditor"||c==="html")return o("div",{innerHTML:r});if(s==="uploader"||c==="image")return r=fc(r),o("div",{class:"_fc-upload"},r.map(function(u){return o("div",{class:"_fc-upload-preview"},[o("van-image",{src:u,fit:"cover"})])}));if(s==="signaturePad"&&r)return o("van-image",{src:r,fit:"cover",style:{height:"90px"}});(typeof r=="boolean"||s==="switch")&&(r=r?"\u662F":"\u5426")}return o("span",{class:"_fc-read-view"},[""+(r==null?"":r)])},updateWrap(t){var r,o;let i=(o=(r=t.prop)==null?void 0:r.wrap)==null?void 0:o.style;t.prop.col&&t.prop.col.span&&(t.prop.col.span=24),i&&(i=Array.isArray(i)?i:[i],i.forEach(s=>{delete s.marginBottom}))},updateOptions(t){var r,o,s,d,c;const i=(s=(o=(r=t==null?void 0:t.form)==null?void 0:r.labelCol)==null?void 0:o.style)==null?void 0:s.width;i&&i.indexOf("px")>-1&&(t.form.labelWidth=jx(parseInt(i))),((d=t.form)==null?void 0:d.layout)==="vertical"&&(t.form.labelAlign="top"),(c=t.form)!=null&&c.hideRequiredAsterisk&&(t.form.colon=t.form.hideRequiredAsterisk,delete t.form.hideRequiredAsterisk),delete t.form.labelCol,delete t.form.layout},parsers:{inputNumber:{mergeProp(t){t.prop.component="vanStepper";const i=t.prop.props;i.decimalLength=i.precision,i.integer=i.precision===0,delete i.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){if(["tags","multiple"].indexOf(t.prop.props.mode)>-1){t.prop.component="aSelect";const i=t.prop.props;i.bordered=!1,In(i,"options")||(i.options=t.prop.options||[])}else t.prop.options&&(t.prop.props.options=t.prop.options),t.prop.props.options=(t.prop.props.options||[]).map(i=>({text:i.l
b`.split(/\n/).length!=3?function(a){for(var l=0,p=[],f=a.length;l<=f;){var h=a.indexOf(`
`,l);h==-1&&(h=a.length);var N=a.slice(l,a.charAt(h-1)=="\r"?h-1:h),P=N.indexOf("\r");P!=-1?(p.push(N.slice(0,P)),l+=P+1):(p.push(N),l=h+1)}return p}:function(a){return a.split(/\r\n?|\n/)},Bo=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var l;try{l=a.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=a?!1:l.compareEndPoints("StartToEnd",l)!=0},qn=function(){var a=V("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),eo=null;function yl(a){if(eo!=null)return eo;var l=W(a,V("span","x")),p=l.getBoundingClientRect(),f=M(l,0,1).getBoundingClientRect();return eo=Math.abs(p.left-f.left)>1}var jn={},$o={};function bl(a,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),jn[a]=l}function Mi(a,l){$o[a]=l}function gn(a){if(typeof a=="string"&&$o.hasOwnProperty(a))a=$o[a];else if(a&&typeof a.name=="string"&&$o.hasOwnProperty(a.name)){var l=$o[a.name];typeof l=="string"&&(l={name:l}),a=ge(l,a),a.name=l.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return gn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return gn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function ho(a,l){l=gn(l);var p=jn[l.name];if(!p)return ho(a,"text/plain");var f=p(a,l);if(Vo.hasOwnProperty(l.name)){var h=Vo[l.name];for(var N in h)!h.hasOwnProperty(N)||(f.hasOwnProperty(N)&&(f["_"+N]=f[N]),f[N]=h[N])}if(f.name=l.name,l.helperType&&(f.helperType=l.helperType),l.modeProps)for(var P in l.modeProps)f[P]=l.modeProps[P];return f}var Vo={};function Cl(a,l){var p=Vo.hasOwnProperty(a)?Vo[a]:Vo[a]={};fe(l,p)}function mo(a,l){if(l===!0)return l;if(a.copyState)return a.copyState(l);var p={};for(var f in l){var h=l[f];h instanceof Array&&(h=h.concat([])),p[f]=h}return p}function Ro(a,l){for(var p;a.innerMode&&(p=a.innerMode(l),!(!p||p.mode==a));)l=p.state,a=p.mode;return p||{mode:a,state:l}}function Fr(a,l,p){return a.startState?a.startState(l,p):!0}var Bt=function(a,l,p){this.pos=this.start=0,this.string=a,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p};Bt.prototype.eol=function(){return this.pos>=this.string.length},Bt.prototype.sol=function(){return this.pos==this.lineStart},Bt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Bt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Bt.prototype.eat=function(a){var l=this.string.charAt(this.pos),p;if(typeof a=="string"?p=l==a:p=l&&(a.test?a.test(l):a(l)),p)return++this.pos,l},Bt.prototype.eatWhile=function(a){for(var l=this.pos;this.eat(a););return this.pos>l},Bt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Bt.prototype.skipToEnd=function(){this.pos=this.string.length},Bt.prototype.skipTo=function(a){var l=this.string.indexOf(a,this.pos);if(l>-1)return this.pos=l,!0},Bt.prototype.backUp=function(a){this.pos-=a},Bt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},Bt.prototype.match=function(a,l,p){if(typeof a=="string"){var f=function(P){return p?P.toLowerCase():P},h=this.string.substr(this.pos,a.length);if(f(h)==f(a))return l!==!1&&(this.pos+=a.length),!0}else{var N=this.string.slice(this.pos).match(a);return N&&N.index>0?null:(N&&l!==!1&&(this.pos+=N[0].length),N)}},Bt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Bt.prototype.hideFirstChars=function(a,l){this.lineStart+=a;try{return l()}finally{this.lineStart-=a}},Bt.prototype.lookAhead=function(a){var l=this.lineOracle;return l&&l.lookAhead(a)},Bt.
`?(xe=ne.appendChild(V("span",ve[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xe.setAttribute("cm-text",ve[0]),a.col+=1):(xe=a.cm.options.specialCharPlaceholder(ve[0]),xe.setAttribute("cm-text",ve[0]),u&&g<9?ne.appendChild(V("span",[xe])):ne.appendChild(xe),a.col+=1);a.map.push(a.pos,a.pos+1,xe),a.pos++}}if(a.trailingSpace=H.charCodeAt(l.length-1)==32,p||f||h||X||N||P){var Le=p||"";f&&(Le+=f),h&&(Le+=h);var $e=V("span",[ne],Le,N);if(P)for(var He in P)P.hasOwnProperty(He)&&He!="style"&&He!="class"&&$e.setAttribute(He,P[He]);return a.content.appendChild($e)}a.content.appendChild(ne)}}function nP(a,l){if(a.length>1&&!/ /.test(a))return a;for(var p=l,f="",h=0;h<a.length;h++){var N=a.charAt(h);N==" "&&p&&(h==a.length-1||a.charCodeAt(h+1)==32)&&(N="\xA0"),f+=N,p=N==" "}return f}function oP(a,l){return function(p,f,h,N,P,H,G){h=h?h+" cm-force-border":"cm-force-border";for(var X=p.pos,ne=X+f.length;;){for(var re=void 0,ve=0;ve<l.length&&(re=l[ve],!(re.to>X&&re.from<=X));ve++);if(re.to>=ne)return a(p,f,h,N,P,H,G);a(p,f.slice(0,re.to-X),h,N,null,H,G),N=null,f=f.slice(re.to-X),X=re.to}}}function dg(a,l,p,f){var h=!f&&p.widgetNode;h&&a.map.push(a.pos,a.pos+l,h),!f&&a.cm.display.input.needsContentAttribute&&(h||(h=a.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",p.id)),h&&(a.cm.display.input.setUneditable(h),a.content.appendChild(h)),a.pos+=l,a.trailingSpace=!1}function iP(a,l,p){var f=a.markedSpans,h=a.text,N=0;if(!f){for(var P=1;P<p.length;P+=2)l.addToken(l,h.slice(N,N=p[P]),lg(p[P+1],l.cm.options));return}for(var H=h.length,G=0,X=1,ne="",re,ve,me=0,_e,xe,Te,Be,Le;;){if(me==G){_e=xe=Te=ve="",Le=null,Be=null,me=1/0;for(var $e=[],He=void 0,Je=0;Je<f.length;++Je){var Qe=f[Je],ut=Qe.marker;if(ut.type=="bookmark"&&Qe.from==G&&ut.widgetNode)$e.push(ut);else if(Qe.from<=G&&(Qe.to==null||Qe.to>G||ut.collapsed&&Qe.to==G&&Qe.from==G)){if(Qe.to!=null&&Qe.to!=G&&me>Qe.to&&(me=Qe.to,xe=""),ut.className&&(_e+=" "+ut.className),ut.css&&(ve=(ve?ve+";":"")+ut.css),ut.startStyle&&Qe.from==G&&(Te+=" "+ut.startStyle),ut.endStyle&&Qe.to==me&&(He||(He=[])).push(ut.endStyle,Qe.to),ut.title&&((Le||(Le={})).title=ut.title),ut.attributes)for(var _t in ut.attributes)(Le||(Le={}))[_t]=ut.attributes[_t];ut.collapsed&&(!Be||Qc(Be.marker,ut)<0)&&(Be=Qe)}else Qe.from>G&&me>Qe.from&&(me=Qe.from)}if(He)for(var Kt=0;Kt<He.length;Kt+=2)He[Kt+1]==me&&(xe+=" "+He[Kt]);if(!Be||Be.from==G)for(var Ot=0;Ot<$e.length;++Ot)dg(l,0,$e[Ot]);if(Be&&(Be.from||0)==G){if(dg(l,(Be.to==null?H+1:Be.to)-G,Be.marker,Be.from==null),Be.to==null)return;Be.to==G&&(Be=!1)}}if(G>=H)break;for(var yn=Math.min(H,me);;){if(ne){var dn=G+ne.length;if(!Be){var Ft=dn>yn?ne.slice(0,yn-G):ne;l.addToken(l,Ft,re?re+_e:_e,Te,G+Ft.length==me?xe:"",ve,Le)}if(dn>=yn){ne=ne.slice(yn-G),G=yn;break}G=dn,Te=""}ne=h.slice(N,N=p[X++]),re=lg(p[X++],l.cm.options)}}}function cg(a,l,p){this.line=l,this.rest=QF(l),this.size=this.rest?gt(Se(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Io(a,l)}function kl(a,l,p){for(var f=[],h,N=l;N<p;N=h){var P=new cg(a.doc,Ge(a.doc,N),N);h=N+P.size,f.push(P)}return f}var zi=null;function rP(a){zi?zi.ops.push(a):a.ownsGroup=zi={ops:[a],delayedCallbacks:[]}}function aP(a){var l=a.delayedCallbacks,p=0;do{for(;p<l.length;p++)l[p].call(null);for(var f=0;f<a.ops.length;f++){var h=a.ops[f];if(h.cursorActivityHandlers)for(;h.cursorActivityCalled<h.cursorActivityHandlers.length;)h.cursorActivityHandlers[h.cursorActivityCalled++].call(null,h.cm)}}while(p<l.length)}function lP(a,l){var p=a.ownsGroup;if(!!p)try{aP(p)}finally{zi=null,l(p)}}var Lr=null;function Ut(a,l){var p=Ke(a,l);if(!!p.length){var f=Array.prototype.slice.call(arguments,2),h;zi?h=zi.delayedCallbacks:Lr?h=Lr:(h=Lr=[],setTimeout(sP,0));for(var N=function(H){h.push(function(){return p[H].apply(null,f)})},P=0;P<p.length;++P)N(P)}}function sP(){var a=Lr;Lr=null;for(var l=0;l<a.length;++l)a[l]()}function ug(a,l,p,f){for(var h=0;h<l.changes.length;h++){var N=l.changes[h];N=="text"?cP(a,l):N=="gutter"?pg(a,l,p,f):N=="class"?qc(a,l):N=="widget"&&uP(a,l,f)}l.changes=null}function jr(a){return a
top: `+He+"px; width: "+(Je==null?G-$e:Je)+`px;
height: `+(Qe-He)+"px"))}function re($e,He,Je){var Qe=Ge(h,$e),ut=Qe.text.length,_t,Kt;function Ot(Ft,cn){return Ol(a,ce($e,Ft),"div",Qe,cn)}function yn(Ft,cn,Qt){var jt=Ng(a,Qe,null,Ft),Pt=cn=="ltr"==(Qt=="after")?"left":"right",$t=Qt=="after"?jt.begin:jt.end-(/\s/.test(Qe.text.charAt(jt.end-1))?2:1);return Ot($t,Pt)[Pt]}var dn=Xe(Qe,h.direction);return Ct(dn,He||0,Je==null?ut:Je,function(Ft,cn,Qt,jt){var Pt=Qt=="ltr",$t=Ot(Ft,Pt?"left":"right"),un=Ot(cn-1,Pt?"right":"left"),ir=He==null&&Ft==0,Uo=Je==null&&cn==ut,Zt=jt==0,ro=!dn||jt==dn.length-1;if(un.top-$t.top<=3){var Yt=(X?ir:Uo)&&Zt,Iu=(X?Uo:ir)&&ro,wo=Yt?H:(Pt?$t:un).left,si=Iu?G:(Pt?un:$t).right;ne(wo,$t.top,si-wo,$t.bottom)}else{var di,nn,rr,Fu;Pt?(di=X&&ir&&Zt?H:$t.left,nn=X?G:yn(Ft,Qt,"before"),rr=X?H:yn(cn,Qt,"after"),Fu=X&&Uo&&ro?G:un.right):(di=X?yn(Ft,Qt,"before"):H,nn=!X&&ir&&Zt?G:$t.right,rr=!X&&Uo&&ro?H:un.left,Fu=X?yn(cn,Qt,"after"):G),ne(di,$t.top,nn-di,$t.bottom),$t.bottom<un.top&&ne(H,$t.bottom,null,un.top),ne(rr,un.top,Fu-rr,un.bottom)}(!_t||Bl($t,_t)<0)&&(_t=$t),Bl(un,_t)<0&&(_t=un),(!Kt||Bl($t,Kt)<0)&&(Kt=$t),Bl(un,Kt)<0&&(Kt=un)}),{start:_t,end:Kt}}var ve=l.from(),me=l.to();if(ve.line==me.line)re(ve.line,ve.ch,me.ch);else{var _e=Ge(h,ve.line),xe=Ge(h,me.line),Te=zn(_e)==zn(xe),Be=re(ve.line,ve.ch,Te?_e.text.length+1:null).end,Le=re(me.line,Te?0:null,me.ch).start;Te&&(Be.top<Le.top-2?(ne(Be.right,Be.top,null,Be.bottom),ne(H,Le.top,Le.left,Le.bottom)):ne(Be.right,Be.top,Le.left-Be.right,Be.bottom)),Be.bottom<Le.top&&ne(H,Be.bottom,null,Le.top)}p.appendChild(N)}function uu(a){if(!!a.state.focused){var l=a.display;clearInterval(l.blinker);var p=!0;l.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?l.blinker=setInterval(function(){a.hasFocus()||Gi(a),l.cursorDiv.style.visibility=(p=!p)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Bg(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||pu(a))}function fu(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&Gi(a))},100)}function pu(a,l){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(We(a,"focus",a,l),a.state.focused=!0,J(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),y&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),uu(a))}function Gi(a,l){a.state.delayingBlurEvent||(a.state.focused&&(We(a,"blur",a,l),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 $l(a){for(var l=a.display,p=l.lineDiv.offsetTop,f=Math.max(0,l.scroller.getBoundingClientRect().top),h=l.lineDiv.getBoundingClientRect().top,N=0,P=0;P<l.view.length;P++){var H=l.view[P],G=a.options.lineWrapping,X=void 0,ne=0;if(!H.hidden){if(h+=H.line.height,u&&g<8){var re=H.node.offsetTop+H.node.offsetHeight;X=re-p,p=re}else{var ve=H.node.getBoundingClientRect();X=ve.bottom-ve.top,!G&&H.text.firstChild&&(ne=H.text.firstChild.getBoundingClientRect().right-ve.left-1)}var me=H.line.height-X;if((me>.005||me<-.005)&&(h<f&&(N-=me),Rn(H.line,X),$g(H.line),H.rest))for(var _e=0;_e<H.rest.length;_e++)$g(H.rest[_e]);if(ne>a.display.sizerWidth){var xe=Math.ceil(ne/Wi(a.display));xe>a.display.maxLineLength&&(a.display.maxLineLength=xe,a.display.maxLine=H.line,a.display.maxLineChanged=!0)}}}Math.abs(N)>2&&(l.scroller.scrollTop+=N)}function $g(a){if(a.widgets)for(var l=0;l<a.widgets.length;++l){var p=a.widgets[l],f=p.node.parentNode;f&&(p.height=f.offsetHeight)}}function Vl(a,l,p){var f=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;f=Math.floor(f-Nl(a));var h=p&&p.bottom!=null?p.bottom:f+a.wrapper.clientHeight,N=to(l,f),P=to(l,h);if(p&&p.ensure){var H=p.ensure.from.line,G=p.ensure.to.line;H<N?(N=H,P=to(l,yo(Ge(l,H))+a.wrapper.clientHeight)):Math.min(G,l.last
top: `+(l.top-p.viewOffset-Nl(a.display))+`px;
height: `+(l.bottom-l.top+oo(a)+p.barHeight)+`px;
left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");a.display.lineSpace.appendChild(P),P.scrollIntoView(h),a.display.lineSpace.removeChild(P)}}}function SP(a,l,p,f){f==null&&(f=0);var h;!a.options.lineWrapping&&l==p&&(p=l.sticky=="before"?ce(l.line,l.ch+1,"before"):l,l=l.ch?ce(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var N=0;N<5;N++){var P=!1,H=Hn(a,l),G=!p||p==l?H:Hn(a,p);h={left:Math.min(H.left,G.left),top:Math.min(H.top,G.top)-f,right:Math.max(H.left,G.left),bottom:Math.max(H.bottom,G.bottom)+f};var X=hu(a,h),ne=a.doc.scrollTop,re=a.doc.scrollLeft;if(X.scrollTop!=null&&(Gr(a,X.scrollTop),Math.abs(a.doc.scrollTop-ne)>1&&(P=!0)),X.scrollLeft!=null&&(ii(a,X.scrollLeft),Math.abs(a.doc.scrollLeft-re)>1&&(P=!0)),!P)break}return h}function xP(a,l){var p=hu(a,l);p.scrollTop!=null&&Gr(a,p.scrollTop),p.scrollLeft!=null&&ii(a,p.scrollLeft)}function hu(a,l){var p=a.display,f=Ui(a.display);l.top<0&&(l.top=0);var h=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,N=tu(a),P={};l.bottom-l.top>N&&(l.bottom=l.top+N);var H=a.doc.height+eu(p),G=l.top<f,X=l.bottom>H-f;if(l.top<h)P.scrollTop=G?0:l.top;else if(l.bottom>h+N){var ne=Math.min(l.top,(X?H:l.bottom)-N);ne!=h&&(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=ei(a)-p.gutters.offsetWidth,_e=l.right-l.left>me;return _e&&(l.right=l.left+me),l.left<10?P.scrollLeft=0:l.left<ve?P.scrollLeft=Math.max(0,l.left+re-(_e?0:10)):l.right>me+ve-3&&(P.scrollLeft=l.right+(_e?0:10)-me),P}function mu(a,l){l!=null&&(Rl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+l)}function Ki(a){Rl(a);var l=a.getCursor();a.curOp.scrollToPos={from:l,to:l,margin:a.options.cursorScrollMargin}}function Wr(a,l,p){(l!=null||p!=null)&&Rl(a),l!=null&&(a.curOp.scrollLeft=l),p!=null&&(a.curOp.scrollTop=p)}function kP(a,l){Rl(a),a.curOp.scrollToPos=l}function Rl(a){var l=a.curOp.scrollToPos;if(l){a.curOp.scrollToPos=null;var p=xg(a,l.from),f=xg(a,l.to);Vg(a,p,f,l.margin)}}function Vg(a,l,p,f){var h=hu(a,{left:Math.min(l.left,p.left),top:Math.min(l.top,p.top)-f,right:Math.max(l.right,p.right),bottom:Math.max(l.bottom,p.bottom)+f});Wr(a,h.scrollLeft,h.scrollTop)}function Gr(a,l){Math.abs(a.doc.scrollTop-l)<2||(o||vu(a,{top:l}),Rg(a,l,!0),o&&vu(a),Qr(a,100))}function Rg(a,l,p){l=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,l)),!(a.display.scroller.scrollTop==l&&!p)&&(a.doc.scrollTop=l,a.display.scrollbars.setScrollTop(l),a.display.scroller.scrollTop!=l&&(a.display.scroller.scrollTop=l))}function ii(a,l,p,f){l=Math.max(0,Math.min(l,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?l==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-l)<2)&&!f)&&(a.doc.scrollLeft=l,Lg(a),a.display.scroller.scrollLeft!=l&&(a.display.scroller.scrollLeft=l),a.display.scrollbars.setScrollLeft(l))}function Kr(a){var l=a.display,p=l.gutters.offsetWidth,f=Math.round(a.doc.height+eu(a.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:f,scrollHeight:f+oo(a)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:p}}var ri=function(a,l,p){this.cm=p;var f=this.vert=V("div",[V("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=V("div",[V("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");f.tabIndex=h.tabIndex=-1,a(f),a(h),be(f,"scroll",function(){f.clientHeight&&l(f.scrollTop,"vertical")}),be(h,"scroll",function(){h.clientWidth&&l(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,u&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ri.prototype.update=function(a){var l=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=l?f+"px":"0";var h=a.viewHeight-(l?f:0);this
`},setDirection:Gt(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(l){return l.order=null}),this.cm&&HP(this.cm))})}),sn.prototype.eachLine=sn.prototype.iter;var vv=0;function nM(a){var l=this;if(yv(l),!(lt(l,a)||bo(l.display,a))){mt(a),u&&(vv=+new Date);var p=ni(l,a,!0),f=a.dataTransfer.files;if(!(!p||l.isReadOnly()))if(f&&f.length&&window.FileReader&&window.File)for(var h=f.length,N=Array(h),P=0,H=function(){++P==h&&Wt(l,function(){p=nt(l.doc,p);var me={from:p,to:p,text:l.doc.splitLines(N.filter(function(_e){return _e!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ji(l.doc,me),nv(l.doc,Mo(nt(l.doc,p),nt(l.doc,Lo(me))))})()},G=function(me,_e){if(l.options.allowDropFileTypes&&$(l.options.allowDropFileTypes,me.type)==-1){H();return}var xe=new FileReader;xe.onerror=function(){return H()},xe.onload=function(){var Te=xe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){H();return}N[_e]=Te,H()},xe.readAsText(me)},X=0;X<f.length;X++)G(f[X],X);else{if(l.state.draggingText&&l.doc.sel.contains(p)>-1){l.state.draggingText(a),setTimeout(function(){return l.display.input.focus()},20);return}try{var ne=a.dataTransfer.getData("Text");if(ne){var re;if(l.state.draggingText&&!l.state.draggingText.copy&&(re=l.listSelections()),jl(l.doc,Mo(p,p)),re)for(var ve=0;ve<re.length;++ve)Zi(l.doc,"",re[ve].anchor,re[ve].head,"drag");l.replaceSelection(ne,"around","paste"),l.display.input.focus()}}catch{}}}}function oM(a,l){if(u&&(!a.state.draggingText||+new Date-vv<100)){Ln(l);return}if(!(lt(a,l)||bo(a.display,l))&&(l.dataTransfer.setData("Text",a.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!_)){var p=V("img",null,null,"position: fixed; left: 0; top: 0;");p.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),l.dataTransfer.setDragImage(p,0,0),E&&p.parentNode.removeChild(p)}}function iM(a,l){var p=ni(a,l);if(!!p){var f=document.createDocumentFragment();cu(a,p,f),a.display.dragCursor||(a.display.dragCursor=V("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),W(a.display.dragCursor,f)}}function yv(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function bv(a){if(!!document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),p=[],f=0;f<l.length;f++){var h=l[f].CodeMirror;h&&p.push(h)}p.length&&p[0].operation(function(){for(var N=0;N<p.length;N++)a(p[N])})}}var Cv=!1;function rM(){Cv||(aM(),Cv=!0)}function aM(){var a;be(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,bv(lM)},100))}),be(window,"blur",function(){return bv(Gi)})}function lM(a){var l=a.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,a.setSize()}for(var Ho={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++)Ho[ia+48]=Ho[ia+96]=String(ia);for(var Ul=65;Ul<=90;Ul++)Ho[Ul]=String.fromCharCode(Ul);for(var ra=1;ra<=12;ra++)Ho[ra+111]=Ho[ra+63235]="F"+ra;var _o={};_o.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"},_o.pcDefault={"Ctrl-A":"selectAll
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Av(a,l){var p=Ge(a.doc,l),f=zn(p);return f!=p&&(l=gt(f)),Tu(!0,a,f,l,1)}function uM(a,l){var p=Ge(a.doc,l),f=YF(p);return f!=p&&(l=gt(f)),Tu(!0,a,p,l,-1)}function Sv(a,l){var p=Av(a,l.line),f=Ge(a.doc,p.line),h=Xe(f,a.doc.direction);if(!h||h[0].level==0){var N=Math.max(p.ch,f.text.search(/\S/)),P=l.line==p.line&&l.ch<=N&&l.ch;return ce(p.line,P?0:N,p.sticky)}return p}function Gl(a,l,p){if(typeof l=="string"&&(l=aa[l],!l))return!1;a.display.input.ensurePolled();var f=a.display.shift,h=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),h=l(a)!=Q}finally{a.display.shift=f,a.state.suppressEdits=!1}return h}function fM(a,l,p){for(var f=0;f<a.state.keyMaps.length;f++){var h=er(l,a.state.keyMaps[f],p,a);if(h)return h}return a.options.extraKeys&&er(l,a.options.extraKeys,p,a)||er(l,a.options.keyMap,p,a)}var pM=new he;function la(a,l,p,f){var h=a.state.keySeq;if(h){if(_v(l))return"handled";if(/\'$/.test(l)?a.state.keySeq=null:pM.set(50,function(){a.state.keySeq==h&&(a.state.keySeq=null,a.display.input.reset())}),xv(a,h+" "+l,p,f))return!0}return xv(a,l,p,f)}function xv(a,l,p,f){var h=fM(a,l,f);return h=="multi"&&(a.state.keySeq=l),h=="handled"&&Ut(a,"keyHandled",a,l,p),(h=="handled"||h=="multi")&&(mt(p),uu(a)),!!h}function kv(a,l){var p=Ev(l,!0);return p?l.shiftKey&&!a.state.keySeq?la(a,"Shift-"+p,l,function(f){return Gl(a,f,!0)})||la(a,p,l,function(f){if(typeof f=="string"?/^go[A-Z]/.test(f):f.motion)return Gl(a,f)}):la(a,p,l,function(f){return Gl(a,f)}):!1}function hM(a,l,p){return la(a,"'"+p+"'",l,function(f){return Gl(a,f,!0)})}var Ou=null;function Nv(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&(l.curOp.focus=Z(pe(l)),!lt(l,a))){u&&g<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;l.display.shift=p==16||a.shiftKey;var f=kv(l,a);E&&(Ou=f?p:null,!f&&p==88&&!qn&&(O?a.metaKey:a.ctrlKey)&&l.replaceSelection("",null,"cut")),o&&!O&&!f&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),p==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&mM(l)}}function mM(a){var l=a.display.lineDiv;J(l,"CodeMirror-crosshair");function p(f){(f.keyCode==18||!f.altKey)&&(L(l,"CodeMirror-crosshair"),Ue(document,"keyup",p),Ue(document,"mouseover",p))}be(document,"keyup",p),be(document,"mouseover",p)}function Tv(a){a.keyCode==16&&(this.doc.sel.shift=!1),lt(this,a)}function Ov(a){var l=this;if(!(a.target&&a.target!=l.display.input.getField())&&!(bo(l.display,a)||lt(l,a)||a.ctrlKey&&!a.altKey||O&&a.metaKey)){var p=a.keyCode,f=a.charCode;if(E&&p==Ou){Ou=null,mt(a);return}if(!(E&&(!a.which||a.which<10)&&kv(l,a))){var h=String.fromCharCode(f==null?p:f);h!="\b"&&(hM(l,a,h)||l.display.input.onKeyPress(a))}}}var gM=400,Du=function(a,l,p){this.time=a,this.pos=l,this.button=p};Du.prototype.compare=function(a,l,p){return this.time+gM>a&&Ce(l,this.pos)==0&&p==this.button};var sa,da;function vM(a,l){var p=+new Date;return da&&da.compare(p,a,l)?(sa=da=null,"triple"):sa&&sa.compare(p,a,l)?(da=new Du(p,a,l),sa=null,"double"):(sa=new Du(p,a,l),da=null,"single")}function Dv(a){var l=this,p=l.display;if(!(lt(l,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,bo(p,a)){y||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!Bu(l,a)){var f=ni(l,a),h=Rr(a),N=f?vM(f,h):"single";se(l).focus(),h==1&&l.state.selectingText&&l.state.selectingText(a),!(f&&yM(l,h,f,N,a))&&(h==1?f?CM(l,f,N,a):an(a)==p.scroller&&mt(a):h==2?(f&&Ll(l.doc,f),setTimeout(function(){return p.input.focus()},20)):h==3&&(T?l.display.input.onContextMenu(a):fu(l)))}}}function yM(a,l,p,f,h){var N="Click";return f=="double"?N="Double"+N:f=="triple"&&(N="Triple"+N),N=(l==1?"Left":l==2?"Middle":"Right")+N,la(a,wv(N,h),h,function(P){if(typeof P=="string"&&(P=aa[P]),!P)return!1;var H=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),H=P(a,p)!=Q}finally{a.state.suppressEdits=!1}return H})}function bM(a,l,p){var f=a.getOption("configureMouse"),h=f?f(a,l,p):{};if(h.
`)==l){if(f.ranges.length%Wn.text.length==0){X=[];for(var ne=0;ne<Wn.text.length;ne++)X.push(N.splitLines(Wn.text[ne]))}}else G.length==f.ranges.length&&a.options.pasteLinesPerSelection&&(X=ke(G,function(Be){return[Be]}));for(var re=a.curOp.updateInput,ve=f.ranges.length-1;ve>=0;ve--){var me=f.ranges[ve],_e=me.from(),xe=me.to();me.empty()&&(p&&p>0?_e=ce(_e.line,_e.ch-p):a.state.overwrite&&!H?xe=ce(xe.line,Math.min(Ge(N,xe.line).text.length,xe.ch+Se(G).length)):H&&Wn&&Wn.lineWise&&Wn.text.join(`
`)==G.join(`
`)&&(_e=xe=ce(_e.line,0)));var Te={from:_e,to:xe,text:X?X[ve%X.length]:G,origin:h||(H?"paste":a.state.cutIncoming>P?"cut":"+input")};Ji(a.doc,Te),Ut(a,"inputRead",a,Te)}l&&!H&&Pv(a,l),Ki(a),a.curOp.updateInput<2&&(a.curOp.updateInput=re),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Fv(a,l){var p=a.clipboardData&&a.clipboardData.getData("Text");if(p)return a.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&vn(l,function(){return Vu(l,p,0,null,"paste")}),!0}function Pv(a,l){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,f=p.ranges.length-1;f>=0;f--){var h=p.ranges[f];if(!(h.head.ch>100||f&&p.ranges[f-1].head.line==h.head.line)){var N=a.getModeAt(h.head),P=!1;if(N.electricChars){for(var H=0;H<N.electricChars.length;H++)if(l.indexOf(N.electricChars.charAt(H))>-1){P=ca(a,h.head.line,"smart");break}}else N.electricInput&&N.electricInput.test(Ge(a.doc,h.head.line).text.slice(0,h.head.ch))&&(P=ca(a,h.head.line,"smart"));P&&Ut(a,"electricInput",a,h.head.line)}}}function Mv(a){for(var l=[],p=[],f=0;f<a.doc.sel.ranges.length;f++){var h=a.doc.sel.ranges[f].head.line,N={anchor:ce(h,0),head:ce(h+1,0)};p.push(N),l.push(a.getRange(N.anchor,N.head))}return{text:l,ranges:p}}function Lv(a,l,p,f){a.setAttribute("autocorrect",p?"":"off"),a.setAttribute("autocapitalize",f?"":"off"),a.setAttribute("spellcheck",!!l)}function jv(){var a=V("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=V("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?a.style.width="1000px":a.setAttribute("wrap","off"),b&&(a.style.border="1px solid black"),Lv(a),l}function TM(a){var l=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){se(this).focus(),this.display.input.focus()},setOption:function(f,h){var N=this.options,P=N[f];N[f]==h&&f!="mode"||(N[f]=h,l.hasOwnProperty(f)&&Wt(this,l[f])(this,h,P),We(this,"optionChange",this,f))},getOption:function(f){return this.options[f]},getDoc:function(){return this.doc},addKeyMap:function(f,h){this.state.keyMaps[h?"push":"unshift"](Wl(f))},removeKeyMap:function(f){for(var h=this.state.keyMaps,N=0;N<h.length;++N)if(h[N]==f||h[N].name==f)return h.splice(N,1),!0},addOverlay:tn(function(f,h){var N=f.token?f:a.getMode(this.options,f);if(N.startState)throw new Error("Overlays may not be stateful.");qe(this.state.overlays,{mode:N,modeSpec:f,opaque:h&&h.opaque,priority:h&&h.priority||0},function(P){return P.priority}),this.state.modeGen++,ln(this)}),removeOverlay:tn(function(f){for(var h=this.state.overlays,N=0;N<h.length;++N){var P=h[N].modeSpec;if(P==f||typeof f=="string"&&P.name==f){h.splice(N,1),this.state.modeGen++,ln(this);return}}}),indentLine:tn(function(f,h,N){typeof h!="string"&&typeof h!="number"&&(h==null?h=this.options.smartIndent?"smart":"prev":h=h?"add":"subtract"),ee(this.doc,f)&&ca(this,f,h,N)}),indentSelection:tn(function(f){for(var h=this.doc.sel.ranges,N=-1,P=0;P<h.length;P++){var H=h[P];if(H.empty())H.head.line>N&&(ca(this,H.head.line,f,!0),N=H.head.line,P==this.doc.sel.primIndex&&Ki(this));else{var G=H.from(),X=H.to(),ne=Math.max(N,G.line);N=Math.min(this.lastLine(),X.line-(X.ch?0:1))+1;for(var re=ne;re<N;++re)ca(this,re,f);var ve=this.doc.sel.ranges;G.ch==0&&h.length==ve.length&&ve[P].from().ch>0&&xu(this.doc,P,new vt(G,ve[P].to()),K)}}}),getTokenAt:function(f,h){return Xm(this,f,h)},getLineTokens:function(f,h){return Xm(this,ce(f),h,!0)},getTokenTypeAt:function(f){f=nt(this.doc,f);var h=Km(this,Ge(this.doc,f.line)),N=0,P=(h.length-1)/2,H=f.ch,G;if(H==0)G=h[2];else for(;;){var X=N+P>>1;if((X?h[X*2-1]:0)>=H)P=X;else if(h[X*2+1]<H)N=X+1;else{G=h[X*2+2];break}}var ne=G?G.indexOf("overlay "):-1;return ne<0?G:ne==0?null:G.slice(0,ne-1)},getModeAt:function(f){var h=this.doc.mode;return h.innerMode?a.innerMode(h,this.getTokenAt(f).state).mode:h},getHelper:function(f,h){return this.getHelpers(f,h)[0]},getHelpers:function(f,h){var N=[];if(!p.hasOwnProperty(h))return N;var P=p[h],H=this.getModeAt(f);if(typeof
`,Te=we(xe,me)?"w":ve&&xe==`
`?"n":!ve||/\s/.test(xe)?null:"p";if(ve&&!_e&&!Te&&(Te="s"),re&&re!=Te){p<0&&(p=1,ne(),l.sticky="after");break}if(Te&&(re=Te),p>0&&!ne(!_e))break}var Be=zl(a,l,N,P,!0);return tt(N,Be)&&(Be.hitSide=!0),Be}function zv(a,l,p,f){var h=a.doc,N=l.left,P;if(f=="page"){var H=Math.min(a.display.wrapper.clientHeight,se(a).innerHeight||h(a).documentElement.clientHeight),G=Math.max(H-.5*Ui(a.display),3);P=(p>0?l.bottom:l.top)+p*G}else f=="line"&&(P=p>0?l.bottom+3:l.top-3);for(var X;X=ru(a,N,P),!!X.outside;){if(p<0?P<=0:P>=h.height){X.hitSide=!0;break}P+=p*5}return X}var bt=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};bt.prototype.init=function(a){var l=this,p=this,f=p.cm,h=p.div=a.lineDiv;h.contentEditable=!0,Lv(h,f.options.spellcheck,f.options.autocorrect,f.options.autocapitalize);function N(H){for(var G=H.target;G;G=G.parentNode){if(G==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(G.className))break}return!1}be(h,"paste",function(H){!N(H)||lt(f,H)||Fv(H,f)||g<=11&&setTimeout(Wt(f,function(){return l.updateFromDOM()}),20)}),be(h,"compositionstart",function(H){l.composing={data:H.data,done:!1}}),be(h,"compositionupdate",function(H){l.composing||(l.composing={data:H.data,done:!1})}),be(h,"compositionend",function(H){l.composing&&(H.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),be(h,"touchstart",function(){return p.forceCompositionEnd()}),be(h,"input",function(){l.composing||l.readFromDOMSoon()});function P(H){if(!(!N(H)||lt(f,H))){if(f.somethingSelected())Yl({lineWise:!1,text:f.getSelections()}),H.type=="cut"&&f.replaceSelection("",null,"cut");else if(f.options.lineWiseCopyCut){var G=Mv(f);Yl({lineWise:!0,text:G.text}),H.type=="cut"&&f.operation(function(){f.setSelections(G.ranges,0,K),f.replaceSelection("",null,"cut")})}else return;if(H.clipboardData){H.clipboardData.clearData();var X=Wn.text.join(`
`);if(H.clipboardData.setData("Text",X),H.clipboardData.getData("Text")==X){H.preventDefault();return}}var ne=jv(),re=ne.firstChild;f.display.lineSpace.insertBefore(ne,f.display.lineSpace.firstChild),re.value=Wn.text.join(`
`);var ve=Z(h.ownerDocument);ie(re),setTimeout(function(){f.display.lineSpace.removeChild(ne),ve.focus(),ve==h&&p.showPrimarySelection()},50)}}be(h,"copy",P),be(h,"cut",P)},bt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var a=Dg(this.cm,!1);return a.focus=Z(this.div.ownerDocument)==this.div,a},bt.prototype.showSelection=function(a,l){!a||!this.cm.display.view.length||((a.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(a))},bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},bt.prototype.showPrimarySelection=function(){var a=this.getSelection(),l=this.cm,p=l.doc.sel.primary(),f=p.from(),h=p.to();if(l.display.viewTo==l.display.viewFrom||f.line>=l.display.viewTo||h.line<l.display.viewFrom){a.removeAllRanges();return}var N=Ql(l,a.anchorNode,a.anchorOffset),P=Ql(l,a.focusNode,a.focusOffset);if(!(N&&!N.bad&&P&&!P.bad&&Ce(Lt(N,P),f)==0&&Ce(ht(N,P),h)==0)){var H=l.display.view,G=f.line>=l.display.viewFrom&&Hv(l,f)||{node:H[0].measure.map[2],offset:0},X=h.line<l.display.viewTo&&Hv(l,h);if(!X){var ne=H[H.length-1].measure,re=ne.maps?ne.maps[ne.maps.length-1]:ne.map;X={node:re[re.length-1],offset:re[re.length-2]-re[re.length-3]}}if(!G||!X){a.removeAllRanges();return}var ve=a.rangeCount&&a.getRangeAt(0),me;try{me=M(G.node,G.offset,X.offset,X.node)}catch{}me&&(!o&&l.state.focused?(a.collapse(G.node,G.offset),me.collapsed||(a.removeAllRanges(),a.addRange(me))):(a.removeAllRanges(),a.addRange(me)),ve&&a.anchorNode==null?a.addRange(ve):o&&this.startGracePeriod()),this.rememberSelection()}},bt.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)},bt.prototype.showMultipleSelections=function(a){W(this.cm.display.cursorDiv,a.cursors),W(this.cm.display.selectionDiv,a.selection)},bt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},bt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var l=a.getRangeAt(0).commonAncestorContainer;return j(this.div,l)},bt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Z(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},bt.prototype.blur=function(){this.div.blur()},bt.prototype.getField=function(){return this.div},bt.prototype.supportsTouch=function(){return!0},bt.prototype.receivedFocus=function(){var a=this,l=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):vn(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function p(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,p))}this.polling.set(this.cm.options.pollInterval,p)},bt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),l=this.cm;if(S&&w&&this.cm.display.gutterSpecs.length&&OM(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=Ql(l,a.anchorNode,a.anchorOffset),f=Ql(l,a.focusNode,a.focusOffset);p&&f&&vn(l,function(){Jt(l.doc,Mo(p,f),K),(p.bad||f.bad)&&(l.curOp.selectionChanged=!0)})}}},bt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,l=a.display,p=a.doc.sel.primary(),f=p.from(),h=p.to();if(f.ch==0&&f.line>a.firstLine()&&(f=ce(f.li
`),ie(h))}else return;P.type=="cut"&&(f.state.cutIncoming=+new Date)}}be(h,"cut",N),be(h,"copy",N),be(a.scroller,"paste",function(P){if(!(bo(a,P)||lt(f,P))){if(!h.dispatchEvent){f.state.pasteIncoming=+new Date,p.focus();return}var H=new Event("paste");H.clipboardData=P.clipboardData,h.dispatchEvent(H)}}),be(a.lineSpace,"selectstart",function(P){bo(a,P)||mt(P)}),be(h,"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"})}}),be(h,"compositionend",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},It.prototype.createField=function(a){this.wrapper=jv(),this.textarea=this.wrapper.firstChild},It.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},It.prototype.prepareSelection=function(){var a=this.cm,l=a.display,p=a.doc,f=Dg(a);if(a.options.moveInputWithCursor){var h=Hn(a,p.sel.primary().head,"div"),N=l.wrapper.getBoundingClientRect(),P=l.lineDiv.getBoundingClientRect();f.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,h.top+P.top-N.top)),f.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,h.left+P.left-N.left))}return f},It.prototype.showSelection=function(a){var l=this.cm,p=l.display;W(p.cursorDiv,a.cursors),W(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},It.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var l=this.cm;if(l.somethingSelected()){this.prevInput="";var p=l.getSelection();this.textarea.value=p,l.state.focused&&ie(this.textarea),u&&g>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value="",u&&g>=9&&(this.hasSelection=null))}},It.prototype.getField=function(){return this.textarea},It.prototype.supportsTouch=function(){return!1},It.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!x||Z(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},It.prototype.blur=function(){this.textarea.blur()},It.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},It.prototype.receivedFocus=function(){this.slowPoll()},It.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},It.prototype.fastPoll=function(){var a=!1,l=this;l.pollingFast=!0;function p(){var f=l.poll();!f&&!a?(a=!0,l.polling.set(60,p)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,p)},It.prototype.poll=function(){var a=this,l=this.cm,p=this.textarea,f=this.prevInput;if(this.contextMenuPending||!l.state.focused||Bo(p)&&!f&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var h=p.value;if(h==f&&!l.somethingSelected())return!1;if(u&&g>=9&&this.hasSelection===h||O&&/[\uf700-\uf7ff]/.test(h))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var N=h.charCodeAt(0);if(N==8203&&!f&&(f="\u200B"),N==8666)return this.reset(),this.cm.execCommand("undo")}for(var P=0,H=Math.min(f.length,h.length);P<H&&f.charCodeAt(P)==h.charCodeAt(P);)++P;return vn(l,function(){Vu(l,h.slice(P),f.length-P,null,a.composing?"*compose":null),h.length>1e3||h.indexOf(`
`)>-1?p.value=a.prevInput="":a.prevInput=h,a.composing&&(a.composing.range.clear(),a.composing.range=l.markText(a.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},It.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},It.prototype.onKeyPress=function(){u&&g>=9&&(this.hasSelection=null),this.fastPoll()},It.prototype.onContextMenu=function(a){var l=this,p=l.cm,f=p.display,h=l.textarea;l.contextMenuPending&&l.contextMenuPending();var N=ni(p,a),P=f.scroller.scrollTop;if(!N||E)return;var H=p.options.resetSelectionOnContextMenu;H&&p.doc.sel.contains(N)==-1&&Wt(p,Jt)(p.doc,Mo(N),K);var G=h.style.cssText,X=l.wrapper.style.cssText,ne=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",h.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;y&&(re=h.ownerDocument.defaultView.scrollY),f.input.focus(),y&&h.ownerDocument.defaultView.scrollTo(null,re),f.input.reset(),p.somethingSelected()||(h.value=l.prevInput=" "),l.contextMenuPending=me,f.selForContextMenu=p.doc.sel,clearTimeout(f.detectingSelectAll);function ve(){if(h.selectionStart!=null){var xe=p.somethingSelected(),Te="\u200B"+(xe?h.value:"");h.value="\u21DA",h.value=Te,l.prevInput=xe?"":"\u200B",h.selectionStart=1,h.selectionEnd=Te.length,f.selForContextMenu=p.doc.sel}}function me(){if(l.contextMenuPending==me&&(l.contextMenuPending=!1,l.wrapper.style.cssText=X,h.style.cssText=G,u&&g<9&&f.scrollbars.setScrollTop(f.scroller.scrollTop=P),h.selectionStart!=null)){(!u||u&&g<9)&&ve();var xe=0,Te=function(){f.selForContextMenu==p.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&l.prevInput=="\u200B"?Wt(p,lv)(p):xe++<10?f.detectingSelectAll=setTimeout(Te,500):(f.selForContextMenu=null,f.input.reset())};f.detectingSelectAll=setTimeout(Te,200)}}if(u&&g>=9&&ve(),T){Ln(a);var _e=function(){Ue(window,"mouseup",_e),setTimeout(me,20)};be(window,"mouseup",_e)}else setTimeout(me,50)},It.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},It.prototype.setUneditable=function(){},It.prototype.needsContentAttribute=!1;function $M(a,l){if(l=l?fe(l):{},l.value=a.value,!l.tabindex&&a.tabIndex&&(l.tabindex=a.tabIndex),!l.placeholder&&a.placeholder&&(l.placeholder=a.placeholder),l.autofocus==null){var p=Z(a.ownerDocument);l.autofocus=p==a||a.getAttribute("autofocus")!=null&&p==document.body}function f(){a.value=H.getValue()}var h;if(a.form&&(be(a.form,"submit",f),!l.leaveSubmitMethodAlone)){var N=a.form;h=N.submit;try{var P=N.submit=function(){f(),N.submit=h,N.submit(),N.submit=P}}catch{}}l.finishInit=function(G){G.save=f,G.getTextArea=function(){return a},G.toTextArea=function(){G.toTextArea=isNaN,f(),a.parentNode.removeChild(G.getWrapperElement()),a.style.display="",a.form&&(Ue(a.form,"submit",f),!l.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=h))}},a.style.display="none";var H=xt(function(G){return a.parentNode.insertBefore(G,a.nextSibling)},l);return H}function VM(a){a.off=Ue,a.on=be,a.wheelEventPixels=jP,a.Doc=sn,a.splitLines=Ir,a.countColumn=ue,a.findColumn=oe,a.isWordChar=le,a.Pass=Q,a.signal=We,a.Line=ji,a.changeEnd=Lo,a.scrollbarModel=Fg,a.Pos=ce,a.cmpPos=Ce,a.modes=jn,a.mimeModes=$o,a.resolveMode=gn,a.getMode=ho,a.modeExtensions=Vo,a.extendMode=Cl,a.copyState=mo,a.startState=Fr,a.innerMode=Ro,a.commands=aa,a.keyMap=_o,a.keyName=Ev,a.isModifierKey=_v,a.lookupKey=er,a.normalizeKeyMap=dM,a.StringStream=Bt,a.SharedTextMarker=oa,a.TextMarker=zo,a.LineWidget=na,a.e_preventDefault=mt,a.e_stopPropagation=$n,a.e_stop=Ln,a.addClass=J,a.contains=j,a.rmClass=L,a.keyNames=Ho}SM(xt),TM(xt);var RM="iter insert remove copy getEditor constructor".split(" ");for(var Xl in sn.prototype)sn.prototype.hasOwnProperty(Xl)&&$(RM,Xl)<0&&(xt.prototype[Xl]=function(a){return function(){return a.apply(this.doc,arguments)}}(sn.prototype[Xl]));return wt(sn),xt.inputStyles={textarea:It,contenteditable:bt},xt.defineMode=function(a){!xt.defaults.mode&&a!="null"&&(xt.defaults.mode=a),bl.apply(this,arguments)},xt.defineMIME=Mi,xt.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),xt.defineMIME("text/plain","null"),xt.defineExtension=function(a,l){xt.prototype[a]=l},xt.defineDocExtension=function(a,l){sn.prototype[a]=l},xt.fromTextArea=$M,VM(xt),xt.version="6.65.7",xt})}(hc)),hc.exports}var fo=Di();(function(e,t){(function(i){i(Di())})(function(i){i.defineMode("javascript",function(r,o){var s=r.indentUnit,d=o.statementIndent,c=o.jsonld,u=o.json||c,g=o.trackScope!==!1,y=o.typescript,C=o.wordCharacters||/[\w$\xa1-\uffff]/,w=function(){function ee(Lt){return{type:Lt,style:"keyword"}}var ae=ee("keyword a"),ce=ee("keyword b"),Ce=ee("keyword c"),tt=ee("keyword d"),ft=ee("operator"),ht={type:"atom",style:"atom"};return{if:ee
Highlight.js v11.9.0 (git: b7ec4bfafc)
(c) 2006-2024 undefined and other contributors
License: BSD-3-Clause
*/function Eh(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 i=e[t],r=typeof i;r!=="object"&&r!=="function"||Object.isFrozen(i)||Eh(i)}),e}class Ah{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Sh(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Oo(e,...t){const i=Object.create(null);for(const r in e)i[r]=e[r];return t.forEach(r=>{for(const o in r)i[o]=r[o]}),i}const xh=e=>!!e.scope;class IN{constructor(t,i){this.buffer="",this.classPrefix=i.classPrefix,t.walk(this)}addText(t){this.buffer+=Sh(t)}openNode(t){if(!xh(t))return;const i=((r,{prefix:o})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const s=r.split(".");return[`${o}${s.shift()}`,...s.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${o}${r}`})(t.scope,{prefix:this.classPrefix});this.span(i)}closeNode(t){xh(t)&&(this.buffer+="</span>")}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const kh=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class vc{constructor(){this.rootNode=kh(),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 i=kh({scope:t});this.add(i),this.stack.push(i)}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,i){return typeof i=="string"?t.addText(i):i.children&&(t.openNode(i),i.children.forEach(r=>this._walk(t,r)),t.closeNode(i)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(i=>typeof i=="string")?t.children=[t.children.join("")]:t.children.forEach(i=>{vc._collapse(i)}))}}class FN extends vc{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,i){const r=t.root;i&&(r.scope="language:"+i),this.add(r)}toHTML(){return new IN(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Or(e){return e?typeof e=="string"?e:e.source:null}function Nh(e){return Zo("(?=",e,")")}function PN(e){return Zo("(?:",e,")*")}function MN(e){return Zo("(?:",e,")?")}function Zo(...e){return e.map(t=>Or(t)).join("")}function yc(...e){return"("+((i=>{const r=i[i.length-1];return typeof r=="object"&&r.constructor===Object?(i.splice(i.length-1,1),r):{}})(e).capture?"":"?:")+e.map(i=>Or(i)).join("|")+")"}function Th(e){return RegExp(e.toString()+"|").exec("").length-1}const LN=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bc(e,{joinWith:t}){let i=0;return e.map(r=>{i+=1;const o=i;let s=Or(r),d="";for(;s.length>0;){const c=LN.exec(s);if(!c){d+=s;break}d+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+o):(d+=c[0],c[0]==="("&&i++)}return d}).map(r=>`(${r})`).join(t)}const Oh="[a-zA-Z]\\w*",Cc="[a-zA-Z_]\\w*",Dh="\\b\\d+(\\.\\d+)?",Bh="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",$h="\\b(0b[01]+)",Dr={begin:"\\\\[\\s\\S]",relevance:0},jN={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Dr]},zN={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Dr]},il=(e,t,i={})=>{const r=Oo({scope:"comment",begin:e,end:t,contains:[]},i);r.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 o=yc("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 r.contains.push({begin:Zo(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},HN=il("//","$"),UN=il("
https://github.com/highlightjs/highlight.js/issues/2277`),R=S,D=x),O===void 0&&(O=!0);const I={code:D,language:R};b("before:highlight",I);const z=I.result?I.result:y(I.language,I.code,O);return z.code=I.code,b("after:highlight",z),z}function y(S,x,O,D){const R=Object.create(null);function I(){if(!F.keywords)return pe.addText(se);let $=0;F.keywordPatternRe.lastIndex=0;let Y=F.keywordPatternRe.exec(se),Q="";for(;Y;){Q+=se.substring($,Y.index);const te=j.case_insensitive?Y[0].toLowerCase():Y[0],q=(K=te,F.keywords[K]);if(q){const[oe,de]=q;if(pe.addText(Q),Q="",R[te]=(R[te]||0)+1,R[te]<=7&&(ye+=de),oe.startsWith("_"))Q+=Y[0];else{const Ee=j.classNameAliases[oe]||oe;T(Y[0],Ee)}}else Q+=Y[0];$=F.keywordPatternRe.lastIndex,Y=F.keywordPatternRe.exec(se)}var K;Q+=se.substring($),pe.addText(Q)}function z(){F.subLanguage!=null?(()=>{if(se==="")return;let $=null;if(typeof F.subLanguage=="string"){if(!t[F.subLanguage])return pe.addText(se);$=y(F.subLanguage,se,!0,ie[F.subLanguage]),ie[F.subLanguage]=$._top}else $=C(se,F.subLanguage.length?F.subLanguage:null);F.relevance>0&&(ye+=$.relevance),pe.__addSublanguage($._emitter,$.language)})():I(),se=""}function T($,Y){$!==""&&(pe.startScope(Y),pe.addText($),pe.endScope())}function B($,Y){let Q=1;const K=Y.length-1;for(;Q<=K;){if(!$._emit[Q]){Q++;continue}const te=j.classNameAliases[$[Q]]||$[Q],q=Y[Q];te?T(q,te):(se=q,I(),se=""),Q++}}function L($,Y){return $.scope&&typeof $.scope=="string"&&pe.openNode(j.classNameAliases[$.scope]||$.scope),$.beginScope&&($.beginScope._wrap?(T(se,j.classNameAliases[$.beginScope._wrap]||$.beginScope._wrap),se=""):$.beginScope._multi&&(B($.beginScope,Y),se="")),F=Object.create($,{parent:{value:F}}),F}function U($,Y,Q){let K=((te,q)=>{const oe=te&&te.exec(q);return oe&&oe.index===0})($.endRe,Q);if(K){if($["on:end"]){const te=new Ah($);$["on:end"](Y,te),te.isMatchIgnored&&(K=!1)}if(K){for(;$.endsParent&&$.parent;)$=$.parent;return $}}if($.endsWithParent)return U($.parent,Y,Q)}function W($){return F.matcher.regexIndex===0?(se+=$[0],1):(he=!0,0)}function V($){const Y=$[0],Q=x.substring($.index),K=U(F,$,Q);if(!K)return Lh;const te=F;F.endScope&&F.endScope._wrap?(z(),T(Y,F.endScope._wrap)):F.endScope&&F.endScope._multi?(z(),B(F.endScope,$)):te.skip?se+=Y:(te.returnEnd||te.excludeEnd||(se+=Y),z(),te.excludeEnd&&(se=Y));do F.scope&&pe.closeNode(),F.skip||F.subLanguage||(ye+=F.relevance),F=F.parent;while(F!==K.parent);return K.starts&&L(K.starts,$),te.returnEnd?0:Y.length}let k={};function M($,Y){const Q=Y&&Y[0];if(se+=$,Q==null)return z(),0;if(k.type==="begin"&&Y.type==="end"&&k.index===Y.index&&Q===""){if(se+=x.slice(Y.index,Y.index+1),!o){const K=Error(`0 width match regex (${S})`);throw K.languageName=S,K.badRule=k.rule,K}return 1}if(k=Y,Y.type==="begin")return(K=>{const te=K[0],q=K.rule,oe=new Ah(q),de=[q.__beforeBegin,q["on:begin"]];for(const Ee of de)if(Ee&&(Ee(K,oe),oe.isMatchIgnored))return W(te);return q.skip?se+=te:(q.excludeBegin&&(se+=te),z(),q.returnBegin||q.excludeBegin||(se=te)),L(q,K),q.returnBegin?0:te.length})(Y);if(Y.type==="illegal"&&!O){const K=Error('Illegal lexeme "'+Q+'" for mode "'+(F.scope||"<unnamed>")+'"');throw K.mode=F,K}if(Y.type==="end"){const K=V(Y);if(K!==Lh)return K}if(Y.type==="illegal"&&Q==="")return 1;if(ue>1e5&&ue>3*Y.index)throw Error("potential infinite loop, way more iterations than matches");return se+=Q,Q.length}const j=_(S);if(!j)throw qo(s.replace("{}",S)),Error('Unknown language: "'+S+'"');const Z=oT(j);let J="",F=D||Z;const ie={},pe=new c.__emitter(c);(()=>{const $=[];for(let Y=F;Y!==j;Y=Y.parent)Y.scope&&$.unshift(Y.scope);$.forEach(Y=>pe.openNode(Y))})();let se="",ye=0,fe=0,ue=0,he=!1;try{if(j.__emitTokens)j.__emitTokens(x,pe);else{for(F.matcher.considerAll();;){ue++,he?he=!1:F.matcher.considerAll(),F.matcher.lastIndex=fe;const $=F.matcher.exec(x);if(!$)break;const Y=M(x.substring(fe,$.index),$);fe=$.index+Y}M(x.substring(fe))}return pe.finalize(),J=pe.toHTML(),{language:S,value:J,relevance:ye,illegal:!1,_emitter:pe,_top:F}}catch($){if($.message&&$.message.includes("Illegal"))return{language:S,value:_c(x),illegal:!0,re
`);o!==-1?this.__character_count=r.length-o:this.__character_count+=r.length},e.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},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 r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function t(r,o){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),o=o||"",r.indent_level>0&&(o=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=o,this.__base_string_length=o.length}t.prototype.get_indent_size=function(r,o){var s=this.__base_string_length;return o=o||0,r<0&&(s=0),s+=r*this.__indent_size,s+=o,s},t.prototype.get_indent_string=function(r,o){var s=this.__base_string;return o=o||0,r<0&&(r=0,s=""),o+=r*this.__indent_size,this.__ensure_cache(o),s+=this.__cache[o],s},t.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},t.prototype.__add_column=function(){var r=this.__cache.length,o=0,s="";this.__indent_size&&r>=this.__indent_size&&(o=Math.floor(r/this.__indent_size),r-=o*this.__indent_size,s=new Array(o+1).join(this.__indent_string)),r&&(s+=new Array(r+1).join(" ")),this.__cache.push(s)};function i(r,o){this.__indent_cache=new t(r,o),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.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 i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(r,o){return this.__indent_cache.get_indent_string(r,o)},i.prototype.get_indent_size=function(r,o){return this.__indent_cache.get_indent_size(r,o)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(r){this.trim(!0);var o=this.current_line.pop();o&&(o[o.length-1]===`
`&&(o=o.replace(/\n+$/g,"")),this.current_line.push(o)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
`);return r!==`
`&&(s=s.replace(/[\n]/g,r)),s},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(r,o){return r=r||0,o=o||0,this.next_line.set_indent(r,o),this.__lines.length>1?(this.current_line.set_indent(r,o),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(r){for(var o=0;o<r.newlines;o++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.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(" "))},i.prototype.remove_indent=function(r){for(var o=this.__lines.length;r<o;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&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},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(r,o){for(var s=this.__lines.length-2;s>=0;){var d=this.__lines[s];if(d.is_empty())break;if(d.item(0).indexOf(r)!==0&&d.item(-1)!==o){this.__lines.splice(s+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},Ec.Output=i,Ec}var Sc={},Gh;function Kh(){if(Gh)return Sc;Gh=1;function e(t,i,r,o){this.type=t,this.text=i,this.comments_before=null,this.newlines=r||0,this.whitespace_before=o||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return Sc.Token=e,Sc}var xc={},Yh;function Qh(){return Yh||(Yh=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",i="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\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-\\u0e4
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(xc)),xc}var kc={},$r={},Xh;function Nc(){if(Xh)return $r;Xh=1;function e(r,o){this.raw_options=t(r,o),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(r,o){var s=this.raw_options[r],d=o||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(d=s.concat()):typeof s=="string"&&(d=s.split(/[^a-zA-Z0-9_\/\-]+/)),d},e.prototype._get_boolean=function(r,o){var s=this.raw_options[r],d=s===void 0?!!o:!!s;return d},e.prototype._get_characters=function(r,o){var s=this.raw_options[r],d=o||"";return typeof s=="string"&&(d=s.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},e.prototype._get_number=function(r,o){var s=this.raw_options[r];o=parseInt(o,10),isNaN(o)&&(o=0);var d=parseInt(s,10);return isNaN(d)&&(d=o),d},e.prototype._get_selection=function(r,o,s){var d=this._get_selection_list(r,o,s);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
`+o+`
You passed in: '`+this.raw_options[r]+"'");return d[0]},e.prototype._get_selection_list=function(r,o,s){if(!o||o.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[o[0]],!this._is_valid_selection(s,o))throw new Error("Invalid Default Value!");var d=this._get_array(r,s);if(!this._is_valid_selection(d,o))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
`+o+`
You passed in: '`+this.raw_options[r]+"'");return d},e.prototype._is_valid_selection=function(r,o){return r.length&&o.length&&!r.some(function(s){return o.indexOf(s)===-1})};function t(r,o){var s={};r=i(r);var d;for(d in r)d!==o&&(s[d]=r[d]);if(o&&r[o])for(d in r[o])s[d]=r[o][d];return s}function i(r){var o={},s;for(s in r){var d=s.replace(/-/g,"_");o[d]=r[s]}return o}return $r.Options=e,$r.normalizeOpts=i,$r.mergeOpts=t,$r}var Jh;function Zh(){if(Jh)return kc;Jh=1;var e=Nc().Options,t=["before-newline","after-newline","preserve-newline"];function i(r){e.call(this,r,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<s.length;d++)s[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return i.prototype=new e,kc.Options=i,kc}var Ri={},Tc={},qh;function Oc(){if(qh)return Tc;qh=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(i){this.__input=i||"",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 i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},t.prototype.peek=function(i){var r=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(r=this.__input.charAt(i)),r},t.prototype.__match=function(i,r){i.lastIndex=r;var o=i.exec(this.__input);return o&&!(e&&i.sticky)&&o.index!==r&&(o=null),o},t.prototype.test=function(i,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(i,r):!1},t.prototype.testChar=function(i,r){var o=this.peek(r);return i.lastIndex=0,o!==null&&i.test(o)},t.prototype.match=function(i){var r=this.__match(i,this.__position);return r?this.__position+=r[0].length:r=null,r},t.prototype.read=function(i,r,o){var s="",d;return i&&(d=this.match(i),d&&(s+=d[0])),r&&(d||!i)&&(s+=this.readUntil(r,o)),s},t.prototype.readUntil=function(i,r){var o="",s=this.__position;i.lastIndex=this.__position;var d=i.exec(this.__input);return d?(s=d.index,r&&(s+=d[0].length)):s=this.__input_length,o=this.__input.substring(this.__position,s),this.__position=s,o},t.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},t.prototype.get_regexp=function(i,r){var o=null,s="g";return r&&e&&(s="y"),typeof i=="string"&&i!==""?o=new RegExp(i,s):i&&(o=new RegExp(i.source,s)),o},t.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(i){var r=this.__position,o=this.readUntilAfter(i);return this.__position=r,o},t.prototype.lookBack=
`),!(D.type===u.DOT||D.type===u.RESERVED&&(D.text==="set"||D.text==="get"))&&b.test(R)?(R==="in"||R==="of")&&(D.type===u.WORD||D.type===u.STRING)?this._create_token(u.OPERATOR,R):this._create_token(u.RESERVED,R):this._create_token(u.WORD,R);if(R=this.__patterns.number.read(),R!=="")return this._create_token(u.WORD,R)},x.prototype._read_singles=function(D){var R=null;return D==="("||D==="["?R=this._create_token(u.START_EXPR,D):D===")"||D==="]"?R=this._create_token(u.END_EXPR,D):D==="{"?R=this._create_token(u.START_BLOCK,D):D==="}"?R=this._create_token(u.END_BLOCK,D):D===";"?R=this._create_token(u.SEMICOLON,D):D==="."&&w.test(this._input.peek(1))?R=this._create_token(u.DOT,D):D===","&&(R=this._create_token(u.COMMA,D)),R&&this._input.next(),R},x.prototype._read_pair=function(D,R){var I=null;return D==="#"&&R==="{"&&(I=this._create_token(u.START_BLOCK,D+R)),I&&(this._input.next(),this._input.next()),I},x.prototype._read_punctuation=function(){var D=this.__patterns.punct.read();if(D!=="")return D==="="?this._create_token(u.EQUALS,D):D==="?."?this._create_token(u.DOT,D):this._create_token(u.OPERATOR,D)},x.prototype._read_non_javascript=function(D){var R="";if(D==="#"){if(this._is_first_token()&&(R=this.__patterns.shebang.read(),R))return this._create_token(u.UNKNOWN,R.trim()+`
`);if(R=this.__patterns.include.read(),R)return this._create_token(u.UNKNOWN,R.trim()+`
`);D=this._input.next();var I="#";if(this._input.hasNext()&&this._input.testChar(C)){do D=this._input.next(),I+=D;while(this._input.hasNext()&&D!=="#"&&D!=="=");return D==="#"||(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(D==="<"&&this._is_first_token()){if(R=this.__patterns.html_comment_start.read(),R){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)R+=this._input.next();return S=!0,this._create_token(u.COMMENT,R)}}else if(S&&D==="-"&&(R=this.__patterns.html_comment_end.read(),R))return S=!1,this._create_token(u.COMMENT,R);return null},x.prototype._read_comment=function(D){var R=null;if(D==="/"){var I="";if(this._input.peek(1)==="*"){I=this.__patterns.block_comment.read();var z=g.get_directives(I);z&&z.ignore==="start"&&(I+=g.readIgnored(this._input)),I=I.replace(o.allLineBreaks,`
`),R=this._create_token(u.BLOCK_COMMENT,I),R.directives=z}else this._input.peek(1)==="/"&&(I=this.__patterns.comment.read(),R=this._create_token(u.COMMENT,I))}return R},x.prototype._read_string=function(D){if(D==="`"||D==="'"||D==='"'){var R=this._input.next();return this.has_char_escapes=!1,D==="`"?R+=this._read_string_recursive("`",!0,"${"):R+=this._read_string_recursive(D),this.has_char_escapes&&this._options.unescape_strings&&(R=O(R)),this._input.peek()===D&&(R+=this._input.next()),R=R.replace(o.allLineBreaks,`
`),this._create_token(u.STRING,R)}return null},x.prototype._allow_regexp_or_xml=function(D){return D.type===u.RESERVED&&c(D.text,["return","case","throw","else","do","typeof","yield"])||D.type===u.END_EXPR&&D.text===")"&&D.opened.previous.type===u.RESERVED&&c(D.opened.previous.text,["if","while","for"])||c(D.type,[u.COMMENT,u.START_EXPR,u.START_BLOCK,u.START,u.END_BLOCK,u.OPERATOR,u.EQUALS,u.EOF,u.SEMICOLON,u.COMMA])},x.prototype._read_regexp=function(D,R){if(D==="/"&&this._allow_regexp_or_xml(R)){for(var I=this._input.next(),z=!1,T=!1;this._input.hasNext()&&(z||T||this._input.peek()!==D)&&!this._input.testChar(o.newline);)I+=this._input.peek(),z?z=!1:(z=this._input.peek()==="\\",this._input.peek()==="["?T=!0:this._input.peek()==="]"&&(T=!1)),this._input.next();return this._input.peek()===D&&(I+=this._input.next(),I+=this._input.read(o.identifier)),this._create_token(u.STRING,I)}return null},x.prototype._read_xml=function(D,R){if(this._options.e4x&&D==="<"&&this._allow_regexp_or_xml(R)){var I="",z=this.__patterns.xml.read_match();if(z){for(var T=z[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),B=T.indexOf("{")===0,L=0;z;){var U=!!z[1],W=z[2],V=!!z[z.length-1]||W.slice(0,8)==="![CDATA[";if(!V&&(W===T||B&&W.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(U?--L:++L),I+=z[0],L<=0)break;z=this.__patterns.xml.read_match()}return z||(I+=this._input.match(/[\s\S]*/g)[0]),I=I.replace(o.allLineBreaks,`
`),this._create_token(u.STRING,I)}}return null};function O(D){for(var R="",I=0,z=new e(D),T=null;z.hasNext();)if(T=z.match(/([\s]|[^\\]|\\\\)+/g),T&&(R+=T[0]),z.peek()==="\\"){if(z.next(),z.peek()==="x")T=z.match(/x([0-9A-Fa-f]{2})/g);else if(z.peek()==="u")T=z.match(/u([0-9A-Fa-f]{4})/g),T||(T=z.match(/u\{([0-9A-Fa-f]+)\}/g));else{R+="\\",z.hasNext()&&(R+=z.next());continue}if(!T||(I=parseInt(T[1],16),I>126&&I<=255&&T[0].indexOf("x")===0))return D;I>=0&&I<32||I>1114111?R+="\\"+T[0]:I===34||I===39||I===92?R+="\\"+String.fromCharCode(I):R+=String.fromCharCode(I)}return R}return x.prototype._read_string_recursive=function(D,R,I){var z,T;D==="'"?T=this.__patterns.single_quote:D==='"'?T=this.__patterns.double_quote:D==="`"?T=this.__patterns.template_text:D==="}"&&(T=this.__patterns.template_expression);for(var B=T.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===D||!R&&o.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(z=this._input.peek(),z==="x"||z==="u"?this.has_char_escapes=!0:z==="\r"&&this._input.peek(1)===`
`&&this._input.next(),L+=this._input.next()):I&&(I==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),I===L&&(D==="`"?L+=this._read_string_recursive("}",R,"`"):L+=this._read_string_recursive("`",R,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=T.read(),B+=L}return B},Ri.Tokenizer=x,Ri.TOKEN=u,Ri.positionable_operators=A.slice(),Ri.line_starters=v.slice(),Ri}var sm;function kT(){if(sm)return wc;sm=1;var e=Ac().Output,t=Kh().Token,i=Qh(),r=Zh().Options,o=fl().Tokenizer,s=fl().line_starters,d=fl().positionable_operators,c=fl().TOKEN;function u(T,B){return B.indexOf(T)!==-1}function g(T){return T.replace(/^\s+/g,"")}function y(T){for(var B={},L=0;L<T.length;L++)B[T[L].replace(/-/g,"_")]=T[L];return B}function C(T,B){return T&&T.type===c.RESERVED&&T.text===B}function w(T,B){return T&&T.type===c.RESERVED&&u(T.text,B)}var A=["case","return","do","if","throw","else","await","break","continue","async"],E=["before-newline","after-newline","preserve-newline"],_=y(E),v=[_.before_newline,_.preserve_newline],m={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(T,B){B.multiline_frame||B.mode===m.ForInitializer||B.mode===m.Conditional||T.remove_indent(B.start_line_index)}function S(T){T=T.replace(i.allLineBreaks,`
`);for(var B=[],L=T.indexOf(`
`);L!==-1;)B.push(T.substring(0,L)),T=T.substring(L+1),L=T.indexOf(`
`);return T.length&&B.push(T),B}function x(T){return T===m.ArrayLiteral}function O(T){return u(T,[m.Expression,m.ForInitializer,m.Conditional])}function D(T,B){for(var L=0;L<T.length;L++){var U=T[L].trim();if(U.charAt(0)!==B)return!1}return!0}function R(T,B){for(var L=0,U=T.length,W;L<U;L++)if(W=T[L],W&&W.indexOf(B)!==0)return!1;return!0}function I(T,B){B=B||{},this._source_text=T||"",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 r(B)}I.prototype.create_flags=function(T,B){var L=0;T&&(L=T.indentation_level,!this._output.just_added_newline()&&T.line_indent_level>L&&(L=T.line_indent_level));var U={mode:B,parent:T,last_token:T?T.last_token:new t(c.START_BLOCK,""),last_word:T?T.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:T?T.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return U},I.prototype._reset=function(T){var B=T.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(m.BlockStatement);var L=new o(T,this._options);return this._tokens=L.tokenize(),T},I.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var T,B=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
`,B&&i.lineBreak.test(B||"")&&(L=B.match(i.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 T=this._output.get_code(L),T},I.prototype.handle_token=function(T,B){T.type===c.START_EXPR?this.handle_start_expr(T):T.type===c.END_EXPR?this.handle_end_expr(T):T.type===c.START_BLOCK?this.handle_start_block(T):T.type===c.END_BLOCK?this.handle_end_block(T):T.type===c.WORD?this.handle_word(T):T.type===c.RESERVED?this.handle_word(T):T.type===c.SEMICOLON?this.handle_semicolon(T):T.type===c.STRING?this.handle_string(T):T.type===c.EQUALS?this.handle_equals(T):T.type===c.OPERATOR?this.handle_operator(T):T.type===c.COMMA?this.handle_comma(T):T.type===c.BLOCK_COMMENT?this.handle_block_comment(T,B):T.type===c.COMMENT?this.handle_comment(T,B):T.type===c.DOT?this.handle_dot(T):T.type===c.EOF?this.handle_eof(T):T.type===c.UNKNOWN?this.handle_unknown(T,B):this.handle_unknown(T,B)},I.prototype.handle_whitespace_and_comments=function(T,B){var L=T.newlines,U=this._options.keep_array_indentation&&x(this._flags.mode);if(T.comments_before)for(var W=T.comments_before.next();W;)this.handle_whitespace_and_comments(W,B),this.handle_token(W,B),W=T.comments_before.next();if(U)for(var V=0;V<L;V+=1)this.print_newline(V>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 k=1;k<L;k+=1)this.print_newline(!0,B)}};var z=["async","break","continue","return","throw","yield"];return I.prototype.allow_wrap_or_preserved_newline=function(T,B){if(B=B===void 0?!1:B,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&T.newlines||B,U=u(this._flags.last_token.text,d)||u(T.text,d);if(U){var W=u(this._flags.last_token.text,d)&&u(this._options.operator_position,v)||u(T.text,d);L=L&&W}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(w(this._flags.last_token,z))return;this._output.set_wrap_point()}}},I.prototype.print_newline=function(T,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===m.Statement&&!(this._flags.if_block&&C(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(T)&&(this._flags.multiline_frame=!0)},I.prototype.print_token_line_indentation=function(T){this._output.just_added_newline()&&(this._options.keep_array_indentation&&T.newlines&&(T.text==="["||x(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(T.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(T){if(this._output.raw){this._output.add_raw_token(T);return}if(this._options.comma_first&&T.previous&&T.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(T),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(T),this._output.non_breaking_space=!0,this._output.add_token(T.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
`&&this.print_newline(!1,B)},I.prototype.handle_eof=function(T){for(;this._flags.mode===m.Statement;)this.restore_mode();this.handle_whitespace_and_comments(T)},wc.Beautifier=I,wc}var dm;function NT(){if(dm)return sl.exports;dm=1;var e=kT().Beautifier,t=Zh().Options;function i(r,o){var s=new e(r,o);return s.beautify()}return sl.exports=i,sl.exports.defaultOptions=function(){return new t},sl.exports}var pl={exports:{}},Fc={},Pc={},cm;function um(){if(cm)return Pc;cm=1;var e=Nc().Options;function t(i){e.call(this,i,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<o.length;s++)o[s]!=="expand"?this.brace_style="collapse":this.brace_style=o[s]}return t.prototype=new e,Pc.Options=t,Pc}var fm;function TT(){if(fm)return Fc;fm=1;var e=um().Options,t=Ac().Output,i=Oc().InputScanner,r=Rc().Directives,o=new r(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,g=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,y=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function C(w,A){this._source_text=w||"",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 C.prototype.eatString=function(w){var A="";for(this._ch=this._input.next();this._ch;){if(A+=this._ch,this._ch==="\\")A+=this._input.next();else if(w.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return A},C.prototype.eatWhitespace=function(w){for(var A=c.test(this._input.peek()),E=0;c.test(this._input.peek());)this._ch=this._input.next(),w&&this._ch===`
`&&(E===0||E<this._options.max_preserve_newlines)&&(E++,this._output.add_new_line(!0));return A},C.prototype.foundNestedPseudoClass=function(){for(var w=0,A=1,E=this._input.peek(A);E;){if(E==="{")return!0;if(E==="(")w+=1;else if(E===")"){if(w===0)return!1;w-=1}else if(E===";"||E==="}")return!1;A++,E=this._input.peek(A)}return!1},C.prototype.print_string=function(w){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(w)},C.prototype.preserveSingleSpace=function(w){w&&(this._output.space_before_token=!0)},C.prototype.indent=function(){this._indentLevel++},C.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},C.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,A=this._options.eol;A==="auto"&&(A=`
`,w&&s.test(w||"")&&(A=w.match(s)[0])),w=w.replace(d,`
`);var E=w.match(/^[\t ]*/)[0];this._output=new t(this._options,E),this._input=new i(w),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var _=0,v=!1,m=!1,b=!1,S=!1,x=!1,O=this._ch,D=!1,R,I,z;R=this._input.read(u),I=R!=="",z=O,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),O=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var T=this._input.read(g),B=o.get_directives(T);B&&B.ignore==="start"&&(T+=o.readIgnored(this._input)),this.print_string(T),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(y)),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),_===0&&L.indexOf(":")!==-1&&(m=!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),_===0&&U.indexOf(":")!==-1?(m=!0,this.indent()):U in this.NESTED_AT_RULE?(this._nestedLevel+=1,U in this.CONDITIONAL_GROUP_RULE&&(b=!0)):_===0&&!m&&(S=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(I),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")m&&(m=!1,this.outdent()),S=!1,b?(b=!1,v=this._indentLevel>=this._nestedLevel):v=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&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)):(z==="("?this._output.space_before_token=!1:z!==","&&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(),z==="{"&&this._output.trim(!0),m&&(this.outdent(),m=!1),this.print_string(this._ch),v=!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 W=0;W<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;W++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[W])){D=!0;break}(v||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!S&&_===0?(this.print_string(":"),m||(m=!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 V=z==='"'||z==="'";this.preserveSingleSpace(V||I),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")D=!1,_===0?(m&&(this.outdent(),m=!1),S=!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(),_++,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(")")),_&&(_--,this.outd
`&&D&&this._output.add_new_line()}var j=this._output.get_code(A);return j},Fc.Beautifier=C,Fc}var pm;function OT(){if(pm)return pl.exports;pm=1;var e=TT().Beautifier,t=um().Options;function i(r,o){var s=new e(r,o);return s.beautify()}return pl.exports=i,pl.exports.defaultOptions=function(){return new t},pl.exports}var hl={exports:{}},Mc={},Lc={},hm;function mm(){if(hm)return Lc;hm=1;var e=Nc().Options;function t(i){e.call(this,i,"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,Lc.Options=t,Lc}var ml={},gm;function vm(){if(gm)return ml;gm=1;var e=ul().Tokenizer,t=ul().TOKEN,i=Rc().Directives,r=am().TemplatablePattern,o=cl().Pattern,s={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 i(/<\!--/,/-->/),c=function(u,g){e.call(this,u,g),this._current_tag_name="";var y=new r(this._input).read_options(this._options),C=new o(this._input);if(this.__patterns={word:y.until(/[\n\r\t <]/),word_control_flow_close_excluded:y.until(/[\n\r\t <}]/),single_quote:y.until_after(/'/),double_quote:y.until_after(/"/),attribute:y.until(/[\n\r\t =>]|\/>/),element_name:y.until(/[\n\r\t >\/]/),angular_control_flow_start:C.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:C.starting_with(/{{!--/).until_after(/--}}/),handlebars:C.starting_with(/{{/).until_after(/}}/),handlebars_open:C.until(/[\n\r\t }]/),handlebars_raw_close:C.until(/}}/),comment:C.starting_with(/<!--/).until_after(/-->/),cdata:C.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:C.starting_with(/<!\[/).until_after(/]>/),processing:C.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 w=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=C.matching(w).until_after(w)}}
`,v&&o.test(v)&&(m=v.match(o)[0])),v=v.replace(s,`
`);var b=v.match(/^[\t ]*/)[0],S={text:"",type:""},x=new A,O=new d(this._options,b),D=new i(v,this._options).tokenize();this._tag_stack=new C(O);for(var R=null,I=D.next();I.type!==r.EOF;)I.type===r.TAG_OPEN||I.type===r.COMMENT?(R=this._handle_tag_open(O,I,x,S,D),x=R):I.type===r.ATTRIBUTE||I.type===r.EQUALS||I.type===r.VALUE||I.type===r.TEXT&&!x.tag_complete?R=this._handle_inside_tag(O,I,x,S):I.type===r.TAG_CLOSE?R=this._handle_tag_close(O,I,x):I.type===r.TEXT?R=this._handle_text(O,I,x):I.type===r.CONTROL_FLOW_OPEN?R=this._handle_control_flow_open(O,I):I.type===r.CONTROL_FLOW_CLOSE?R=this._handle_control_flow_close(O,I):O.add_raw_token(I),S=R,I=D.next();var z=O._output.get_code(m);return z},w.prototype._handle_control_flow_open=function(v,m){var b={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),v.indent(),b},w.prototype._handle_control_flow_close=function(v,m){var b={text:m.text,type:m.type};return v.deindent(),m.newlines?v.print_preserved_newlines(m):v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),v.print_token(m),b},w.prototype._handle_tag_close=function(v,m,b){var S={text:m.text,type:m.type};return v.alignment_size=0,b.tag_complete=!0,v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):(b.tag_start_char==="<"&&(v.set_space_before_token(m.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&v.print_newline(!1)),v.print_token(m)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(v.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&v.set_wrap_point(),S},w.prototype._handle_inside_tag=function(v,m,b,S){var x=b.has_wrapped_attrs,O={text:m.text,type:m.type};return v.set_space_before_token(m.newlines||m.whitespace_before!=="",!0),b.is_unformatted?v.add_raw_token(m):b.tag_start_char==="{"&&m.type===r.TEXT?v.print_preserved_newlines(m)?(m.newlines=0,v.add_raw_token(m)):v.print_token(m):(m.type===r.ATTRIBUTE?v.set_space_before_token(!0):(m.type===r.EQUALS||m.type===r.VALUE&&m.previous.type===r.EQUALS)&&v.set_space_before_token(!1),m.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(v.traverse_whitespace(m),x=x||m.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(S.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(v.print_newline(!1),x=!0)),v.print_token(m),x=x||v.previous_token_wrapped(),b.has_wrapped_attrs=x),O},w.prototype._handle_text=function(v,m,b){var S={text:m.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(v,m,b):b.is_unformatted||b.is_content_unformatted?v.add_raw_token(m):(v.traverse_whitespace(m),v.print_token(m)),S},w.prototype._print_custom_beatifier_text=function(v,m,b){var S=this;if(m.text!==""){var x=m.text,O,D=1,R="",I="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?O=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?O=this._css_beautify:b.custom_beautifier_name==="html"&&(O=function(W,V){var k=new w(W,V,S._js_beautify,S._css_beautify);return k.beautify()}),this._options.indent_scripts==="keep"?D=0:this._options.indent_scripts==="separate"&&(D=-v.indent_level);var z=v.get_full_indent(D);if(x=x.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&x[0]==="<"&&x.match(/^(<!--|<!\[CDATA\[)/)){var T=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(x);if(!T){v.add_raw_token(m);return}R=z+T[1]+`
`,x=T[4],T[5]&&(I=z+T[5]),x=x.replace(/\n[ \t]*$/,""),(T[2]||T[3].indexOf(`
`)!==-1)&&(T=T[3].match(/[ \t]+$/),T&&(m.whitespace_before=T[0]))}if(x)if(O){var B=function(){this.eol=`
`};B.prototype=this._options.raw_options;var L=new B;x=O(z+x,L)}else{var U=m.whitespace_before;U&&(x=x.replace(new RegExp(`
(`+U+")?","g"),`
`)),x=z+x.replace(/\n/g,`
`+z)}R&&(x?x=R+x+`
`+I:x=R+I),v.print_newline(!1),x&&(m.text=x,m.whitespace_before="",m.newlines=0,v.add_raw_token(m),v.print_newline(!0))}},w.prototype._handle_tag_open=function(v,m,b,S,x){var O=this._get_tag_open_token(m);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&m.type===r.TAG_OPEN&&!O.is_start_tag?(v.add_raw_token(m),O.start_tag_token=this._tag_stack.try_pop(O.tag_name)):(v.traverse_whitespace(m),this._set_tag_position(v,m,O,b,S),O.is_inline_element||v.set_wrap_point(),v.print_token(m)),O.is_start_tag&&this._is_wrap_attributes_force){var D=0,R;do R=x.peek(D),R.type===r.ATTRIBUTE&&(O.attr_count+=1),D+=1;while(R.type!==r.EOF&&R.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(O.alignment_size=m.text.length+1),!O.tag_complete&&!O.is_unformatted&&(v.alignment_size=O.alignment_size),O};var A=function(v,m){if(this.parent=v||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="",!m)this.tag_complete=!0;else{var b;this.tag_start_char=m.text[0],this.text=m.text,this.tag_start_char==="<"?(b=m.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=m.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(m.text.startsWith("{{#>")||m.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&m.next!==null?this.tag_check=m.next.text.split(" ")[0]:this.tag_check=m.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),m.type===r.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||m.closed&&m.closed.text==="/>";var S=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(S=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(S)))}};w.prototype._get_tag_open_token=function(v){var m=new A(this._tag_stack.get_parser_token(),v);return m.alignment_size=this._options.wrap_attributes_indent_size,m.is_end_tag=m.is_end_tag||g(m.tag_check,this._options.void_elements),m.is_empty_element=m.tag_complete||m.is_start_tag&&m.is_end_tag,m.is_unformatted=!m.tag_complete&&g(m.tag_check,this._options.unformatted),m.is_content_unformatted=!m.is_empty_element&&g(m.tag_check,this._options.content_unformatted),m.is_inline_element=g(m.tag_name,this._options.inline)||this._options.inline_custom_elements&&m.tag_name.includes("-")||m.tag_start_char==="{",m},w.prototype._set_tag_position=function(v,m,b,S,x){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||v.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=u(b.tag_check,m)))),g(b.tag_check,this._options.extra_liners)&&(v.print_newline(!1),v._output.just_added_blankline()||v.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var O=v.current_line_has_match(/{{#if/);O||v.print_newline(!1)}b.tag_name==="!--"&&x.type===r.TAG_CLOSE&&S.is_end_tag&&b.text.indexOf(`
`)===-1||(b.is_inline_element||b.is_unformatted||v.print_newline(!1),this._calcluate_parent_multiline(v,b))}else if(b.is_end_tag){var D=!1;D=b.start_tag_token&&b.start_tag_token.multiline_content,D=D||!b.is_inline_element&&!(S.is_inline_element||S.is_unformatted)&&!(x.type===r.TAG_CLOSE&&b.start_tag_token===S)&&x.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(D=!1),D&&v.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(x.type!=="TK_CONTENT"||b.is_content_unformatted)&&v.print_newline(!1),this._calcluate_parent_multiline(v,b)},w.prototype._calcluate_parent_multiline=function(v,m){m.parent&&v._output.just_added_newline()&&!((m.is_inline_element||m.is_unformatted)&&m.parent.is_inline_element)&&(m.parent.multiline_content=!0)};var E=["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"],_=["a","audio","del","ins","map","noscript","video"];return w.prototype._do_optional_end_element=function(v){var m=null;if(!(v.is_empty_element||!v.is_start_tag||!v.parent)){if(v.tag_name==="body")m=m||this._tag_stack.try_pop("head");else if(v.tag_name==="li")m=m||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(v.tag_name==="dd"||v.tag_name==="dt")m=m||this._tag_stack.try_pop("dt",["dl"]),m=m||this._tag_stack.try_pop("dd",["dl"]);else if(v.parent.tag_name==="p"&&E.indexOf(v.tag_name)!==-1){var b=v.parent.parent;(!b||_.indexOf(b.tag_name)===-1)&&(m=m||this._tag_stack.try_pop("p"))}else v.tag_name==="rp"||v.tag_name==="rt"?(m=m||this._tag_stack.try_pop("rt",["ruby","rtc"]),m=m||this._tag_stack.try_pop("rp",["ruby","rtc"])):v.tag_name==="optgroup"?m=m||this._tag_stack.try_pop("optgroup",["select"]):v.tag_name==="option"?m=m||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):v.tag_name==="colgroup"?m=m||this._tag_stack.try_pop("caption",["table"]):v.tag_name==="thead"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"])):v.tag_name==="tbody"||v.tag_name==="tfoot"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("thead",["table"]),m=m||this._tag_stack.try_pop("tbody",["table"])):v.tag_name==="tr"?(m=m||this._tag_stack.try_pop("caption",["table"]),m=m||this._tag_stack.try_pop("colgroup",["table"]),m=m||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(v.tag_name==="th"||v.tag_name==="td")&&(m=m||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),m=m||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return v.parent=this._tag_stack.get_parser_token(),m}},Mc.Beautifier=w,Mc}var bm;function BT(){if(bm)return hl.exports;bm=1;var e=DT().Beautifier,t=mm().Options;function i(r,o,s,d){var c=new e(r,o,s,d);return c.beautify()}return hl.exports=i,hl.exports.defaultOptions=function(){return new t},hl.exports}var Cm;function $T(){if(Cm)return Br;Cm=1;var e=NT(),t=OT(),i=BT();function r(o,s,d,c){return d=d||e,c=c||t,i(o,s,d,c)}return r.defaultOptions=i.defaultOptions,Br.js=e,Br.css=t,Br.html=r,Br}(function(e){function t(i,r,o){var s=function(d,c){return i.js_beautify(d,c)};return s.js=i.js_beautify,s.css=r.css_beautify,s.html=o.html_beautify,s.js_beautify=i.js_beautify,s.css_beautify=r.css_beautify,s.html_beautify=o.html_beautify,s}(function(i){var r=$T();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,i.exports=t(r,r,r)})(e)})(Uh);const Ii=Uh.exports;function VT(e){const t={};return Object.values(e.import).forEach(i=>{t[i.name]=i.path}),` import { defineComponent } from "vue";
${Object.keys(t).map(i=>`import ${i} from '${t[i]}';`).join(`
`)}
export default defineComponent({
name: "FcTemplate",
components: {
${Object.keys(t).join(",")}
},
props: {},
data() {
return ${fn(e.data)}
},
methods: ${fn(e.methods)}
});
`}function RT(e){const t={};return Object.values(e.import).forEach(i=>{t[i.name]=i.path}),` import { ref } from "vue";
${Object.keys(t).map(i=>`import ${i} from '${t[i]}';`).join(`
`)}
${Object.keys(e.data).map(i=>`const ${i} = ref(${fn(e.data[i])})`).join(`
`)}
${Object.keys(e.methods).map(i=>fn(e.methods[i])).join(`
`)}
`}function jc(e,t){const i=[];return e&&e.forEach(r=>{if(!(r&&r._menu&&r._menu.sfc===!1))if(typeof r=="string")i.push(r);else if(r._fc_drag_tag){const o={...r,children:jc(r.children),_sfc:{}};t&&(o.slot=t),o.children.length?typeof o.children[0]=="string"&&(o._sfc.content=o.children[0],delete o.children):delete o.children,i.push(o)}else i.push(...jc(r.children,["DragBox","DragTool"].indexOf(r.type)>-1?r.slot||t:""))}),i}function IT(e,t,i,r){const o=e[0]?e[0].__fc__.vNode.aliasMap:void 0,s={style:{},import:{},data:{formData:{}},methods:{submit(){this.$refs.form.validate().then(()=>{})},reset(){this.$refs.form.resetFields()}}},d=[];function c(){let v=d.join(".");return v&&(v+="."),v}function u(v,m){return m?`<${v.type}${g(v)}>${m}</${v.type}>`:`<${v.type}${g(v)}/>`}function g(v){const m=v.props||{},b=v._sfc||{};let S=[];if(v.class&&S.push(`class="${Array.isArray(v.class)?v.class.join(" "):v.class}"`),v.slot&&v.slot!=="default"&&S.push("#"+v.slot),Object.keys(m).forEach(O=>{const D=m[O];if(D&&typeof D=="object"){const R=v._fc_id?v._fc_id+"_"+O:O;s.data[R]=D,S.push(`:${O}="${R}"`)}else if(D!=null&&D!==""&&typeof D!="function"){let R=typeof D=="string"?"":":";R+=`${O}="${D}"`,S.push(R)}}),v.field){let O=v.value;const D={array:[],string:"",number:0};if(v.value==null){const R=i[v._fc_drag_tag];R&&Array.isArray(R.validate)&&In(D,R.validate[0])&&(O=D[R.validate[0]])}s.data.formData[v.field]=O,b.vModel!==!1&&S.push(`v-model${b.modelField?":"+b.modelField:""}="formData.${c()}${v.field}"`)}if(v.style){const O=FT(v.style||"");O&&S.push(`style="${O}"`)}b.attr&&Object.keys(b.attr).forEach(O=>{S.push(`${O}="${b.attr[O]}"`)}),b.prop&&Object.keys(b.prop).forEach(O=>{const D=v._fc_id+"_"+O;s.data[D]=b.prop[O],S.push(`:${O}="${D}"`)}),b.flag&&b.flag.forEach(O=>{S.push(O)});let x=S.join(" ");return x&&(x=" "+x.trim()),x}function y(v){return v?v.map(m=>{var R,I,z;let b="";const S=m._menu;let x=et(m),O;if(S&&S.sfc){let T;if(typeof S.sfc=="object"?(T=S.sfc.handle,S.sfc.style&&(s.style[S.name]=S.sfc.style),S.sfc.import&&(s.import[S.name]=S.sfc.import)):T=S.sfc,T){const B=T(x,{transition:y,scope:s,getParentFieldStr:c})||x;typeof B=="string"?O=B:x=B}}const D=x.native!==!1&&(x.field||x.title);return O||(x._sfc&&x._sfc.parentField&&d.push(x.parentField),x._sfc&&x._sfc.content?b=`${x._sfc.content}`:x.children&&(b=`
`+y(x.children)+`
`),o&&o[x.type]&&(x.type=ju(o[x.type])),O=u(x,b),x._sfc&&x._sfc.parentField&&d.pop()),D&&((R=x==null?void 0:x.wrap)==null?void 0:R.show)!==!1&&(O=u({type:"aFormItem",props:{...x.wrap||{},name:c()+x.field,label:x.title,required:x.$required===!0?!0:void 0},style:(I=x==null?void 0:x.wrap)==null?void 0:I.style,class:(z=x==null?void 0:x.wrap)==null?void 0:z.class},`
`+O+`
`)),O}).join(`
`):""}e=jc(e);const C=[];t.submitBtn.show&&C.push({type:"aButton",props:{type:"primary"},_sfc:{attr:{"@click":"submit"},content:t.submitBtn.innerText||"\u63D0\u4EA4"}}),t.resetBtn.show&&C.push({type:"aButton",_sfc:{attr:{"@click":"reset"},content:t.resetBtn.innerText||"\u91CD\u7F6E"}}),C.length&&e.push({type:"aFormItem",children:C});const w=y([{type:"template",children:[{type:"aForm",props:t.form||{},children:e,_sfc:{attr:{ref:"form",":model":"formData"},flag:["@submit.prevent"]}}]}]);t.formData&&Cd(s.data.formData,t.formData);const A=Ii.html(w,{indent_size:2,indent_char:" ",indent_scripts:"separate",jslint_happy:!1}),E=Ii.js(r?VT(s):RT(s),{indent_size:2,indent_char:" ",indent_scripts:"separate"}),_=Ii.css(Object.values(s.style).join(`
`),{indent_size:2,indent_char:" ",indent_scripts:"separate"});return`${A}
<script${r?"":" setup"}>
${E}
<\/script>
<style>
${_}
</style>
`}function FT(e){return!e||typeof e=="string"?e||"":Object.keys(e).reduce((t,i)=>(e[i]!=null&&e[i]!==""&&t.push(ll(i)+":"+e[i]+";"),t),[]).join("")}const f3="",PT=n.defineComponent({name:"SubList",components:{fcDraggable:Ci,VNode:wh,ConfigItem:Sn},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 i=this.activeRule.children.splice(e,1);this.activeRule.children.splice(t,0,i[0]),this.activeRule.key=Ye()}}}),MT={class:"_fc-sublist"},LT={class:"_fc-r-title"},jT=["onClick"],zT=["onClick"];function HT(e,t,i,r,o,s){const d=n.resolveComponent("VNode"),c=n.resolveComponent("ConfigItem"),u=n.resolveComponent("fcDraggable");return n.openBlock(),n.createElementBlock("div",MT,[n.createElementVNode("p",LT,[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]=g=>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:g,index:y})=>[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."+g._menu.name+".name")||e.activeRule._menu.label)+" "+(y+1)),1)]),default:n.withCtx(()=>[n.createElementVNode("i",{class:"fc-icon icon-copy",onClick:C=>e.toolHandle(g,"copy")},null,8,jT),n.createElementVNode("i",{class:"fc-icon icon-delete",onClick:C=>e.toolHandle(g,"delete")},null,8,zT)]),_:2},[e.activeRule._menu.subRender?{name:"append",fn:n.withCtx(()=>[n.createVNode(d,{fn:()=>e.subRender(e.activeRule._menu.subRender,e.activeRule,g)},null,8,["fn"])]),key:"0"}:void 0]),1024)]),_:1},8,["onEnd","list"])])}const UT=Ne(PT,[["render",HT]]),p3="",WT=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()}}}),GT={key:0,class:"_fc-r-tools-bar"},KT={class:"_fc-r-tools"},YT=["onClick"];function QT(e,t,i,r,o,s){const d=n.resolveComponent("a-tooltip");return e.tools.length>2?(n.openBlock(),n.createElementBlock("div",GT,[n.createElementVNode("div",KT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.tools,c=>(n.openBlock(),n.createBlock(d,{key:c.icon,title:c.label,placement:"bottom"},{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,YT)]),_:2},1032,["title"]))),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 XT=Ne(WT,[["render",QT]]),h3="",JT=n.defineComponent({name:"ConfigTitle"}),ZT={ref:"cell",class:"_fd-config-title"};f
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_"+Ye();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(i=>{let r="";t[i].style&&Object.keys(t[i].style).forEach(o=>{r+=ll(o)+":"+t[i].style[o]+";"}),t[i].content&&(r+=t[i].content+";"),r&&(e+=`.${i}{${r}}`)}),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)}}),BD={class:"_fd-gcc"},$D={class:"_fd-menu"},VD={class:"_fd-gcc-title"},RD={class:"_fd-gcc-method"},ID={class:"_fd-label"},FD=["onClick"],PD={class:"_fd-gcc-title"},MD={class:"_fd-gcc-method"},LD={key:0,class:"_fd-label"},jD=["onClick"],zD={key:0,class:"_fd-menu-item",style:{"padding-left":"0"}},HD={class:"_fd-gcc-title"};function UD(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-badge"),u=n.resolveComponent("Warning"),g=n.resolveComponent("a-layout-header"),y=n.resolveComponent("a-input"),C=n.resolveComponent("a-layout-content"),w=n.resolveComponent("a-layout"),A=n.resolveComponent("a-layout-sider"),E=n.resolveComponent("StyleEditor"),_=n.resolveComponent("StyleConfig"),v=n.resolveComponent("a-form"),m=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",BD,[n.createVNode(c,{color:"orange",count:e.eventNum},{default:n.withCtx(()=>[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",onClick:e.open},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.title")),1)]),_:1},8,["onClick"])]),_:1},8,["count"]),n.createVNode(m,{class:"_fd-gec-dialog _fd-config-dialog",open:e.visible,"onUpdate:open":t[7]||(t[7]=b=>e.visible=b),centered:"",maskClosable:!1,destroyOnClose:!0,width:"700px"},{title: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,{onClick:t[6]||(t[6]=b=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.submit,size:"middle"},{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(A,{width:"255px"},{default:n.withCtx(()=>[n.createVNode(w,{class:"_fd-gcc-l"},{default:n.withCtx(()=>[n.createVNode(g,{class:"_fd-gcc-head",style:{height:"40px"}},{default:n.withCtx(()=>[n.createVNode(d,{type:"link",size:"middle",onClick:e.cusEvent},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("class.create")),1)]),_:1},8,["onClick"])]),_:1}),n.createVNode(C,null,{default:n.withCtx(()=>[n.createElementVNode("div",$D,[n.createElementVNode("div",{class:n.normalizeClass(["_fd-menu-item",{"is-active":e.activeStyle,"_fd-gcc-default":!0}]),onClick:t[0]||(t[0]=(...b)=>e.changeStyle&&e.changeStyle(...b))},[n.createElementVNode("div",VD,[n.createElementVNode("div",RD,[n.createElementVNode("span",ID,n.toDisplayString(e.t("form.globalClass")),1)])])],2),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.value,(b,S)=>(n.openBlock(),n.createE
`+$.style),k.formOptions.language||(k.formOptions.language={}),$.language&&Object.keys($.language).forEach(Y=>{k.formOptions.language[Y]={...k.formOptions.language[Y]||{},...$.language[Y]}}),$.languageKey){const Y=F.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);$.languageKey.forEach(Q=>{Y.forEach(({value:K})=>{k.formOptions.language[K]||(k.formOptions.language[K]={}),k.formOptions.language[K][Q]||(k.formOptions.language[K][Q]="")})})}},updateOptionsValue(){var Q,K,te;const $={};k.oldOptionsKeys.forEach(q=>{$[q]=void 0});const Y={...$,...k.formOptions.form,">form>labelCol>style>width":(te=(K=(Q=k.formOptions.form)==null?void 0:Q.labelCol)==null?void 0:K.style)==null?void 0:te.width};Object.keys(k.formOptions).forEach(q=>{const oe=k.formOptions[q];Y[">"+q]=oe,typeof oe=="object"&&Object.keys(oe).forEach(de=>{Y[q+">"+de]=oe[de]})}),k.form.value=Y},setGlobalEvent($){k.formOptions.globalEvent={...k.formOptions.globalEvent||{},...$},F.updateOptionsValue()},setGlobalData($){k.formOptions.globalData={...k.formOptions.globalData||{},...$},F.updateOptionsValue()},setGlobalClass($){k.formOptions.globalClass={...k.formOptions.globalClass||{},...$},F.updateOptionsValue()},setGlobalVariable($){k.formOptions.globalVariable={...k.formOptions.globalVariable||{},...$},F.updateOptionsValue()},tidyRule($){var Q;["control","computed","on","hidden","display"].forEach(K=>{$[K]!=null&&($["_"+K]=$[K],delete $[K])}),(Q=$.effect)!=null&&Q.loadData&&($._loadData=$.effect.loadData,delete $.effect.loadData),$.$loadData&&($._loadData=$.$loadData,delete $.$loadData)},loadRule($,Y,Q){const K=[];return $.forEach(te=>{if(at.String(te))return K.push(te);if(te._fc_drag_skip)return;let q=k.dragRuleList[te._fc_drag_tag]||k.dragRuleList[te.type];if(q||(q=I1(te),te._fc_drag_tag="_"),Q&&(te._fc_template=Q),q&&q.loadRule&&q.loadRule(te),te.children=F.loadRule(te.children||[],q,Q),q){const oe=te.slot;let de;Y&&Y.slot&&oe&&oe!=="default"&&(de=F.getSlotConfig(Y,oe,q)),delete te.slot,te=F.makeRule(de||q,te),oe&&(te.slot=oe)}else F.tidyRule(te);K.push(te)}),K},parseRule($,Y){return[...$].reduce((Q,K)=>{let te=Y;if(at.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q;if(K.type==="DragTool"){if(te=K.slot||Y,K=K.children[0],at.String(K))return Q.push(K),Q;if(K.type==="DragBox")return Q.push(...F.parseRule(K.children,te||K.slot)),Q}return!K||K._fc_drag_skip||(K={...K},te&&te!=="default"&&(K.slot=te),K.children&&K.children.length&&(K.children=F.parseRule(K.children)),delete K.key,delete K.component,delete K._fc_page_tag,K._menu&&(K._menu.parseRule&&K._menu.parseRule(K),delete K._menu),K._fc_drag_tag==="_"&&delete K._fc_drag_tag,["control","computed","on","hidden","display"].forEach(oe=>{K["_"+oe]!=null&&K["_"+oe]!==""&&(K[oe]=K["_"+oe]),delete K["_"+oe]}),K.slot||delete K.slot,K._loadData&&(K.$loadData=K._loadData,delete K._loadData),K.props&&Object.keys(K.props).forEach(oe=>{const de=K.props[oe];Gn(de)&&delete K.props[oe]}),K.props&&K.props.key&&(K.key=K.props.key),[K.wrap,K.title,K.info,K].forEach(oe=>{oe&&Object.keys(oe).filter(de=>de.indexOf("__")===0||oe[de]===""||Array.isArray(oe[de])&&oe[de].length===0||at.Object(oe[de])&&Object.keys(oe[de]).length===0).forEach(de=>{delete oe[de]})}),Q.push(K)),Q},[])},fields(){return k.dragForm.api.all().map($=>$.field).filter($=>!!$)},getTitle($){var Y,Q,K;return(((K=(Q=(Y=$==null?void 0:$.__fc__)==null?void 0:Y.refRule)==null?void 0:Q.__$title)==null?void 0:K.value)||$.title||"").trim()||$.props&&$.props.label||W("com."+($._menu&&$._menu.name)+".name")||$._menu&&$._menu.label||$.type},baseChange($,Y,Q,K){F.handleChange("",$,Y,Q,K)},formOptChange($,Y){k.form.value[$]=Y,$.indexOf(">")===-1&&($="form>"+$);let Q=k.formOptions;const K=$.split(">"),te=K.pop();K.forEach(q=>{q&&(Q[q]||(Q[q]={}),Q=Q[q])}),Q[te]=Y},propRemoveField($,Y,Q){var K,te,q;if(k.activeRule&&Q[k.activeRule._fc_id]===k.activeRule){F.unWatchActiveRule();const oe=$;k.dragForm.api.sync(k.activeRule),$.indexOf("__")!==0&&($==="formCreateChild"?delete k.ac
`)[0])!=null?o:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=n.markRaw(fo(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.validateXML(e)?(qt(this.t("struct.errorMsg")),!1):(this.visible=!1,e!==this.oldVal&&this.$emit("update:modelValue",e),!0)}}}),X$={class:"_fd-html-editor"},J$={key:0,ref:"editor"};function Z$(e,t,i,r,o,s){const d=n.resolveComponent("a-button"),c=n.resolveComponent("a-modal");return n.openBlock(),n.createElementBlock("div",X$,[n.createVNode(d,{class:"_fd-plain-button",type:"primary",size:"small",ghost:"",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"),open:e.visible,"onUpdate:open":t[2]||(t[2]=u=>e.visible=u),centered:"",maskClosable:!1,destroyOnClose:!0,width:"800px"},{footer:n.withCtx(()=>[n.createElementVNode("div",null,[n.createVNode(d,{onClick:t[1]||(t[1]=u=>e.visible=!1),size:"middle"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.t("props.cancel")),1)]),_:1}),n.createVNode(d,{type:"primary",onClick:e.onOk,size:"middle"},{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",J$,null,512)):n.createCommentVNode("",!0)]),_:1},8,["title","open"])])}const q$=Ne(Q$,[["render",Z$]]),Y3="",eV=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(et(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:{updateValue(e){this.fieldReadonly||this.disabled||(this.value=e.target.value,this.onInput(),e.target.blur())},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 i=t&&t.__fc__&&t.__fc__.parent;for(;i;)if(i.rule._menu&&["array","object"].indexOf(i.rule._menu.subForm)>-1){const r=this.findChildrenById(e,i.rule.field)||e;r.length&&(e=r);break}else i=i.parent}return e},removeLeafNodes(e){if(!Array.isArray(e)||e.length===0)return e;function t(i){return i.filter(r=>r.children&&r.children.length>0?(r.children=t(r.children),!0):!1)}return t(e)},findChildrenById(e,t){if(!Array.isArray(e))return null;for(const i of e){if(i.value===t)return i.children||[];if(i.children){const r=this.findChildrenById(i.children,t);if(r!==null)return r}}return null},copy(){Kn(this.modelValue)},getSubChildren(){let e=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return e=at.trueArray(e)?e:this.designer.setupState.children,e},getSubFieldChildren(){const e=this.getSubChildren(),t=[],i=r=>(r&&r.forEach(o=>{o&&o._fc_drag_tag&&o.field?t.push({...o,children:[]}):o&&o.children&&i(o.children)}),t);return i(e)},checkValue(){const e=this.oldValue;Ku(e);let t=(this.value||"").replace(/[\s\ ]/g,"");if(t)if(/^[a-zA-Z]/.test(t)){if(e!==t){const i=t.indexOf(".")>-1;if(i&&(t=t.replaceAll(".","_")),this.getSubFieldChildren().filter(r=>r.field===t).length>0)return qt(this.t("computed.fieldExist",{label:t})),e;if(i)return t}}else return qt(this.t("computed.fieldChar")),e;else return qt(this.t("computed.fieldEmpty")),e;return this.oldValue="",t},onFocus(){this.oldVa
* @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 jm(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),i.push.apply(i,r)}return i}function kF(e){for(var t=1;t<arguments.length;t++){var i=arguments[t]!=null?arguments[t]:{};t%2?jm(Object(i),!0).forEach(function(r){NF(e,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):jm(Object(i)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(i,r))})}return e}function Ht(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ht=function(t){return typeof t}:Ht=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ht(e)}function NF(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function TF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zm={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(window,function(){return function(i){var r={};function o(s){if(r[s])return r[s].exports;var d=r[s]={i:s,l:!1,exports:{}};return i[s].call(d.exports,d,d.exports,o),d.l=!0,d.exports}return o.m=i,o.c=r,o.d=function(s,d,c){o.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},o.t=function(s,d){if(d&1&&(s=o(s)),d&8||d&4&&Ht(s)==="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(o.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var u in s)o.d(c,u,function(g){return s[g]}.bind(null,u));return c},o.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(d,"a",d),d},o.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},o.p="",o(o.s=141)}([function(i,r){function o(s){return s&&s.__esModule?s:{default:s}}i.exports=o},function(i,r,o){i.exports=o(142)},function(i,r,o){o.r(r),o.d(r,"__extends",function(){return d}),o.d(r,"__assign",function(){return c}),o.d(r,"__rest",function(){return u}),o.d(r,"__decorate",function(){return g}),o.d(r,"__param",function(){return y}),o.d(r,"__metadata",function(){return C}),o.d(r,"__awaiter",function(){return w}),o.d(r,"__generator",function(){return A}),o.d(r,"__createBinding",function(){return E}),o.d(r,"__exportStar",function(){return _}),o.d(r,"__values",function(){return v}),o.d(r,"__read",function(){return m}),o.d(r,"__spread",function(){return b}),o.d(r,"__spreadArrays",function(){return S}),o.d(r,"__spreadArray",function(){return x}),o.d(r,"__await",function(){return O}),o.d(r,"__asyncGenerator",function(){return D}),o.d(r,"__asyncDelegator",function(){return R}),o.d(r,"__asyncValues",function(){return I}),o.d(r,"__makeTemplateObject",function(){return z}),o.d(r,"__importStar",function(){return B}),o.d(r,"__importDefault",function(){return L}),o.d(r,"__classPrivateFieldGet",function(){return U}),o.d(r,"__classPrivateFieldSet",function(){return W});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var s=function(k,M){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,Z){j.__proto__=Z}||function(j,Z){for(var J in Z)Object.prototype.hasOwnProperty.call(Z,J)&&(j[J]=Z[J])},s(k,M)};function d(V,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");s(V,k);function M(){this.constructor=V}V.prototype=k===null?Object.create(k):(M.prototype=k.prototype,new M)}var c=function(){return c=Object.assign||function(M){for(var j,Z=1,J=arguments.length;Z<J;Z++){j=arguments[Z];for(var F in j)Object.prototype.hasOwnProperty.call(j,F)&&(M[F]=j[F])}return M},c.apply(this,arguments)};function u(V,k){var M={};for(var j in V)Object.prototype.hasOwnProperty.call(V,j)&&k.indexOf(j)<0&&(M[j]=V[j]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,j=Object.getOwnPropertySymbols(V);Z<j.length;Z++)k.indexOf(j[Z])<0&&Object.prototype.propertyIsEnumerable.call(V,j[Z])&&(M[j[Z]]=V[j[Z]]);return M}function g(V,k,M,j){var Z=arguments.length,J=Z<3?k:j===null?j=Object.getOwnPropertyDescriptor(k,M):j,F;if((typeof Reflect>"u"?"undefined":Ht(Reflect))==="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(V,k,M,j);else for(var ie=V.length-1;ie>=0;ie--)(F=V[ie])&&(J=(Z<3?F(J):Z>3?F(k,M,J):F(k,M))||J);return Z>3&&J&&Object.defineProperty(k,M,J),J}function y(V,k){return function(M,j){k(M,j,V)}}function C(V,k){if((typeof Reflect>"u"?"undefined":Ht(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(V,k)}function w(V,k,M,j){function Z(J){return J instanceof M?J:new M(function(F){F(J)})}return new(M||(M=Promise))(function(J,F){function ie(ye){try{se(j.next(ye))}catch(fe){F(fe)}}function pe(ye){try{se(j.throw(ye))}catch(fe){F(fe)}}function se(ye){ye.done?J(ye.value):Z(ye.value).then(ie,pe)}se((j=j.apply(V,k||[])).next())})}function A(V,k){var M={label:0,sent:function(){if(J[0]&1)throw J[1];return J[1]},trys:[],ops:[]},j,Z,J,F;return F={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function ie(se){return function(ye){return pe([se,ye])}}function pe(se){if(j)throw new TypeError("Generator is already executing.");for(;M;)try{if(j=1,Z&&(J=se[0]&2?Z.return:se[0]?Z.throw||((J=Z.return)&&J.call(Z),0):Z.next)&&!(J=J.call(Z,se[1])).done)return J;switch(Z=0,J&&(se=[se[0]&2,J.value]),se[0]){case 0:case 1:J=se;break;case 4:return M.label++,{value:se[1],done:!1};case 5:M.label++,Z=se[1],se=[0];continue;case 7:se=M.ops.pop(),M.trys.pop();continue;default:if(J=M.trys,!(J=J.length>0&&J[J.length-1])&&(se[0]===6||se[0]===2)){M=0;continue}if(se[0]===3&&(!J||se[1]>J[0]&&se[1]<J[3])){M.label=se[1];break}if(se[0]===6&&M.label<J[1]){M.label=J[1],J=se;break}if(J&&M.label<J[2]){M.label=J[2],M.ops.push(se);break}J[2]&&M.ops.pop(),M.trys.pop();continue}se=k.call(V,M)}catch(ye){se=[6,ye],Z=0}finally{j=J=0}if(se[0]&5)throw se[1];return{value:se[0]?se[1]:void 0,done:!0}}}var E=Object.create?function(V,k,M,j){j===void 0&&(j=M),Object.defineProperty(V,j,{enumerable:!0,get:function(){return k[M]}})}:function(V,k,M,j){j===void 0&&(j=M),V[j]=k[M]};function _(V,k){for(var M in V)M!=="default"&&!Object.prototype.hasOwnProperty.call(k,M)&&E(k,V,M)}function v(V){var k=typeof Symbol=="function"&&Symbol.iterator,M=k&&V[k],j=0;if(M)return M.call(V);if(V&&typeof V.length=="number")return{next:function(){return V&&j>=V.length&&(V=void 0),{value:V&&V[j++],done:!V}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(V,k){var M=typeof Symbol=="function"&&V[Symbol.iterator];if(!M)return V;var j=M.call(V),Z,J=[],F;try{for(;(k===void 0||k-- >0)&&!(Z=j.next()).done;)J.push(Z.value)}catch(ie){F={error:ie}}finally{try{Z&&!Z.done&&(M=j.return)&&M.call(j)}finally{if(F)throw F.error}}return J}function b(){for(var V=[],k=0;k<arguments.length;k++)V=V.concat(m(arguments[k]));return V}function S(){for(var V=0,k=0,M=arguments.length;k<M;k++)V+=arguments[k].length;for(var j=Arra
/mg`,"")).call(W);(0,w.default)(V).call(V,"<")===0?L=x(V):L=D(V)}var k=L.length;if(!k)return this;for(var M=0;M<k;M++)this.elems.push(L[M]);this.length=k}}return(0,d.default)(T.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),T.prototype.forEach=function(B){for(var L=0;L<this.length;L++){var U=this.elems[L],W=B.call(U,U,L);if(W===!1)break}return this},T.prototype.clone=function(B){var L;B===void 0&&(B=!1);var U=[];return(0,u.default)(L=this.elems).call(L,function(W){U.push(W.cloneNode(!!B))}),z(U)},T.prototype.get=function(B){B===void 0&&(B=0);var L=this.length;return B>=L&&(B=B%L),z(this.elems[B])},T.prototype.first=function(){return this.get(0)},T.prototype.last=function(){var B=this.length;return this.get(B-1)},T.prototype.on=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(W=this).call(W,function(V){if(!L){V.addEventListener(B,U);return}var k=function(j){var Z=j.target;Z.matches(L)&&U.call(Z,j)};V.addEventListener(B,k),S.push({elem:V,selector:L,fn:U,agentFn:k})})):this},T.prototype.off=function(B,L,U){var W;return B?(typeof L=="function"&&(U=L,L=""),(0,u.default)(W=this).call(W,function(V){if(L){for(var k=-1,M=0;M<S.length;M++){var j=S[M];if(j.selector===L&&j.fn===U&&j.elem===V){k=M;break}}if(k!==-1){var Z=(0,A.default)(S).call(S,k,1)[0].agentFn;V.removeEventListener(B,Z)}}else V.removeEventListener(B,U)})):this},T.prototype.attr=function(B,L){var U;return L==null?this.elems[0].getAttribute(B)||"":(0,u.default)(U=this).call(U,function(W){W.setAttribute(B,L)})},T.prototype.removeAttr=function(B){var L;(0,u.default)(L=this).call(L,function(U){U.removeAttribute(B)})},T.prototype.addClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(V){return!!(0,y.default)(V).call(V)}),(0,w.default)(W).call(W,B)<0&&W.push(B),U.className=W.join(" ")}else U.className=B}):this},T.prototype.removeClass=function(B){var L;return B?(0,u.default)(L=this).call(L,function(U){if(!!U.className){var W=U.className.split(/\s/);W=(0,E.default)(W).call(W,function(V){return V=(0,y.default)(V).call(V),!(!V||V===B)}),U.className=W.join(" ")}}):this},T.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,_.default)(U).call(U,B)},T.prototype.css=function(B,L){var U,W;return L==""?W="":W=B+":"+L+";",(0,u.default)(U=this).call(U,function(V){var k,M=(0,y.default)(k=V.getAttribute("style")||"").call(k);if(M){var j=R(M);j=(0,g.default)(j).call(j,function(Z){return(0,w.default)(Z).call(Z,B)===0?W:Z}),W!=""&&(0,w.default)(j).call(j,W)<0&&j.push(W),W==""&&(j=R(j)),V.setAttribute("style",j.join("; "))}else V.setAttribute("style",W)})},T.prototype.getBoundingClientRect=function(){var B=this.elems[0];return B.getBoundingClientRect()},T.prototype.show=function(){return this.css("display","block")},T.prototype.hide=function(){return this.css("display","none")},T.prototype.children=function(){var B=this.elems[0];return B?z(B.children):null},T.prototype.childNodes=function(){var B=this.elems[0];return B?z(B.childNodes):null},T.prototype.replaceChildAll=function(B){for(var L=this.getNode(),U=this.elems[0];U.hasChildNodes();)L.firstChild&&U.removeChild(L.firstChild);this.append(B)},T.prototype.append=function(B){var L;return(0,u.default)(L=this).call(L,function(U){(0,u.default)(B).call(B,function(W){U.appendChild(W)})})},T.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)}})},T.prototype.isContain=function(B){var L=this.elems[0],U=B.elems[0];return L.contains(U)},T.prototype.getNodeName=function(){var B=this.elems[0];return B.nodeName},T.prototype.getNode=function(B){B===void 0&&(B=0);var L;return L=this.elems[B],L},T.prototype.find=function(B){var L=this.elems[0];return z(L.querySelectorAll(B))},T.prototype.text=function(B){if(B){var U;return(0,u.default)(U=this).call(U,function(W){W.innerHTML=B})}else{var L=this.elems[0];return
`)}}();function A(b,S,x,O){var D=x?"":O.media?"@media ".concat(O.media," {").concat(O.css,"}"):O.css;if(b.styleSheet)b.styleSheet.cssText=w(S,D);else{var R=document.createTextNode(D),I=b.childNodes;I[S]&&b.removeChild(I[S]),I.length?b.insertBefore(R,I[S]):b.appendChild(R)}}function E(b,S,x){var O=x.css,D=x.media,R=x.sourceMap;if(D?b.setAttribute("media",D):b.removeAttribute("media"),R&&typeof btoa<"u"&&(O+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(R))))," */")),b.styleSheet)b.styleSheet.cssText=O;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(O))}}var _=null,v=0;function m(b,S){var x,O,D;if(S.singleton){var R=v++;x=_||(_=y(S)),O=A.bind(null,x,R,!1),D=A.bind(null,x,R,!0)}else x=y(S),O=E.bind(null,x,S),D=function(){C(x)};return O(b),function(z){if(z){if(z.css===b.css&&z.media===b.media&&z.sourceMap===b.sourceMap)return;O(b=z)}else D()}}i.exports=function(b,S){S=S||{},!S.singleton&&typeof S.singleton!="boolean"&&(S.singleton=s()),b=b||[];var x=g(b,S);return function(D){if(D=D||[],Object.prototype.toString.call(D)==="[object Array]"){for(var R=0;R<x.length;R++){var I=x[R],z=u(I);c[z].references--}for(var T=g(D,S),B=0;B<x.length;B++){var L=x[B],U=u(L);c[U].references===0&&(c[U].updater(),c.splice(U,1))}x=T}}}},function(i,r,o){i.exports=function(c){var u=[];return u.toString=function(){return this.map(function(y){var C=s(y,c);return y[2]?"@media ".concat(y[2]," {").concat(C,"}"):C}).join("")},u.i=function(g,y,C){typeof g=="string"&&(g=[[null,g,""]]);var w={};if(C)for(var A=0;A<this.length;A++){var E=this[A][0];E!=null&&(w[E]=!0)}for(var _=0;_<g.length;_++){var v=[].concat(g[_]);C&&w[v[0]]||(y&&(v[2]?v[2]="".concat(y," and ").concat(v[2]):v[2]=y),u.push(v))}},u};function s(c,u){var g=c[1]||"",y=c[3];if(!y)return g;if(u&&typeof btoa=="function"){var C=d(y),w=y.sources.map(function(A){return"/*# sourceURL=".concat(y.sourceRoot||"").concat(A," */")});return[g].concat(w).concat([C]).join(`
`)}return[g].join(`
`)}function d(c){var u=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(u);return"/*# ".concat(g," */")}},function(i,r,o){var s=o(14),d=o(11),c=o(16),u=Object.defineProperty,g={},y=function(w){throw w};i.exports=function(C,w){if(c(g,C))return g[C];w||(w={});var A=[][C],E=c(w,"ACCESSORS")?w.ACCESSORS:!1,_=c(w,0)?w[0]:y,v=c(w,1)?w[1]:void 0;return g[C]=!!A&&!d(function(){if(E&&!s)return!0;var m={length:-1};E?u(m,1,{enumerable:!0,get:y}):m[1]=1,A.call(m,_,v)})}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(95)),g=function(y){c.__extends(C,y);function C(w,A){return y.call(this,w,A)||this}return C}(u.default);r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(46));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=g.__importDefault(o(95)),w=g.__importDefault(o(134)),A=function(E){g.__extends(_,E);function _(v,m,b){var S=E.call(this,v,m)||this;b.title=m.i18next.t("menus.dropListMenu."+b.title);var x=m.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(x!==""&&b.type==="list"){var O;(0,c.default)(O=b.list).call(O,function(R){var I=R.$elem,z=y.default(I.children());if(z.length>0){var T=z==null?void 0:z.getNodeName();T&&T==="I"&&I.addClass(x)}})}var D=new w.default(S,b);return S.dropList=D,v.on("click",function(){var R;m.selection.getRange()!=null&&(v.css("z-index",m.zIndex.get("menu")),(0,c.default)(R=m.txt.eventHooks.dropListMenuHoverEvents).call(R,function(I){return I()}),D.show())}).on("mouseleave",function(){v.css("z-index","auto"),D.hideTimeoutId=(0,u.default)(function(){D.hide()})}),S}return _}(C.default);r.default=A},function(i,r,o){var s=o(13);i.exports=function(d){if(!s(d))throw TypeError(String(d)+" is not an object");return d}},function(i,r,o){i.exports=o(188)},function(i,r,o){i.exports=o(201)},function(i,r,o){i.exports=o(213)},function(i,r,o){i.exports=o(283)},function(i,r,o){var s=o(72),d=o(49);i.exports=function(c){return s(d(c))}},function(i,r,o){var s=o(49);i.exports=function(d){return Object(s(d))}},function(i,r,o){var s=o(40),d=o(72),c=o(31),u=o(35),g=o(88),y=[].push,C=function(A){var E=A==1,_=A==2,v=A==3,m=A==4,b=A==6,S=A==5||b;return function(x,O,D,R){for(var I=c(x),z=d(I),T=s(O,D,3),B=u(z.length),L=0,U=R||g,W=E?U(x,B):_?U(x,0):void 0,V,k;B>L;L++)if((S||L in z)&&(V=z[L],k=T(V,L,I),A)){if(E)W[L]=k;else if(k)switch(A){case 3:return!0;case 5:return V;case 6:return L;case 2:y.call(W,V)}else if(m)return!1}return b?-1:v||m?m:W}};i.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6)}},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(29)),g=s(o(132));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=y.__importDefault(o(3)),w=o(7),A=function(){function E(_,v){this.menu=_,this.conf=v,this.$container=C.default('<div class="w-e-panel-container"></div>');var m=_.editor;m.txt.eventHooks.clickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.toolbarClickEvents.push(E.hideCurAllPanels),m.txt.eventHooks.dropListMenuHoverEvents.push(E.hideCurAllPanels)}return E.prototype.create=function(){var _=this,v=this.menu;if(!E.createdMenus.has(v)){var m=this.conf,b=this.$container,S=m.width||300,x=v.editor.$toolbarElem.getBoundingClientRect(),O=v.$elem.getBoundingClientRect(),D=x.height+x.top-O.top,R=(x.width-S)/2+x.left-O.left,I=300;Math.abs(R)>I&&(O.left<document.documentElement.clientWidth/2?R=-O.width/2:R=-S+O.width/2),b.css("width",S+"px").css("margin-top",D+"px").css("margin-left",R+"px").css("z-index",v.editor.zIndex.get("panel"));var z=C.default('<i class="w-e-icon-close w-e-panel-close"></i>');b.append(z),z.on("click",function(){_.remove()});var T=C.default('<ul class="w-e-panel-tab-title"></ul>'),B=C.default('<div class="w-e-panel-tab-content"></div>');b.append(T).append(B);var L=m.height;L&&B.css("height",L+"px").css("overflow-y","auto");var U=m.tabs||[],W=[],V=[];(0,c.default)(U).call(U,function(M,j){if(!!M){var Z=M.title||"",J=M.tpl||"",F=C.default('<li class="w-e-item">'+Z+"</li>");T.append(F);var i
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(i,r,o){var s=o(60),d=o(18),c=o(48);i.exports=function(u,g,y){var C=s(g);C in u?d.f(u,C,c(0,y)):u[C]=y}},function(i,r,o){i.exports=o(209)},function(i,r,o){var s=o(14),d=o(59),c=o(48),u=o(30),g=o(60),y=o(16),C=o(100),w=Object.getOwnPropertyDescriptor;r.f=s?w:function(E,_){if(E=u(E),_=g(_,!0),C)try{return w(E,_)}catch{}if(y(E,_))return c(!d.f.call(E,_),E[_])}},function(i,r,o){var s=o(11),d=o(34),c="".split;i.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return d(u)=="String"?c.call(u,""):Object(u)}:Object},function(i,r,o){var s=o(8),d=o(13),c=s.document,u=d(c)&&d(c.createElement);i.exports=function(g){return u?c.createElement(g):{}}},function(i,r,o){var s=o(43),d=o(103);(i.exports=function(c,u){return d[c]||(d[c]=u!==void 0?u:{})})("versions",[]).push({version:"3.6.4",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(i,r,o){var s=o(5),d=o(167),c=o(105),u=o(171),g=o(37),y=o(19),C=o(53),w=o(10),A=o(43),E=o(44),_=o(104),v=_.IteratorPrototype,m=_.BUGGY_SAFARI_ITERATORS,b=w("iterator"),S="keys",x="values",O="entries",D=function(){return this};i.exports=function(R,I,z,T,B,L,U){d(z,I,T);var W=function(ye){if(ye===B&&Z)return Z;if(!m&&ye in M)return M[ye];switch(ye){case S:return function(){return new z(this,ye)};case x:return function(){return new z(this,ye)};case O:return function(){return new z(this,ye)}}return function(){return new z(this)}},V=I+" Iterator",k=!1,M=R.prototype,j=M[b]||M["@@iterator"]||B&&M[B],Z=!m&&j||W(B),J=I=="Array"&&M.entries||j,F,ie,pe;if(J&&(F=c(J.call(new R)),v!==Object.prototype&&F.next&&(!A&&c(F)!==v&&(u?u(F,v):typeof F[b]!="function"&&y(F,b,D)),g(F,V,!0,!0),A&&(E[V]=D))),B==x&&j&&j.name!==x&&(k=!0,Z=function(){return j.call(this)}),(!A||U)&&M[b]!==Z&&y(M,b,Z),E[I]=Z,B)if(ie={values:W(x),keys:L?Z:W(S),entries:W(O)},U)for(pe in ie)(m||k||!(pe in M))&&C(M,pe,ie[pe]);else s({target:I,proto:!0,forced:m||k},ie);return ie}},function(i,r,o){var s=o(11);i.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},function(i,r,o){var s=o(25),d=o(169),c=o(80),u=o(51),g=o(108),y=o(73),C=o(63),w=">",A="<",E="prototype",_="script",v=C("IE_PROTO"),m=function(){},b=function(I){return A+_+w+I+A+"/"+_+w},S=function(I){I.write(b("")),I.close();var z=I.parentWindow.Object;return I=null,z},x=function(){var I=y("iframe"),z="java"+_+":",T;return I.style.display="none",g.appendChild(I),I.src=String(z),T=I.contentWindow.document,T.open(),T.write(b("document.F=Object")),T.close(),T.F},O,D=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}D=O?S(O):x();for(var I=c.length;I--;)delete D[E][c[I]];return D()};u[v]=!0,i.exports=Object.create||function(I,z){var T;return I!==null?(m[E]=s(I),T=new m,m[E]=null,T[v]=I):T=D(),z===void 0?T:d(T,z)}},function(i,r,o){var s=o(30),d=o(35),c=o(79),u=function(y){return function(C,w,A){var E=s(C),_=d(E.length),v=c(A,_),m;if(y&&w!=w){for(;_>v;)if(m=E[v++],m!=m)return!0}else for(;_>v;v++)if((y||v in E)&&E[v]===w)return y||v||0;return!y&&-1}};i.exports={includes:u(!0),indexOf:u(!1)}},function(i,r,o){var s=o(62),d=Math.max,c=Math.min;i.exports=function(u,g){var y=s(u);return y<0?d(y+g,0):c(y,g)}},function(i,r){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(i,r,o){var s=o(10),d=s("toStringTag"),c={};c[d]="z",i.exports=String(c)==="[object z]"},function(i,r){i.exports=function(){}},function(i,r){i.exports=function(o,s,d){if(!(o instanceof s))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return o}},function(i,r,o){var s=o(36);i.exports=s("navigator","userAgent")||""},function(i,r,o){var s=o(41),d=function(u){var g,y;this.promise=new u(function(C,w){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=C,y=w}),this.resolve=s(g),this.reject=s(y)};i.exports.f=function(c){return new d(c)}},function(i,r,o){var s=o(8),d=o(84),c=s.process,u=c&&c.versions,g=u&&u.v8,y
`+J.join(`
`),"warning");return}if(Z.length===0){S.customAlert(O("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z.length>T){S.customAlert(O("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+T+O("\u5F20\u56FE\u7247"),"warning");return}if(j&&typeof j=="function"){var F;j(Z,(0,c.default)(F=this.insertImg).call(F,this));return}var ie=new FormData;if((0,u.default)(Z).call(Z,function(fe,ue){var he=B||fe.name;Z.length>1&&(he=he+(ue+1)),ie.append(he,fe)}),D){var pe=D.split("#");D=pe[0];var se=pe[1]||"";(0,u.default)(C).call(C,L,function(fe,ue){U&&((0,g.default)(D).call(D,"?")>0?D+="&":D+="?",D=D+fe+"="+ue),ie.append(fe,ue)}),se&&(D+="#"+se);var ye=w.default(D,{timeout:k,formData:ie,headers:W,withCredentials:!!M,beforeSend:function(ue){if(V.before)return V.before(ue,b,Z)},onTimeout:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),V.timeout&&V.timeout(ue,b)},onProgress:function(ue,he){var $=new A.default(b);he.lengthComputable&&(ue=he.loaded/he.total,$.show(ue))},onError:function(ue){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+O("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+ue.status),V.error&&V.error(ue,b)},onFail:function(ue,he){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+": ")+he),V.fail&&V.fail(ue,b,he)},onSuccess:function(ue,he){if(V.customInsert){var $;V.customInsert((0,c.default)($=m.insertImg).call($,m),he,b);return}if(he.errno!="0"){S.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+" errno="+he.errno),V.fail&&V.fail(ue,b,he);return}var Y=he.data;(0,u.default)(Y).call(Y,function(Q){typeof Q=="string"?m.insertImg(Q):m.insertImg(Q.url,Q.alt,Q.href)}),V.success&&V.success(ue,b,he)}});typeof ye=="string"&&S.customAlert(ye,"error");return}R&&C.arrForEach(v,function(fe){var ue=m,he=new FileReader;he.readAsDataURL(fe),he.onload=function(){if(!!this.result){var $=this.result.toString();ue.insertImg($,$)}}})}}},_}();r.default=E},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(410)),u=s(o(4)),g=s(o(45));(0,d.default)(r,"__esModule",{value:!0}),r.dealTextNode=r.isAllTodo=r.isTodo=r.getCursorNextNode=void 0;function y(_){return _.length?_.attr("class")==="w-e-todo":!1}r.isTodo=y;function C(_){var v=_.selection.getSelectionRangeTopNodes();if(v.length!==0)return(0,c.default)(v).call(v,function(m){return y(m)})}r.isAllTodo=C;function w(_,v,m){var b;if(!!_.hasChildNodes()){var S=_.cloneNode(),x=!1;v.nodeValue===""&&(x=!0);var O=[];return(0,u.default)(b=_.childNodes).call(b,function(D){if(!A(D,v)&&x&&(S.appendChild(D.cloneNode(!0)),D.nodeName!=="BR"&&O.push(D)),A(D,v)){if(D.nodeType===1){var R=w(D,v,m);R&&R.textContent!==""&&(S==null||S.appendChild(R))}if(D.nodeType===3&&v.isEqualNode(D)){var I=E(D,m);S.textContent=I}x=!0}}),(0,u.default)(O).call(O,function(D){var R=D;R.remove()}),S}}r.getCursorNextNode=w;function A(_,v){return _.nodeType===3?_.nodeValue===v.nodeValue:_.contains(v)}function E(_,v,m){m===void 0&&(m=!0);var b=_.nodeValue,S=b==null?void 0:(0,g.default)(b).call(b,0,v);if(b=b==null?void 0:(0,g.default)(b).call(b,v),!m){var x=b;b=S,S=x}return _.nodeValue=S,b}r.dealTextNode=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(430),u=function(){function g(y){this.maxSize=y,this.isRe=!1,this.data=new c.CeilStack(y),this.revokeData=new c.CeilStack(y)}return(0,d.default)(g.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),g.prototype.resetMaxSize=function(y){this.data.resetMax(y),this.revokeData.resetMax(y)},g.prototype.save=function(y){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(y),this},g.prototype.revoke=function(y){!this.isRe&&(this.isRe=!0);var C=this.data.outstack();return C?(this.revokeData.instack(C),y(C),!0):!1},g.prototype.restore=function(y){!this.isRe&&
<i class="w-e-icon-list2"></i>
</div>`),S={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:u.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
<p>`),value:w.UnorderedList},{$elem:u.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
<p>`),value:w.OrderedList}],clickHandler:function(O){m.command(O)}};return m=E.call(this,b,v,S)||this,m}return _.prototype.command=function(v){var m=this.editor,b=m.selection.getSelectionContainerElem();b!==void 0&&(this.handleSelectionRangeNodes(v),this.tryChangeActive())},_.prototype.validator=function(v,m,b){return!(!v.length||!m.length||b.equal(v)||b.equal(m))},_.prototype.handleSelectionRangeNodes=function(v){var m=this.editor,b=m.selection,S=v.toLowerCase(),x=b.getSelectionContainerElem(),O=b.getSelectionStartElem().getNodeTop(m),D=b.getSelectionEndElem().getNodeTop(m);if(!!this.validator(O,D,m.$textElem)){var R=b.getRange(),I=R==null?void 0:R.collapsed;m.$textElem.equal(x)||(x=x.getNodeTop(m));var z={editor:m,listType:v,listTarget:S,$selectionElem:x,$startElem:O,$endElem:D},T;this.isOrderElem(x)?T=C.ClassType.Wrap:this.isOrderElem(O)&&this.isOrderElem(D)?T=C.ClassType.Join:this.isOrderElem(O)?T=C.ClassType.StartJoin:this.isOrderElem(D)?T=C.ClassType.EndJoin:T=C.ClassType.Other;var B=new C.default(C.createListHandle(T,z,R));y.updateRange(m,B.getSelectionRangeElem(),!!I)}},_.prototype.isOrderElem=function(v){var m=v.getNodeName();return m===w.OrderedList||m===w.UnorderedList},_.prototype.tryChangeActive=function(){},_}(g.default);r.default=A},function(i,r,o){i.exports=o(395)},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var g=u.selection.getSelectionContainerElem();return g!=null&&g.length?!!(g.getNodeName()=="CODE"||g.getNodeName()=="PRE"||g.parent().getNodeName()=="CODE"||g.parent().getNodeName()=="PRE"||/hljs/.test(g.parent().attr("class"))):!1}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0}),r.todo=void 0;var u=o(2),g=u.__importDefault(o(3)),y=function(){function w(A){var E;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=g.default(this.template),this.$child=(E=A==null?void 0:A.childNodes())===null||E===void 0?void 0:E.clone(!0)}return w.prototype.init=function(){var A=this.$child,E=this.getInputContainer();A&&A.insertAfter(E)},w.prototype.getInput=function(){var A=this.$todo,E=(0,c.default)(A).call(A,"input");return E},w.prototype.getInputContainer=function(){var A=this.getInput().parent();return A},w.prototype.getTodo=function(){return this.$todo},w}();r.todo=y;function C(w){var A=new y(w);return A.init(),A}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2);o(146),o(148),o(152),o(154),o(156),o(158),o(160);var u=c.__importDefault(o(87));c.__exportStar(o(442),r);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}r.default=u.default},function(i,r,o){var s=o(143);i.exports=s},function(i,r,o){o(144);var s=o(9),d=s.Object,c=i.exports=function(g,y,C){return d.defineProperty(g,y,C)};d.defineProperty.sham&&(c.sham=!0)},function(i,r,o){var s=o(5),d=o(14),c=o(18);s({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(i,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{(typeof window>"u"?"undefined":Ht(window))==="object"&&(o=window)}i.exports=o},function(i,r,o){var s=o(20),d=o(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21),d=o(150),c=o(151);r=s(!1);var u=d(c);r.push([i.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";
}
`,""]),i.exports=r},function(i,r,o){i.exports=function(s,d){return d||(d={}),s=s&&s.__esModule?s.default:s,typeof s!="string"?s:(/^['"].*['"]$/.test(s)&&(s=s.slice(1,-1)),d.hash&&(s+=d.hash),/["'() \t\n]/.test(s)||d.needQuotes?'"'.concat(s.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):s)}},function(i,r,o){o.r(r),r.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+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8P
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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(20),d=o(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(161));Element.prototype.matches||(Element.prototype.matches=function(c){var u=this.ownerDocument.querySelectorAll(c),g=u.length;for(g;g>=0&&u.item(g)!==this;g--);return g>-1}),d.default||(window.Promise=d.default)},function(i,r,o){i.exports=o(162)},function(i,r,o){var s=o(163);i.exports=s},function(i,r,o){o(61),o(50),o(54),o(175),o(178),o(179);var s=o(9);i.exports=s.Promise},function(i,r,o){var s=o(62),d=o(49),c=function(g){return function(y,C){var w=String(d(y)),A=s(C),E=w.length,_,v;return A<0||A>=E?g?"":void 0:(_=w.charCodeAt(A),_<55296||_>56319||A+1===E||(v=w.charCodeAt(A+1))<56320||v>57343?g?w.charAt(A):_:g?w.slice(A,A+2):(_-55296<<10)+(v-56320)+65536)}};i.exports={codeAt:c(!1),charAt:c(!0)}},function(i,r,o){var s=o(8),d=o(102),c=s.WeakMap;i.exports=typeof c=="function"&&/native code/.test(d(c))},function(i,r,o){var s=o(8),d=o(19);i.exports=function(c,u){try{d(s,c,u)}catch{s[c]=u}return u}},function(i,r,o){var s=o(104).IteratorPrototype,d=o(77),c=o(48),u=o(37),g=o(44),y=function(){return this};i.exports=function(C,w,A){var E=w+" Iterator";return C.prototype=d(s,{next:c(1,A)}),u(C,E,!1,!0),g[E]=y,C}},function(i,r,o){var s=o(11);i.exports=!s(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(i,r,o){var s=o(14),d=o(18),c=o(25),u=o(52);i.exports=s?Object.defineProperties:function(y,C){c(y);for(var w=u(C),A=w.length,E=0,_;A>E;)d.f(y,_=w[E++],C[_]);return y}},function(i,r,o){var s=o(81),d=o(65);i.exports=s?{}.toString:function(){return"[object "+d(this)+"]"}},function(i,r,o){var s=o(25),d=o(172);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,u={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(u,[]),c=u instanceof Array}catch{}return function(C,w){return s(C),d(w),c?g.call(C,w):C.__proto__=w,C}}():void 0)},function(i,r,o){var s=o(13);i.exports=function(d){if(!s(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(i,r,o){var s=o(30),d=o(82),c=o(44),u=o(42),g=o(75),y="Array Iterator",C=u.set,w=u.getterFor(y);i.exports=g(Array,"Array",function(A,E){C(this,{type:y,target:s(A),index:0,kind:E})},function(){var A=w(this),E=A.target,_=A.kind,v=A.index++;return!E||v>=E.length?(A.target=void 0,{value:void 0,done:!0}):_=="keys"?{value:v,done:!1}:_=="values"?{value:E[v],done:!1}:{value:[v,E[v]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(i,r){i.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(i,r,o){var s=o(5),d=o(43),c=o(8),u=o(36),g=o(109),y=o(53),C=o(110),w=o(37),A=o(111),E=o(13),_=o(41),v=o(83),m=o(34),b=o(102),S=o(66),x=o(115),O=o(116),D=o(117).set,R=o(176),I=o(119),z=o(177),T=o(85),B=o(120),L=o(42),U=o(101),W=o(10),V=o(86),k=W("species"),M="Promise",j=L.get,Z=L.set,J=L.getterFor(M),F=g,ie=c.TypeError,pe=c.document,se=c.process,ye=u("fetch"),fe=T.f,ue=fe,he=m(se)=="process",$=!!(pe&&pe.createEvent&&c.dispatchEvent),Y="unhandledrejection",Q="rejectionhandled",K=0,te=1,q=2,oe=1,de=2,Ee,Se,ke,qe,Re=U(M,function(){var Ze=b(F)!==String(F);if(!Ze&&(V===66||!he&&typeof PromiseRejectionEvent!="function")||d&&!F.prototype.finally)return!0;if(V>=51&&/native code/.test(F))return!1;var Oe=F.resolve(1),Ve=function(be){be(function(){},function(){})},Xe=Oe.constructor={};return Xe[k]=Ve,!(Oe.then(function(){})instanceof Ve)}),ge=Re||!x(function(Ze){F.all(Ze).catch(function(){})}),Ae=function(Oe){var Ve;return E(Oe)&&typeof(Ve=Oe.then)=="function"?Ve:!1},le=function(Oe,Ve,Xe){if(!Ve.notified){Ve.notified=!0;var De=Ve.reactions;R(func
`).replace(/<[^>]+>/gm,"");return b}function E(m){var b;if(m==="")return!1;var S=document.createElement("div");return S.innerHTML=m,((b=S.firstChild)===null||b===void 0?void 0:b.nodeName)==="P"}function _(m){if(!(m!=null&&m.length))return!1;var b=m.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function v(m,b){function S(x){var O=m.config,D=O.pasteFilterStyle,R=O.pasteIgnoreImg,I=O.pasteTextHandle,z=g.getPasteHtml(x,D,R),T=g.getPasteText(x);T=T.replace(/\n/gm,"<br>");var B=m.selection.getSelectionContainerElem();if(!!B){var L=B==null?void 0:B.getNodeName(),U=B==null?void 0:B.getNodeTop(m),W="";if(U.elems[0]&&(W=U==null?void 0:U.getNodeName()),L==="CODE"||W==="PRE"){I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",A(T));return}if(C.urlRegex.test(T)&&D){I&&y.isFunction(I)&&(T=""+(I(T)||""));var V=T.replace(C.urlRegex,function(pe){return'<a href="'+pe+'" target="_blank">'+pe+"</a>"}),k=m.selection.getRange(),M=document.createElement("div"),j=document.createDocumentFragment();if(M.innerHTML=V,k==null)return;for(;M.childNodes.length;)j.append(M.childNodes[0]);var Z=j.querySelectorAll("a");(0,u.default)(Z).call(Z,function(pe){pe.innerText=pe.href}),k.insertNode&&(k.deleteContents(),k.insertNode(j)),m.selection.clearWindowSelectionRange();return}if(!!z)try{I&&y.isFunction(I)&&(z=""+(I(z)||""));var J=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(z);if(J&&D)m.cmd.do("insertHTML",""+w(T));else{var F=w(z);if(E(F)){var ie=m.$textElem;if(m.cmd.do("insertHTML",F),ie.equal(B)){m.selection.createEmptyRange();return}_(U)&&U.remove()}else m.cmd.do("insertHTML",F)}}catch{I&&y.isFunction(I)&&(T=""+(I(T)||"")),m.cmd.do("insertHTML",""+w(T))}}}b.push(S)}r.default=v},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17)),u=s(o(4)),g=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=o(293),w=y.__importDefault(o(297));function A(b){var S=/<span>.*?<\/span>/gi,x=/<span>(.*?)<\/span>/;return b.replace(S,function(O){var D=O.match(x);return D==null?"":D[1]})}function E(b,S){var x;return b=(0,c.default)(x=b.toLowerCase()).call(x),!!(C.IGNORE_TAGS.has(b)||S&&b==="img")}function _(b,S){var x="";x="<"+b;var O=[];(0,u.default)(S).call(S,function(R){O.push(R.name+'="'+R.value+'"')}),O.length>0&&(x=x+" "+O.join(" "));var D=C.EMPTY_TAGS.has(b);return x=x+(D?"/":"")+">",x}function v(b){return"</"+b+">"}function m(b,S,x){S===void 0&&(S=!0),x===void 0&&(x=!1);var O=[],D="";function R(B){B=(0,c.default)(B).call(B),B&&(C.EMPTY_TAGS.has(B)||(D=B))}function I(){D=""}var z=new w.default;z.parse(b,{startElement:function(L,U){if(R(L),!E(L,x)){var W=C.NECESSARY_ATTRS.get(L)||[],V=[];(0,u.default)(U).call(U,function(M){var j=M.name;if(j==="style"){S||V.push(M);return}(0,g.default)(W).call(W,j)!==!1&&V.push(M)});var k=_(L,V);O.push(k)}},characters:function(L){!L||E(D,x)||O.push(L)},endElement:function(L){if(!E(L,x)){var U=v(L);O.push(U),I()}},comment:function(L){R(L)}});var T=O.join("");return T=A(T),T}r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(132)),u=s(o(121));(0,d.default)(r,"__esModule",{value:!0}),r.TOP_LEVEL_TAGS=r.EMPTY_TAGS=r.NECESSARY_ATTRS=r.IGNORE_TAGS=void 0,r.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),r.NECESSARY_ATTRS=new u.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),r.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),r.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(i,r,o){var s=o(295);i.exports=s},function(i,r,o){o(296),o(61),o(50),o(54);var s=o(9);i.exports=s.Set},function(i,r,o){var s=o(122),d=o(124);i.exports=s("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(i,r){function o(){}o.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);T.css("visibility","hidden"),R.append(T),T.css("z-index",D.zIndex.get("tooltip"));var B=0;function L(){B&&clearTimeout(B)}function U(){L(),T.css("visibility","hidden")}R.on("mouseover",function(W){var V=W.target,k=S.default(V),M,j;if(k.isContain(R)){U();return}if(k.parentUntil(".w-e-droplist")!=null)U();else if(k.attr("data-title"))M=k.attr("data-title"),j=k;else{var Z=k.parentUntil(".w-e-menu");Z!=null&&(M=Z.attr("data-title"),j=Z)}if(M&&j){L();var J=j.getOffsetData();T.text(D.i18next.t("menus.title."+M));var F=T.getOffsetData(),ie=J.left+J.width/2-F.width/2;T.css("left",ie+"px"),z==="up"?T.css("top",J.top-F.height-8+"px"):z==="down"&&T.css("top",J.top+J.height+8+"px"),B=(0,E.default)(function(){T.css("visibility","visible")},200)}else U()}).on("mouseleave",function(){U()})},O.prototype._addToToolbar=function(){var D,R=this.editor,I=R.$toolbarElem;(0,C.default)(D=this.menuList).call(D,function(z){var T=z.$elem;T&&I.append(T)})},O.prototype.menuFind=function(D){for(var R=this.menuList,I=0,z=R.length;I<z;I++)if(R[I].key===D)return R[I];return R[0]},O.prototype.changeActive=function(){var D;(0,C.default)(D=this.menuList).call(D,function(R){var I;(0,E.default)((0,_.default)(I=R.tryChangeActive).call(I,R),100)})},O}();r.default=x},function(i,r,o){i.exports=o(303)},function(i,r,o){var s=o(304);i.exports=s},function(i,r,o){o(305);var s=o(9);i.exports=s.Object.keys},function(i,r,o){var s=o(5),d=o(31),c=o(52),u=o(11),g=u(function(){c(1)});s({target:"Object",stat:!0,forced:g},{keys:function(C){return c(d(C))}})},function(i,r,o){var s=o(307);i.exports=s},function(i,r,o){o(308);var s=o(9);i.exports=s.Object.entries},function(i,r,o){var s=o(5),d=o(309).entries;s({target:"Object",stat:!0},{entries:function(u){return d(u)}})},function(i,r,o){var s=o(14),d=o(52),c=o(30),u=o(59).f,g=function(C){return function(w){for(var A=c(w),E=d(A),_=E.length,v=0,m=[],b;_>v;)b=E[v++],(!s||u.call(A,b))&&m.push(C?[b,A[b]]:A[b]);return m}};i.exports={entries:g(!0),values:g(!1)}},function(i,r,o){var s=o(311);i.exports=s},function(i,r,o){var s=o(312),d=Array.prototype;i.exports=function(c){var u=c.some;return c===d||c instanceof Array&&u===d.some?s:u}},function(i,r,o){o(313);var s=o(15);i.exports=s("Array").some},function(i,r,o){var s=o(5),d=o(32).some,c=o(67),u=o(22),g=c("some"),y=u("some");s({target:"Array",proto:!0,forced:!g||!y},{some:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(315)),g=c.__importDefault(o(316)),y=c.__importDefault(o(321)),C=c.__importDefault(o(326)),w=c.__importDefault(o(327)),A=c.__importDefault(o(328)),E=c.__importDefault(o(329)),_=c.__importDefault(o(331)),v=c.__importDefault(o(333)),m=c.__importDefault(o(334)),b=c.__importDefault(o(337)),S=c.__importDefault(o(338)),x=c.__importDefault(o(339)),O=c.__importDefault(o(350)),D=c.__importDefault(o(365)),R=c.__importDefault(o(369)),I=c.__importDefault(o(137)),z=c.__importDefault(o(378)),T=c.__importDefault(o(380)),B=c.__importDefault(o(381)),L=c.__importDefault(o(382)),U=c.__importDefault(o(401)),W=c.__importDefault(o(406)),V=c.__importDefault(o(409));r.default={bold:u.default,head:g.default,italic:C.default,link:y.default,underline:w.default,strikeThrough:A.default,fontName:E.default,fontSize:_.default,justify:v.default,quote:m.default,backColor:b.default,foreColor:S.default,video:x.default,image:O.default,indent:D.default,emoticon:R.default,list:I.default,lineHeight:z.default,undo:T.default,redo:B.default,table:L.default,code:U.default,splitLine:W.default,todo:V.default}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
<i class="w-e-icon-bold"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("bold"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("bold")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(27)),u=s(o(29)),g=s(o(4)),y=s(o(317)),C=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var w=o(2),A=w.__importDefault(o(24)),E=w.__importDefault(o(3)),_=o(6),v=o(7),m=function(b){w.__extends(S,b);function S(x){var O=this,D=E.default('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),R={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:E.default("<h1>H1</h1>"),value:"<h1>"},{$elem:E.default("<h2>H2</h2>"),value:"<h2>"},{$elem:E.default("<h3>H3</h3>"),value:"<h3>"},{$elem:E.default("<h4>H4</h4>"),value:"<h4>"},{$elem:E.default("<h5>H5</h5>"),value:"<h5>"},{$elem:E.default("<p>"+x.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(T){O.command(T)}};O=b.call(this,D,x,R)||this;var I=x.config.onCatalogChange;return I&&(O.oldCatalogs=[],O.addListenerCatalog(),O.getCatalogs()),O}return S.prototype.command=function(x){var O=this.editor,D=O.selection.getSelectionContainerElem();if(D&&O.$textElem.equal(D))this.setMultilineHead(x);else{var R;if((0,c.default)(R=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(R,E.default(D).getNodeName())>-1)return;O.cmd.do("formatBlock",x)}x!=="<p>"&&this.addUidForSelectionElem()},S.prototype.addUidForSelectionElem=function(){var x=this.editor,O=x.selection.getSelectionContainerElem(),D=_.getRandomCode();E.default(O).attr("id",D)},S.prototype.addListenerCatalog=function(){var x=this,O=this.editor;O.txt.eventHooks.changeEvents.push(function(){x.getCatalogs()})},S.prototype.getCatalogs=function(){var x=this.editor,O=this.editor.$textElem,D=x.config.onCatalogChange,R=(0,u.default)(O).call(O,"h1,h2,h3,h4,h5"),I=[];(0,g.default)(R).call(R,function(z,T){var B=E.default(z),L=B.attr("id"),U=B.getNodeName(),W=B.text();L||(L=_.getRandomCode(),B.attr("id",L)),W&&I.push({tag:U,id:L,text:W})}),(0,y.default)(this.oldCatalogs)!==(0,y.default)(I)&&(this.oldCatalogs=I,D&&D(I))},S.prototype.setMultilineHead=function(x){var O=this,D,R,I=this.editor,z=I.selection,T=(D=z.getSelectionContainerElem())===null||D===void 0?void 0:D.elems[0],B=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=E.default(z.getSelectionStartElem()),U=E.default(z.getSelectionEndElem());U.elems[0].outerHTML===E.default(v.EMPTY_P).elems[0].outerHTML&&!U.elems[0].nextSibling&&(U=U.prev());var W=[];W.push(L.getNodeTop(I));var V=[],k=(R=z.getRange())===null||R===void 0?void 0:R.commonAncestorContainer.childNodes;k==null||(0,g.default)(k).call(k,function(Z,J){Z===W[0].getNode()&&V.push(J),Z===U.getNodeTop(I).getNode()&&V.push(J)});for(var M=0;W[M].getNode()!==U.getNodeTop(I).getNode();){if(!W[M].elems[0])return;var j=E.default(W[M].next().getNode());W.push(j),M++}W==null||(0,g.default)(W).call(W,function(Z,J){if(!O.hasTag(Z,B)){var F=E.default(x),ie=Z.parent().getNode();F.html(""+Z.html()),ie.insertBefore(F.getNode(),Z.getNode()),Z.remove()}}),z.createRangeByElems(T.children[V[0]],T.children[V[1]])},S.prototype.hasTag=function(x,O){var D=this,R;if(!x)return!1;if((0,C.default)(O).call(O,x==null?void 0:x.getNodeName()))return!0;var I=!1;return(R=x.children())===null||R===void 0||(0,g.default)(R).call(R,function(z){I=D.hasTag(E.default(z),O)}),I},S.prototype.tryChangeActive=function(){var x=this.editor,O=/^h/i,D=x.cmd.queryCommandValue("formatBlock");O.test(D)?this.active():this.unActive()},S}(A.default);r.default=m},function(i,r,o){i.exports=o(318)},function(i,r,o){var s=o(319);i.exports=s},function(i,r,o){o(320);var s=o(9);s.JSON||(s.JSON={stringify:JSON.stringify}),i.exports=function(c,u,g){return s.JSON.stringify.apply(null,arguments)}},function(i,r,o){var s=o(5),d=o(36),c=o(11),u
<input
id="`+x+`"
type="text"
class="block"
placeholder="`+v.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
</td>
<input
id="`+S+`"
type="text"
class="block"
placeholder="`+v.i18next.t("\u5982")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+O+`" class="right">
`+v.i18next.t("\u63D2\u5165")+`
</button>
<button type="button" id="`+D+'" class="gray right" style="display:'+R+`">
`+v.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
</button>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var V,k,M,j,Z,J=v.selection.getSelectionContainerElem(),F=J==null?void 0:J.elems[0];v.selection.restoreSelection();var ie=v.selection.getSelectionRangeTopNodes()[0].getNode(),pe=window.getSelection(),se=w.default("#"+S),ye=w.default("#"+x),fe=(0,u.default)(V=se.val()).call(V),ue=(0,u.default)(k=ye.val()).call(k),he="";pe&&!(pe!=null&&pe.isCollapsed)&&(he=(j=E.insertHtml(pe,ie))===null||j===void 0?void 0:(0,u.default)(j).call(j));var $=he==null?void 0:he.replace(/<.*?>/g,""),Y=(Z=$==null?void 0:$.length)!==null&&Z!==void 0?Z:0;if(Y<=ue.length){var Q=ue.substring(0,Y),K=ue.substring(Y);$===Q&&(ue=$+K)}if(!!fe&&(ue||(ue=fe),!!L(ue,fe))){if((F==null?void 0:F.nodeName)==="A")return F.setAttribute("href",fe),F.innerText=ue,!0;if((F==null?void 0:F.nodeName)!=="A"&&(0,c.default)(M=A.EXTRA_TAG).call(M,F.nodeName)){var te=A.getParentNodeA(J);if(te)return te.setAttribute("href",fe),F.innerText=ue,!0}return T(ue,fe),!0}},bindEnter:!0},{selector:"#"+D,type:"click",fn:function(){return B(),!0}}]}],setLinkValue:function(V,k){var M="",j="",Z;k==="text"&&(M="#"+x,j=m),k==="link"&&(M="#"+S,j=b),Z=(0,g.default)(V).call(V,M).elems[0],Z.value=j}};return U}r.default=_},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.insertHtml=r.createPartHtml=r.makeHtmlString=r.getTopNode=void 0;function u(E,_){var v=E,m=E;do{if(v.textContent===_)break;m=v,v.parentNode&&(v=v==null?void 0:v.parentNode)}while((v==null?void 0:v.nodeName)!=="P");return m}r.getTopNode=u;function g(E,_){var v=E.nodeName,m="";if(E.nodeType===3||/^(h|H)[1-6]$/.test(v))return _;if(E.nodeType===1){var b=E.getAttribute("style"),S=E.getAttribute("face"),x=E.getAttribute("color");b&&(m=m+(' style="'+b+'"')),S&&(m=m+(' face="'+S+'"')),x&&(m=m+(' color="'+x+'"'))}return v=v.toLowerCase(),"<"+v+m+">"+_+"</"+v+">"}r.makeHtmlString=g;function y(E,_,v,m){var b,S=(b=_.textContent)===null||b===void 0?void 0:b.substring(v,m),x=_,O="";do O=g(x,S!=null?S:""),S=O,x=x==null?void 0:x.parentElement;while(x&&x.textContent!==E);return O}r.createPartHtml=y;function C(E,_){var v,m,b,S,x,O=E.anchorNode,D=E.focusNode,R=E.anchorOffset,I=E.focusOffset,z=(v=_.textContent)!==null&&v!==void 0?v:"",T=w(_),B="",L="",U="",W="",V=O,k=D,M=O;if(O!=null&&O.isEqualNode(D!=null?D:null)){var j=y(z,O,R,I);return j=A(T,j),j}for(O&&(L=y(z,O,R!=null?R:0)),D&&(W=y(z,D,0,I)),O&&(V=u(O,z)),D&&(k=u(D,z)),M=(m=V==null?void 0:V.nextSibling)!==null&&m!==void 0?m:O;!(M!=null&&M.isEqualNode(k!=null?k:null));){var Z=M==null?void 0:M.nodeName;if(Z==="#text")U=U+(M==null?void 0:M.textContent);else{var J=(S=(b=M==null?void 0:M.firstChild)===null||b===void 0?void 0:b.parentElement)===null||S===void 0?void 0:S.innerHTML;M&&(U=U+g(M,J!=null?J:""))}var F=(x=M==null?void 0:M.nextSibling)!==null&&x!==void 0?x:M;if(F===M)break;M=F}return B=""+L+U+W,B=A(T,B),B}r.insertHtml=C;function w(E){for(var _,v=(_=E.textContent)!==null&&_!==void 0?_:"",m=[];(E==null?void 0:E.textContent)===v;)E.nodeName!=="P"&&E.nodeName!=="TABLE"&&m.push(E),E=E.childNodes[0];return m}function A(E,_){return(0,c.default)(E).call(E,function(v){_=g(v,_)}),_}},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(325));function g(y){u.default(y)}r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(28));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(39)),C=o(96);function w(E){var _;function v(b){var S=[{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(O,D){var R=D.attr("href");return window.open(R,"_target"),!0}},{$elem:g.default("<span>"+E.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(O,D){var R,I;O.selection.createRangeByElem(D),O.selection.restoreSelection();var z=D.childNodes();if((z==null?void 0:z.getNodeName())==="IMG"){var T=(I=(R=O.selection.getSelectionContainerElem())===null||R===void 0?void 0:R.children())===null||I===void 0?void 0:
src=`+(T==null?void 0:T.getAttribute("src"))+`
style=`+(T==null?void 0:T.getAttribute("style"))+">")}else{var B,L=D.elems[0],U=L.innerHTML,W=L.parentElement;W&&(0,c.default)(B=C.EXTRA_TAG).call(B,W.nodeName)?W.innerHTML=U:O.cmd.do("insertHTML","<span>"+U+"</span>")}return!0}}];_=new y.default(E,b,S),_.create()}function m(){_&&(_.remove(),_=null)}return{showLinkTooltip:v,hideLinkTooltip:m}}function A(E){var _=w(E),v=_.showLinkTooltip,m=_.hideLinkTooltip;E.txt.eventHooks.linkClickEvents.push(v),E.txt.eventHooks.clickEvents.push(m),E.txt.eventHooks.keyupEvents.push(m),E.txt.eventHooks.toolbarClickEvents.push(m),E.txt.eventHooks.menuClickEvents.push(m),E.txt.eventHooks.textScrollEvents.push(m)}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
<i class="w-e-icon-italic"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("italic"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("italic")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
<i class="w-e-icon-underline"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("underline"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("underline")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=g.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
<i class="w-e-icon-strikethrough"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor,E=A.selection.isSelectionEmpty();E&&A.selection.createEmptyRange(),A.cmd.do("strikeThrough"),E&&(A.selection.collapseRange(),A.selection.restoreSelection())},w.prototype.tryChangeActive=function(){var A=this.editor;A.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},w}(u.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(24)),g=c.__importDefault(o(3)),y=c.__importDefault(o(330)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
<i class="w-e-icon-font"></i>
</div>`),m=new y.default(E.config.fontNames),b={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=(b==null?void 0:b.nodeName.toLowerCase())!=="p",x=(b==null?void 0:b.getAttribute("face"))===E;if(m){if(S&&!x){var O=v.selection.getSelectionRangeTopNodes();v.selection.createRangeByElem(O[0]),v.selection.moveCursor(O[0].elems[0])}v.selection.setRangeToElem(b),v.selection.createEmptyRange()}v.cmd.do("fontName",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(u.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=function(){function C(w){var A=this;this.itemList=[],(0,c.default)(w).call(w,function(E){var _=typeof E=="string"?E:E.value,v=typeof E=="string"?E:E.name;A.itemList.push({$elem:g.default(`<p style="font-family:'`+_+`'">`+v+"</p>"),value:v})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(24)),g=c.__importDefault(o(3)),y=c.__importDefault(o(332)),C=function(w){c.__extends(A,w);function A(E){var _=this,v=g.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
<i class="w-e-icon-text-heigh"></i>
</div>`),m=new y.default(E.config.fontSizes),b={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:m.getItemList(),clickHandler:function(x){_.command(x)}};return _=w.call(this,v,E,b)||this,_}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];b!=null&&(v.cmd.do("fontSize",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection()))},A.prototype.tryChangeActive=function(){},A}(u.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=function(){function y(C){this.itemList=[];for(var w in C){var A=C[w];this.itemList.push({$elem:u.default('<p style="font-size:'+w+'">'+A.name+"</p>"),value:A.value})}}return y.prototype.getItemList=function(){return this.itemList},y}();r.default=g},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4)),u=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(24)),C=g.__importDefault(o(3)),w=["LI"],A=["BLOCKQUOTE"],E=function(_){g.__extends(v,_);function v(m){var b=this,S=C.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),x={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
</p>`),value:"left"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
</p>`),value:"center"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
</p>`),value:"right"},{$elem:C.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
</p>`),value:"justify"}],clickHandler:function(D){b.command(D)}};return b=_.call(this,S,m,x)||this,b}return v.prototype.command=function(m){var b=this.editor,S=b.selection,x=S.getSelectionContainerElem();S.saveRange();var O=b.selection.getSelectionRangeTopNodes();if(x!=null&&x.length)if(this.isSpecialNode(x,O[0])||this.isSpecialTopNode(O[0])){var D=this.getSpecialNodeUntilTop(x,O[0]);if(D==null)return;C.default(D).css("text-align",m)}else(0,c.default)(O).call(O,function(R){R.css("text-align",m)});S.restoreSelection()},v.prototype.getSpecialNodeUntilTop=function(m,b){for(var S=m.elems[0],x=b.elems[0];S!=null;){if((0,u.default)(w).call(w,S==null?void 0:S.nodeName)!==-1||S.parentNode===x)return S;S=S.parentNode}return S},v.prototype.isSpecialNode=function(m,b){var S=this.getSpecialNodeUntilTop(m,b);return S==null?!1:(0,u.default)(w).call(w,S.nodeName)!==-1},v.prototype.isSpecialTopNode=function(m){var b;return m==null?!1:(0,u.default)(A).call(A,(b=m.elems[0])===null||b===void 0?void 0:b.nodeName)!==-1},v.prototype.tryChangeActive=function(){},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(23)),C=u.__importDefault(o(335)),w=u.__importDefault(o(336)),A=o(7),E=function(_){u.__extends(v,_);function v(m){var b=this,S=g.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
<i class="w-e-icon-quotes-left"></i>
</div>`);return b=_.call(this,S,m)||this,C.default(m),b}return v.prototype.clickHandler=function(){var m,b,S=this.editor,x=S.selection.isSelectionEmpty(),O=S.selection.getSelectionRangeTopNodes(),D=O[O.length-1],R=this.getTopNodeName();if(R==="BLOCKQUOTE"){var I=g.default(D.childNodes()),z=I.length,T=D;(0,c.default)(I).call(I,function(W){var V=g.default(W);V.insertAfter(T),T=V}),D.remove(),S.selection.moveCursor(I.elems[z-1]),this.tryChangeActive()}else{var B=w.default(O);if(S.$textElem.equal(D)){var L=(m=S.selection.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0];S.selection.createRangeByElems(L.children[0],L.children[0]),O=S.selection.getSelectionRangeTopNodes(),B=w.default(O),D.append(B)}else B.insertAfter(D);this.delSelectNode(O);var U=(b=B.childNodes())===null||b===void 0?void 0:b.last().getNode();if(U==null)return;U.textContent?S.selection.moveCursor(U):S.selection.moveCursor(U,0),this.tryChangeActive(),g.default(A.EMPTY_P).insertAfter(B);return}x&&(S.selection.collapseRange(),S.selection.restoreSelection())},v.prototype.tryChangeActive=function(){var m,b=this.editor,S=(m=b.selection.getSelectionRangeTopNodes()[0])===null||m===void 0?void 0:m.getNodeName();S==="BLOCKQUOTE"?this.active():this.unActive()},v.prototype.getTopNodeName=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes()[0],S=b==null?void 0:b.getNodeName();return S},v.prototype.delSelectNode=function(m){(0,c.default)(m).call(m,function(b){b.remove()})},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3));function y(C){function w(A){var E,_=C.selection.getSelectionContainerElem(),v=C.selection.getSelectionRangeTopNodes()[0];if((v==null?void 0:v.getNodeName())==="BLOCKQUOTE"){if(_.getNodeName()==="BLOCKQUOTE"){var m=(E=_.childNodes())===null||E===void 0?void 0:E.getNode();C.selection.moveCursor(m)}if(_.text()===""){A.preventDefault(),_.remove();var b=g.default(u.EMPTY_P);b.insertAfter(v),C.selection.moveCursor(b.getNode(),0)}v.text()===""&&v.remove()}}C.txt.eventHooks.enterDownEvents.push(w)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3));function y(C){var w=g.default("<blockquote></blockquote>");return(0,c.default)(C).call(C,function(A){w.append(A.clone(!0))}),w}r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(24)),y=u.__importDefault(o(3)),C=o(6),w=function(A){u.__extends(E,A);function E(_){var v,m=this,b=y.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
<i class="w-e-icon-paint-brush"></i>
</div>`),S={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(v=_.config.colors).call(v,function(x){return{$elem:y.default('<i style="color:'+x+';" class="w-e-icon-paint-brush"></i>'),value:x}}),clickHandler:function(O){m.command(O)}};return m=A.call(this,b,_,S)||this,m}return E.prototype.command=function(_){var v,m=this.editor,b=m.selection.isSelectionEmpty(),S=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];if(S!=null){var x=(S==null?void 0:S.nodeName.toLowerCase())!=="p",O=S==null?void 0:S.style.backgroundColor,D=C.hexToRgb(_)===O;if(b){if(x&&!D){var R=m.selection.getSelectionRangeTopNodes();m.selection.createRangeByElem(R[0]),m.selection.moveCursor(R[0].elems[0])}m.selection.createEmptyRange()}m.cmd.do("backColor",_),b&&(m.selection.collapseRange(),m.selection.restoreSelection())}},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(24)),y=u.__importDefault(o(3)),C=function(w){u.__extends(A,w);function A(E){var _,v=this,m=y.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
<i class="w-e-icon-pencil2"></i>
</div>`),b={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(_=E.config.colors).call(_,function(S){return{$elem:y.default('<i style="color:'+S+';" class="w-e-icon-pencil2"></i>'),value:S}}),clickHandler:function(x){v.command(x)}};return v=w.call(this,m,E,b)||this,v}return A.prototype.command=function(E){var _,v=this.editor,m=v.selection.isSelectionEmpty(),b=(_=v.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];if(b!=null){var S=v.selection.getSelectionText();if(b.nodeName==="A"&&b.textContent===S){var x=y.default("<span>&#8203;</span>").getNode();b.appendChild(x)}v.cmd.do("foreColor",E),m&&(v.selection.collapseRange(),v.selection.restoreSelection())}},A.prototype.tryChangeActive=function(){},A}(g.default);r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(33)),y=c.__importDefault(o(38)),C=c.__importDefault(o(340)),w=c.__importDefault(o(346)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=u.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
<i class="w-e-icon-play"></i>
</div>`);return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel("")},_.prototype.createPanel=function(v){var m=C.default(this.editor,v),b=new g.default(this,m);b.create()},_.prototype.tryChangeActive=function(){},_}(y.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3)),C=u.__importDefault(o(341)),w=o(7);function A(E,_){var v=E.config,m=new C.default(E),b=g.getRandom("input-iframe"),S=g.getRandom("btn-ok"),x=g.getRandom("input-upload"),O=g.getRandom("btn-local-ok");function D(T){E.cmd.do("insertHTML",T+w.EMPTY_P),E.config.onlineVideoCallback(T)}function R(T){var B=E.config.onlineVideoCheck(T);return B===!0?!0:(typeof B=="string"&&E.config.customAlert(B,"error"),!1)}var I=[{title:E.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
<div id="`+O+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+x+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(L)L.click();else return!0}},{selector:"#"+x,type:"change",fn:function(){var B=y.default("#"+x),L=B.elems[0];if(!L)return!0;var U=L.files;return U.length&&m.uploadVideo(U),!0}}]},{title:E.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
<input
id="`+b+`"
type="text"
class="block"
placeholder="`+E.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+S+`" class="right">
`+E.i18next.t("\u63D2\u5165")+`
</button>
</div>
</div>`,events:[{selector:"#"+S,type:"click",fn:function(){var B,L=y.default("#"+b),U=(0,c.default)(B=L.val()).call(B);if(!!U&&!!R(U))return D(U),!0},bindEnter:!0}]}],z={width:300,height:0,tabs:[]};return window.FileReader&&(v.uploadVideoServer||v.customUploadVideo)&&z.tabs.push(I[0]),v.showLinkVideo&&z.tabs.push(I[1]),z}r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(133)),u=s(o(57)),g=s(o(4)),y=s(o(27));(0,d.default)(r,"__esModule",{value:!0});var C=o(2),w=o(6),A=C.__importDefault(o(135)),E=C.__importDefault(o(136)),_=o(7),v=o(6),m=function(){function b(S){this.editor=S}return b.prototype.uploadVideo=function(S){var x=this;if(!!S.length){var O=this.editor,D=O.config,R="validate.",I=function($){return O.i18next.t(R+$)},z=D.uploadVideoServer,T=D.uploadVideoMaxSize,B=T/1024,L=D.uploadVideoName,U=D.uploadVideoParams,W=D.uploadVideoParamsWithUrl,V=D.uploadVideoHeaders,k=D.uploadVideoHooks,M=D.uploadVideoTimeout,j=D.withVideoCredentials,Z=D.customUploadVideo,J=D.uploadVideoAccept,F=[],ie=[];if(w.arrForEach(S,function(he){var $=he.name,Y=he.size/1024/1024;if(!(!$||!Y)){if(!(J instanceof Array)){ie.push("\u3010"+J+"\u3011"+I("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(J).call(J,function(Q){return Q===$.split(".")[$.split(".").length-1]})){ie.push("\u3010"+$+"\u3011"+I("\u4E0D\u662F\u89C6\u9891"));return}if(B<Y){ie.push("\u3010"+$+"\u3011"+I("\u5927\u4E8E")+" "+B+"M");return}F.push(he)}}),ie.length){D.customAlert(I("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+ie.join(`
`),"warning");return}if(F.length===0){D.customAlert(I("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(Z&&typeof Z=="function"){var pe;Z(F,(0,u.default)(pe=this.insertVideo).call(pe,this));return}var se=new FormData;if((0,g.default)(F).call(F,function(he,$){var Y=L||he.name;F.length>1&&(Y=Y+($+1)),se.append(Y,he)}),z){var ye=z.split("#");z=ye[0];var fe=ye[1]||"";(0,g.default)(w).call(w,U,function(he,$){W&&((0,y.default)(z).call(z,"?")>0?z+="&":z+="?",z=z+he+"="+$),se.append(he,$)}),fe&&(z+="#"+fe);var ue=A.default(z,{timeout:M,formData:se,headers:V,withCredentials:!!j,beforeSend:function($){if(k.before)return k.before($,O,F)},onTimeout:function($){D.customAlert(I("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),k.timeout&&k.timeout($,O)},onProgress:function($,Y){var Q=new E.default(O);Y.lengthComputable&&($=Y.loaded/Y.total,Q.show($))},onError:function($){D.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")+": "+$.status),k.error&&k.error($,O)},onFail:function($,Y){D.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")+": ")+Y),k.fail&&k.fail($,O,Y)},onSuccess:function($,Y){if(k.customInsert){var Q;k.customInsert((0,u.default)(Q=x.insertVideo).call(Q,x),Y,O);return}if(Y.errno!="0"){D.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="+Y.errno),k.fail&&k.fail($,O,Y);return}var K=Y.data;x.insertVideo(K.url),k.success&&k.success($,O,Y)}});typeof ue=="string"&&D.customAlert(ue,"error")}}},b.prototype.insertVideo=function(S){var x=this.editor,O=x.config,D="validate.",R=function(T,B){return B===void 0&&(B=D),x.i18next.t(B+T)};if(!O.customInsertVideo)v.UA.isFirefox?x.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+S+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):x.cmd.do("insertHTML",'<video src="'+S+'" controls="controls" style="max-width:100%"></video>'+_.EMPTY_P);else{O.customInsertVideo(S);return}var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){O.customAlert(R("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+R("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+R("\u89C6\u9891\u94FE\u63A5")+' "'+S+'"\uFF0C'+R("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=S},b}();r.default=m},function(i,r,o){i.exports=o(343)},function(i,r,o){var s=o(344);i.exports=s},function(i,r,o){o(345);var s=o(9);i.exports=s.Date.now},function(i,r,o){var s=o(5);s({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(347)),g=c.__importDefault(o(349));function y(C){u.default(C),g.default(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39)),y=c.__importDefault(o(348));function C(A){var E,_=function(S,x){return x===void 0&&(x=""),A.i18next.t(x+S)};function v(b){var S=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(O,D){return D.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(O,D){return D.attr("width","100%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(O,D){return D.attr("width","50%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(O,D){return D.attr("width","30%"),D.removeAttr("height"),!0}},{$elem:u.default("<span>"+_("\u91CD\u7F6E")+"</span>"),onClick:function(O,D){return D.removeAttr("width"),D.removeAttr("height"),!0}},{$elem:u.default("<span>"+_("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(O,D){return y.default(D,"left"),!0}},{$elem:u.default("<span>"+_("menus.just
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return S.hide(),b.append(S),S}function E(m,b,S){var x=m.getBoundingClientRect(),O=S.getBoundingClientRect(),D=O.width.toFixed(2),R=O.height.toFixed(2);(0,c.default)(b).call(b,".w-e-img-drag-show-size").text(D+"px * "+R+"px"),w(b,(0,u.default)(D),(0,u.default)(R),O.left-x.left,O.top-x.top),b.show()}function _(m){var b=m.$textContainerElem,S,x=A(m,b);function O(I,z){I.on("click",function(T){T.stopPropagation()}),I.on("mousedown",".w-e-img-drag-rb",function(T){if(T.preventDefault(),!S)return;var B=T.clientX,L=T.clientY,U=z.getBoundingClientRect(),W=S.getBoundingClientRect(),V=W.width,k=W.height,M=W.left-U.left,j=W.top-U.top,Z=V/k,J=V,F=k,ie=y.default(document);function pe(){ie.off("mousemove",se),ie.off("mouseup",ye)}function se(fe){fe.stopPropagation(),fe.preventDefault(),J=V+(fe.clientX-B),F=k+(fe.clientY-L),J/F!=Z&&(F=J/Z),J=(0,u.default)(J.toFixed(2)),F=(0,u.default)(F.toFixed(2)),(0,c.default)(I).call(I,".w-e-img-drag-show-size").text(J.toFixed(2).replace(".00","")+"px * "+F.toFixed(2).replace(".00","")+"px"),w(I,J,F,M,j)}ie.on("mousemove",se);function ye(){S.attr("width",J+""),S.attr("height",F+"");var fe=S.getBoundingClientRect();w(I,J,F,fe.left-U.left,fe.top-U.top),pe()}ie.on("mouseup",ye),ie.on("mouseleave",pe)})}function D(I){if(C.UA.isIE())return!1;I&&(S=I,E(b,x,S))}function R(){(0,c.default)(b).call(b,".w-e-img-drag-mask").hide()}return O(x,b),y.default(document).on("click",R),m.beforeDestroy(function(){y.default(document).off("click",R)}),{showDrag:D,hideDrag:R}}r.createShowHideFn=_;function v(m){var b=_(m),S=b.showDrag,x=b.hideDrag;m.txt.eventHooks.imgClickEvents.push(S),m.txt.eventHooks.textScrollEvents.push(x),m.txt.eventHooks.keyupEvents.push(x),m.txt.eventHooks.toolbarClickEvents.push(x),m.txt.eventHooks.menuClickEvents.push(x),m.txt.eventHooks.changeEvents.push(x)}r.default=v},function(i,r,o){i.exports=o(356)},function(i,r,o){var s=o(357);i.exports=s},function(i,r,o){o(358);var s=o(9);i.exports=s.parseFloat},function(i,r,o){var s=o(5),d=o(359);s({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(i,r,o){var s=o(8),d=o(90).trim,c=o(68),u=s.parseFloat,g=1/u(c+"-0")!==-1/0;i.exports=g?function(C){var w=d(String(C)),A=u(w);return A===0&&w.charAt(0)=="-"?-0:A}:u},function(i,r,o){var s=o(20),d=o(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A,E=function(b,S){return S===void 0&&(S=""),w.i18next.t(S+b)};function _(m){var b=[{$elem:u.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(x,O){return x.selection.createRangeByElem(O),x.selection.restoreSelection(),x.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(x,O){return O.attr("width","30%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(x,O){return O.attr("width","50%"),O.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(x,O){return O.attr("width","100%"),O.removeAttr("height"),!0}}];b.push({$elem:u.default("<span>"+E("\u91CD\u7F6E")+"</span>"),onClick:function(x,O){return O.removeAttr("width"),O.removeAttr("height"),!0}}),m.attr("data-href")&&b.push({$elem:u.default("<span>"+E("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(x,O){var D=O.attr("data-href");return D&&(D=decodeURIComponent(D),window.open(D,"_target")),!0}}),A=new g.default(w,m,b),A.create()}function v(){A&&(A.remove(),A=null)}return{showImgTooltip:_,hideImgTooltip:v}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showImgTooltip,_=A.hideImgTooltip;w.txt.eventHooks.imgClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_),w.txt.eventHooks.imgDragBarMouseDownEvents.push(_),w.txt.eventHooks.changeEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});function c(u){var g=u.txt,y=u.selection,C=g.eventHooks.keydownEvents;C.push(function(w){var A=y.getSelectionContainerElem(),E=y.getRange();if(!(!E||!A||w.keyCode!==8||!y.isSelectionEmpty())){var _=E.startContainer,v=E.startOffset,m=null;if(v===0)for(;_!==A.elems[0]&&A.elems[0].contains(_)&&_.parentNode&&!m;){if(_.previousSibling){m=_.previousSibling;break}_=_.parentNode}else _.nodeType!==3&&(m=_.childNodes[v-1]);if(!!m){for(var b=m;b.childNodes.length;)b=b.childNodes[b.childNodes.length-1];b instanceof HTMLElement&&b.tagName==="IMG"&&(b.remove(),w.preventDefault())}}})}r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26)),u=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(3)),C=o(6),w=g.__importDefault(o(97));function A(E){var _,v=E.config,m=new w.default(E),b=C.getRandom("up-trigger-id"),S=C.getRandom("up-file-id"),x=C.getRandom("input-link-url"),O=C.getRandom("input-link-url-alt"),D=C.getRandom("input-link-url-href"),R=C.getRandom("btn-link"),I="menus.panelMenus.image.",z=function(Z,J){return J===void 0&&(J=I),E.i18next.t(J+Z)};function T(j,Z,J){var F=v.linkImgCheck(j);return F===!0?!0:(typeof F=="string"&&v.customAlert(F,"error"),!1)}var B=v.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(_=v.uploadImgAccept).call(_,function(j){return"image/"+j}).join(","),U=function(Z,J,F){return'<div class="'+Z+'" data-title="'+F+`">
<div id="`+b+`" class="w-e-up-btn">
<i class="`+J+`"></i>
</div>
<div style="display:none;">
<input id="`+S+'" type="file" '+B+' accept="'+L+`"/>
</div>
</div>`},W=[{selector:"#"+b,type:"click",fn:function(){var Z=v.uploadImgFromMedia;if(Z&&typeof Z=="function")return Z(),!0;var J=y.default("#"+S),F=J.elems[0];if(F)F.click();else return!0}},{selector:"#"+S,type:"change",fn:function(){var Z=y.default("#"+S),J=Z.elems[0];if(!J)return!0;var F=J.files;return F!=null&&F.length&&m.uploadImg(F),J&&(J.value=""),!0}}],V=[`<input
id="`+x+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u5730\u5740")+'"/>'];v.showLinkImgAlt&&V.push(`
<input
id="`+O+`"
type="text"
class="block"
placeholder="`+z("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),v.showLinkImgHref&&V.push(`
<input
id="`+D+`"
type="text"
class="block"
placeholder="`+z("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var k=[{title:z("\u4E0A\u4F20\u56FE\u7247"),tpl:U("w-e-up-img-container","w-e-icon-upload2",""),events:W},{title:z("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
`+V.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+R+'" class="right">'+z("\u63D2\u5165","")+`</button>
</div>
</div>`,events:[{selector:"#"+R,type:"click",fn:function(){var Z,J=y.default("#"+x),F=(0,u.default)(Z=J.val()).call(Z);if(!!F){var ie;if(v.showLinkImgAlt){var pe;ie=(0,u.default)(pe=y.default("#"+O).val()).call(pe)}var se;if(v.showLinkImgHref){var ye;se=(0,u.default)(ye=y.default("#"+D).val()).call(ye)}if(!!T(F))return m.insertImg(F,ie,se),!0}},bindEnter:!0}]}],M={width:300,height:0,tabs:[],onlyUploadConf:{$elem:y.default(U("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:W}};return window.FileReader&&(v.uploadImgShowBase64||v.uploadImgServer||v.customUploadImg||v.uploadImgFromMedia)&&M.tabs.push(k[0]),v.showLinkImg&&(M.tabs.push(k[1]),M.onlyUploadConf=void 0),M}r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=u.__importDefault(o(24)),C=u.__importDefault(o(366)),w=function(A){u.__extends(E,A);function E(_){var v=this,m=g.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
<i class="w-e-icon-indent-increase"></i>
</div>`),b={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:g.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
<p>`),value:"increase"},{$elem:g.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+_.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
<p>`),value:"decrease"}],clickHandler:function(x){v.command(x)}};return v=A.call(this,m,_,b)||this,v}return E.prototype.command=function(_){var v=this.editor,m=v.selection.getSelectionContainerElem();if(m&&v.$textElem.equal(m)){var b=v.selection.getSelectionRangeTopNodes();b.length>0&&(0,c.default)(b).call(b,function(S){C.default(g.default(S),_,v)})}else m&&m.length>0&&(0,c.default)(m).call(m,function(S){C.default(g.default(S),_,v)});v.selection.restoreSelection(),this.tryChangeActive()},E.prototype.tryChangeActive=function(){var _=this.editor,v=_.selection.getSelectionStartElem(),m=g.default(v).getNodeTop(_);m.length<=0||(m.elems[0].style.paddingLeft!=""?this.active():this.unActive())},E}(y.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45)),u=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(367)),C=g.__importDefault(o(368)),w=/^(\d+)(\w+)$/,A=/^(\d+)%$/;function E(v){var m=v.config.indentation;if(typeof m=="string"){if(w.test(m)){var b,S=(0,c.default)(b=(0,u.default)(m).call(m).match(w)).call(b,1,3),x=S[0],O=S[1];return{value:Number(x),unit:O}}else if(A.test(m))return{value:Number((0,u.default)(m).call(m).match(A)[1]),unit:"%"}}else if(m.value!==void 0&&m.unit)return m;return{value:2,unit:"em"}}function _(v,m,b){var S=v.getNodeTop(b),x=/^(P|H[0-9]*)$/;x.test(S.getNodeName())&&(m==="increase"?y.default(S,E(b)):m==="decrease"&&C.default(S,E(b)))}r.default=_},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45));(0,d.default)(r,"__esModule",{value:!0});function u(g,y){var C=g.elems[0];if(C.style.paddingLeft==="")g.css("padding-left",y.value+y.unit);else{var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)+y.value;g.css("padding-left",""+E+y.unit)}}r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(45));(0,d.default)(r,"__esModule",{value:!0});function u(g,y){var C=g.elems[0];if(C.style.paddingLeft!==""){var w=C.style.paddingLeft,A=(0,c.default)(w).call(w,0,w.length-y.unit.length),E=Number(A)-y.value;E>0?g.css("padding-left",""+E+y.unit):g.css("padding-left","")}}r.default=u},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(38)),y=c.__importDefault(o(33)),C=c.__importDefault(o(370)),w=function(A){c.__extends(E,A);function E(_){var v=this,m=u.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
<i class="w-e-icon-happy"></i>
</div>`);return v=A.call(this,m,_)||this,v}return E.prototype.createPanel=function(){var _=C.default(this.editor),v=new y.default(this,_);v.create()},E.prototype.clickHandler=function(){this.createPanel()},E.prototype.tryChangeActive=function(){},E}(g.default);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26)),u=s(o(70)),g=s(o(17));(0,d.default)(r,"__esModule",{value:!0});var y=o(2),C=y.__importDefault(o(3));function w(A){var E=A.config.emotions;function _(b){var S=[];if(b.type=="image"){var x;S=(0,c.default)(x=b.content).call(x,function(D){return typeof D=="string"?"":'<span title="'+D.alt+`">
<img class="eleImg" data-emoji="`+D.alt+'" style src="'+D.src+'" alt="['+D.alt+`]">
</span>`}),S=(0,u.default)(S).call(S,function(D){return D!==""})}else{var O;S=(0,c.default)(O=b.content).call(O,function(D){return'<span class="eleImg" title="'+D+'">'+D+"</span>"})}return S.join("").replace(/&nbsp;/g,"")}var v=(0,c.default)(E).call(E,function(b){return{title:A.i18next.t("menus.panelMenus.emoticon."+b.title),tpl:"<div>"+_(b)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(x){var O=C.default(x.target),D=O.getNodeName(),R;if(D==="IMG"){var I;R=(0,g.default)(I=O.parent().html()).call(I)}else R="<span>"+O.html()+"</span>";return A.cmd.do("insertHTML",R),!0}}]}}),m={width:300,height:230,tabs:v};return m}r.default=w},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createListHandle=r.ClassType=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(372)),y=c.__importDefault(o(374)),C=c.__importDefault(o(375)),w=c.__importDefault(o(376)),A=c.__importDefault(o(377)),E;(function(b){b.Wrap="WrapListHandle",b.Join="JoinListHandle",b.StartJoin="StartJoinListHandle",b.EndJoin="EndJoinListHandle",b.Other="OtherListHandle"})(E=r.ClassType||(r.ClassType={}));var _={WrapListHandle:g.default,JoinListHandle:y.default,StartJoinListHandle:C.default,EndJoinListHandle:w.default,OtherListHandle:A.default};function v(b,S,x){if(b===E.Other&&x===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return b!==E.Other?new _[b](S):new _[b](S,x)}r.createListHandle=v;var m=function(){function b(S){this.handle=S,this.handle.exec()}return b.prototype.getSelectionRangeElem=function(){return u.default(this.handle.selectionRangeElem.get())},b}();r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _=this.options,v=_.listType,m=_.listTarget,b=_.$selectionElem,S=_.$startElem,x=_.$endElem,O,D=[],R=b==null?void 0:b.getNodeName(),I=S.prior,z=x.prior;if(!S.prior&&!x.prior||!(I!=null&&I.prev().length)&&!(z!=null&&z.next().length)){var T;(0,c.default)(T=b==null?void 0:b.children()).call(T,function(M){D.push(g.default(M))}),R===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(M){O.appendChild(M.elems[0])})),this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]),b.remove()}else{for(var B=I;B.length;)D.push(B),z!=null&&z.equal(B)?B=g.default(void 0):B=B.next();var L=I.prev(),U=z.next();if(R===v?O=C.createElementFragment(D,C.createDocumentFragment(),"p"):(O=C.createElement(m),(0,c.default)(D).call(D,function(M){O.append(M.elems[0])})),L.length&&U.length){for(var W=[];U.length;)W.push(U),U=U.next();var V=C.createElement(R);(0,c.default)(W).call(W,function(M){V.append(M.elems[0])}),g.default(V).insertAfter(b),this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}else if(!L.length)this.selectionRangeElem.set(O),C.insertBefore(b,O,b.elems[0]);else{this.selectionRangeElem.set(O);var k=b.next();k.length?C.insertBefore(b,O,k.elems[0]):b.parent().elems[0].append(O)}}},E}(y.ListHandle);r.default=w},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=function(){function g(){this._element=null}return g.prototype.set=function(y){if(y instanceof DocumentFragment){var C,w=[];(0,c.default)(C=y.childNodes).call(C,function(A){w.push(A)}),y=w}this._element=y},g.prototype.get=function(){return this._element},g.prototype.clear=function(){this._element=null},g}();r.default=u},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(58),C=o(47),w=function(A){u.__extends(E,A);function E(_){return A.call(this,_)||this}return E.prototype.exec=function(){var _,v,m,b,S,x,O,D=this.options,R=D.editor,I=D.listType,z=D.listTarget,T=D.$startElem,B=D.$endElem,L,U=R.selection.getSelectionRangeTopNodes(),W=T==null?void 0:T.getNodeName(),V=B==nul
<i class="w-e-icon-row-height"></i>
</div>`),S=new w.default(v,v.config.lineHeights),x={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:S.getItemList(),clickHandler:function(D){v.selection.saveRange(),m.command(D)}};return m=E.call(this,b,v,x)||this,m}return _.prototype.command=function(v){var m=this.editor;m.selection.restoreSelection();var b=C.default(m.selection.getSelectionContainerElem());if(!!b.elems.length){if(b&&m.$textElem.equal(b)){for(var S=!1,x=C.default(m.selection.getSelectionStartElem()).elems[0],O=C.default(m.selection.getSelectionEndElem()).elems[0],D=this.getDom(x),R=this.getDom(O),I=b.elems[0].children,z=0;z<I.length;z++){var T=I[z];if(C.default(T).getNodeName()==="P"&&(T===D&&(S=!0),S&&(C.default(T).css("line-height",v),T===R))){S=!1;return}}m.selection.createRangeByElems(x,O);return}var B=b.elems[0],L=this.getDom(B);C.default(L).getNodeName()==="P"&&(C.default(L).css("line-height",v),m.selection.createRangeByElems(L,L))}},_.prototype.getDom=function(v){var m=C.default(v).elems[0];if(!m.parentNode)return m;function b(S,x){var O=C.default(S.parentNode);return x.$textElem.equal(O)?S:b(O.elems[0],x)}return m=b(m,this.editor),m},_.prototype.styleProcessing=function(v){var m="";return(0,c.default)(v).call(v,function(b){b!==""&&(0,u.default)(b).call(b,"line-height")===-1&&(m=m+b+";")}),m},_.prototype.setRange=function(v,m){var b=this.editor,S=window.getSelection?window.getSelection():document.getSelection();S==null||S.removeAllRanges();var x=document.createRange(),O=v,D=m;x.setStart(O,0),x.setEnd(D,1),S==null||S.addRange(x),b.selection.saveRange(),S==null||S.removeAllRanges(),b.selection.restoreSelection()},_.prototype.tryChangeActive=function(){var v=this.editor,m=v.selection.getSelectionContainerElem();if(!(m&&v.$textElem.equal(m))){var b=C.default(v.selection.getSelectionStartElem());if(b.length!==0){b=this.getDom(b.elems[0]);var S=b.getAttribute("style")?b.getAttribute("style"):"";S&&(0,u.default)(S).call(S,"line-height")!==-1?this.active():this.unActive()}}},_}(y.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=function(){function C(w,A){var E=this;this.itemList=[{$elem:g.default("<span>"+w.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(A).call(A,function(_){E.itemList.push({$elem:g.default("<span>"+_+"</span>"),value:_})})}return C.prototype.getItemList=function(){return this.itemList},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=u.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
<i class="w-e-icon-undo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.revoke();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},w}(g.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(23)),y=function(C){c.__extends(w,C);function w(A){var E=this,_=u.default(`<div class="w-e-menu" data-title="\u6062\u590D">
<i class="w-e-icon-redo"></i>
</div>`);return E=C.call(this,_,A)||this,E}return w.prototype.clickHandler=function(){var A=this.editor;A.history.restore();var E=A.$textElem.children();if(!!(E!=null&&E.length)){var _=E.last();A.selection.createRangeByElem(_,!1,!0),A.selection.restoreSelection()}},w.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},w}(g.default);r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(38)),g=c.__importDefault(o(3)),y=c.__importDefault(o(383)),C=c.__importDefault(o(33)),w=c.__importDefault(o(392)),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return m=E.call(this,b,v)||this,w.default(v),m}return _.prototype.clickHandler=function(){this.createPanel()},_.prototype.createPanel=function(){var v=y.default(this.editor),m=new C.default(this,v);m.create()},_.prototype.tryChangeActive=function(){},_}(u.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(384));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3));o(389);var C=u.__importDefault(o(391));function w(E){return E>0&&(0,c.default)(E)}function A(E){var _=new C.default(E),v=g.getRandom("w-col-id"),m=g.getRandom("w-row-id"),b=g.getRandom("btn-link"),S="menus.panelMenus.table.",x=function(I){return E.i18next.t(I)},O=[{title:x(S+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
<div class="w-e-table">
<span>`+x("\u521B\u5EFA")+`</span>
<input id="`+m+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+x(S+"\u884C")+`</span>
<input id="`+v+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(x(S+"\u5217")+x(S+"\u7684")+x(S+"\u8868\u683C"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+b+'" class="right">'+x("\u63D2\u5165")+`</button>
</div>
</div>`,events:[{selector:"#"+b,type:"click",fn:function(){var I=Number(y.default("#"+v).val()),z=Number(y.default("#"+m).val());return w(z)&&w(I)?(_.createAction(z,I),!0):(E.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],D={width:330,height:0,tabs:[]};return D.tabs.push(O[0]),D}r.default=A},function(i,r,o){i.exports=o(385)},function(i,r,o){var s=o(386);i.exports=s},function(i,r,o){o(387);var s=o(9);i.exports=s.Number.isInteger},function(i,r,o){var s=o(5),d=o(388);s({target:"Number",stat:!0},{isInteger:d})},function(i,r,o){var s=o(13),d=Math.floor;i.exports=function(u){return!s(u)&&isFinite(u)&&d(u)===u}},function(i,r,o){var s=o(20),d=o(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3)),y=function(){function C(w){this.editor=w}return C.prototype.createAction=function(w,A){var E=this.editor,_=g.default(E.selection.getSelectionContainerElem()),v=g.default(_.elems[0]).parentUntilEditor("UL",E),m=g.default(_.elems[0]).parentUntilEditor("OL",E);if(!(v||m)){var b=this.createTableHtml(w,A);E.cmd.do("insertHTML",b)}},C.prototype.createTableHtml=function(w,A){for(var E="",_="",v=0;v<w;v++){_="";for(var m=0;m<A;m++)v===0?_=_+"<th></th>":_=_+"<td></td>";E=E+"<tr>"+_+"</tr>"}var b='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+E+("</tbody></table>"+u.EMPTY_P);return b},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(393)),g=o(400);function y(C){u.default(C),g.bindEventKeyboardEvent(C),g.bindClickEvent(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39)),y=c.__importDefault(o(394)),C=c.__importDefault(o(399)),w=o(7);function A(m){var b;function S(O){var D=new C.default(m),R="menus.panelMenus.table.",I=function(B,L){return L===void 0&&(L=R),m.i18next.t(L+B)},z=[{$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",w.EMPTY_P),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V)),M=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.ProcessingRow(u.default(M),k).elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u884C")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V)),M=D.getTableHtml(L.elems[0]),j=y.default.DeleteRow(u.default(M),k).elems[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(y.default.DeleteRow(u.default(M),k).elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:u.default("<span>"+I("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),M=D.getTableHtml(y.default.ProcessingCol(u.default(k),V).elems[0]);return M=v(L,M),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",M),!0}},{$elem:u.default("<span>"+I("\u5220\u9664\u5217")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getCurrentColIndex(W.elems[0]),k=D.getTableHtml(L.elems[0]),M=y.default.DeleteCol(u.default(k),V),j=M.elems[0].children[0].children[0].children.length,Z="";return B.selection.createRangeByElem(L),B.selection.restoreSelection(),j===0?Z=w.EMPTY_P:Z=D.getTableHtml(M.elems[0]),Z=v(L,Z),B.cmd.do("insertHTML",Z),!0}},{$elem:u.default("<span>"+I("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(B,L){var U=E(B);if(U)return!0;var W=u.default(B.selection.getSelectionStartElem()),V=D.getRowNode(W.elems[0]);if(!V)return!0;var k=Number(D.getCurrentRowIndex(L.elems[0],V));k!==0&&(k=0);var M=D.getTableHtml(L.elems[0]),j=D.getTableHtml(y.default.setTheHeader(u.default(M),k,"th").elems[0]);return j=v(L,j),B.selection.createRangeByElem(L),B.selection.restoreSelection(),B.cmd.do("insertHTML",j),!0}},{$elem:u.default("<span>"+I("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(B,L){var U=u.default(B.selection.getSelectionStartElem()),W=D.getRowNode(U.elems[0]);if(!W)return!0;var
`).replace(/<br>/g,""))}),D}function O(D){var R,I=D.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!I||!I.length)return D;for(var z=(0,c.default)(R=C.deepClone(I)).call(R,function(B){return B=B.replace(/<span\sclass="hljs[^>]+>/,""),B.replace(/<\/span>/,"")}),T=0;T<I.length;T++)D=D.replace(I[T],z[T]);return O(D)}}r.formatCodeHtml=v;var m=function(b){u.__extends(S,b);function S(x){var O=this,D=y.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return O=b.call(this,D,x)||this,_.default(x),O}return S.prototype.insertLineCode=function(x){var O=this.editor,D=y.default("<code>"+x+"</code>");O.cmd.do("insertElem",D),O.selection.createRangeByElem(D,!1),O.selection.restoreSelection()},S.prototype.clickHandler=function(){var x=this.editor,O=x.selection.getSelectionText();this.isActive||(x.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(O))},S.prototype.createPanel=function(x,O){var D=w.default(this.editor,x,O),R=new E.default(this,D);R.create()},S.prototype.tryChangeActive=function(){var x=this.editor;A.default(x)?this.active():this.unActive()},S}(g.default);r.default=m},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(26));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=o(6),y=u.__importDefault(o(3)),C=u.__importDefault(o(139)),w=o(7);function A(E,_,v){var m,b=g.getRandom("input-iframe"),S=g.getRandom("select"),x=g.getRandom("btn-ok");function O(z,T){var B,L=C.default(E);L&&D();var U=(B=E.selection.getSelectionStartElem())===null||B===void 0?void 0:B.elems[0].innerHTML;U&&E.cmd.do("insertHTML",w.EMPTY_P);var W=T.replace(/</g,"&lt;").replace(/>/g,"&gt;");E.highlight&&(W=E.highlight.highlightAuto(W).value),E.cmd.do("insertHTML",'<pre><code class="'+z+'">'+W+"</code></pre>");var V=E.selection.getSelectionStartElem(),k=V==null?void 0:V.getNodeTop(E);(k==null?void 0:k.getNextSibling().elems.length)===0&&y.default(w.EMPTY_P).insertAfter(k)}function D(){if(!!C.default(E)){var z=E.selection.getSelectionStartElem(),T=z==null?void 0:z.getNodeTop(E);!T||(E.selection.createRangeByElem(T),E.selection.restoreSelection())}}var R=function(T){return E.i18next.t(T)},I={width:500,height:0,tabs:[{title:R("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
<select name="" id="`+S+`">
`+(0,c.default)(m=E.config.languageType).call(m,function(z){return"<option "+(v==z?"selected":"")+' value ="'+z+'">'+z+"</option>"})+`
</select>
<textarea id="`+b+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+_.replace(/&quot;/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+x+'" class="right">'+(C.default(E)?R("\u4FEE\u6539"):R("\u63D2\u5165"))+`</button>
</div>
</div>`,events:[{selector:"#"+x,type:"click",fn:function(){var T=document.getElementById(b),B=y.default("#"+S),L=B.val(),U=T.value;if(!!U)return C.default(E)?!1:(O(L,U),!0)}}]}]};return I}r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(404)),g=c.__importDefault(o(405));function y(C){u.default(C),g.default(C)}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A;function E(v){var m="menus.panelMenus.code.",b=function(O,D){return D===void 0&&(D=m),w.i18next.t(D+O)},S=[{$elem:u.default("<span>"+b("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(O,D){return D.remove(),!0}}];A=new g.default(w,v,S),A.create()}function _(){A&&(A.remove(),A=null)}return{showCodeTooltip:E,hideCodeTooltip:_}}r.createShowHideFn=y;function C(w){var A=y(w),E=A.showCodeTooltip,_=A.hideCodeTooltip;w.txt.eventHooks.codeClickEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=o(7),g=c.__importDefault(o(3));function y(C){var w=C.$textElem,A=C.selection,E=C.txt,_=E.eventHooks.keydownEvents;_.push(function(v){var m;if(v.keyCode===40){var b=A.getSelectionContainerElem(),S=(m=w.children())===null||m===void 0?void 0:m.last();if((b==null?void 0:b.elems[0].tagName)==="XMP"&&(S==null?void 0:S.elems[0].tagName)==="PRE"){var x=g.default(u.EMPTY_P);w.append(x)}}}),_.push(function(v){C.selection.saveRange();var m=A.getSelectionContainerElem();if(m){var b=m.getNodeTop(C),S=b==null?void 0:b.prev(),x=b==null?void 0:b.getNextSibling();if(S.length&&(S==null?void 0:S.getNodeName())==="PRE"&&x.length===0&&A.getCursorPos()===0&&v.keyCode===8){var O=g.default(u.EMPTY_P);w.append(O)}}})}r.default=y},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(23)),g=c.__importDefault(o(3)),y=c.__importDefault(o(407)),C=o(6),w=o(7),A=function(E){c.__extends(_,E);function _(v){var m=this,b=g.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return m=E.call(this,b,v)||this,y.default(v),m}return _.prototype.clickHandler=function(){var v=this.editor,m=v.selection.getRange(),b=v.selection.getSelectionContainerElem();if(!!(b!=null&&b.length)){var S=g.default(b.elems[0]),x=S.parentUntil("TABLE",b.elems[0]),O=S.children();S.getNodeName()!=="CODE"&&(x&&g.default(x.elems[0]).getNodeName()==="TABLE"||O&&O.length!==0&&g.default(O.elems[0]).getNodeName()==="IMG"&&!(m!=null&&m.collapsed)||this.createSplitLine())}},_.prototype.createSplitLine=function(){var v="<hr/>"+w.EMPTY_P;C.UA.isFirefox&&(v="<hr/><p></p>"),this.editor.cmd.do("insertHTML",v)},_.prototype.tryChangeActive=function(){},_}(u.default);r.default=A},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(408));function g(y){u.default(y)}r.default=g},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(3)),g=c.__importDefault(o(39));function y(w){var A;function E(v){var m=[{$elem:u.default("<span>"+w.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(S,x){return S.selection.createRangeByElem(x),S.selection.restoreSelection(),S.cmd.do("delete"),!0}}];A=new g.default(w,v,m),A.create()}function _(){A&&(A.remove(),A=null)}return{showSplitLineTooltip:E,hideSplitLineTooltip:_}}function C(w){var A=y(w),E=A.showSplitLineTooltip,_=A.hideSplitLineTooltip;w.txt.eventHooks.splitLineEvents.push(E),w.txt.eventHooks.clickEvents.push(_),w.txt.eventHooks.keyupEvents.push(_),w.txt.eventHooks.toolbarClickEvents.push(_),w.txt.eventHooks.menuClickEvents.push(_),w.txt.eventHooks.textScrollEvents.push(_)}r.default=C},function(i,r,o){var s=o(0),
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return b=_.call(this,S,m)||this,w.default(m),b}return v.prototype.clickHandler=function(){var m=this.editor;C.isAllTodo(m)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},v.prototype.tryChangeActive=function(){C.isAllTodo(this.editor)?this.active():this.unActive()},v.prototype.setTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O=S==null?void 0:S.getNodeName();if(O==="P"){var D=A.default(S),R=D.getTodo(),I=(x=R.children())===null||x===void 0?void 0:x.getNode();R.insertAfter(S),m.selection.moveCursor(I),S.remove()}}),this.tryChangeActive()},v.prototype.cancelTodo=function(){var m=this.editor,b=m.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(S){var x,O,D,R=(O=(x=S.childNodes())===null||x===void 0?void 0:x.childNodes())===null||O===void 0?void 0:O.clone(!0),I=g.default("<p></p>");I.append(R),I.insertAfter(S),(D=I.childNodes())===null||D===void 0||D.get(0).remove(),m.selection.moveCursor(I.getNode()),S.remove()})},v}(y.default);r.default=E},function(i,r,o){i.exports=o(411)},function(i,r,o){var s=o(412);i.exports=s},function(i,r,o){var s=o(413),d=Array.prototype;i.exports=function(c){var u=c.every;return c===d||c instanceof Array&&u===d.every?s:u}},function(i,r,o){o(414);var s=o(15);i.exports=s("Array").every},function(i,r,o){var s=o(5),d=o(32).every,c=o(67),u=o(22),g=c("every"),y=u("every");s({target:"Array",proto:!0,forced:!g||!y},{every:function(w){return d(this,w,arguments.length>1?arguments[1]:void 0)}})},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var u=o(2),g=u.__importDefault(o(3)),y=o(98),C=u.__importDefault(o(140)),w=o(98),A=o(7);function E(_){function v(x){var O,D;if(y.isAllTodo(_)){x.preventDefault();var R=_.selection,I=R.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.get(0),T=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,B=R.getRange();if(!(B!=null&&B.collapsed)){var L=B==null?void 0:B.commonAncestorContainer.childNodes,U=B==null?void 0:B.startContainer,W=B==null?void 0:B.endContainer,V=B==null?void 0:B.startOffset,k=B==null?void 0:B.endOffset,M=0,j=0,Z=[];L==null||(0,c.default)(L).call(L,function($,Y){$.contains(U)&&(M=Y),$.contains(W)&&(j=Y)}),j-M>1&&(L==null||(0,c.default)(L).call(L,function($,Y){Y<=M||Y>=j||Z.push($)}),(0,c.default)(Z).call(Z,function($){$.remove()})),w.dealTextNode(U,V),w.dealTextNode(W,k,!1),_.selection.moveCursor(W,0)}if(I.text()===""){var J=g.default(A.EMPTY_P);J.insertAfter(I),R.moveCursor(J.getNode()),I.remove();return}var F=R.getCursorPos(),ie=y.getCursorNextNode(z==null?void 0:z.getNode(),T,F),pe=C.default(g.default(ie)),se=pe.getInputContainer(),ye=se.parent().getNode(),fe=pe.getTodo(),ue=se.getNode().nextSibling;if((z==null?void 0:z.text())===""&&(z==null||z.append(g.default("<br>"))),fe.insertAfter(I),!ue||(ue==null?void 0:ue.textContent)===""){if((ue==null?void 0:ue.nodeName)!=="BR"){var he=g.default("<br>");he.insertAfter(se)}R.moveCursor(ye,1)}else R.moveCursor(ye)}}function m(x){var O,D;if(y.isAllTodo(_)){var R=_.selection,I=R.getSelectionRangeTopNodes()[0],z=(O=I.childNodes())===null||O===void 0?void 0:O.getNode(),T=g.default("<p></p>"),B=T.getNode(),L=(D=window.getSelection())===null||D===void 0?void 0:D.anchorNode,U=R.getCursorPos(),W=L.previousSibling;if(I.text()===""){x.preventDefault();var V=g.default(A.EMPTY_P);V.insertAfter(I),I.remove(),R.moveCursor(V.getNode(),0);return}if((W==null?void 0:W.nodeName)==="SPAN"&&W.childNodes[0].nodeName==="INPUT"&&U===0){var k;x.preventDefault(),z==null||(0,c.default)(k=z.childNodes).call(k,function(M,j){j!==0&&B.appendChild(M.cloneNode(!0))}),T.insertAfter(I),I.remove()}}}function b(){var x=_.selection,O=x.getSelectionRangeTopNodes()[0];O&&w.isTodo(O)&&O.text()===""&&(g.default(A.EMPTY_P).insertAfter(O),O.remove())}function S(x){x&&x.target instanceof HTMLInputElement&&x.target.type==="checkbox"&&(x.target.checked?x.target.setAttribute("checked","true"):x.target.removeAttribute("checked"))}_.txt.eventHooks.enterD
<i class="`+y+`"></i>
</div>`);m.on("click",function(b){var S,x=(0,c.default)(S=g.default(b.currentTarget)).call(S,"i");x.hasClass(y)?(m.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),r.setFullScreen(_)):(m.attr("data-title","\u5168\u5C4F"),r.setUnFullScreen(_))}),v.append(m)}};r.default=A},function(i,r,o){var s=o(20),d=o(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(29));(0,d.default)(r,"__esModule",{value:!0});var u=function(y,C){var w,A=y.isEnable?y.$textElem:(0,c.default)(w=y.$textContainerElem).call(w,".w-e-content-mantle"),E=(0,c.default)(A).call(A,"[id='"+C+"']"),_=E.getOffsetData().top;A.scrollTop(_)};r.default=u},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(129)),g={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},y=function(){function C(){this.tier=g,this.baseZIndex=u.default.zIndex}return C.prototype.get=function(w){return w&&this.tier[w]?this.baseZIndex+this.tier[w]:this.baseZIndex},C.prototype.init=function(w){this.baseZIndex==u.default.zIndex&&(this.baseZIndex=w.config.zIndex)},C}();r.default=y},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(70)),u=s(o(4));(0,d.default)(r,"__esModule",{value:!0});var g=o(2),y=g.__importDefault(o(426)),C=o(6),w=o(7);function A(_,v){return(0,c.default)(_).call(_,function(m){var b=m.type,S=m.target,x=m.attributeName;return b!="attributes"||b=="attributes"&&(x=="contenteditable"||S!=v)})}var E=function(_){g.__extends(v,_);function v(m){var b=_.call(this,function(S,x){var O;if(S=A(S,x.target),(O=b.data).push.apply(O,S),m.isCompatibleMode)b.asyncSave();else if(!m.isComposing)return b.asyncSave()})||this;return b.editor=m,b.data=[],b.asyncSave=w.EMPTY_FN,b}return v.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},v.prototype.emit=function(){var m;(0,u.default)(m=this.editor.txt.eventHooks.changeEvents).call(m,function(b){return b()})},v.prototype.observe=function(){var m=this;_.prototype.observe.call(this,this.editor.$textElem.elems[0]);var b=this.editor.config.onchangeTimeout;this.asyncSave=C.debounce(function(){m.save()},b),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){m.asyncSave()})},v}(y.default);r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(g,y){var C=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(w){g(w,C)},this.observer=new MutationObserver(this.callback),y&&(this.options=y)}return(0,d.default)(u.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),u.prototype.observe=function(g){this.node instanceof Node||(this.node=g,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 g=this.observer.takeRecords();g.length&&this.callback(g),this.observer.disconnect()},u}();r.default=c},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=o(2),u=c.__importDefault(o(428)),g=c.__importDefault(o(435)),y=c.__importDefault(o(436)),C=function(){function w(A){this.editor=A,this.content=new u.default(A),this.scroll=new g.default(A),this.range=new y.default(A)}return(0,d.default)(w.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),w.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},w.prototype.save=function(A){A.length&&(this.content.save(A),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},w.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()},w.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()},w}();r.default=C},function(i,r,o){var
<div class="w-e-content-preview w-e-text">`+b+`</div>
</div>`),C.$textContainerElem.append(A);var S=C.zIndex.get("menu");E=g.default('<div class="w-e-menue-mantle" style="z-index:'+S+'"></div>'),C.$toolbarElem.append(E),w=!0,C.isEnable=!1}}function v(){!w||(A.remove(),E.remove(),C.$textElem.show(),w=!1,C.isEnable=!0)}return{disable:_,enable:v}}r.default=y},function(i,r,o){var s=o(20),d=o(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[i.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),i.exports=d.locals||{}},function(i,r,o){var s=o(21);r=s(!1),r.push([i.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;
}
`,""]),i.exports=r},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0});var c=function(){function u(g){var y=this;this.editor=g;var C=function(){var A=document.activeElement;A===g.$textElem.elems[0]&&y.emit()};window.document.addEventListener("selectionchange",C),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",C)})}return u.prototype.emit=function(){var g,y=this.editor.config.onSelectionChange;if(y){var C=this.editor.selection;C.saveRange(),C.isSelectionEmpty()||y({text:C.getSelectionText(),html:(g=C.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0].innerHTML,selection:C})}},u}();r.default=c},function(i,r,o){var s=o(0),d=s(o(1)),c=s(o(128)),u=s(o(94)),g=s(o(4));(0,d.default)(r,"__esModule",{value:!0}),r.registerPlugin=void 0;var y=o(2),C=y.__importDefault(o(87)),w=o(6);function A(_,v,m){if(!_)throw new TypeError("name is not define");if(!v)throw new TypeError("options is not define");if(!v.intention)throw new TypeError("options.intention is not define");if(v.intention&&typeof v.intention!="function")throw new TypeError("options.intention is not function");m[_]&&console.warn("plugin "+_+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),m[_]=v}r.registerPlugin=A;function E(_){var v=(0,c.default)({},w.deepClone(C.default.globalPluginsFunctionList),w.deepClone(_.pluginsFunctionList)),m=(0,u.default)(v);(0,g.default)(m).call(m,function(b){var S=b[0],x=b[1];console.info("plugin "+S+" initializing");var O=x.intention,D=x.config;O(_,D),console.info("plugin "+S+" initialization complete")})}r.default=E},function(i,r,o){var s=o(0),d=s(o(1));(0,d.default)(r,"__esModule",{value:!0})}]).default})})(zm);var OF=TF(zm.exports),DF="fcEditor",BF=1,$F=Object.assign||function(e){for(var t,i=1;i<arguments.length;i++)for(var r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},VF=n.defineComponent({name:DF,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:BF++}},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 OF("#editor".concat(t.uni)),t.editor.config.zIndex=2,t.editor.config.focus=!1,t.editor.config.autoFocus=!1,t.config&&$F(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=kF({},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(i){i(Di())})(function(i){i.defineSimpleMode=function(w,A){i.defineMode(w,function(E){return i.simpleMode(E,A)})},i.simpleMode=function(w,A){r(A,"start");var E={},_=A.meta||{},v=!1;for(var m in A)if(m!=_&&A.hasOwnProperty(m))for(var b=E[m]=[],S=A[m],x=0;x<S.length;x++){var O=S[x];b.push(new d(O,A)),(O.indent||O.dedent)&&(v=!0)}var D={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:v?[]:null}},copyState:function(I){var z={state:I.state,pending:I.pending,local:I.local,localState:null,indent:I.indent&&I.indent.slice(0)};I.localState&&(z.localState=i.copyState(I.local.mode,I.localState)),I.stack&&(z.stack=I.stack.slice(0));for(var T=I.persistentStates;T;T=T.next)z.persistentStates={mode:T.mode,spec:T.spec,state:T.state==I.localState?z.localState:i.copyState(T.mode,T.state),next:z.persistentStates};return z},token:c(E,w),innerMode:function(I){return I.local&&{mode:I.local.mode,state:I.localState}},indent:C(E,_)};if(_)for(var R in _)_.hasOwnProperty(R)&&(D[R]=_[R]);return D};function r(w,A){if(!w.hasOwnProperty(A))throw new Error("Undefined state "+A+" in simple mode")}