form-custom-test 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +179 -0
- package/dist/favicon.ico +0 -0
- package/dist/render.es.js +20454 -0
- package/dist/render.style.css +16 -0
- package/dist/render.umd.js +49 -0
- package/license.txt +8 -0
- package/package.json +62 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
var ye=Object.defineProperty,be=Object.defineProperties;var _e=Object.getOwnPropertyDescriptors;var ve=Object.getOwnPropertySymbols;var we=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable;var pe=(t,n,e)=>n in t?ye(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,de=(t,n)=>{for(var e in n||(n={}))we.call(n,e)&&pe(t,e,n[e]);if(ve)for(var e of ve(n))xe.call(n,e)&&pe(t,e,n[e]);return t},me=(t,n)=>be(t,_e(n));(function(t,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(t=typeof globalThis!="undefined"?globalThis:t||self,t.VFormRender=n(t.Vue))})(this,function(vue){"use strict";var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var axios$2={exports:{}},bind$2=function(n,e){return function(){for(var i=new Array(arguments.length),p=0;p<i.length;p++)i[p]=arguments[p];return n.apply(e,i)}},bind$1=bind$2,toString=Object.prototype.toString;function isArray(t){return toString.call(t)==="[object Array]"}function isUndefined(t){return typeof t=="undefined"}function isBuffer(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function isArrayBuffer(t){return toString.call(t)==="[object ArrayBuffer]"}function isFormData(t){return typeof FormData!="undefined"&&t instanceof FormData}function isArrayBufferView(t){var n;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?n=ArrayBuffer.isView(t):n=t&&t.buffer&&t.buffer instanceof ArrayBuffer,n}function isString(t){return typeof t=="string"}function isNumber(t){return typeof t=="number"}function isObject(t){return t!==null&&typeof t=="object"}function isPlainObject(t){if(toString.call(t)!=="[object Object]")return!1;var n=Object.getPrototypeOf(t);return n===null||n===Object.prototype}function isDate(t){return toString.call(t)==="[object Date]"}function isFile(t){return toString.call(t)==="[object File]"}function isBlob(t){return toString.call(t)==="[object Blob]"}function isFunction(t){return toString.call(t)==="[object Function]"}function isStream(t){return isObject(t)&&isFunction(t.pipe)}function isURLSearchParams(t){return typeof URLSearchParams!="undefined"&&t instanceof URLSearchParams}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(t,n){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),isArray(t))for(var e=0,o=t.length;e<o;e++)n.call(null,t[e],e,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.call(null,t[i],i,t)}function merge(){var t={};function n(i,p){isPlainObject(t[p])&&isPlainObject(i)?t[p]=merge(t[p],i):isPlainObject(i)?t[p]=merge({},i):isArray(i)?t[p]=i.slice():t[p]=i}for(var e=0,o=arguments.length;e<o;e++)forEach(arguments[e],n);return t}function extend(t,n,e){return forEach(n,function(i,p){e&&typeof i=="function"?t[p]=bind$1(i,e):t[p]=i}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}var utils$d={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isObject,isPlainObject,isUndefined,isDate,isFile,isBlob,isFunction,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge,extend,trim,stripBOM},utils$c=utils$d;function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function(n,e,o){if(!e)return n;var i;if(o)i=o(e);else if(utils$c.isURLSearchParams(e))i=e.toString();else{var p=[];utils$c.forEach(e,function(g,b){g===null||typeof g=="undefined"||(utils$c.isArray(g)?b=b+"[]":g=[g],utils$c.forEach(g,function(a){utils$c.isDate(a)?a=a.toISOString():utils$c.isObject(a)&&(a=JSON.stringify(a)),p.push(encode(b)+"="+encode(a))}))}),i=p.join("&")}if(i){var y=n.indexOf("#");y!==-1&&(n=n.slice(0,y)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n},utils$b=utils$d;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function(n,e,o){return this.handlers.push({fulfilled:n,rejected:e,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},InterceptorManager$1.prototype.eject=function(n){this.handlers[n]&&(this.handlers[n]=null)},InterceptorManager$1.prototype.forEach=function(n){utils$b.forEach(this.handlers,function(o){o!==null&&n(o)})};var InterceptorManager_1=InterceptorManager$1,utils$a=utils$d,normalizeHeaderName$1=function(n,e){utils$a.forEach(n,function(i,p){p!==e&&p.toUpperCase()===e.toUpperCase()&&(n[e]=i,delete n[p])})},enhanceError$2=function(n,e,o,i,p){return n.config=e,o&&(n.code=o),n.request=i,n.response=p,n.isAxiosError=!0,n.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},n},enhanceError$1=enhanceError$2,createError$2=function(n,e,o,i,p){var y=new Error(n);return enhanceError$1(y,e,o,i,p)},createError$1=createError$2,settle$1=function(n,e,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):e(createError$1("Request failed with status code "+o.status,o.config,null,o.request,o))},utils$9=utils$d,cookies$1=utils$9.isStandardBrowserEnv()?function(){return{write:function(e,o,i,p,y,h){var g=[];g.push(e+"="+encodeURIComponent(o)),utils$9.isNumber(i)&&g.push("expires="+new Date(i).toGMTString()),utils$9.isString(p)&&g.push("path="+p),utils$9.isString(y)&&g.push("domain="+y),h===!0&&g.push("secure"),document.cookie=g.join("; ")},read:function(e){var o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function(n){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(n)},combineURLs$1=function(n,e){return e?n.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):n},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$1=function(n,e){return n&&!isAbsoluteURL(e)?combineURLs(n,e):e},utils$8=utils$d,ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],parseHeaders$1=function(n){var e={},o,i,p;return n&&utils$8.forEach(n.split(`
|
|
2
|
+
`),function(h){if(p=h.indexOf(":"),o=utils$8.trim(h.substr(0,p)).toLowerCase(),i=utils$8.trim(h.substr(p+1)),o){if(e[o]&&ignoreDuplicateOf.indexOf(o)>=0)return;o==="set-cookie"?e[o]=(e[o]?e[o]:[]).concat([i]):e[o]=e[o]?e[o]+", "+i:i}}),e},utils$7=utils$d,isURLSameOrigin$1=utils$7.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a"),o;function i(p){var y=p;return n&&(e.setAttribute("href",y),y=e.href),e.setAttribute("href",y),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:e.pathname.charAt(0)==="/"?e.pathname:"/"+e.pathname}}return o=i(window.location.href),function(y){var h=utils$7.isString(y)?i(y):y;return h.protocol===o.protocol&&h.host===o.host}}():function(){return function(){return!0}}();function Cancel$3(t){this.message=t}Cancel$3.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel$3.prototype.__CANCEL__=!0;var Cancel_1=Cancel$3,utils$6=utils$d,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath=buildFullPath$1,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,createError=createError$2,defaults$4=defaults_1,Cancel$2=Cancel_1,xhr=function(n){return new Promise(function(o,i){var p=n.data,y=n.headers,h=n.responseType,g;function b(){n.cancelToken&&n.cancelToken.unsubscribe(g),n.signal&&n.signal.removeEventListener("abort",g)}utils$6.isFormData(p)&&delete y["Content-Type"];var d=new XMLHttpRequest;if(n.auth){var a=n.auth.username||"",r=n.auth.password?unescape(encodeURIComponent(n.auth.password)):"";y.Authorization="Basic "+btoa(a+":"+r)}var l=buildFullPath(n.baseURL,n.url);d.open(n.method.toUpperCase(),buildURL$1(l,n.params,n.paramsSerializer),!0),d.timeout=n.timeout;function v(){if(!!d){var f="getAllResponseHeaders"in d?parseHeaders(d.getAllResponseHeaders()):null,u=!h||h==="text"||h==="json"?d.responseText:d.response,c={data:u,status:d.status,statusText:d.statusText,headers:f,config:n,request:d};settle(function(s){o(s),b()},function(s){i(s),b()},c),d=null}}if("onloadend"in d?d.onloadend=v:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(v)},d.onabort=function(){!d||(i(createError("Request aborted",n,"ECONNABORTED",d)),d=null)},d.onerror=function(){i(createError("Network Error",n,null,d)),d=null},d.ontimeout=function(){var u=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded",c=n.transitional||defaults$4.transitional;n.timeoutErrorMessage&&(u=n.timeoutErrorMessage),i(createError(u,n,c.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},utils$6.isStandardBrowserEnv()){var m=(n.withCredentials||isURLSameOrigin(l))&&n.xsrfCookieName?cookies.read(n.xsrfCookieName):void 0;m&&(y[n.xsrfHeaderName]=m)}"setRequestHeader"in d&&utils$6.forEach(y,function(u,c){typeof p=="undefined"&&c.toLowerCase()==="content-type"?delete y[c]:d.setRequestHeader(c,u)}),utils$6.isUndefined(n.withCredentials)||(d.withCredentials=!!n.withCredentials),h&&h!=="json"&&(d.responseType=n.responseType),typeof n.onDownloadProgress=="function"&&d.addEventListener("progress",n.onDownloadProgress),typeof n.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",n.onUploadProgress),(n.cancelToken||n.signal)&&(g=function(f){!d||(i(!f||f&&f.type?new Cancel$2("canceled"):f),d.abort(),d=null)},n.cancelToken&&n.cancelToken.subscribe(g),n.signal&&(n.signal.aborted?g():n.signal.addEventListener("abort",g))),p||(p=null),d.send(p)})},utils$5=utils$d,normalizeHeaderName=normalizeHeaderName$1,enhanceError=enhanceError$2,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,n){!utils$5.isUndefined(t)&&utils$5.isUndefined(t["Content-Type"])&&(t["Content-Type"]=n)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(t=xhr),t}function stringifySafely(t,n,e){if(utils$5.isString(t))try{return(n||JSON.parse)(t),utils$5.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(e||JSON.stringify)(t)}var defaults$3={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:getDefaultAdapter(),transformRequest:[function(n,e){return normalizeHeaderName(e,"Accept"),normalizeHeaderName(e,"Content-Type"),utils$5.isFormData(n)||utils$5.isArrayBuffer(n)||utils$5.isBuffer(n)||utils$5.isStream(n)||utils$5.isFile(n)||utils$5.isBlob(n)?n:utils$5.isArrayBufferView(n)?n.buffer:utils$5.isURLSearchParams(n)?(setContentTypeIfUnset(e,"application/x-www-form-urlencoded;charset=utf-8"),n.toString()):utils$5.isObject(n)||e&&e["Content-Type"]==="application/json"?(setContentTypeIfUnset(e,"application/json"),stringifySafely(n)):n}],transformResponse:[function(n){var e=this.transitional||defaults$3.transitional,o=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,p=!o&&this.responseType==="json";if(p||i&&utils$5.isString(n)&&n.length)try{return JSON.parse(n)}catch(y){if(p)throw y.name==="SyntaxError"?enhanceError(y,this,"E_JSON_PARSE"):y}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$5.forEach(["delete","get","head"],function(n){defaults$3.headers[n]={}}),utils$5.forEach(["post","put","patch"],function(n){defaults$3.headers[n]=utils$5.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$3,utils$4=utils$d,defaults$2=defaults_1,transformData$1=function(n,e,o){var i=this||defaults$2;return utils$4.forEach(o,function(y){n=y.call(i,n,e)}),n},isCancel$1=function(n){return!!(n&&n.__CANCEL__)},utils$3=utils$d,transformData=transformData$1,isCancel=isCancel$1,defaults$1=defaults_1,Cancel$1=Cancel_1;function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Cancel$1("canceled")}var dispatchRequest$1=function(n){throwIfCancellationRequested(n),n.headers=n.headers||{},n.data=transformData.call(n,n.data,n.headers,n.transformRequest),n.headers=utils$3.merge(n.headers.common||{},n.headers[n.method]||{},n.headers),utils$3.forEach(["delete","get","head","post","put","patch","common"],function(i){delete n.headers[i]});var e=n.adapter||defaults$1.adapter;return e(n).then(function(i){return throwIfCancellationRequested(n),i.data=transformData.call(n,i.data,i.headers,n.transformResponse),i},function(i){return isCancel(i)||(throwIfCancellationRequested(n),i&&i.response&&(i.response.data=transformData.call(n,i.response.data,i.response.headers,n.transformResponse))),Promise.reject(i)})},utils$2=utils$d,mergeConfig$2=function(n,e){e=e||{};var o={};function i(d,a){return utils$2.isPlainObject(d)&&utils$2.isPlainObject(a)?utils$2.merge(d,a):utils$2.isPlainObject(a)?utils$2.merge({},a):utils$2.isArray(a)?a.slice():a}function p(d){if(utils$2.isUndefined(e[d])){if(!utils$2.isUndefined(n[d]))return i(void 0,n[d])}else return i(n[d],e[d])}function y(d){if(!utils$2.isUndefined(e[d]))return i(void 0,e[d])}function h(d){if(utils$2.isUndefined(e[d])){if(!utils$2.isUndefined(n[d]))return i(void 0,n[d])}else return i(void 0,e[d])}function g(d){if(d in e)return i(n[d],e[d]);if(d in n)return i(void 0,n[d])}var b={url:y,method:y,data:y,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:g};return utils$2.forEach(Object.keys(n).concat(Object.keys(e)),function(a){var r=b[a]||p,l=r(a);utils$2.isUndefined(l)&&r!==g||(o[a]=l)}),o},data={version:"0.24.0"},VERSION=data.version,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(t,n){validators$1[t]=function(o){return typeof o===t||"a"+(n<1?"n ":" ")+t}});var deprecatedWarnings={};validators$1.transitional=function(n,e,o){function i(p,y){return"[Axios v"+VERSION+"] Transitional option '"+p+"'"+y+(o?". "+o:"")}return function(p,y,h){if(n===!1)throw new Error(i(y," has been removed"+(e?" in "+e:"")));return e&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0,console.warn(i(y," has been deprecated since v"+e+" and will be removed in the near future"))),n?n(p,y,h):!0}};function assertOptions(t,n,e){if(typeof t!="object")throw new TypeError("options must be an object");for(var o=Object.keys(t),i=o.length;i-- >0;){var p=o[i],y=n[p];if(y){var h=t[p],g=h===void 0||y(h,p,t);if(g!==!0)throw new TypeError("option "+p+" must be "+g);continue}if(e!==!0)throw Error("Unknown option "+p)}}var validator$1={assertOptions,validators:validators$1},utils$1=utils$d,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,validator=validator$1,validators=validator.validators;function Axios$1(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function(n){typeof n=="string"?(n=arguments[1]||{},n.url=arguments[0]):n=n||{},n=mergeConfig$1(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var e=n.transitional;e!==void 0&&validator.assertOptions(e,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(r){typeof r.runWhen=="function"&&r.runWhen(n)===!1||(i=i&&r.synchronous,o.unshift(r.fulfilled,r.rejected))});var p=[];this.interceptors.response.forEach(function(r){p.push(r.fulfilled,r.rejected)});var y;if(!i){var h=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(h,o),h=h.concat(p),y=Promise.resolve(n);h.length;)y=y.then(h.shift(),h.shift());return y}for(var g=n;o.length;){var b=o.shift(),d=o.shift();try{g=b(g)}catch(a){d(a);break}}try{y=dispatchRequest(g)}catch(a){return Promise.reject(a)}for(;p.length;)y=y.then(p.shift(),p.shift());return y},Axios$1.prototype.getUri=function(n){return n=mergeConfig$1(this.defaults,n),buildURL(n.url,n.params,n.paramsSerializer).replace(/^\?/,"")},utils$1.forEach(["delete","get","head","options"],function(n){Axios$1.prototype[n]=function(e,o){return this.request(mergeConfig$1(o||{},{method:n,url:e,data:(o||{}).data}))}}),utils$1.forEach(["post","put","patch"],function(n){Axios$1.prototype[n]=function(e,o,i){return this.request(mergeConfig$1(i||{},{method:n,url:e,data:o}))}});var Axios_1=Axios$1,Cancel=Cancel_1;function CancelToken(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(i){n=i});var e=this;this.promise.then(function(o){if(!!e._listeners){var i,p=e._listeners.length;for(i=0;i<p;i++)e._listeners[i](o);e._listeners=null}}),this.promise.then=function(o){var i,p=new Promise(function(y){e.subscribe(y),i=y}).then(o);return p.cancel=function(){e.unsubscribe(i)},p},t(function(i){e.reason||(e.reason=new Cancel(i),n(e.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},CancelToken.prototype.unsubscribe=function(n){if(!!this._listeners){var e=this._listeners.indexOf(n);e!==-1&&this._listeners.splice(e,1)}},CancelToken.source=function(){var n,e=new CancelToken(function(i){n=i});return{token:e,cancel:n}};var CancelToken_1=CancelToken,spread=function(n){return function(o){return n.apply(null,o)}},isAxiosError=function(n){return typeof n=="object"&&n.isAxiosError===!0},utils=utils$d,bind=bind$2,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults=defaults_1;function createInstance(t){var n=new Axios(t),e=bind(Axios.prototype.request,n);return utils.extend(e,Axios.prototype,n),utils.extend(e,n),e.create=function(i){return createInstance(mergeConfig(t,i))},e}var axios$1=createInstance(defaults);axios$1.Axios=Axios,axios$1.Cancel=Cancel_1,axios$1.CancelToken=CancelToken_1,axios$1.isCancel=isCancel$1,axios$1.VERSION=data.version,axios$1.all=function(n){return Promise.all(n)},axios$1.spread=spread,axios$1.isAxiosError=isAxiosError,axios$2.exports=axios$1,axios$2.exports.default=axios$1;var require$$0=axios$2.exports,axios=require$$0,emitter={data(){return{vfEvents:{}}},methods:{emit$(t,n){this.vfEvents[t]&&this.vfEvents[t].forEach(e=>{e(n)})},on$(t,n){this.vfEvents[t]=this.vfEvents[t]||[],this.vfEvents[t].push(n)},off$(t,n){if(this.vfEvents[t]){if(n==null){this.vfEvents[t].length=0;return}for(let e=0;e<this.vfEvents[t].length;e++)if(this.vfEvents[t][e]===n){this.vfEvents[t].splice(e,1);break}}},dispatch:function(n,e,o){let i=this.$parent||this.$root,p=i.$options.componentName;for(;i&&(!p||p!==n);)i=i.$parent,i&&(p=i.$options.componentName);i&&i.emit$&&(i.emit$.call(i,e,o),n==="VFormRender"&&i.$emit(e,...o))},broadcast:function(n,e,o){this.widgetRefList&&Object.keys(this.widgetRefList).forEach(i=>{if(this.widgetRefList[i].$options.componentName===n){let y=this.widgetRefList[i];y.emit$.call(y,e,o)}}),this.refList&&Object.keys(this.refList).forEach(i=>{if(this.refList[i].$options.componentName===n){let y=this.refList[i];y.emit$.call(y,e,o)}})}}},_export_sfc$1=(t,n)=>{const e=t.__vccOpts||t;for(const[o,i]of n)e[o]=i;return e};const _sfc_main$L={name:"container-item-wrapper",props:{widget:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}};function _sfc_render$L(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["container-wrapper",[p.customClass]])},[vue.renderSlot(t.$slots,"default")],2)}var ContainerItemWrapper=_export_sfc$1(_sfc_main$L,[["render",_sfc_render$L]]),__glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:ContainerItemWrapper},Symbol.toStringTag,{value:"Module"}));function isDef(t){return t!=null}function get(t,n){const e=n.split(".");let o=t;return e.forEach(i=>{o=isDef(o)&&isDef(o[i])?o[i]:null}),o}let locale=vue.reactive({lang:localStorage.getItem("v_form_locale")||"zh-CN"});function createI18n(t){return{messages:t.messages,$st(n,...e){const o=get(this.messages[locale.lang],n);return typeof o=="function"?o(...e):o!==null?o:n},$st2(n,e){let o=this.messages[locale.lang];const i=get(o,n);return i!==null?i:get(o,e)},setLang(n){locale.lang=n}}}var enLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"Online Form Designer",github:"GitHub",document:"Docs",qqGroup:"WeChat Group",deployment:"Deployment",subscription:"Subscription"},designer:{componentLib:"Components",formLib:"Templates",containerTitle:"Container",dragHandlerHint:"drag container or field to layout center",dragAction:"drag",basicFieldTitle:"Basic Field",advancedFieldTitle:"Advanced Field",customFieldTitle:"Customized Field",noWidgetHint:"Please select a widget from the left list, drag and drop to this container.",widgetLabel:{grid:"Grid",table:"Table",tab:"Tab",section:"Section","sub-form":"SubForm","grid-col":"GridCol","table-cell":"TableCell","tab-pane":"TabPane","data-table":"DataTable",input:"Input",textarea:"Textarea",number:"InputNumber",radio:"Radio",checkbox:"Checkbox",select:"Select",time:"Time","time-range":"Time range",date:"Date","date-range":"Date range",switch:"Switch",rate:"Rate",color:"ColorPicker",slider:"Slider","static-text":"Text","html-text":"HTML",button:"Button",divider:"Divider","picture-upload":"Picture","file-upload":"File","rich-editor":"Rich Editor",cascader:"Cascader",slot:"Slot",custom:"Custom Component"},hint:{selectParentWidget:"Select parent of this widget",moveUpWidget:"Move up this widget",moveDownWidget:"Move down this widget",cloneWidget:"Clone this widget",insertRow:"Insert new row",insertColumn:"Insert new column",remove:"Remove this widget",cellSetting:"Cell setting",dragHandler:"Drag handler",copyField:"Copy field widget",onlyFieldWidgetAcceptable:"Only field widget can be dragged into sub-form",moveUpFirstChildHint:"First child can not be move up",moveDownLastChildHint:"Last child can not be move down",closePreview:"Close",copyJson:"Copy",saveFormJson:"Save As File",copyVueCode:"Copy Vue Code",copyHtmlCode:"Copy HTML Code",copyJsonSuccess:"Copy succeed",importJsonSuccess:"Import succeed",invalidJsonFormat:"Invalid JSON format",jsonVersionMismatch:"Version of JSON mismatch",copyJsonFail:"Copy failed",copyVueCodeSuccess:"Copy succeed",copyVueCodeFail:"Copy failed",copyHtmlCodeSuccess:"Copy succeed",copyHtmlCodeFail:"Copy failed",saveVueCode:"Save Vue File",saveHtmlCode:"Save Html File",getFormData:"Get Data",resetForm:"Reset",disableForm:"Disable",enableForm:"Enable",exportFormData:"Form Data",copyFormData:"Copy",saveFormData:"Save As File",copyVue2SFC:"Copy Vue2",copyVue3SFC:"Copy Vue3",copySFCFail:"Copy failed",copySFCSuccess:"Copy succeed",saveVue2SFC:"Save As Vue2",saveVue3SFC:"Save As Vue3",fileNameForSave:"File name:",saveFileTitle:"Save as File",fileNameInputPlaceholder:"Enter the file name",sampleLoadedSuccess:"Example loaded successfully",sampleLoadedFail:"Sample load failed",loadFormTemplate:"Load This",loadFormTemplateHint:"Are you sure to load this template?",loadFormTemplateSuccess:"Load form template success!",loadFormTemplateFailed:"Load form template failed.",currentNodeCannotBeSelected:"The current node cannot be selected.",widgetSetting:"Widget Config",formSetting:"Form Config",prompt:"Prompt",confirm:"OK",cancel:"Cancel",import:"Import",importJsonHint:"The code to be imported should have the following JSON format.",invalidOptionsData:"Invalid data of options:",lastPaneCannotBeDeleted:"The last pane cannot be deleted.",duplicateName:"Duplicate name: ",nameRequired:"Name required.",numberValidator:"Number",letterValidator:"Letter",letterAndNumberValidator:"LetterAndNumber",mobilePhoneValidator:"MobilePhone",emailValidator:"Email",urlValidator:"URL",noChineseValidator:"Non-Chinese",chineseValidator:"Chinese",rowspanNotConsistentForMergeEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForMergeEntireColumn:"Cells in this column don't have the same colspan, operation failed.",rowspanNotConsistentForDeleteEntireRow:"Cells in this row don't have the same rowspan, operation failed.",colspanNotConsistentForDeleteEntireColumn:"Cells in this column don't have the same colspan, operation failed.",lastColCannotBeDeleted:"The last col cannot be deleted.",lastRowCannotBeDeleted:"The last row cannot be deleted."},toolbar:{undoHint:"Undo",redoHint:"Redo",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"Tree View Of Component Hierarchy",nodeTreeTitle:"Tree View Of Component Hierarchy",clear:"Clear",preview:"Preview",importJson:"Import",exportJson:"Export",exportCode:"Codes",generateCode:"Generate Code",generateSFC:"Generate SFC"},setting:{basicSetting:"Basic Setting",attributeSetting:"Attribute Setting",commonSetting:"Common Setting",advancedSetting:"Advanced Setting",eventSetting:"Event Setting",uniqueName:"Unique Name",editNameHelp:"Press enter to confirm the modification",label:"Label",displayType:"Type",defaultValue:"Default Value",placeholder:"Placeholder",startPlaceholder:"Start Placeholder",endPlaceholder:"End Placeholder",widgetColumnWidth:"Width",widgetSize:"Size",fontSize:"Font Size",textAlign:"Text Align",autoFullWidth:"Auto Full Width",showStops:"Show Stops",displayStyle:"Display Style",inlineLayout:"inline",blockLayout:"block",buttonStyle:"Show As Button",border:"Show Border",labelWidth:"Width Of Label",rows:"Rows",labelHidden:"Hide Label",required:"Required",requiredHint:"Failure Hint",validation:"Validation",validationHelp:"Regular expressions supported",validationHint:"Validation Hint",readonly:"Readonly",disabled:"Disabled",hidden:"Hidden",textContent:"Text",preWrap:"Line Wrap",htmlContent:"HTML",clearable:"Clearable",editable:"Editable",format:"Format",valueFormat:"Value Format",showPassword:"Show Reveal",filterable:"Filterable",allowCreate:"Allow Create",remote:"Remote Query",automaticDropdown:"Automatic Dropdown",multiple:"Multiple",multipleLimit:"Multiple Limit",checkStrictly:"Any Level Selectable",showAllLevels:"Show All Levels",contentPosition:"Content Position",plain:"Plain",round:"Round",circle:"Circle",icon:"Icon",optionsSetting:"Options Setting",addOption:"Add Option",importOptions:"Import Options",resetDefault:"Reset Default",uploadSetting:"Upload Setting",uploadURL:"Upload URL",uploadTip:"Tip Content",withCredentials:"Send Cookie",multipleSelect:"File Multi-select",showFileList:"Show File List",limit:"Max Upload Number",fileMaxSize:"Max Size(MB)",fileTypes:"Upload File Types",fileTypesHelp:"Allows to add more file types",headers:"Request Headers",cellWidth:"Width",cellHeight:"Height",wordBreak:"Line Wrap",gridColHeight:"Height Of Col(px)",gutter:"Gutter(px)",columnSetting:"Cols Setting",colsOfGrid:"Cols Of Grid:",colSpanTitle:"Spans Of Col",colOffsetTitle:"Offset Of Col",colPushTitle:"Push Of Col",colPullTitle:"Pull Of Col",addColumn:"Add Column",responsive:"Responsive",tabPaneSetting:"Tab Panes",addTabPane:"Add Tab Pane",paneActive:"Active",customLabelIcon:"Custom Label",labelIconClass:"Label Icon Class",labelIconPosition:"Label Icon Position",labelTooltip:"Label Tooltip",minValue:"Min Value",maxValue:"Max Value",precision:"Precision",step:"Step",controlsPosition:"Controls Position",minLength:"Min Length",maxLength:"Max Length",showWordLimit:"Show Word Limit",prefixIcon:"Prefix Icon",suffixIcon:"Suffix Icon",inputButton:"Input Button Setting",appendButton:"Append Button",appendButtonDisabled:"Button Disabled",appendButtonIcon:"Append Button Icon",buttonIcon:"Button Icon",switchWidth:"Width of Switch(px)",activeText:"Active Text",inactiveText:"Inactive Text",activeColor:"Active Color",inactiveColor:"Inactive Color",maxStars:"Stars Max Number",lowThreshold:"Low Threshold",highThreshold:"High Threshold",allowHalf:"Allow Half",showText:"Show Text",showScore:"Show Score",range:"Range",vertical:"Vertical",showBlankRow:"Show Blank Row",showRowNumber:"Show Row Number",contentHeight:"Content Area Height",insertColumnToLeft:"insert column to left",insertColumnToRight:"insert column to right",insertRowAbove:"insert row above",insertRowBelow:"insert row below",mergeLeftColumn:"merge left cell",mergeRightColumn:"merge right cell",mergeEntireRow:"merge entire row",mergeRowAbove:"merge cell above",mergeRowBelow:"merge cell below",mergeEntireColumn:"merge entire column",undoMergeCol:"undo merge column",undoMergeRow:"undo merge row",deleteEntireCol:"delete entire column",deleteEntireRow:"delete entire row",widgetName:"Unique Name",formSize:"Size",labelPosition:"Position Of Label",topPosition:"Top",leftPosition:"Left",labelAlign:"Label Align",leftAlign:"Left",centerAlign:"Center",rightAlign:"Right",formCss:"Form CSS",addCss:"Edit",customClass:"Custom Class",globalFunctions:"Global Functions",addEventHandler:"Edit",editWidgetEventHandler:"Edit Widget Event Handler",editFormEventHandler:"Edit Form Event Handler",formSFCSetting:"SFC Setting",formModelName:"Model Name",formRefName:"Ref Name",formRulesName:"Rules Name",syntaxCheckWarning:"Syntax error in the javascript codes, please check again!"}}},zhLocale={application:{"zh-CN":"\u7B80\u4F53\u4E2D\u6587","en-US":"English",productTitle:"\u8868\u5355\u8BBE\u8BA1\u5668",github:"GitHub",document:"\u6587\u6863",qqGroup:"\u6280\u672FWX\u7FA4",deployment:"\u79C1\u6709\u90E8\u7F72",subscription:"\u8BA2\u9605Pro"},designer:{componentLib:"\u7EC4\u4EF6\u5E93",formLib:"\u8868\u5355\u6A21\u677F",containerTitle:"\u5BB9\u5668",dragHandlerHint:"\u9F20\u6807\u62D6\u62FD\u5BB9\u5668\u7EC4\u4EF6\u6216\u5B57\u6BB5\u7EC4\u4EF6\u5E76\u653E\u7F6E\u4E8E\u8868\u5355\u4E2D",dragAction:"\u62D6\u52A8",basicFieldTitle:"\u57FA\u7840\u5B57\u6BB5",advancedFieldTitle:"\u9AD8\u7EA7\u5B57\u6BB5",customFieldTitle:"\u81EA\u5B9A\u4E49\u6269\u5C55\u5B57\u6BB5",noWidgetHint:"\u8BF7\u4ECE\u5DE6\u4FA7\u5217\u8868\u4E2D\u9009\u62E9\u4E00\u4E2A\u7EC4\u4EF6, \u7136\u540E\u7528\u9F20\u6807\u62D6\u52A8\u7EC4\u4EF6\u653E\u7F6E\u4E8E\u6B64\u5904.",widgetLabel:{grid:"\u6805\u683C",table:"\u8868\u683C",tab:"\u6807\u7B7E\u9875",section:"\u533A\u5757","sub-form":"\u5B50\u8868\u5355","grid-col":"\u6805\u683C\u5217","table-cell":"\u5355\u5143\u683C","tab-pane":"\u9009\u9879\u5361\u9875","data-table":"\u6570\u636E\u8868\u683C",input:"\u5355\u884C\u8F93\u5165",textarea:"\u591A\u884C\u8F93\u5165",number:"\u8BA1\u6570\u5668",radio:"\u5355\u9009\u9879",checkbox:"\u591A\u9009\u9879",select:"\u4E0B\u62C9\u9009\u9879",time:"\u65F6\u95F4","time-range":"\u65F6\u95F4\u8303\u56F4",date:"\u65E5\u671F","date-range":"\u65E5\u671F\u8303\u56F4",switch:"\u5F00\u5173",rate:"\u8BC4\u5206",color:"\u989C\u8272\u9009\u62E9\u5668",slider:"\u6ED1\u5757","static-text":"\u9759\u6001\u6587\u5B57","html-text":"HTML",button:"\u6309\u94AE",divider:"\u5206\u9694\u7EBF","picture-upload":"\u56FE\u7247","file-upload":"\u6587\u4EF6","rich-editor":"\u5BCC\u6587\u672C",cascader:"\u7EA7\u8054\u9009\u62E9",slot:"\u63D2\u69FD",custom:"Custom Component"},hint:{selectParentWidget:"\u9009\u4E2D\u7236\u7EC4\u4EF6",moveUpWidget:"\u4E0A\u79FB\u7EC4\u4EF6",moveDownWidget:"\u4E0B\u79FB\u7EC4\u4EF6",cloneWidget:"\u590D\u5236\u7EC4\u4EF6",insertRow:"\u63D2\u5165\u65B0\u884C",insertColumn:"\u63D2\u5165\u65B0\u5217",remove:"\u79FB\u9664\u7EC4\u4EF6",cellSetting:"\u5355\u5143\u683C\u64CD\u4F5C",dragHandler:"\u62D6\u62FD\u624B\u67C4",copyField:"\u590D\u5236\u5B57\u6BB5\u7EC4\u4EF6",onlyFieldWidgetAcceptable:"\u5B50\u8868\u5355\u53EA\u80FD\u63A5\u6536\u5B57\u6BB5\u7EC4\u4EF6",moveUpFirstChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0A\u9762",moveDownLastChildHint:"\u5DF2\u7ECF\u79FB\u52A8\u5230\u6700\u4E0B\u9762",closePreview:"\u5173\u95ED",copyJson:"\u590D\u5236JSON",saveFormJson:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVueCode:"\u590D\u5236Vue\u4EE3\u7801",copyHtmlCode:"\u590D\u5236HTML\u4EE3\u7801",copyJsonSuccess:"\u590D\u5236JSON\u6210\u529F",importJsonSuccess:"\u5BFC\u5165JSON\u6210\u529F",invalidJsonFormat:"\u65E0\u6548\u7684\u8868\u5355JSON\u683C\u5F0F",jsonVersionMismatch:"\u8868\u5355JSON\u7248\u672C\u53F7\u4E0D\u5339\u914D",copyJsonFail:"\u590D\u5236JSON\u5931\u8D25",copyVueCodeSuccess:"\u590D\u5236Vue\u4EE3\u7801\u6210\u529F",copyVueCodeFail:"\u590D\u5236Vue\u4EE3\u7801\u5931\u8D25",copyHtmlCodeSuccess:"\u590D\u5236HTML\u4EE3\u7801\u6210\u529F",copyHtmlCodeFail:"\u590D\u5236HTML\u4EE3\u7801\u5931\u8D25",saveVueCode:"\u4FDD\u5B58Vue\u6587\u4EF6",saveHtmlCode:"\u4FDD\u5B58Html\u6587\u4EF6",getFormData:"\u83B7\u53D6\u6570\u636E",resetForm:"\u91CD\u7F6E\u8868\u5355",disableForm:"\u7981\u7528\u7F16\u8F91",enableForm:"\u6062\u590D\u7F16\u8F91",exportFormData:"\u8868\u5355\u6570\u636E",copyFormData:"\u590D\u5236JSON",saveFormData:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",copyVue2SFC:"\u590D\u5236Vue2\u4EE3\u7801",copyVue3SFC:"\u590D\u5236Vue3\u4EE3\u7801",copySFCFail:"\u590D\u5236SFC\u4EE3\u7801\u5931\u8D25",copySFCSuccess:"\u590D\u5236SFC\u4EE3\u7801\u6210\u529F",saveVue2SFC:"\u4FDD\u5B58\u4E3AVue2\u7EC4\u4EF6",saveVue3SFC:"\u4FDD\u5B58\u4E3AVue3\u7EC4\u4EF6",fileNameForSave:"\u6587\u4EF6\u540D\uFF1A",saveFileTitle:"\u4FDD\u5B58\u4E3A\u6587\u4EF6",fileNameInputPlaceholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D",sampleLoadedSuccess:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u6210\u529F",sampleLoadedFail:"\u8868\u5355\u793A\u4F8B\u52A0\u8F7D\u5931\u8D25",loadFormTemplate:"\u52A0\u8F7D\u6B64\u6A21\u677F",loadFormTemplateHint:"\u662F\u5426\u52A0\u8F7D\u8FD9\u4E2A\u6A21\u677F\uFF1F\u52A0\u8F7D\u540E\u4F1A\u8986\u76D6\u8BBE\u8BA1\u5668\u5F53\u524D\u8868\u5355\uFF0C\u4F60\u53EF\u4EE5\u4F7F\u7528\u201C\u64A4\u9500\u201D\u529F\u80FD\u6062\u590D\u3002",loadFormTemplateSuccess:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u6210\u529F",loadFormTemplateFailed:"\u8868\u5355\u6A21\u677F\u52A0\u8F7D\u5931\u8D25",currentNodeCannotBeSelected:"\u5F53\u524D\u7EC4\u4EF6\u8282\u70B9\u4E0D\u53EF\u9009\u62E9",widgetSetting:"\u7EC4\u4EF6\u8BBE\u7F6E",formSetting:"\u8868\u5355\u8BBE\u7F6E",prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",import:"\u5BFC\u5165",importJsonHint:"\u5BFC\u5165\u7684JSON\u5185\u5BB9\u987B\u7B26\u5408\u4E0B\u8FF0\u683C\u5F0F\uFF0C\u4EE5\u4FDD\u8BC1\u987A\u5229\u5BFC\u5165.",invalidOptionsData:"\u65E0\u6548\u7684\u9009\u9879\u6570\u636E:",lastPaneCannotBeDeleted:"\u4EC5\u5269\u4E00\u4E2A\u9009\u9879\u5361\u9875\u4E0D\u53EF\u5220\u9664.",duplicateName:"\u7EC4\u4EF6\u540D\u79F0\u5DF2\u5B58\u5728: ",nameRequired:"\u7EC4\u4EF6\u540D\u79F0\u4E0D\u53EF\u4E3A\u7A7A",numberValidator:"\u6570\u5B57",letterValidator:"\u5B57\u6BCD",letterAndNumberValidator:"\u6570\u5B57\u5B57\u6BCD",mobilePhoneValidator:"\u624B\u673A\u53F7\u7801",emailValidator:"\u90AE\u7BB1",urlValidator:"\u7F51\u5740",noChineseValidator:"\u975E\u4E2D\u6587\u5B57\u7B26",chineseValidator:"\u4EC5\u4E2D\u6587\u5B57\u7B26",rowspanNotConsistentForMergeEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u884C.",colspanNotConsistentForMergeEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u65E0\u6CD5\u5408\u5E76\u6574\u5217.",rowspanNotConsistentForDeleteEntireRow:"\u5B58\u5728\u884C\u9AD8\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u884C.",colspanNotConsistentForDeleteEntireColumn:"\u5B58\u5728\u5217\u5BBD\u4E0D\u4E00\u81F4\u7684\u5355\u5143\u683C, \u4E0D\u53EF\u5220\u9664\u6574\u5217.",lastColCannotBeDeleted:"\u6700\u540E\u4E00\u5217\u4E0D\u53EF\u5220\u9664.",lastRowCannotBeDeleted:"\u6700\u540E\u4E00\u884C\u4E0D\u53EF\u5220\u9664."},toolbar:{undoHint:"\u64A4\u9500",redoHint:"\u91CD\u505A",pcLayout:"PC",padLayout:"Pad",mobileLayout:"H5",nodeTreeHint:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",nodeTreeTitle:"\u7EC4\u4EF6\u5C42\u6B21\u7ED3\u6784\u6811",clear:"\u6E05\u7A7A",preview:"\u9884\u89C8",importJson:"\u5BFC\u5165JSON",exportJson:"\u5BFC\u51FAJSON",exportCode:"\u5BFC\u51FA\u4EE3\u7801",generateCode:"\u751F\u6210\u4EE3\u7801",generateSFC:"\u751F\u6210SFC"},setting:{basicSetting:"\u57FA\u672C\u5C5E\u6027",attributeSetting:"\u5C5E\u6027\u8BBE\u7F6E",commonSetting:"\u5E38\u89C1\u5C5E\u6027",advancedSetting:"\u9AD8\u7EA7\u5C5E\u6027",eventSetting:"\u4E8B\u4EF6\u5C5E\u6027",uniqueName:"\u552F\u4E00\u540D\u79F0",editNameHelp:"\u4FEE\u6539\u540D\u79F0\u540E\u9700\u6309\u56DE\u8F66\u786E\u8BA4",label:"\u6807\u7B7E",displayType:"\u663E\u793A\u7C7B\u578B",defaultValue:"\u9ED8\u8BA4\u503C",placeholder:"\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8D77\u59CB\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u622A\u6B62\u5360\u4F4D\u5185\u5BB9",widgetColumnWidth:"\u7EC4\u4EF6\u5217\u5BBD",widgetSize:"\u7EC4\u4EF6\u5927\u5C0F",fontSize:"\u5B57\u4F53\u5927\u5C0F",textAlign:"\u6587\u5B57\u5BF9\u9F50",autoFullWidth:"\u81EA\u52A8\u62C9\u4F38\u5BBD\u5EA6",showStops:"\u663E\u793A\u95F4\u65AD\u70B9",displayStyle:"\u663E\u793A\u6837\u5F0F",inlineLayout:"\u884C\u5185",blockLayout:"\u5757",buttonStyle:"\u663E\u793A\u4E3A\u6309\u94AE",border:"\u5E26\u6709\u8FB9\u6846",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",rows:"\u884C\u6570",labelHidden:"\u9690\u85CF\u5B57\u6BB5\u6807\u7B7E",required:"\u5FC5\u586B\u5B57\u6BB5",requiredHint:"\u5FC5\u586B\u6821\u9A8C\u63D0\u793A",validation:"\u5B57\u6BB5\u6821\u9A8C",validationHelp:"\u652F\u6301\u8F93\u5165\u6B63\u5219\u8868\u8FBE\u5F0F",validationHint:"\u6821\u9A8C\u5931\u8D25\u63D0\u793A",readonly:"\u53EA\u8BFB",disabled:"\u7981\u7528",hidden:"\u9690\u85CF",textContent:"\u9759\u6001\u6587\u5B57",preWrap:"\u81EA\u52A8\u6362\u884C",htmlContent:"HTML",clearable:"\u53EF\u6E05\u9664",editable:"\u53EF\u8F93\u5165",format:"\u663E\u793A\u683C\u5F0F",valueFormat:"\u7ED1\u5B9A\u503C\u683C\u5F0F",showPassword:"\u53EF\u663E\u793A\u5BC6\u7801",filterable:"\u53EF\u641C\u7D22\u9009\u9879",allowCreate:"\u5141\u8BB8\u521B\u5EFA\u9009\u9879",remote:"\u53EF\u8FDC\u7A0B\u641C\u7D22",automaticDropdown:"\u81EA\u52A8\u5F39\u51FA\u9009\u9879",multiple:"\u9009\u9879\u53EF\u591A\u9009",multipleLimit:"\u591A\u9009\u6570\u91CF\u9650\u5236",checkStrictly:"\u4EFB\u610F\u7EA7\u8282\u70B9\u53EF\u9009",showAllLevels:"\u663E\u793A\u5B8C\u6574\u8DEF\u5F84",contentPosition:"\u6587\u5B57\u4F4D\u7F6E",plain:"\u6734\u7D20\u6309\u94AE",round:"\u5706\u89D2\u6309\u94AE",circle:"\u5706\u5F62\u6309\u94AE",icon:"\u56FE\u6807",optionsSetting:"\u9009\u9879\u8BBE\u7F6E",addOption:"\u589E\u52A0\u9009\u9879",importOptions:"\u5BFC\u5165\u9009\u9879",resetDefault:"\u91CD\u8BBE\u9009\u4E2D\u9879",uploadSetting:"\u4E0A\u4F20\u53C2\u6570\u8BBE\u7F6E",uploadURL:"\u4E0A\u4F20\u5730\u5740",uploadTip:"\u4E0A\u4F20\u63D0\u793A\u5185\u5BB9",withCredentials:"\u53D1\u9001cookie\u51ED\u8BC1",multipleSelect:"\u6587\u4EF6\u53EF\u591A\u9009",showFileList:"\u663E\u793A\u6587\u4EF6\u5217\u8868",limit:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF",fileMaxSize:"\u6587\u4EF6\u5927\u5C0F\u9650\u5236(MB)",fileTypes:"\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B",fileTypesHelp:"\u652F\u6301\u6DFB\u52A0\u5176\u4ED6\u6587\u4EF6\u7C7B\u578B",headers:"\u4E0A\u4F20\u8BF7\u6C42\u5934",cellWidth:"\u5BBD\u5EA6",cellHeight:"\u9AD8\u5EA6",wordBreak:"\u6587\u5B57\u81EA\u52A8\u6362\u884C",gridColHeight:"\u6805\u683C\u5217\u7EDF\u4E00\u9AD8\u5EA6(px)",gutter:"\u6805\u683C\u95F4\u9694(px)",columnSetting:"\u6805\u683C\u5C5E\u6027\u8BBE\u7F6E",colsOfGrid:"\u5F53\u524D\u6805\u683C\u5217:",colSpanTitle:"\u6805\u683C\u5BBD\u5EA6",colOffsetTitle:"\u5DE6\u4FA7\u95F4\u9694\u683C\u6570",colPushTitle:"\u53F3\u79FB\u6805\u683C\u6570",colPullTitle:"\u5DE6\u79FB\u6805\u683C\u6570",addColumn:"\u589E\u52A0\u6805\u683C",responsive:"\u54CD\u5E94\u5F0F\u5E03\u5C40",tabPaneSetting:"\u9009\u9879\u5361\u8BBE\u7F6E",addTabPane:"\u589E\u52A0\u9009\u9879\u5361\u9875",paneActive:"\u6FC0\u6D3B",customLabelIcon:"\u5B9A\u5236\u5B57\u6BB5\u6807\u7B7E",labelIconClass:"\u6807\u7B7EIcon\u6837\u5F0F",labelIconPosition:"\u6807\u7B7EIcon\u4F4D\u7F6E",labelTooltip:"\u6807\u7B7E\u6587\u5B57\u63D0\u793A",minValue:"\u6700\u5C0F\u503C",maxValue:"\u6700\u5927\u503C",precision:"\u7CBE\u5EA6",step:"\u589E\u51CF\u6B65\u957F",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",minLength:"\u6700\u5C0F\u957F\u5EA6",maxLength:"\u6700\u5927\u957F\u5EA6",showWordLimit:"\u663E\u793A\u5B57\u6570\u7EDF\u8BA1",prefixIcon:"\u5934\u90E8Icon",suffixIcon:"\u5C3E\u90E8Icon",inputButton:"\u8F93\u5165\u6846\u6309\u94AE\u8BBE\u7F6E",appendButton:"\u6DFB\u52A0\u540E\u7F6E\u6309\u94AE",appendButtonDisabled:"\u540E\u7F6E\u6309\u94AE\u7981\u7528",appendButtonIcon:"\u540E\u7F6E\u6309\u94AEIcon",buttonIcon:"\u6309\u94AEIcon",switchWidth:"\u5F00\u5173\u5BBD\u5EA6\uFF08\u50CF\u7D20\uFF09",activeText:"\u5F00\u542F\u65F6\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u6587\u5B57\u63CF\u8FF0",activeColor:"\u5F00\u542F\u65F6\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u80CC\u666F\u8272",maxStars:"\u6700\u5927\u8BC4\u5206\u503C",lowThreshold:"\u4F4E\u5206\u754C\u9650\u503C",highThreshold:"\u9AD8\u5206\u754C\u9650\u503C",allowHalf:"\u5141\u8BB8\u534A\u9009",showText:"\u663E\u793A\u8F85\u52A9\u6587\u5B57",showScore:"\u663E\u793A\u5F53\u524D\u5206\u6570",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u663E\u793A",showBlankRow:"\u9ED8\u8BA4\u663E\u793A\u65B0\u884C",showRowNumber:"\u663E\u793A\u884C\u53F7",contentHeight:"\u5185\u5BB9\u533A\u9AD8\u5EA6",insertColumnToLeft:"\u63D2\u5165\u5DE6\u4FA7\u5217",insertColumnToRight:"\u63D2\u5165\u53F3\u4FA7\u5217",insertRowAbove:"\u63D2\u5165\u4E0A\u65B9\u884C",insertRowBelow:"\u63D2\u5165\u4E0B\u65B9\u884C",mergeLeftColumn:"\u5408\u5E76\u5DE6\u4FA7\u5355\u5143\u683C",mergeRightColumn:"\u5408\u5E76\u53F3\u4FA7\u5355\u5143\u683C",mergeEntireRow:"\u5408\u5E76\u6574\u884C",mergeRowAbove:"\u5408\u5E76\u4E0A\u65B9\u5355\u5143\u683C",mergeRowBelow:"\u5408\u5E76\u4E0B\u65B9\u5355\u5143\u683C",mergeEntireColumn:"\u5408\u5E76\u6574\u5217",undoMergeCol:"\u64A4\u9500\u5217\u5408\u5E76",undoMergeRow:"\u64A4\u9500\u884C\u5408\u5E76",deleteEntireCol:"\u5220\u9664\u6574\u5217",deleteEntireRow:"\u5220\u9664\u6574\u884C",widgetName:"\u7EC4\u4EF6\u552F\u4E00\u540D\u79F0",formSize:"\u5168\u5C40\u7EC4\u4EF6\u5927\u5C0F",labelPosition:"\u6807\u7B7E\u4F4D\u7F6E",topPosition:"\u9876\u90E8",leftPosition:"\u5DE6\u8FB9",labelAlign:"\u5B57\u6BB5\u6807\u7B7E\u5BF9\u9F50",leftAlign:"\u5C45\u5DE6",centerAlign:"\u5C45\u4E2D",rightAlign:"\u5C45\u53F3",formCss:"\u8868\u5355\u5168\u5C40CSS",addCss:"\u7F16\u5199CSS",customClass:"\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",globalFunctions:"\u8868\u5355\u5168\u5C40\u51FD\u6570",addEventHandler:"\u7F16\u5199\u4EE3\u7801",editWidgetEventHandler:"\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",editFormEventHandler:"\u8868\u5355\u4E8B\u4EF6\u5904\u7406",formSFCSetting:"\u751F\u6210SFC\u8BBE\u7F6E",formModelName:"\u6570\u636E\u5BF9\u8C61\u540D\u79F0",formRefName:"\u5F15\u7528\u540D\u79F0",formRulesName:"\u9A8C\u8BC1\u89C4\u5219\u540D\u79F0",syntaxCheckWarning:"JS\u4EE3\u7801\u5B58\u5728\u8BED\u6CD5\u9519\u8BEF\uFF0C\u8BF7\u4ED4\u7EC6\u68C0\u67E5\uFF01"}}},enLocale_render={render:{hint:{prompt:"Prompt",confirm:"OK",cancel:"Cancel",selectPlaceholder:"Pick some item",timePlaceholder:"Select time",startTimePlaceholder:"Start time",endTimePlaceholder:"End time",datePlaceholder:"Select date",startDatePlaceholder:"Start date",endDatePlaceholder:"End date",blankCellContent:"--",uploadError:"Upload error: ",uploadExceed:"The maximum number(${uploadLimit}) of file uploads has been exceeded.",unsupportedFileType:"Unsupported format: ",fileSizeExceed:"File size out of limit: ",refNotFound:"Ref not found: ",fieldRequired:"Input value should be not null.",invalidNumber:"Invalid number format",selectFile:" File...",downloadFile:"Download",removeFile:"Remove",validationFailed:"Form validation failed",subFormAction:"Action",subFormAddAction:"Add",subFormAddActionHint:"add new row",insertSubFormRow:"insert new row",deleteSubFormRow:"delete this row",nonSubFormType:"The type of widget don't match sub-form"}}},zhLocale_render={render:{hint:{prompt:"\u63D0\u793A",confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",selectPlaceholder:"\u8BF7\u9009\u62E9",timePlaceholder:"\u9009\u62E9\u65F6\u95F4",startTimePlaceholder:"\u8D77\u59CB\u65F6\u95F4",endTimePlaceholder:"\u622A\u6B62\u65F6\u95F4",datePlaceholder:"\u9009\u62E9\u65E5\u671F",startDatePlaceholder:"\u8D77\u59CB\u65E5\u671F",endDatePlaceholder:"\u622A\u6B62\u65E5\u671F",blankCellContent:"--",uploadError:"\u4E0A\u4F20\u9519\u8BEF: ",uploadExceed:"\u6700\u5927\u4E0A\u4F20\u6570\u91CF(${uploadLimit})\u5DF2\u8D85\u51FA.",unsupportedFileType:"\u4E0D\u652F\u6301\u683C\u5F0F: ",fileSizeExceed:"\u6587\u4EF6\u5927\u5C0F\u5DF2\u8D85\u51FA: ",refNotFound:"\u7EC4\u4EF6\u672A\u627E\u5230: ",fieldRequired:"\u5B57\u6BB5\u503C\u4E0D\u53EF\u4E3A\u7A7A",invalidNumber:"\u6570\u636E\u683C\u5F0F\u9519\u8BEF",selectFile:" \u9009\u62E9\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D",removeFile:"\u79FB\u9664",validationFailed:"\u8868\u5355\u6570\u636E\u6821\u9A8C\u5931\u8D25",subFormAction:"\u64CD\u4F5C",subFormAddAction:"\u65B0\u589E",subFormAddActionHint:"\u65B0\u589E\u884C",insertSubFormRow:"\u63D2\u5165\u884C",deleteSubFormRow:"\u5220\u9664\u884C",nonSubFormType:"\u7EC4\u4EF6\u7C7B\u578B\u4E0D\u662F\u5B50\u8868\u5355"}}},enLocale_extension={extension:{widgetLabel:{card:"Card",alert:"Alert"},setting:{cardFolded:"Folded",cardShowFold:"Show Fold",cardWidth:"Width Of Card",cardShadow:"Shadow",alertTitle:"Title",alertType:"Type",description:"Description",closable:"Closable",closeText:"Text On Close Btn",center:"Center",showIcon:"Show Icon",effect:"Effect"}}},zhLocale_extension={extension:{widgetLabel:{card:"\u5361\u7247",alert:"\u63D0\u793A"},setting:{cardFolded:"\u662F\u5426\u6536\u8D77",cardShowFold:"\u663E\u793A\u6298\u53E0\u6309\u94AE",cardWidth:"\u5361\u7247\u5BBD\u5EA6",cardShadow:"\u663E\u793A\u9634\u5F71",alertTitle:"\u6807\u9898",alertType:"\u7C7B\u578B",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",closeText:"\u5173\u95ED\u6309\u94AE\u6587\u5B57",center:"\u6587\u5B57\u5C45\u4E2D",showIcon:"\u663E\u793A\u56FE\u6807",effect:"\u663E\u793A\u6548\u679C"}}};const langResources={"en-US":de(de(de({something:{}},enLocale),enLocale_render),enLocale_extension),"zh-CN":de(de(de({something:{}},zhLocale),zhLocale_render),zhLocale_extension)},i18n=createI18n({locale:localStorage.getItem("v_form_locale")||"zh-CN",messages:langResources}),changeLocale=function(t){i18n.setLang(t),localStorage.setItem("v_form_locale",t)},translate=function(t){return i18n.$st(t)};var i18n$1={methods:{i18nt(t){return i18n.$st(t)},i18n2t(t,n){return i18n.$st2(t,n)}}},refMixin={methods:{initRefList(){this.refList!==null&&!!this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef(t,n){let e=this.refList[t];return!e&&!!n&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},getFormRef(){return this.refList.v_form_ref},getComponentByContainer(t){return t.type==="grid"?"vf-grid-item":t.type+"-item"}}},index_vue_vue_type_style_index_0_scoped_true_lang$1="";const _sfc_main$K={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String},title:{type:String,default:""}},computed:{iconName(){return`#icon-${this.iconClass}`},svgClass(){return this.className?"svg-icon "+this.className:"svg-icon"}}},_hoisted_1$n=["xlink:href"],_hoisted_2$h={key:0};function _sfc_render$K(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",{class:vue.normalizeClass(p.svgClass),"aria-hidden":"true"},[vue.createElementVNode("use",{"xlink:href":p.iconName},null,8,_hoisted_1$n),e.title?(vue.openBlock(),vue.createElementBlock("title",_hoisted_2$h,vue.toDisplayString(e.title),1)):vue.createCommentVNode("",!0)],2)}var SvgIcon=_export_sfc$1(_sfc_main$K,[["render",_sfc_render$K],["__scopeId","data-v-8002b89a"]]),staticContentWrapper_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$J={name:"static-content-wrapper",mixins:[i18n$1],components:{SvgIcon},props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},displayStyle:{type:String,default:"block"},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},computed:{selected(){return!!this.designer&&this.field.id===this.designer.selectedId},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""}},methods:{selectField(t){this.designer&&(this.designer.setSelected(t),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){const t=this.designer.selectedWidgetName;let n=null;this.parentList.length===1?this.parentWidget&&(n=this.parentWidget):this.parentList.length===1+this.indexOfParentList?n=this.parentList[this.indexOfParentList-1]:n=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(n),this.designer.formWidget.deleteWidgetRef(t),this.designer.emitHistoryChange()})}}}},_hoisted_1$m={key:0,class:"field-action"},_hoisted_2$g=["title"],_hoisted_3$e=["title"],_hoisted_4$7=["title"],_hoisted_5$6=["title"],_hoisted_6$5={key:1,class:"drag-handler background-opacity"},_hoisted_7$4=["title"],_hoisted_8$2={key:0};function _sfc_render$J(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}]),style:vue.normalizeStyle({display:e.displayStyle})},[!e.field.options.hidden||e.designState===!0?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["static-content-item",[p.selected?"selected":"",p.customClass]]),style:vue.normalizeStyle({display:e.displayStyle}),onClick:n[0]||(n[0]=vue.withModifiers(h=>p.selectField(e.field),["stop"]))},[vue.renderSlot(t.$slots,"default",{},void 0,!0)],6)):vue.createCommentVNode("",!0),this.designer?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.designer.selectedId===e.field.id?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$m,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.selectParentWidget"),onClick:n[1]||(n[1]=vue.withModifiers(h=>p.selectParentWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-back"})],8,_hoisted_2$g),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:0,title:t.i18nt("designer.hint.moveUpWidget"),onClick:n[2]||(n[2]=vue.withModifiers(h=>p.moveUpWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-up"})],8,_hoisted_3$e)):vue.createCommentVNode("",!0),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:1,title:t.i18nt("designer.hint.moveDownWidget"),onClick:n[3]||(n[3]=vue.withModifiers(h=>p.moveDownWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-down"})],8,_hoisted_4$7)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{title:t.i18nt("designer.hint.remove"),onClick:n[4]||(n[4]=vue.withModifiers((...h)=>p.removeFieldWidget&&p.removeFieldWidget(...h),["stop"]))},[vue.createVNode(y,{"icon-class":"el-delete"})],8,_hoisted_5$6)])):vue.createCommentVNode("",!0),e.designer.selectedId===e.field.id?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$5,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.dragHandler")},[vue.createVNode(y,{"icon-class":"el-drag-move"})],8,_hoisted_7$4),vue.createElementVNode("i",null,vue.toDisplayString(t.i18n2t(`designer.widgetLabel.${e.field.type}`,`extension.widgetLabel.${e.field.type}`)),1),e.field.options.hidden===!0?(vue.openBlock(),vue.createElementBlock("i",_hoisted_8$2,[vue.createVNode(y,{"icon-class":"el-hide"})])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],6)}var StaticContentWrapper=_export_sfc$1(_sfc_main$J,[["render",_sfc_render$J],["__scopeId","data-v-41799baa"]]),__glob_0_19=Object.freeze(Object.defineProperty({__proto__:null,default:StaticContentWrapper},Symbol.toStringTag,{value:"Module"})),clipboard={exports:{}};/*!
|
|
3
|
+
* clipboard.js v2.0.11
|
|
4
|
+
* https://clipboardjs.com/
|
|
5
|
+
*
|
|
6
|
+
* Licensed MIT © Zeno Rocha
|
|
7
|
+
*/(function(t,n){(function(o,i){t.exports=i()})(commonjsGlobal,function(){return function(){var e={686:function(p,y,h){h.d(y,{default:function(){return k}});var g=h(279),b=h.n(g),d=h(370),a=h.n(d),r=h(817),l=h.n(r);function v(T){try{return document.execCommand(T)}catch{return!1}}var m=function(R){var D=l()(R);return v("cut"),D},f=m;function u(T){var R=document.documentElement.getAttribute("dir")==="rtl",D=document.createElement("textarea");D.style.fontSize="12pt",D.style.border="0",D.style.padding="0",D.style.margin="0",D.style.position="absolute",D.style[R?"right":"left"]="-9999px";var V=window.pageYOffset||document.documentElement.scrollTop;return D.style.top="".concat(V,"px"),D.setAttribute("readonly",""),D.value=T,D}var c=function(R,D){var V=u(R);D.container.appendChild(V);var N=l()(V);return v("copy"),V.remove(),N},_=function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},V="";return typeof R=="string"?V=c(R,D):R instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(R==null?void 0:R.type)?V=c(R.value,D):(V=l()(R),v("copy")),V},s=_;function w(T){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(D){return typeof D}:w=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},w(T)}var L=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=R.action,V=D===void 0?"copy":D,N=R.container,I=R.target,H=R.text;if(V!=="copy"&&V!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(I!==void 0)if(I&&w(I)==="object"&&I.nodeType===1){if(V==="copy"&&I.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(V==="cut"&&(I.hasAttribute("readonly")||I.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(H)return s(H,{container:N});if(I)return V==="cut"?f(I):s(I,{container:N})},E=L;function S(T){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(D){return typeof D}:S=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},S(T)}function A(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function C(T,R){for(var D=0;D<R.length;D++){var V=R[D];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(T,V.key,V)}}function x(T,R,D){return R&&C(T.prototype,R),D&&C(T,D),T}function O(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),R&&F(T,R)}function F(T,R){return F=Object.setPrototypeOf||function(V,N){return V.__proto__=N,V},F(T,R)}function M(T){var R=q();return function(){var V=G(T),N;if(R){var I=G(this).constructor;N=Reflect.construct(V,arguments,I)}else N=V.apply(this,arguments);return B(this,N)}}function B(T,R){return R&&(S(R)==="object"||typeof R=="function")?R:z(T)}function z(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function q(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function G(T){return G=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},G(T)}function j(T,R){var D="data-clipboard-".concat(T);if(!!R.hasAttribute(D))return R.getAttribute(D)}var P=function(T){O(D,T);var R=M(D);function D(V,N){var I;return A(this,D),I=R.call(this),I.resolveOptions(N),I.listenClick(V),I}return x(D,[{key:"resolveOptions",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof N.action=="function"?N.action:this.defaultAction,this.target=typeof N.target=="function"?N.target:this.defaultTarget,this.text=typeof N.text=="function"?N.text:this.defaultText,this.container=S(N.container)==="object"?N.container:document.body}},{key:"listenClick",value:function(N){var I=this;this.listener=a()(N,"click",function(H){return I.onClick(H)})}},{key:"onClick",value:function(N){var I=N.delegateTarget||N.currentTarget,H=this.action(I)||"copy",W=E({action:H,container:this.container,target:this.target(I),text:this.text(I)});this.emit(W?"success":"error",{action:H,text:W,trigger:I,clearSelection:function(){I&&I.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(N){return j("action",N)}},{key:"defaultTarget",value:function(N){var I=j("target",N);if(I)return document.querySelector(I)}},{key:"defaultText",value:function(N){return j("text",N)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(N){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return s(N,I)}},{key:"cut",value:function(N){return f(N)}},{key:"isSupported",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],I=typeof N=="string"?[N]:N,H=!!document.queryCommandSupported;return I.forEach(function(W){H=H&&!!document.queryCommandSupported(W)}),H}}]),D}(b()),k=P},828:function(p){var y=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var h=Element.prototype;h.matches=h.matchesSelector||h.mozMatchesSelector||h.msMatchesSelector||h.oMatchesSelector||h.webkitMatchesSelector}function g(b,d){for(;b&&b.nodeType!==y;){if(typeof b.matches=="function"&&b.matches(d))return b;b=b.parentNode}}p.exports=g},438:function(p,y,h){var g=h(828);function b(r,l,v,m,f){var u=a.apply(this,arguments);return r.addEventListener(v,u,f),{destroy:function(){r.removeEventListener(v,u,f)}}}function d(r,l,v,m,f){return typeof r.addEventListener=="function"?b.apply(null,arguments):typeof v=="function"?b.bind(null,document).apply(null,arguments):(typeof r=="string"&&(r=document.querySelectorAll(r)),Array.prototype.map.call(r,function(u){return b(u,l,v,m,f)}))}function a(r,l,v,m){return function(f){f.delegateTarget=g(f.target,l),f.delegateTarget&&m.call(r,f)}}p.exports=d},879:function(p,y){y.node=function(h){return h!==void 0&&h instanceof HTMLElement&&h.nodeType===1},y.nodeList=function(h){var g=Object.prototype.toString.call(h);return h!==void 0&&(g==="[object NodeList]"||g==="[object HTMLCollection]")&&"length"in h&&(h.length===0||y.node(h[0]))},y.string=function(h){return typeof h=="string"||h instanceof String},y.fn=function(h){var g=Object.prototype.toString.call(h);return g==="[object Function]"}},370:function(p,y,h){var g=h(879),b=h(438);function d(v,m,f){if(!v&&!m&&!f)throw new Error("Missing required arguments");if(!g.string(m))throw new TypeError("Second argument must be a String");if(!g.fn(f))throw new TypeError("Third argument must be a Function");if(g.node(v))return a(v,m,f);if(g.nodeList(v))return r(v,m,f);if(g.string(v))return l(v,m,f);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(v,m,f){return v.addEventListener(m,f),{destroy:function(){v.removeEventListener(m,f)}}}function r(v,m,f){return Array.prototype.forEach.call(v,function(u){u.addEventListener(m,f)}),{destroy:function(){Array.prototype.forEach.call(v,function(u){u.removeEventListener(m,f)})}}}function l(v,m,f){return b(document.body,v,m,f)}p.exports=d},817:function(p){function y(h){var g;if(h.nodeName==="SELECT")h.focus(),g=h.value;else if(h.nodeName==="INPUT"||h.nodeName==="TEXTAREA"){var b=h.hasAttribute("readonly");b||h.setAttribute("readonly",""),h.select(),h.setSelectionRange(0,h.value.length),b||h.removeAttribute("readonly"),g=h.value}else{h.hasAttribute("contenteditable")&&h.focus();var d=window.getSelection(),a=document.createRange();a.selectNodeContents(h),d.removeAllRanges(),d.addRange(a),g=d.toString()}return g}p.exports=y},279:function(p){function y(){}y.prototype={on:function(h,g,b){var d=this.e||(this.e={});return(d[h]||(d[h]=[])).push({fn:g,ctx:b}),this},once:function(h,g,b){var d=this;function a(){d.off(h,a),g.apply(b,arguments)}return a._=g,this.on(h,a,b)},emit:function(h){var g=[].slice.call(arguments,1),b=((this.e||(this.e={}))[h]||[]).slice(),d=0,a=b.length;for(d;d<a;d++)b[d].fn.apply(b[d].ctx,g);return this},off:function(h,g){var b=this.e||(this.e={}),d=b[h],a=[];if(d&&g)for(var r=0,l=d.length;r<l;r++)d[r].fn!==g&&d[r].fn._!==g&&a.push(d[r]);return a.length?b[h]=a:delete b[h],this}},p.exports=y,p.exports.TinyEmitter=y}},o={};function i(p){if(o[p])return o[p].exports;var y=o[p]={exports:{}};return e[p](y,y.exports,i),y.exports}return function(){i.n=function(p){var y=p&&p.__esModule?function(){return p.default}:function(){return p};return i.d(y,{a:y}),y}}(),function(){i.d=function(p,y){for(var h in y)i.o(y,h)&&!i.o(p,h)&&Object.defineProperty(p,h,{enumerable:!0,get:y[h]})}}(),function(){i.o=function(p,y){return Object.prototype.hasOwnProperty.call(p,y)}}(),i(686)}().default})})(clipboard);function isNull(t){return t==null}const generateId=function(){return Math.floor(Math.random()*1e5+Math.random()*2e4+Math.random()*5e3)},deepClone=function(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))},evalFn=function(t,n=null,e=null){return new Function("DSV","VFR","return "+t)(n,e)},insertCustomCssToHead=function(t,n=""){let e=document.getElementsByTagName("head")[0],o=document.getElementById("vform-custom-css");o&&e.removeChild(o),n&&(o=document.getElementById("vform-custom-css-"+n),!!o&&e.removeChild(o));let i=document.createElement("style");i.type="text/css",i.rel="stylesheet",i.id=n?"vform-custom-css-"+n:"vform-custom-css";try{i.appendChild(document.createTextNode(t))}catch{i.styleSheet.cssText=t}e.appendChild(i)},insertGlobalFunctionsToHtml=function(t,n=""){let e=document.getElementsByTagName("body")[0],o=document.getElementById("v_form_global_functions");!!o&&e.removeChild(o),n&&(o=document.getElementById("v_form_global_functions-"+n),!!o&&e.removeChild(o));let i=document.createElement("script");i.id=n?"v_form_global_functions-"+n:"v_form_global_functions",i.type="text/javascript",i.innerHTML=t,e.appendChild(i)};function traverseFieldWidgets(t,n,e=null){!t||t.map(o=>{o.formItemFlag?n(o,e):o.type==="grid"?o.cols.map(i=>{traverseFieldWidgets(i.widgetList,n,o)}):o.type==="table"?o.rows.map(i=>{i.cols.map(p=>{traverseFieldWidgets(p.widgetList,n,o)})}):o.type==="tab"?o.tabs.map(i=>{traverseFieldWidgets(i.widgetList,n,o)}):(o.type==="sub-form"||o.category==="container")&&traverseFieldWidgets(o.widgetList,n,o)})}function traverseContainerWidgets(t,n){!t||t.map(e=>{e.category==="container"&&n(e),e.type==="grid"?e.cols.map(o=>{traverseContainerWidgets(o.widgetList,n)}):e.type==="table"?e.rows.map(o=>{o.cols.map(i=>{traverseContainerWidgets(i.widgetList,n)})}):e.type==="tab"?e.tabs.map(o=>{traverseContainerWidgets(o.widgetList,n)}):(e.type==="sub-form"||e.category==="container")&&traverseContainerWidgets(e.widgetList,n)})}function handleWidgetForTraverse(t,n){t.category?traverseFieldWidgetsOfContainer(t,n):t.formItemFlag&&n(t)}function traverseFieldWidgetsOfContainer(t,n){t.type==="grid"?t.cols.forEach(e=>{e.widgetList.forEach(o=>{handleWidgetForTraverse(o,n)})}):t.type==="table"?t.rows.forEach(e=>{e.cols.forEach(o=>{o.widgetList.forEach(i=>{handleWidgetForTraverse(i,n)})})}):t.type==="tab"?t.tabs.forEach(e=>{e.widgetList.forEach(o=>{handleWidgetForTraverse(o,n)})}):t.type==="sub-form"?t.widgetList.forEach(e=>{handleWidgetForTraverse(e,n)}):t.category==="container"&&t.widgetList.forEach(e=>{handleWidgetForTraverse(e,n)})}function getAllFieldWidgets(t){if(!t)return[];let n=[];return traverseFieldWidgets(t,o=>{n.push({type:o.type,name:o.options.name,field:o})}),n}function getAllContainerWidgets(t){if(!t)return[];let n=[];return traverseContainerWidgets(t,o=>{n.push({type:o.type,name:o.options.name,container:o})}),n}function getDefaultFormConfig(){return{modelName:"formData",refName:"vForm",rulesName:"rules",labelWidth:80,labelPosition:"left",size:"",labelAlign:"label-left-align",cssCode:"",customClass:[],functions:"",layoutType:"PC",jsonVersion:3,onFormCreated:"",onFormMounted:"",onFormDataChange:""}}function buildDefaultFormJson(){return{widgetList:[],formConfig:deepClone(getDefaultFormConfig())}}const getRegExp=function(t){return{number:"/^[-]?\\d+(\\.\\d+)?$/",letter:"/^[A-Za-z]+$/",letterAndNumber:"/^[A-Za-z0-9]+$/",mobilePhone:"/^[1][3-9][0-9]{9}$/",letterStartNumberIncluded:"/^[A-Za-z]+[A-Za-z\\d]*$/",noChinese:"/^[^\u4E00-\u9FA5]+$/",chinese:"/^[\u4E00-\u9FA5]+$/",email:"/^([-_A-Za-z0-9.]+)@([_A-Za-z0-9]+\\.)+[A-Za-z0-9]{2,3}$/",url:"/^([hH][tT]{2}[pP]:\\/\\/|[hH][tT]{2}[pP][sS]:\\/\\/)(([A-Za-z0-9-~]+)\\.)+([A-Za-z0-9-~\\/])+$/"}[t]},validateFn=function(validatorName,rule,value,callback,defaultErrorMsg){if(isNull(value)||value.length<=0){callback();return}const reg=eval(getRegExp(validatorName));if(reg.test(value))callback();else{let t=rule.errorMsg||defaultErrorMsg;callback(new Error(t))}},FormValidators={number(t,n,e){validateFn("number",t,n,e,"["+t.label+"]\u5305\u542B\u975E\u6570\u5B57\u5B57\u7B26")},letter(t,n,e){validateFn("letter",t,n,e,"["+t.label+"]\u5305\u542B\u975E\u5B57\u6BCD\u5B57\u7B26")},letterAndNumber(t,n,e){validateFn("letterAndNumber",t,n,e,"["+t.label+"]\u53EA\u80FD\u8F93\u5165\u5B57\u6BCD\u6216\u6570\u5B57")},mobilePhone(t,n,e){validateFn("mobilePhone",t,n,e,"["+t.label+"]\u624B\u673A\u53F7\u7801\u683C\u5F0F\u6709\u8BEF")},noBlankStart(t,n,e){},noBlankEnd(t,n,e){},letterStartNumberIncluded(t,n,e){validateFn("letterStartNumberIncluded",t,n,e,"["+t.label+"]\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u53EF\u5305\u542B\u6570\u5B57")},noChinese(t,n,e){validateFn("noChinese",t,n,e,"["+t.label+"]\u4E0D\u53EF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},chinese(t,n,e){validateFn("chinese",t,n,e,"["+t.label+"]\u53EA\u80FD\u8F93\u5165\u4E2D\u6587\u5B57\u7B26")},email(t,n,e){validateFn("email",t,n,e,"["+t.label+"]\u90AE\u7BB1\u683C\u5F0F\u6709\u8BEF")},url(t,n,e){validateFn("url",t,n,e,"["+t.label+"]URL\u683C\u5F0F\u6709\u8BEF")},regExp(rule,value,callback){if(isNull(value)||value.length<=0){callback();return}const pattern=eval(rule.regExp);if(pattern.test(value))callback();else{let t=rule.errorMsg||"["+rule.label+"]invalid value";callback(new Error(t))}}};var fieldMixin={inject:["refList","getFormConfig","getGlobalDsv","globalOptionData","globalModel","getOptionData"],computed:{formConfig(){return this.getFormConfig()},widgetSize(){return this.field.options.size||"default"},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1},formModel:{cache:!1,get(){return this.globalModel.formModel}}},methods:{getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name+"":this.field.options.name},initFieldModel(){if(!!this.field.formItemFlag){if(!!this.subFormItemFlag&&!this.designState){let t=this.formModel[this.subFormName];(t===void 0||t[this.subFormRowIndex]===void 0||t[this.subFormRowIndex][this.field.options.name]===void 0)&&this.field.options.defaultValue!==void 0?(this.fieldModel=this.field.options.defaultValue,t[this.subFormRowIndex][this.field.options.name]=this.field.options.defaultValue):t[this.subFormRowIndex][this.field.options.name]===void 0?(this.fieldModel=null,t[this.subFormRowIndex][this.field.options.name]=null):this.fieldModel=t[this.subFormRowIndex][this.field.options.name],setTimeout(()=>{this.handleOnChangeForSubForm(this.fieldModel,this.oldFieldValue,t,this.subFormRowId)},800),this.oldFieldValue=deepClone(this.fieldModel),this.initFileList();return}this.formModel[this.field.options.name]===void 0&&this.field.options.defaultValue!==void 0?this.fieldModel=this.field.options.defaultValue:this.formModel[this.field.options.name]===void 0?this.formModel[this.field.options.name]=null:this.fieldModel=this.formModel[this.field.options.name],this.oldFieldValue=deepClone(this.fieldModel),this.initFileList()}},initFileList(){this.field.type!=="picture-upload"&&this.field.type!=="file-upload"||this.designState===!0||this.fieldModel&&(Array.isArray(this.fieldModel)?this.fileList=deepClone(this.fieldModel):this.fileList.splice(0,0,deepClone(this.fieldModel)))},initEventHandler(){this.on$("setFormData",t=>{console.log("formModel of globalModel----------",this.globalModel.formModel),this.subFormItemFlag||this.setValue(t[this.field.options.name])}),this.on$("field-value-changed",t=>{if(this.subFormItemFlag){let n=this.formModel[this.subFormName];this.handleOnChangeForSubForm(t[0],t[1],n,this.subFormRowId)}else this.handleOnChange(t[0],t[1])}),this.on$("reloadOptionItems",t=>{(t.length===0||t.indexOf(this.field.options.name)>-1)&&this.initOptionItems(!0)})},handleOnCreated(){this.field.options.onCreated&&new Function(this.field.options.onCreated).call(this)},handleOnMounted(){this.field.options.onMounted&&new Function(this.field.options.onMounted).call(this)},registerToRefList(t){this.refList!==null&&!!this.field.options.name&&(this.subFormItemFlag&&!this.designState?(t&&delete this.refList[t+"@row"+this.subFormRowId],this.refList[this.field.options.name+"@row"+this.subFormRowId]=this):(t&&delete this.refList[t],this.refList[this.field.options.name]=this))},unregisterFromRefList(){if(this.refList!==null&&!!this.field.options.name){let t=this.field.options.name;this.subFormItemFlag&&!this.designState?delete this.refList[t+"@row"+this.subFormRowId]:delete this.refList[t]}},initOptionItems(t){if(!this.designState&&(this.field.type==="radio"||this.field.type==="checkbox"||this.field.type==="select"||this.field.type==="cascader")){const n=this.getOptionData();!!n&&n.hasOwnProperty(this.field.options.name)&&(t?this.reloadOptions(n[this.field.options.name]):this.loadOptions(n[this.field.options.name]))}},refreshDefaultValue(){this.designState===!0&&this.field.options.defaultValue!==void 0&&(this.fieldModel=this.field.options.defaultValue)},clearFieldRules(){!this.field.formItemFlag||this.rules.splice(0,this.rules.length)},buildFieldRules(){if(!(!this.field.formItemFlag&&this.field.options.hidden)){if(this.rules.splice(0,this.rules.length),this.field.options.required&&this.rules.push({required:!0,trigger:["blur"],message:this.field.options.requiredHint||this.i18nt("render.hint.fieldRequired")}),this.field.options.validation){let t=this.field.options.validation;FormValidators[t]?this.rules.push({validator:FormValidators[t],trigger:["blur","change"],label:this.field.options.label,errorMsg:this.field.options.validationHint}):this.rules.push({validator:FormValidators.regExp,trigger:["blur","change"],regExp:t,label:this.field.options.label,errorMsg:this.field.options.validationHint})}if(this.field.options.onValidate){let t=(n,e,o)=>new Function("rule","value","callback",this.field.options.onValidate).call(this,n,e,o);this.rules.push({validator:t,trigger:["blur","change"],label:this.field.options.label})}}},disableChangeValidate(){!this.rules||this.rules.forEach(t=>{t.trigger&&t.trigger.splice(0,t.trigger.length)})},enableChangeValidate(){!this.rules||this.rules.forEach(t=>{t.trigger&&(t.trigger.push("blur"),t.trigger.push("change"))})},disableOptionOfList(t,n){!!t&&t.length>0&&t.forEach(e=>{e.value===n&&(e.disabled=!0)})},enableOptionOfList(t,n){!!t&&t.length>0&&t.forEach(e=>{e.value===n&&(e.disabled=!1)})},emitFieldDataChange(t,n){this.emit$("field-value-changed",[t,n]),this.dispatch("VFormRender","fieldChange",[this.field.options.name,t,n,this.subFormName,this.subFormRowIndex])},syncUpdateFormModel(t){if(!this.designState)if(this.subFormItemFlag){let e=(this.formModel[this.subFormName]||[{}])[this.subFormRowIndex];e&&(e[this.field.options.name]=t)}else this.formModel[this.field.options.name]=t},handleChangeEvent(t){this.syncUpdateFormModel(t),this.emitFieldDataChange(t,this.oldFieldValue),this.oldFieldValue=deepClone(t),this.dispatch("VFormRender","fieldValidation",[this.getPropName()])},handleFocusCustomEvent(t){this.oldFieldValue=deepClone(this.fieldModel),this.field.options.onFocus&&new Function("event",this.field.options.onFocus).call(this,t)},handleBlurCustomEvent(t){this.field.options.onBlur&&new Function("event",this.field.options.onBlur).call(this,t)},handleInputCustomEvent(t){this.syncUpdateFormModel(t),this.dispatch("VFormRender","fieldValidation",[this.getPropName()]),this.field.options.onInput&&new Function("value",this.field.options.onInput).call(this,t)},emitAppendButtonClick(){this.designState||(this.field.options.onAppendButtonClick?new Function(this.field.options.onAppendButtonClick).call(this):this.dispatch("VFormRender","appendButtonClick",[this]))},handleOnChange(t,n){this.field.options.onChange&&new Function("value","oldValue",this.field.options.onChange).call(this,t,n)},handleOnChangeForSubForm(t,n,e,o){this.field.options.onChange&&new Function("value","oldValue","subFormData","rowId",this.field.options.onChange).call(this,t,n,e,o)},handleButtonWidgetClick(){this.designState||(this.field.options.onClick?new Function(this.field.options.onClick).call(this):this.dispatch("VFormRender","buttonClick",[this]))},remoteQuery(t){this.field.options.onRemoteQuery&&new Function("keyword",this.field.options.onRemoteQuery).call(this,t)},getFormRef(){return this.refList.v_form_ref},getWidgetRef(t,n){let e=this.refList[t];return!e&&!!n&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},getFieldEditor(){return this.$refs.fieldEditor},setValue(t){if(this.field.formItemFlag){let n=deepClone(this.fieldModel);this.fieldModel=t,this.initFileList(),this.syncUpdateFormModel(t),this.emitFieldDataChange(t,n)}},getValue(){return this.fieldModel},resetField(){let t=this.field.options.defaultValue;this.setValue(t),this.$nextTick(()=>{}),(this.field.type==="picture-upload"||this.field.type==="file-upload")&&(this.$refs.fieldEditor.clearFiles(),this.fileList.splice(0,this.fileList.length))},setWidgetOption(t,n){this.field.options.hasOwnProperty(t)&&(this.field.options[t]=n)},setReadonly(t){this.field.options.readonly=t},setDisabled(t){this.field.options.disabled=t},setAppendButtonVisible(t){this.field.options.appendButton=t},setAppendButtonDisabled(t){this.field.options.appendButtonDisabled=t},setHidden(t){this.field.options.hidden=t,t?this.clearFieldRules():this.buildFieldRules()},setRequired(t){this.field.options.required=t,this.buildFieldRules()},setLabel(t){this.field.options.label=t},focus(){!!this.getFieldEditor()&&!!this.getFieldEditor().focus&&this.getFieldEditor().focus()},clearSelectedOptions(){this.field.type!=="checkbox"&&this.field.type!=="radio"&&this.field.type!=="select"||(this.field.type==="checkbox"||this.field.type==="select"&&this.field.options.multiple?this.fieldModel=[]:this.fieldModel="")},loadOptions(t){this.field.options.optionItems=deepClone(t)},reloadOptions(t){this.field.options.optionItems=deepClone(t)},disableOption(t){this.disableOptionOfList(this.field.options.optionItems,t)},enableOption(t){this.enableOptionOfList(this.field.options.optionItems,t)},getOptionItems(){return this.field.options.optionItems},setUploadHeader(t,n){this.uploadHeaders[t]=n},setUploadData(t,n){this.uploadData[t]=n},setToolbar(t){this.customToolbar=t},isSubFormItem(){return this.parentWidget?this.parentWidget.type==="sub-form":!1},addCssClass(t){this.field.options.customClass?this.field.options.customClass.push(t):this.field.options.customClass=[t]},removeCssClass(t){if(!this.field.options.customClass)return;let n=-1;this.field.options.customClass.map((e,o)=>{e===t&&(n=o)}),n>-1&&this.field.options.customClass.splice(n,1)}}},buttonWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$I={name:"button-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$I(t,n,e,o,i,p){const y=vue.resolveComponent("el-button"),h=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,"design-state":e.designState,"display-style":e.field.options.displayStyle,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",type:e.field.options.type,size:t.widgetSize,plain:e.field.options.plain,round:e.field.options.round,circle:e.field.options.circle,icon:e.field.options.icon,disabled:e.field.options.disabled,onClick:t.handleButtonWidgetClick},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.field.options.label),1)]),_:1},8,["type","size","plain","round","circle","icon","disabled","onClick"])]),_:1},8,["designer","field","design-state","display-style","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var buttonWidget=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$I],["__scopeId","data-v-1ba2a127"]]),__glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:buttonWidget},Symbol.toStringTag,{value:"Module"})),formItemWrapper_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$H={name:"form-item-wrapper",mixins:[i18n$1],components:{SvgIcon},props:{field:Object,designer:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""},rules:Array},inject:["getFormConfig"],computed:{formConfig(){return this.getFormConfig()},selected(){return!!this.designer&&this.field.id===this.designer.selectedId},label(){return this.field.options.labelHidden?"":this.field.options.label},labelWidth(){return this.field.options.labelHidden?0:this.field.options.labelWidth?this.field.options.labelWidth:this.designer?this.designer.formConfig.labelWidth:this.formConfig.labelWidth},labelAlign(){return this.field.options.labelAlign?this.field.options.labelAlign:this.designer?this.designer.formConfig.labelAlign||"label-left-align":this.formConfig.labelAlign||"label-left-align"},customClass(){return this.field.options.customClass?this.field.options.customClass.join(" "):""},subFormName(){return this.parentWidget?this.parentWidget.options.name:""},subFormItemFlag(){return this.parentWidget?this.parentWidget.type==="sub-form":!1}},created(){},methods:{selectField(t){this.designer&&(this.designer.setSelected(t),this.designer.emitEvent("field-selected",this.parentWidget))},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},removeFieldWidget(){if(this.parentList){const t=this.designer.selectedWidgetName;let n=null;this.parentList.length===1?this.parentWidget&&(n=this.parentWidget):this.parentList.length===1+this.indexOfParentList?n=this.parentList[this.indexOfParentList-1]:n=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(n),this.designer.formWidget.deleteWidgetRef(t),this.designer.emitHistoryChange()})}},getPropName(){return this.subFormItemFlag&&!this.designState?this.subFormName+"."+this.subFormRowIndex+"."+this.field.options.name+"":this.field.options.name}}},_hoisted_1$l={key:0,class:"custom-label"},_hoisted_2$f={key:0,class:"field-action"},_hoisted_3$d=["title"],_hoisted_4$6=["title"],_hoisted_5$5=["title"],_hoisted_6$4=["title"],_hoisted_7$3={key:1,class:"drag-handler background-opacity"},_hoisted_8$1=["title"],_hoisted_9$1={key:0};function _sfc_render$H(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon"),h=vue.resolveComponent("el-tooltip"),g=vue.resolveComponent("el-form-item");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["field-wrapper",{"design-time-bottom-margin":!!this.designer}])},[!!e.field.formItemFlag&&(!e.field.options.hidden||e.designState===!0)?(vue.openBlock(),vue.createBlock(g,{key:0,label:p.label,"label-width":p.labelWidth+"px",title:e.field.options.labelTooltip,rules:e.rules,prop:p.getPropName(),class:vue.normalizeClass([p.selected?"selected":"",p.labelAlign,p.customClass,e.field.options.required?"required":""]),onClick:n[0]||(n[0]=vue.withModifiers(b=>p.selectField(e.field),["stop"]))},{label:vue.withCtx(()=>[e.field.options.labelIconClass?(vue.openBlock(),vue.createElementBlock("span",_hoisted_1$l,[e.field.options.labelIconPosition==="front"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[e.field.options.labelTooltip?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(h,{content:e.field.options.labelTooltip,effect:"light"},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"]),vue.createTextVNode(vue.toDisplayString(p.label),1)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(y,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"]),vue.createTextVNode(vue.toDisplayString(p.label),1)],64))],64)):e.field.options.labelIconPosition==="rear"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.field.options.labelTooltip?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(p.label),1),vue.createVNode(h,{content:e.field.options.labelTooltip,effect:"light"},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])]),_:1},8,["content"])],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createTextVNode(vue.toDisplayString(p.label),1),vue.createVNode(y,{"icon-class":e.field.options.labelIconClass},null,8,["icon-class"])],64))],64)):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)]),default:vue.withCtx(()=>[vue.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},8,["label","label-width","title","rules","prop","class"])):vue.createCommentVNode("",!0),this.designer?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[e.designer.selectedId===e.field.id?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$f,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.selectParentWidget"),onClick:n[1]||(n[1]=vue.withModifiers(b=>p.selectParentWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-back"})],8,_hoisted_3$d),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:0,title:t.i18nt("designer.hint.moveUpWidget"),onClick:n[2]||(n[2]=vue.withModifiers(b=>p.moveUpWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-up"})],8,_hoisted_4$6)):vue.createCommentVNode("",!0),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:1,title:t.i18nt("designer.hint.moveDownWidget"),onClick:n[3]||(n[3]=vue.withModifiers(b=>p.moveDownWidget(e.field),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-down"})],8,_hoisted_5$5)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{title:t.i18nt("designer.hint.remove"),onClick:n[4]||(n[4]=vue.withModifiers((...b)=>p.removeFieldWidget&&p.removeFieldWidget(...b),["stop"]))},[vue.createVNode(y,{"icon-class":"el-delete"})],8,_hoisted_6$4)])):vue.createCommentVNode("",!0),e.designer.selectedId===e.field.id?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$3,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.dragHandler")},[vue.createVNode(y,{"icon-class":"el-drag-move"})],8,_hoisted_8$1),vue.createElementVNode("i",null,vue.toDisplayString(t.i18n2t(`designer.widgetLabel.${e.field.type}`,`extension.widgetLabel.${e.field.type}`)),1),e.field.options.hidden===!0?(vue.openBlock(),vue.createElementBlock("i",_hoisted_9$1,[vue.createVNode(y,{"icon-class":"el-hide"})])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],64)):vue.createCommentVNode("",!0)],2)}var FormItemWrapper=_export_sfc$1(_sfc_main$H,[["render",_sfc_render$H],["__scopeId","data-v-150e0c61"]]),__glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:FormItemWrapper},Symbol.toStringTag,{value:"Module"})),cascaderWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$G={name:"cascader-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{showFullPath(){return this.field.options.showAllLevels===void 0||!!this.field.options.showAllLevels}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$k={class:"full-width-input"};function _sfc_render$G(t,n,e,o,i,p){const y=vue.resolveComponent("el-cascader"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$k,[vue.createVNode(y,{ref:"fieldEditor",options:e.field.options.optionItems,modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,filterable:e.field.options.filterable,placeholder:e.field.options.placeholder||t.i18nt("render.hint.selectPlaceholder"),"show-all-levels":p.showFullPath,props:{checkStrictly:e.field.options.checkStrictly,multiple:e.field.options.multiple,expandTrigger:"hover"},onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["options","modelValue","disabled","size","clearable","filterable","placeholder","show-all-levels","props","onFocus","onBlur","onChange"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var cascaderWidget=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$G],["__scopeId","data-v-ec070d7c"]]),__glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:cascaderWidget},Symbol.toStringTag,{value:"Module"})),checkboxWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$F={name:"checkbox-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$F(t,n,e,o,i,p){const y=vue.resolveComponent("el-checkbox-button"),h=vue.resolveComponent("el-checkbox"),g=vue.resolveComponent("el-checkbox-group"),b=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(b,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(g,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=d=>i.fieldModel=d),disabled:e.field.options.disabled,size:t.widgetSize,onChange:t.handleChangeEvent},{default:vue.withCtx(()=>[e.field.options.buttonStyle?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.field.options.optionItems,(d,a)=>(vue.openBlock(),vue.createBlock(y,{key:a,label:d.value,disabled:d.disabled,border:e.field.options.border,style:vue.normalizeStyle({display:e.field.options.displayStyle})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(e.field.options.optionItems,(d,a)=>(vue.openBlock(),vue.createBlock(h,{key:a,label:d.value,disabled:d.disabled,border:e.field.options.border,style:vue.normalizeStyle({display:e.field.options.displayStyle})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var checkboxWidget=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$F],["__scopeId","data-v-716b0a6b"]]),__glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:checkboxWidget},Symbol.toStringTag,{value:"Module"})),colorWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$E={name:"color-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$E(t,n,e,o,i,p){const y=vue.resolveComponent("el-color-picker"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),size:t.widgetSize,disabled:e.field.options.disabled,onChange:t.handleChangeEvent},null,8,["modelValue","size","disabled","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var colorWidget=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$E],["__scopeId","data-v-8d04bd98"]]),__glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:colorWidget},Symbol.toStringTag,{value:"Module"})),dateRangeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$D={name:"date-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$D(t,n,e,o,i,p){const y=vue.resolveComponent("el-date-picker"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""])},[vue.createVNode(y,{ref:"fieldEditor",type:e.field.options.type,modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,"start-placeholder":e.field.options.startPlaceholder||t.i18nt("render.hint.startDatePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||t.i18nt("render.hint.endDatePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["type","modelValue","disabled","readonly","size","clearable","editable","format","value-format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateRangeWidget=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$D],["__scopeId","data-v-21300a07"]]),__glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:dateRangeWidget},Symbol.toStringTag,{value:"Module"})),dateWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$C={name:"date-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$C(t,n,e,o,i,p){const y=vue.resolveComponent("el-date-picker"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",type:e.field.options.type,modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),class:vue.normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""]),readonly:e.field.options.readonly,disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":e.field.options.valueFormat,placeholder:e.field.options.placeholder||t.i18nt("render.hint.datePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["type","modelValue","class","readonly","disabled","size","clearable","editable","format","value-format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dateWidget=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$C],["__scopeId","data-v-75b85548"]]),__glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:dateWidget},Symbol.toStringTag,{value:"Module"})),dividerWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$B={name:"divider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$B(t,n,e,o,i,p){const y=vue.resolveComponent("el-divider"),h=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",direction:"horizontal","content-position":e.field.options.contentPosition},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(e.field.options.label),1)]),_:1},8,["content-position"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var dividerWidget=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$B],["__scopeId","data-v-09a1b973"]]),__glob_0_6$1=Object.freeze(Object.defineProperty({__proto__:null,default:dividerWidget},Symbol.toStringTag,{value:"Module"})),fileUploadWidget_vue_vue_type_style_index_0_scoped_true_lang="";let selectFileText="'"+translate("render.hint.selectFile")+"'";const _sfc_main$A={name:"file-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{SvgIcon,FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:[],rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],uploadBtnHidden:!1,styleVariables:{"--select-file-action":selectFileText}}},computed:{realUploadURL(){let t=this.field.options.uploadURL;if(!!t&&(t.indexOf("DSV.")>-1||t.indexOf("DSV[")>-1)){let n=this.getGlobalDsv();return console.log("test DSV: ",n),evalFn(this.field.options.uploadURL,n)}return this.field.options.uploadURL}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleFileExceed(){let t=this.field.options.limit;this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}",t))},beforeFileUpload(t){let n=!1,e=t.name.substring(t.name.lastIndexOf(".")+1);if(!!this.field.options&&!!this.field.options.fileTypes){let p=this.field.options.fileTypes;p.length>0&&(n=p.some(y=>e.toLowerCase()===y.toLowerCase()))}if(!n)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+e),!1;let o=!1,i=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(i=this.field.options.fileMaxSize),o=t.size/1024/1024<=i,o?(this.uploadData.key=t.name,this.handleOnBeforeUpload(t)):(this.$message.error(this.i18nt("render.hint.fileSizeExceed")+i+"MB"),!1)},handleOnBeforeUpload(t){if(this.field.options.onBeforeUpload){let e=new Function("file",this.field.options.onBeforeUpload).call(this,t);return typeof e=="boolean"?e:!0}return!0},updateFieldModelAndEmitDataChangeForUpload(t,n,e){let o=deepClone(this.fieldModel);!!n&&!!n.name&&!!n.url?this.fieldModel.push({name:n.name,url:n.url}):!!e&&!!e.name&&!!e.url?this.fieldModel.push({name:e.name,url:e.url}):this.fieldModel=deepClone(t),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,o)},handleFileUpload(t,n,e){if(n.status==="success"){let o=null;this.field.options.onUploadSuccess&&(o=new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,t,n,e)),this.updateFieldModelAndEmitDataChangeForUpload(e,o,t),!!o&&!!o.name?n.name=o.name:n.name=n.name||t.name||t.fileName||t.filename,!!o&&!!o.url?n.url=o.url:n.url=n.url||t.url,this.fileList=deepClone(e),this.uploadBtnHidden=e.length>=this.field.options.limit}},updateFieldModelAndEmitDataChangeForRemove(t,n){let e=deepClone(this.fieldModel);this.fieldModel.splice(t,1),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,e)},removeUploadFile(t,n,e){let o=-1,i=null;this.fileList.forEach((p,y)=>{p.name===t&&(p.url===n||!!e&&p.uid===e)&&(o=y,i=p)}),o>=0&&(this.fileList.splice(o,1),this.updateFieldModelAndEmitDataChangeForRemove(o,this.fileList),this.uploadBtnHidden=this.fileList.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,i,this.fileList))},handleUploadError(t,n,e){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,t,n,e):this.$message({message:this.i18nt("render.hint.uploadError")+t,duration:3e3,type:"error"})}}},_hoisted_1$j={key:0,class:"el-upload__tip"},_hoisted_2$e={class:"upload-file-list"},_hoisted_3$c=["title"],_hoisted_4$5=["href"],_hoisted_5$4=["title"],_hoisted_6$3=["title","onClick"];function _sfc_render$A(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon"),h=vue.resolveComponent("el-upload"),g=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(g,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(h,{ref:"fieldEditor",disabled:e.field.options.disabled,style:vue.normalizeStyle(i.styleVariables),class:vue.normalizeClass(["dynamicPseudoAfter",{hideUploadDiv:i.uploadBtnHidden}]),action:p.realUploadURL,headers:i.uploadHeaders,data:i.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":i.fileList,"show-file-list":e.field.options.showFileList,limit:e.field.options.limit,"on-exceed":p.handleFileExceed,"before-upload":p.beforeFileUpload,"on-success":p.handleFileUpload,"on-error":p.handleUploadError},{tip:vue.withCtx(()=>[e.field.options.uploadTip?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$j,vue.toDisplayString(e.field.options.uploadTip),1)):vue.createCommentVNode("",!0)]),default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":"el-plus"}),n[0]||(n[0]=vue.createElementVNode("i",{class:"el-icon-plus avatar-uploader-icon"},null,-1))]),file:vue.withCtx(({file:b})=>[vue.createElementVNode("div",_hoisted_2$e,[vue.createElementVNode("span",{class:"upload-file-name",title:b.name},vue.toDisplayString(b.name),9,_hoisted_3$c),vue.createElementVNode("a",{href:b.url,download:"",target:"_blank"},[vue.createElementVNode("span",{class:"el-icon-download file-action",title:t.i18nt("render.hint.downloadFile")},[vue.createVNode(y,{"icon-class":"el-download"})],8,_hoisted_5$4)],8,_hoisted_4$5),e.field.options.disabled?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",{key:0,class:"file-action",title:t.i18nt("render.hint.removeFile"),onClick:d=>p.removeUploadFile(b.name,b.url,b.uid)},[vue.createVNode(y,{"icon-class":"el-delete"})],8,_hoisted_6$3))])]),_:1},8,["disabled","style","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-success","on-error"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var fileUploadWidget=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$A],["__scopeId","data-v-b6b1e8a8"]]),__glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:fileUploadWidget},Symbol.toStringTag,{value:"Module"})),htmlTextWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$z={name:"html-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$i=["innerHTML"];function _sfc_render$z(t,n,e,o,i,p){const y=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(y,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",{ref:"fieldEditor",innerHTML:e.field.options.htmlContent},null,8,_hoisted_1$i)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var htmlTextWidget=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$z],["__scopeId","data-v-3d941b4e"]]),__glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:htmlTextWidget},Symbol.toStringTag,{value:"Module"})),inputWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$y={name:"input-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper,SvgIcon},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{inputType(){return this.field.options.type==="number"?"text":this.field.options.type}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$y(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon"),h=vue.resolveComponent("el-button"),g=vue.resolveComponent("el-input"),b=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(b,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(g,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=d=>i.fieldModel=d),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,class:"hide-spin-button",type:p.inputType,"show-password":e.field.options.showPassword,placeholder:e.field.options.placeholder,clearable:e.field.options.clearable,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,"prefix-icon":e.field.options.prefixIcon,"suffix-icon":e.field.options.suffixIcon,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onInput:t.handleInputCustomEvent,onChange:t.handleChangeEvent},vue.createSlots({_:2},[e.field.options.appendButton?{name:"append",fn:vue.withCtx(()=>[vue.createVNode(h,{disabled:e.field.options.disabled||e.field.options.appendButtonDisabled,onClick:t.emitAppendButtonClick},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":e.field.options.buttonIcon},null,8,["icon-class"])]),_:1},8,["disabled","onClick"])]),key:"0"}:void 0]),1032,["modelValue","disabled","readonly","size","type","show-password","placeholder","clearable","minlength","maxlength","show-word-limit","prefix-icon","suffix-icon","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var inputWidget=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$y],["__scopeId","data-v-0aad1a31"]]),__glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:inputWidget},Symbol.toStringTag,{value:"Module"})),numberWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$x={name:"number-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$x(t,n,e,o,i,p){const y=vue.resolveComponent("el-input-number"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),class:"full-width-input",disabled:e.field.options.disabled,size:t.widgetSize,"controls-position":e.field.options.controlsPosition,placeholder:e.field.options.placeholder,min:e.field.options.min,max:e.field.options.max,precision:e.field.options.precision,step:e.field.options.step,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","size","controls-position","placeholder","min","max","precision","step","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var numberWidget=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$x],["__scopeId","data-v-0b9bc82f"]]),__glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:numberWidget},Symbol.toStringTag,{value:"Module"})),pictureUploadWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$w={name:"picture-upload-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper,SvgIcon},data(){return{oldFieldValue:null,fieldModel:[],rules:[],uploadHeaders:{},uploadData:{key:""},fileList:[],fileListBeforeRemove:[],uploadBtnHidden:!1,previewIndex:1}},computed:{previewList(){return this.fileList.map(t=>t.url)},realUploadURL(){let t=this.field.options.uploadURL;if(!!t&&(t.indexOf("DSV.")>-1||t.indexOf("DSV[")>-1)){let n=this.getGlobalDsv();return console.log("test DSV: ",n),evalFn(this.field.options.uploadURL,n)}return this.field.options.uploadURL}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handlePictureExceed(){let t=this.field.options.limit;this.$message.warning(this.i18nt("render.hint.uploadExceed").replace("${uploadLimit}",t))},beforePictureUpload(t){let n=!1;if(!!this.field.options&&!!this.field.options.fileTypes){let i=this.field.options.fileTypes;i.length>0&&(n=i.some(p=>t.type==="image/"+p))}if(!n)return this.$message.error(this.i18nt("render.hint.unsupportedFileType")+t.type),!1;let e=!1,o=5;return!!this.field.options&&!!this.field.options.fileMaxSize&&(o=this.field.options.fileMaxSize),e=t.size/1024/1024<=o,e?(this.uploadData.key=t.name,this.handleOnBeforeUpload(t)):(this.$message.error(this.$("render.hint.fileSizeExceed")+o+"MB"),!1)},handleOnBeforeUpload(t){if(this.field.options.onBeforeUpload){let e=new Function("file",this.field.options.onBeforeUpload).call(this,t);return typeof e=="boolean"?e:!0}return!0},updateFieldModelAndEmitDataChangeForUpload(t,n,e){let o=deepClone(this.fieldModel);!!n&&!!n.name&&!!n.url?this.fieldModel.push({name:n.name,url:n.url}):!!e&&!!e.name&&!!e.url?this.fieldModel.push({name:e.name,url:e.url}):this.fieldModel=deepClone(t),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,o)},handlePictureUpload(t,n,e){if(n.status==="success"){let o=null;this.field.options.onUploadSuccess&&(o=new Function("result","file","fileList",this.field.options.onUploadSuccess).call(this,t,n,e)),this.updateFieldModelAndEmitDataChangeForUpload(e,o,t),this.fileList=deepClone(e),this.uploadBtnHidden=e.length>=this.field.options.limit}},updateFieldModelAndEmitDataChangeForRemove(t){let n=deepClone(this.fieldModel),e=-1;this.fileListBeforeRemove.map((o,i)=>{o.name===t.name&&(o.url===t.url||!!o.uid&&o.uid===t.uid)&&(e=i)}),e>-1&&this.fieldModel.splice(e,1),this.syncUpdateFormModel(this.fieldModel),this.emitFieldDataChange(this.fieldModel,n)},handleBeforeRemove(t){this.fileListBeforeRemove=deepClone(t)},handlePictureRemove(t){this.handleBeforeRemove(this.fileList),this.fileList.splice(this.fileList.indexOf(t),1),this.updateFieldModelAndEmitDataChangeForRemove(t);let n=deepClone(this.fileList);this.uploadBtnHidden=n.length>=this.field.options.limit,this.field.options.onFileRemove&&new Function("file","fileList",this.field.options.onFileRemove).call(this,t,n)},handleUploadError(t,n,e){this.field.options.onUploadError?new Function("error","file","fileList",this.field.options.onUploadError).call(this,t,n,e):this.$message({message:this.i18nt("render.hint.uploadError")+t,duration:3e3,type:"error"})},handlePictureCardPreview({url:t}){this.previewIndex=this.previewList.indexOf(t),this.$refs.imageRef.$el.children[0].click()}}},_hoisted_1$h={class:"el-upload-list__item-status-label"},_hoisted_2$d={class:"el-icon--upload-success",style:{color:"#FFF"}},_hoisted_3$b={class:"el-upload-list__item-actions"},_hoisted_4$4=["onClick"],_hoisted_5$3=["onClick"],_hoisted_6$2={key:0,class:"el-upload__tip"},_hoisted_7$2={class:"uploader-icon"};function _sfc_render$w(t,n,e,o,i,p){const y=vue.resolveComponent("el-image"),h=vue.resolveComponent("svg-icon"),g=vue.resolveComponent("el-upload"),b=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(b,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(g,{ref:"fieldEditor",disabled:e.field.options.disabled,action:p.realUploadURL,headers:i.uploadHeaders,data:i.uploadData,"with-credentials":e.field.options.withCredentials,multiple:e.field.options.multipleSelect,"file-list":i.fileList,"show-file-list":e.field.options.showFileList,"list-type":"picture-card",class:vue.normalizeClass({hideUploadDiv:i.uploadBtnHidden}),limit:e.field.options.limit,"on-exceed":p.handlePictureExceed,"before-upload":p.beforePictureUpload,"on-preview":p.handlePictureCardPreview,"on-success":p.handlePictureUpload,"on-error":p.handleUploadError},{file:vue.withCtx(({file:d})=>[vue.createVNode(y,{ref:"imageRef",style:{width:"100%",height:"100%"},src:d.url,"preview-src-list":p.previewList,"initial-index":i.previewIndex,fit:"cover","preview-teleported":""},null,8,["src","preview-src-list","initial-index"]),vue.createElementVNode("label",_hoisted_1$h,[vue.createElementVNode("i",_hoisted_2$d,[vue.createVNode(h,{class:"","icon-class":"el-check"})])]),vue.createElementVNode("span",_hoisted_3$b,[vue.createElementVNode("span",{class:"el-upload-list__item-preview",onClick:a=>p.handlePictureCardPreview(d)},[vue.createVNode(h,{"icon-class":"el-zoom-in"})],8,_hoisted_4$4),vue.createElementVNode("span",{class:"el-upload-list__item-delete",onClick:a=>p.handlePictureRemove(d)},[vue.createVNode(h,{"icon-class":"el-delete"})],8,_hoisted_5$3)])]),tip:vue.withCtx(()=>[e.field.options.uploadTip?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$2,vue.toDisplayString(e.field.options.uploadTip),1)):vue.createCommentVNode("",!0)]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_7$2,[vue.createVNode(h,{"icon-class":"el-plus"})])]),_:1},8,["disabled","action","headers","data","with-credentials","multiple","file-list","show-file-list","class","limit","on-exceed","before-upload","on-preview","on-success","on-error"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var pictureUploadWidget=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$w],["__scopeId","data-v-3393010d"]]),__glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:pictureUploadWidget},Symbol.toStringTag,{value:"Module"})),radioWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$v={name:"radio-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$v(t,n,e,o,i,p){const y=vue.resolveComponent("el-radio-button"),h=vue.resolveComponent("el-radio"),g=vue.resolveComponent("el-radio-group"),b=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(b,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(g,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=d=>i.fieldModel=d),class:vue.normalizeClass({"radio-group-block":e.field.options.displayStyle==="block"}),disabled:e.field.options.disabled,size:t.widgetSize,onChange:t.handleChangeEvent},{default:vue.withCtx(()=>[e.field.options.buttonStyle?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.field.options.optionItems,(d,a)=>(vue.openBlock(),vue.createBlock(y,{key:a,label:d.value,disabled:d.disabled,border:e.field.options.border,style:vue.normalizeStyle({display:e.field.options.displayStyle})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.label),1)]),_:2},1032,["label","disabled","border","style"]))),128)):(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(e.field.options.optionItems,(d,a)=>(vue.openBlock(),vue.createBlock(h,{key:a,label:d.value,disabled:d.disabled,border:e.field.options.border,style:vue.normalizeStyle({display:e.field.options.displayStyle})},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(d.label),1)]),_:2},1032,["label","disabled","border","style"]))),128))]),_:1},8,["modelValue","class","disabled","size","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var radioWidget=_export_sfc$1(_sfc_main$v,[["render",_sfc_render$v],["__scopeId","data-v-253adc5e"]]),__glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:radioWidget},Symbol.toStringTag,{value:"Module"})),rateWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$u={name:"rate-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$u(t,n,e,o,i,p){const y=vue.resolveComponent("el-rate"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,max:e.field.options.max,"low-threshold":e.field.options.lowThreshold,"high-threshold":e.field.options.highThreshold,"allow-half":e.field.options.allowHalf,"show-text":e.field.options.showText,"show-score":e.field.options.showScore,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","max","low-threshold","high-threshold","allow-half","show-text","show-score","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var rateWidget=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$u],["__scopeId","data-v-409c0e8b"]]),__glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:rateWidget},Symbol.toStringTag,{value:"Module"})),quill={exports:{}};/*!
|
|
8
|
+
* Quill Editor v1.3.7
|
|
9
|
+
* https://quilljs.com/
|
|
10
|
+
* Copyright (c) 2014, Jason Chen
|
|
11
|
+
* Copyright (c) 2013, salesforce.com
|
|
12
|
+
*/(function(t,n){(function(o,i){t.exports=i()})(typeof self!="undefined"?self:commonjsGlobal,function(){return function(e){var o={};function i(p){if(o[p])return o[p].exports;var y=o[p]={i:p,l:!1,exports:{}};return e[p].call(y.exports,y,y.exports,i),y.l=!0,y.exports}return i.m=e,i.c=o,i.d=function(p,y,h){i.o(p,y)||Object.defineProperty(p,y,{configurable:!1,enumerable:!0,get:h})},i.n=function(p){var y=p&&p.__esModule?function(){return p.default}:function(){return p};return i.d(y,"a",y),y},i.o=function(p,y){return Object.prototype.hasOwnProperty.call(p,y)},i.p="",i(i.s=109)}([function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(17),y=i(18),h=i(19),g=i(45),b=i(46),d=i(47),a=i(48),r=i(49),l=i(12),v=i(32),m=i(33),f=i(31),u=i(1),c={Scope:u.Scope,create:u.create,find:u.find,query:u.query,register:u.register,Container:p.default,Format:y.default,Leaf:h.default,Embed:a.default,Scroll:g.default,Block:d.default,Inline:b.default,Text:r.default,Attributor:{Attribute:l.default,Class:v.default,Style:m.default,Store:f.default}};o.default=c},function(e,o,i){var p=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,c){u.__proto__=c}||function(u,c){for(var _ in c)c.hasOwnProperty(_)&&(u[_]=c[_])};return function(u,c){f(u,c);function _(){this.constructor=u}u.prototype=c===null?Object.create(c):(_.prototype=c.prototype,new _)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=function(f){p(u,f);function u(c){var _=this;return c="[Parchment] "+c,_=f.call(this,c)||this,_.message=c,_.name=_.constructor.name,_}return u}(Error);o.ParchmentError=y;var h={},g={},b={},d={};o.DATA_KEY="__blot";var a;(function(f){f[f.TYPE=3]="TYPE",f[f.LEVEL=12]="LEVEL",f[f.ATTRIBUTE=13]="ATTRIBUTE",f[f.BLOT=14]="BLOT",f[f.INLINE=7]="INLINE",f[f.BLOCK=11]="BLOCK",f[f.BLOCK_BLOT=10]="BLOCK_BLOT",f[f.INLINE_BLOT=6]="INLINE_BLOT",f[f.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",f[f.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",f[f.ANY=15]="ANY"})(a=o.Scope||(o.Scope={}));function r(f,u){var c=v(f);if(c==null)throw new y("Unable to create "+f+" blot");var _=c,s=f instanceof Node||f.nodeType===Node.TEXT_NODE?f:_.create(u);return new _(s,u)}o.create=r;function l(f,u){return u===void 0&&(u=!1),f==null?null:f[o.DATA_KEY]!=null?f[o.DATA_KEY].blot:u?l(f.parentNode,u):null}o.find=l;function v(f,u){u===void 0&&(u=a.ANY);var c;if(typeof f=="string")c=d[f]||h[f];else if(f instanceof Text||f.nodeType===Node.TEXT_NODE)c=d.text;else if(typeof f=="number")f&a.LEVEL&a.BLOCK?c=d.block:f&a.LEVEL&a.INLINE&&(c=d.inline);else if(f instanceof HTMLElement){var _=(f.getAttribute("class")||"").split(/\s+/);for(var s in _)if(c=g[_[s]],c)break;c=c||b[f.tagName]}return c==null?null:u&a.LEVEL&c.scope&&u&a.TYPE&c.scope?c:null}o.query=v;function m(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];if(f.length>1)return f.map(function(s){return m(s)});var c=f[0];if(typeof c.blotName!="string"&&typeof c.attrName!="string")throw new y("Invalid definition");if(c.blotName==="abstract")throw new y("Cannot register abstract class");if(d[c.blotName||c.attrName]=c,typeof c.keyName=="string")h[c.keyName]=c;else if(c.className!=null&&(g[c.className]=c),c.tagName!=null){Array.isArray(c.tagName)?c.tagName=c.tagName.map(function(s){return s.toUpperCase()}):c.tagName=c.tagName.toUpperCase();var _=Array.isArray(c.tagName)?c.tagName:[c.tagName];_.forEach(function(s){(b[s]==null||c.className==null)&&(b[s]=c)})}return c}o.register=m},function(e,o,i){var p=i(51),y=i(11),h=i(3),g=i(20),b=String.fromCharCode(0),d=function(a){Array.isArray(a)?this.ops=a:a!=null&&Array.isArray(a.ops)?this.ops=a.ops:this.ops=[]};d.prototype.insert=function(a,r){var l={};return a.length===0?this:(l.insert=a,r!=null&&typeof r=="object"&&Object.keys(r).length>0&&(l.attributes=r),this.push(l))},d.prototype.delete=function(a){return a<=0?this:this.push({delete:a})},d.prototype.retain=function(a,r){if(a<=0)return this;var l={retain:a};return r!=null&&typeof r=="object"&&Object.keys(r).length>0&&(l.attributes=r),this.push(l)},d.prototype.push=function(a){var r=this.ops.length,l=this.ops[r-1];if(a=h(!0,{},a),typeof l=="object"){if(typeof a.delete=="number"&&typeof l.delete=="number")return this.ops[r-1]={delete:l.delete+a.delete},this;if(typeof l.delete=="number"&&a.insert!=null&&(r-=1,l=this.ops[r-1],typeof l!="object"))return this.ops.unshift(a),this;if(y(a.attributes,l.attributes)){if(typeof a.insert=="string"&&typeof l.insert=="string")return this.ops[r-1]={insert:l.insert+a.insert},typeof a.attributes=="object"&&(this.ops[r-1].attributes=a.attributes),this;if(typeof a.retain=="number"&&typeof l.retain=="number")return this.ops[r-1]={retain:l.retain+a.retain},typeof a.attributes=="object"&&(this.ops[r-1].attributes=a.attributes),this}}return r===this.ops.length?this.ops.push(a):this.ops.splice(r,0,a),this},d.prototype.chop=function(){var a=this.ops[this.ops.length-1];return a&&a.retain&&!a.attributes&&this.ops.pop(),this},d.prototype.filter=function(a){return this.ops.filter(a)},d.prototype.forEach=function(a){this.ops.forEach(a)},d.prototype.map=function(a){return this.ops.map(a)},d.prototype.partition=function(a){var r=[],l=[];return this.forEach(function(v){var m=a(v)?r:l;m.push(v)}),[r,l]},d.prototype.reduce=function(a,r){return this.ops.reduce(a,r)},d.prototype.changeLength=function(){return this.reduce(function(a,r){return r.insert?a+g.length(r):r.delete?a-r.delete:a},0)},d.prototype.length=function(){return this.reduce(function(a,r){return a+g.length(r)},0)},d.prototype.slice=function(a,r){a=a||0,typeof r!="number"&&(r=1/0);for(var l=[],v=g.iterator(this.ops),m=0;m<r&&v.hasNext();){var f;m<a?f=v.next(a-m):(f=v.next(r-m),l.push(f)),m+=g.length(f)}return new d(l)},d.prototype.compose=function(a){var r=g.iterator(this.ops),l=g.iterator(a.ops),v=[],m=l.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var f=m.retain;r.peekType()==="insert"&&r.peekLength()<=f;)f-=r.peekLength(),v.push(r.next());m.retain-f>0&&l.next(m.retain-f)}for(var u=new d(v);r.hasNext()||l.hasNext();)if(l.peekType()==="insert")u.push(l.next());else if(r.peekType()==="delete")u.push(r.next());else{var c=Math.min(r.peekLength(),l.peekLength()),_=r.next(c),s=l.next(c);if(typeof s.retain=="number"){var w={};typeof _.retain=="number"?w.retain=c:w.insert=_.insert;var L=g.attributes.compose(_.attributes,s.attributes,typeof _.retain=="number");if(L&&(w.attributes=L),u.push(w),!l.hasNext()&&y(u.ops[u.ops.length-1],w)){var E=new d(r.rest());return u.concat(E).chop()}}else typeof s.delete=="number"&&typeof _.retain=="number"&&u.push(s)}return u.chop()},d.prototype.concat=function(a){var r=new d(this.ops.slice());return a.ops.length>0&&(r.push(a.ops[0]),r.ops=r.ops.concat(a.ops.slice(1))),r},d.prototype.diff=function(a,r){if(this.ops===a.ops)return new d;var l=[this,a].map(function(c){return c.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:b;var s=c===a?"on":"with";throw new Error("diff() called "+s+" non-document")}).join("")}),v=new d,m=p(l[0],l[1],r),f=g.iterator(this.ops),u=g.iterator(a.ops);return m.forEach(function(c){for(var _=c[1].length;_>0;){var s=0;switch(c[0]){case p.INSERT:s=Math.min(u.peekLength(),_),v.push(u.next(s));break;case p.DELETE:s=Math.min(_,f.peekLength()),f.next(s),v.delete(s);break;case p.EQUAL:s=Math.min(f.peekLength(),u.peekLength(),_);var w=f.next(s),L=u.next(s);y(w.insert,L.insert)?v.retain(s,g.attributes.diff(w.attributes,L.attributes)):v.push(L).delete(s);break}_-=s}}),v.chop()},d.prototype.eachLine=function(a,r){r=r||`
|
|
13
|
+
`;for(var l=g.iterator(this.ops),v=new d,m=0;l.hasNext();){if(l.peekType()!=="insert")return;var f=l.peek(),u=g.length(f)-l.peekLength(),c=typeof f.insert=="string"?f.insert.indexOf(r,u)-u:-1;if(c<0)v.push(l.next());else if(c>0)v.push(l.next(c));else{if(a(v,l.next(1).attributes||{},m)===!1)return;m+=1,v=new d}}v.length()>0&&a(v,{},m)},d.prototype.transform=function(a,r){if(r=!!r,typeof a=="number")return this.transformPosition(a,r);for(var l=g.iterator(this.ops),v=g.iterator(a.ops),m=new d;l.hasNext()||v.hasNext();)if(l.peekType()==="insert"&&(r||v.peekType()!=="insert"))m.retain(g.length(l.next()));else if(v.peekType()==="insert")m.push(v.next());else{var f=Math.min(l.peekLength(),v.peekLength()),u=l.next(f),c=v.next(f);if(u.delete)continue;c.delete?m.push(c):m.retain(f,g.attributes.transform(u.attributes,c.attributes,r))}return m.chop()},d.prototype.transformPosition=function(a,r){r=!!r;for(var l=g.iterator(this.ops),v=0;l.hasNext()&&v<=a;){var m=l.peekLength(),f=l.peekType();if(l.next(),f==="delete"){a-=Math.min(m,a-v);continue}else f==="insert"&&(v<a||!r)&&(a+=m);v+=m}return a},e.exports=d},function(e,o){var i=Object.prototype.hasOwnProperty,p=Object.prototype.toString,y=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=function(l){return typeof Array.isArray=="function"?Array.isArray(l):p.call(l)==="[object Array]"},b=function(l){if(!l||p.call(l)!=="[object Object]")return!1;var v=i.call(l,"constructor"),m=l.constructor&&l.constructor.prototype&&i.call(l.constructor.prototype,"isPrototypeOf");if(l.constructor&&!v&&!m)return!1;var f;for(f in l);return typeof f=="undefined"||i.call(l,f)},d=function(l,v){y&&v.name==="__proto__"?y(l,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):l[v.name]=v.newValue},a=function(l,v){if(v==="__proto__")if(i.call(l,v)){if(h)return h(l,v).value}else return;return l[v]};e.exports=function r(){var l,v,m,f,u,c,_=arguments[0],s=1,w=arguments.length,L=!1;for(typeof _=="boolean"&&(L=_,_=arguments[1]||{},s=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});s<w;++s)if(l=arguments[s],l!=null)for(v in l)m=a(_,v),f=a(l,v),_!==f&&(L&&f&&(b(f)||(u=g(f)))?(u?(u=!1,c=m&&g(m)?m:[]):c=m&&b(m)?m:{},d(_,{name:v,newValue:r(L,c,f)})):typeof f!="undefined"&&d(_,{name:v,newValue:f}));return _}},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BlockEmbed=o.bubbleFormats=void 0;var p=function(){function x(O,F){for(var M=0;M<F.length;M++){var B=F[M];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(O,B.key,B)}}return function(O,F,M){return F&&x(O.prototype,F),M&&x(O,M),O}}(),y=function x(O,F,M){O===null&&(O=Function.prototype);var B=Object.getOwnPropertyDescriptor(O,F);if(B===void 0){var z=Object.getPrototypeOf(O);return z===null?void 0:x(z,F,M)}else{if("value"in B)return B.value;var q=B.get;return q===void 0?void 0:q.call(M)}},h=i(3),g=_(h),b=i(2),d=_(b),a=i(0),r=_(a),l=i(16),v=_(l),m=i(6),f=_(m),u=i(7),c=_(u);function _(x){return x&&x.__esModule?x:{default:x}}function s(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}function w(x,O){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:x}function L(x,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);x.prototype=Object.create(O&&O.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(x,O):x.__proto__=O)}var E=1,S=function(x){L(O,x);function O(){return s(this,O),w(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return p(O,[{key:"attach",value:function(){y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"attach",this).call(this),this.attributes=new r.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,g.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(M,B){var z=r.default.query(M,r.default.Scope.BLOCK_ATTRIBUTE);z!=null&&this.attributes.attribute(z,B)}},{key:"formatAt",value:function(M,B,z,q){this.format(z,q)}},{key:"insertAt",value:function(M,B,z){if(typeof B=="string"&&B.endsWith(`
|
|
14
|
+
`)){var q=r.default.create(A.blotName);this.parent.insertBefore(q,M===0?this:this.next),q.insertAt(0,B.slice(0,-1))}else y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,B,z)}}]),O}(r.default.Embed);S.scope=r.default.Scope.BLOCK_BLOT;var A=function(x){L(O,x);function O(F){s(this,O);var M=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F));return M.cache={},M}return p(O,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(r.default.Leaf).reduce(function(M,B){return B.length()===0?M:M.insert(B.value(),C(B))},new d.default).insert(`
|
|
15
|
+
`,C(this))),this.cache.delta}},{key:"deleteAt",value:function(M,B){y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"deleteAt",this).call(this,M,B),this.cache={}}},{key:"formatAt",value:function(M,B,z,q){B<=0||(r.default.query(z,r.default.Scope.BLOCK)?M+B===this.length()&&this.format(z,q):y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"formatAt",this).call(this,M,Math.min(B,this.length()-M-1),z,q),this.cache={})}},{key:"insertAt",value:function(M,B,z){if(z!=null)return y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,M,B,z);if(B.length!==0){var q=B.split(`
|
|
16
|
+
`),G=q.shift();G.length>0&&(M<this.length()-1||this.children.tail==null?y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertAt",this).call(this,Math.min(M,this.length()-1),G):this.children.tail.insertAt(this.children.tail.length(),G),this.cache={});var j=this;q.reduce(function(P,k){return j=j.split(P,!0),j.insertAt(0,k),k.length},M+G.length)}}},{key:"insertBefore",value:function(M,B){var z=this.children.head;y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,M,B),z instanceof v.default&&z.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(M,B){y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"moveChildren",this).call(this,M,B),this.cache={}}},{key:"optimize",value:function(M){y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,M),this.cache={}}},{key:"path",value:function(M){return y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"path",this).call(this,M,!0)}},{key:"removeChild",value:function(M){y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"removeChild",this).call(this,M),this.cache={}}},{key:"split",value:function(M){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(B&&(M===0||M>=this.length()-E)){var z=this.clone();return M===0?(this.parent.insertBefore(z,this),this):(this.parent.insertBefore(z,this.next),z)}else{var q=y(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"split",this).call(this,M,B);return this.cache={},q}}}]),O}(r.default.Block);A.blotName="block",A.tagName="P",A.defaultChild="break",A.allowedChildren=[f.default,r.default.Embed,c.default];function C(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return x==null||(typeof x.formats=="function"&&(O=(0,g.default)(O,x.formats())),x.parent==null||x.parent.blotName=="scroll"||x.parent.statics.scope!==x.statics.scope)?O:C(x.parent,O)}o.bubbleFormats=C,o.BlockEmbed=S,o.default=A},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.overload=o.expandConfig=void 0;var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},y=function(){function j(P,k){var T=[],R=!0,D=!1,V=void 0;try{for(var N=P[Symbol.iterator](),I;!(R=(I=N.next()).done)&&(T.push(I.value),!(k&&T.length===k));R=!0);}catch(H){D=!0,V=H}finally{try{!R&&N.return&&N.return()}finally{if(D)throw V}}return T}return function(P,k){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return j(P,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function j(P,k){for(var T=0;T<k.length;T++){var R=k[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,k,T){return k&&j(P.prototype,k),T&&j(P,T),P}}();i(50);var g=i(2),b=C(g),d=i(14),a=C(d),r=i(8),l=C(r),v=i(9),m=C(v),f=i(0),u=C(f),c=i(15),_=C(c),s=i(3),w=C(s),L=i(10),E=C(L),S=i(34),A=C(S);function C(j){return j&&j.__esModule?j:{default:j}}function x(j,P,k){return P in j?Object.defineProperty(j,P,{value:k,enumerable:!0,configurable:!0,writable:!0}):j[P]=k,j}function O(j,P){if(!(j instanceof P))throw new TypeError("Cannot call a class as a function")}var F=(0,E.default)("quill"),M=function(){h(j,null,[{key:"debug",value:function(k){k===!0&&(k="log"),E.default.level(k)}},{key:"find",value:function(k){return k.__quill||u.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&F.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,T){var R=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var V=k.attrName||k.blotName;typeof V=="string"?this.register("formats/"+V,k,T):Object.keys(k).forEach(function(N){R.register(N,k[N],T)})}else this.imports[k]!=null&&!D&&F.warn("Overwriting "+k+" with",T),this.imports[k]=T,(k.startsWith("blots/")||k.startsWith("formats/"))&&T.blotName!=="abstract"?u.default.register(T):k.startsWith("modules")&&typeof T.register=="function"&&T.register()}}]);function j(P){var k=this,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(O(this,j),this.options=B(P,T),this.container=this.options.container,this.container==null)return F.error("Invalid Quill container",P);this.options.debug&&j.debug(this.options.debug);var R=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new a.default(this.scroll),this.selection=new _.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,function(V){V===l.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(l.default.events.SCROLL_UPDATE,function(V,N){var I=k.selection.lastRange,H=I&&I.length===0?I.index:void 0;z.call(k,function(){return k.editor.update(null,N,H)},V)});var D=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+R+"<p><br></p></div>");this.setContents(D),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return h(j,[{key:"addContainer",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var R=k;k=document.createElement("div"),k.classList.add(R)}return this.container.insertBefore(k,T),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,T,R){var D=this,V=q(k,T,R),N=y(V,4);return k=N[0],T=N[1],R=N[3],z.call(this,function(){return D.editor.deleteText(k,T)},R,k,-1*T)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,T){var R=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.default.sources.API;return z.call(this,function(){var V=R.getSelection(!0),N=new b.default;if(V==null)return N;if(u.default.query(k,u.default.Scope.BLOCK))N=R.editor.formatLine(V.index,V.length,x({},k,T));else{if(V.length===0)return R.selection.format(k,T),N;N=R.editor.formatText(V.index,V.length,x({},k,T))}return R.setSelection(V,l.default.sources.SILENT),N},D)}},{key:"formatLine",value:function(k,T,R,D,V){var N=this,I=void 0,H=q(k,T,R,D,V),W=y(H,4);return k=W[0],T=W[1],I=W[2],V=W[3],z.call(this,function(){return N.editor.formatLine(k,T,I)},V,k,0)}},{key:"formatText",value:function(k,T,R,D,V){var N=this,I=void 0,H=q(k,T,R,D,V),W=y(H,4);return k=W[0],T=W[1],I=W[2],V=W[3],z.call(this,function(){return N.editor.formatText(k,T,I)},V,k,0)}},{key:"getBounds",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=void 0;typeof k=="number"?R=this.selection.getBounds(k,T):R=this.selection.getBounds(k.index,k.length);var D=this.container.getBoundingClientRect();return{bottom:R.bottom-D.top,height:R.height,left:R.left-D.left,right:R.right-D.left,top:R.top-D.top,width:R.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,R=q(k,T),D=y(R,2);return k=D[0],T=D[1],this.editor.getContents(k,T)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,T):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,T)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,R=q(k,T),D=y(R,2);return k=D[0],T=D[1],this.editor.getText(k,T)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,T,R){var D=this,V=arguments.length>3&&arguments[3]!==void 0?arguments[3]:j.sources.API;return z.call(this,function(){return D.editor.insertEmbed(k,T,R)},V,k)}},{key:"insertText",value:function(k,T,R,D,V){var N=this,I=void 0,H=q(k,0,R,D,V),W=y(H,4);return k=W[0],I=W[2],V=W[3],z.call(this,function(){return N.editor.insertText(k,T,I)},V,k,T.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,T,R){this.clipboard.dangerouslyPasteHTML(k,T,R)}},{key:"removeFormat",value:function(k,T,R){var D=this,V=q(k,T,R),N=y(V,4);return k=N[0],T=N[1],R=N[3],z.call(this,function(){return D.editor.removeFormat(k,T)},R,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var T=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return z.call(this,function(){k=new b.default(k);var D=T.getLength(),V=T.editor.deleteText(0,D),N=T.editor.applyDelta(k),I=N.ops[N.ops.length-1];I!=null&&typeof I.insert=="string"&&I.insert[I.insert.length-1]===`
|
|
17
|
+
`&&(T.editor.deleteText(T.getLength()-1,1),N.delete(1));var H=V.compose(N);return H},R)}},{key:"setSelection",value:function(k,T,R){if(k==null)this.selection.setRange(null,T||j.sources.API);else{var D=q(k,T,R),V=y(D,4);k=V[0],T=V[1],R=V[3],this.selection.setRange(new c.Range(k,T),R),R!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API,R=new b.default().insert(k);return this.setContents(R,T)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.default.sources.USER,T=this.scroll.update(k);return this.selection.update(k),T}},{key:"updateContents",value:function(k){var T=this,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.default.sources.API;return z.call(this,function(){return k=new b.default(k),T.editor.applyDelta(k,R)},R,!0)}}]),j}();M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=l.default.events,M.sources=l.default.sources,M.version="1.3.7",M.imports={delta:b.default,parchment:u.default,"core/module":m.default,"core/theme":A.default};function B(j,P){if(P=(0,w.default)(!0,{container:j,modules:{clipboard:!0,keyboard:!0,history:!0}},P),!P.theme||P.theme===M.DEFAULTS.theme)P.theme=A.default;else if(P.theme=M.import("themes/"+P.theme),P.theme==null)throw new Error("Invalid theme "+P.theme+". Did you register it?");var k=(0,w.default)(!0,{},P.theme.DEFAULTS);[k,P].forEach(function(D){D.modules=D.modules||{},Object.keys(D.modules).forEach(function(V){D.modules[V]===!0&&(D.modules[V]={})})});var T=Object.keys(k.modules).concat(Object.keys(P.modules)),R=T.reduce(function(D,V){var N=M.import("modules/"+V);return N==null?F.error("Cannot load "+V+" module. Are you sure you registered it?"):D[V]=N.DEFAULTS||{},D},{});return P.modules!=null&&P.modules.toolbar&&P.modules.toolbar.constructor!==Object&&(P.modules.toolbar={container:P.modules.toolbar}),P=(0,w.default)(!0,{},M.DEFAULTS,{modules:R},k,P),["bounds","container","scrollingContainer"].forEach(function(D){typeof P[D]=="string"&&(P[D]=document.querySelector(P[D]))}),P.modules=Object.keys(P.modules).reduce(function(D,V){return P.modules[V]&&(D[V]=P.modules[V]),D},{}),P}function z(j,P,k,T){if(this.options.strict&&!this.isEnabled()&&P===l.default.sources.USER)return new b.default;var R=k==null?null:this.getSelection(),D=this.editor.delta,V=j();if(R!=null&&(k===!0&&(k=R.index),T==null?R=G(R,V,P):T!==0&&(R=G(R,k,T,P)),this.setSelection(R,l.default.sources.SILENT)),V.length()>0){var N,I=[l.default.events.TEXT_CHANGE,V,D,P];if((N=this.emitter).emit.apply(N,[l.default.events.EDITOR_CHANGE].concat(I)),P!==l.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,I)}}return V}function q(j,P,k,T,R){var D={};return typeof j.index=="number"&&typeof j.length=="number"?typeof P!="number"?(R=T,T=k,k=P,P=j.length,j=j.index):(P=j.length,j=j.index):typeof P!="number"&&(R=T,T=k,k=P,P=0),(typeof k=="undefined"?"undefined":p(k))==="object"?(D=k,R=T):typeof k=="string"&&(T!=null?D[k]=T:R=k),R=R||l.default.sources.API,[j,P,D,R]}function G(j,P,k,T){if(j==null)return null;var R=void 0,D=void 0;if(P instanceof b.default){var V=[j.index,j.index+j.length].map(function(W){return P.transformPosition(W,T!==l.default.sources.USER)}),N=y(V,2);R=N[0],D=N[1]}else{var I=[j.index,j.index+j.length].map(function(W){return W<P||W===P&&T===l.default.sources.USER?W:k>=0?W+k:Math.max(P,W+k)}),H=y(I,2);R=H[0],D=H[1]}return new c.Range(R,D-R)}o.expandConfig=B,o.overload=q,o.default=M},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function f(u,c){for(var _=0;_<c.length;_++){var s=c[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,c,_){return c&&f(u.prototype,c),_&&f(u,_),u}}(),y=function f(u,c,_){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,c);if(s===void 0){var w=Object.getPrototypeOf(u);return w===null?void 0:f(w,c,_)}else{if("value"in s)return s.value;var L=s.get;return L===void 0?void 0:L.call(_)}},h=i(7),g=a(h),b=i(0),d=a(b);function a(f){return f&&f.__esModule?f:{default:f}}function r(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function l(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function v(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var m=function(f){v(u,f);function u(){return r(this,u),l(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return p(u,[{key:"formatAt",value:function(_,s,w,L){if(u.compare(this.statics.blotName,w)<0&&d.default.query(w,d.default.Scope.BLOT)){var E=this.isolate(_,s);L&&E.wrap(w,L)}else y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"formatAt",this).call(this,_,s,w,L)}},{key:"optimize",value:function(_){if(y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,_),this.parent instanceof u&&u.compare(this.statics.blotName,this.parent.statics.blotName)>0){var s=this.parent.isolate(this.offset(),this.length());this.moveChildren(s),s.wrap(this)}}}],[{key:"compare",value:function(_,s){var w=u.order.indexOf(_),L=u.order.indexOf(s);return w>=0||L>=0?w-L:_===s?0:_<s?-1:1}}]),u}(d.default.Inline);m.allowedChildren=[m,d.default.Embed,g.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],o.default=m},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(0),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function b(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:r}function d(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}var a=function(r){d(l,r);function l(){return g(this,l),b(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(y.default.Text);o.default=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function c(_,s){for(var w=0;w<s.length;w++){var L=s[w];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(_,L.key,L)}}return function(_,s,w){return s&&c(_.prototype,s),w&&c(_,w),_}}(),y=function c(_,s,w){_===null&&(_=Function.prototype);var L=Object.getOwnPropertyDescriptor(_,s);if(L===void 0){var E=Object.getPrototypeOf(_);return E===null?void 0:c(E,s,w)}else{if("value"in L)return L.value;var S=L.get;return S===void 0?void 0:S.call(w)}},h=i(54),g=a(h),b=i(10),d=a(b);function a(c){return c&&c.__esModule?c:{default:c}}function r(c,_){if(!(c instanceof _))throw new TypeError("Cannot call a class as a function")}function l(c,_){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:c}function v(c,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);c.prototype=Object.create(_&&_.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(c,_):c.__proto__=_)}var m=(0,d.default)("quill:events"),f=["selectionchange","mousedown","mouseup","click"];f.forEach(function(c){document.addEventListener(c,function(){for(var _=arguments.length,s=Array(_),w=0;w<_;w++)s[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(L){if(L.__quill&&L.__quill.emitter){var E;(E=L.__quill.emitter).handleDOM.apply(E,s)}})})});var u=function(c){v(_,c);function _(){r(this,_);var s=l(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return s.listeners={},s.on("error",m.error),s}return p(_,[{key:"emit",value:function(){m.log.apply(m,arguments),y(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var L=arguments.length,E=Array(L>1?L-1:0),S=1;S<L;S++)E[S-1]=arguments[S];(this.listeners[w.type]||[]).forEach(function(A){var C=A.node,x=A.handler;(w.target===C||C.contains(w.target))&&x.apply(void 0,[w].concat(E))})}},{key:"listenDOM",value:function(w,L,E){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:L,handler:E})}}]),_}(g.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},o.default=u},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});function p(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}var y=function h(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};p(this,h),this.quill=g,this.options=b};y.DEFAULTS={},o.default=y},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=["error","warn","log","info"],y="warn";function h(b){if(p.indexOf(b)<=p.indexOf(y)){for(var d,a=arguments.length,r=Array(a>1?a-1:0),l=1;l<a;l++)r[l-1]=arguments[l];(d=console)[b].apply(d,r)}}function g(b){return p.reduce(function(d,a){return d[a]=h.bind(console,a,b),d},{})}h.level=g.level=function(b){y=b},o.default=g},function(e,o,i){var p=Array.prototype.slice,y=i(52),h=i(53),g=e.exports=function(r,l,v){return v||(v={}),r===l?!0:r instanceof Date&&l instanceof Date?r.getTime()===l.getTime():!r||!l||typeof r!="object"&&typeof l!="object"?v.strict?r===l:r==l:a(r,l,v)};function b(r){return r==null}function d(r){return!(!r||typeof r!="object"||typeof r.length!="number"||typeof r.copy!="function"||typeof r.slice!="function"||r.length>0&&typeof r[0]!="number")}function a(r,l,v){var m,f;if(b(r)||b(l)||r.prototype!==l.prototype)return!1;if(h(r))return h(l)?(r=p.call(r),l=p.call(l),g(r,l,v)):!1;if(d(r)){if(!d(l)||r.length!==l.length)return!1;for(m=0;m<r.length;m++)if(r[m]!==l[m])return!1;return!0}try{var u=y(r),c=y(l)}catch{return!1}if(u.length!=c.length)return!1;for(u.sort(),c.sort(),m=u.length-1;m>=0;m--)if(u[m]!=c[m])return!1;for(m=u.length-1;m>=0;m--)if(f=u[m],!g(r[f],l[f],v))return!1;return typeof r==typeof l}},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(1),y=function(){function h(g,b,d){d===void 0&&(d={}),this.attrName=g,this.keyName=b;var a=p.Scope.TYPE&p.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&p.Scope.LEVEL|a:this.scope=p.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return h.keys=function(g){return[].map.call(g.attributes,function(b){return b.name})},h.prototype.add=function(g,b){return this.canAdd(g,b)?(g.setAttribute(this.keyName,b),!0):!1},h.prototype.canAdd=function(g,b){var d=p.query(g,p.Scope.BLOT&(this.scope|p.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof b=="string"?this.whitelist.indexOf(b.replace(/["']/g,""))>-1:this.whitelist.indexOf(b)>-1},h.prototype.remove=function(g){g.removeAttribute(this.keyName)},h.prototype.value=function(g){var b=g.getAttribute(this.keyName);return this.canAdd(g,b)&&b?b:""},h}();o.default=y},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Code=void 0;var p=function(){function S(A,C){var x=[],O=!0,F=!1,M=void 0;try{for(var B=A[Symbol.iterator](),z;!(O=(z=B.next()).done)&&(x.push(z.value),!(C&&x.length===C));O=!0);}catch(q){F=!0,M=q}finally{try{!O&&B.return&&B.return()}finally{if(F)throw M}}return x}return function(A,C){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return S(A,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function S(A,C){for(var x=0;x<C.length;x++){var O=C[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,x){return C&&S(A.prototype,C),x&&S(A,x),A}}(),h=function S(A,C,x){A===null&&(A=Function.prototype);var O=Object.getOwnPropertyDescriptor(A,C);if(O===void 0){var F=Object.getPrototypeOf(A);return F===null?void 0:S(F,C,x)}else{if("value"in O)return O.value;var M=O.get;return M===void 0?void 0:M.call(x)}},g=i(2),b=c(g),d=i(0),a=c(d),r=i(4),l=c(r),v=i(6),m=c(v),f=i(7),u=c(f);function c(S){return S&&S.__esModule?S:{default:S}}function _(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function s(S,A){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:S}function w(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(S,A):S.__proto__=A)}var L=function(S){w(A,S);function A(){return _(this,A),s(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return A}(m.default);L.blotName="code",L.tagName="CODE";var E=function(S){w(A,S);function A(){return _(this,A),s(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return y(A,[{key:"delta",value:function(){var x=this,O=this.domNode.textContent;return O.endsWith(`
|
|
18
|
+
`)&&(O=O.slice(0,-1)),O.split(`
|
|
19
|
+
`).reduce(function(F,M){return F.insert(M).insert(`
|
|
20
|
+
`,x.formats())},new b.default)}},{key:"format",value:function(x,O){if(!(x===this.statics.blotName&&O)){var F=this.descendant(u.default,this.length()-1),M=p(F,1),B=M[0];B!=null&&B.deleteAt(B.length()-1,1),h(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"format",this).call(this,x,O)}}},{key:"formatAt",value:function(x,O,F,M){if(O!==0&&!(a.default.query(F,a.default.Scope.BLOCK)==null||F===this.statics.blotName&&M===this.statics.formats(this.domNode))){var B=this.newlineIndex(x);if(!(B<0||B>=x+O)){var z=this.newlineIndex(x,!0)+1,q=B-z+1,G=this.isolate(z,q),j=G.next;G.format(F,M),j instanceof A&&j.formatAt(0,x-z+O-q,F,M)}}}},{key:"insertAt",value:function(x,O,F){if(F==null){var M=this.descendant(u.default,x),B=p(M,2),z=B[0],q=B[1];z.insertAt(q,O)}}},{key:"length",value:function(){var x=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
21
|
+
`)?x:x+1}},{key:"newlineIndex",value:function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(O)return this.domNode.textContent.slice(0,x).lastIndexOf(`
|
|
22
|
+
`);var F=this.domNode.textContent.slice(x).indexOf(`
|
|
23
|
+
`);return F>-1?x+F:-1}},{key:"optimize",value:function(x){this.domNode.textContent.endsWith(`
|
|
24
|
+
`)||this.appendChild(a.default.create("text",`
|
|
25
|
+
`)),h(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"optimize",this).call(this,x);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===O.statics.formats(O.domNode)&&(O.optimize(x),O.moveChildren(this),O.remove())}},{key:"replace",value:function(x){h(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replace",this).call(this,x),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(O){var F=a.default.find(O);F==null?O.parentNode.removeChild(O):F instanceof a.default.Embed?F.remove():F.unwrap()})}}],[{key:"create",value:function(x){var O=h(A.__proto__||Object.getPrototypeOf(A),"create",this).call(this,x);return O.setAttribute("spellcheck",!1),O}},{key:"formats",value:function(){return!0}}]),A}(l.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",o.Code=L,o.default=E},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},y=function(){function j(P,k){var T=[],R=!0,D=!1,V=void 0;try{for(var N=P[Symbol.iterator](),I;!(R=(I=N.next()).done)&&(T.push(I.value),!(k&&T.length===k));R=!0);}catch(H){D=!0,V=H}finally{try{!R&&N.return&&N.return()}finally{if(D)throw V}}return T}return function(P,k){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return j(P,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function j(P,k){for(var T=0;T<k.length;T++){var R=k[T];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,k,T){return k&&j(P.prototype,k),T&&j(P,T),P}}(),g=i(2),b=O(g),d=i(20),a=O(d),r=i(0),l=O(r),v=i(13),m=O(v),f=i(24),u=O(f),c=i(4),_=O(c),s=i(16),w=O(s),L=i(21),E=O(L),S=i(11),A=O(S),C=i(3),x=O(C);function O(j){return j&&j.__esModule?j:{default:j}}function F(j,P,k){return P in j?Object.defineProperty(j,P,{value:k,enumerable:!0,configurable:!0,writable:!0}):j[P]=k,j}function M(j,P){if(!(j instanceof P))throw new TypeError("Cannot call a class as a function")}var B=/^[ -~]*$/,z=function(){function j(P){M(this,j),this.scroll=P,this.delta=this.getDelta()}return h(j,[{key:"applyDelta",value:function(k){var T=this,R=!1;this.scroll.update();var D=this.scroll.length();return this.scroll.batchStart(),k=G(k),k.reduce(function(V,N){var I=N.retain||N.delete||N.insert.length||1,H=N.attributes||{};if(N.insert!=null){if(typeof N.insert=="string"){var W=N.insert;W.endsWith(`
|
|
26
|
+
`)&&R&&(R=!1,W=W.slice(0,-1)),V>=D&&!W.endsWith(`
|
|
27
|
+
`)&&(R=!0),T.scroll.insertAt(V,W);var K=T.scroll.line(V),X=y(K,2),Q=X[0],ee=X[1],re=(0,x.default)({},(0,c.bubbleFormats)(Q));if(Q instanceof _.default){var oe=Q.descendant(l.default.Leaf,ee),ue=y(oe,1),se=ue[0];re=(0,x.default)(re,(0,c.bubbleFormats)(se))}H=a.default.attributes.diff(re,H)||{}}else if(p(N.insert)==="object"){var U=Object.keys(N.insert)[0];if(U==null)return V;T.scroll.insertAt(V,U,N.insert[U])}D+=I}return Object.keys(H).forEach(function($){T.scroll.formatAt(V,I,$,H[$])}),V+I},0),k.reduce(function(V,N){return typeof N.delete=="number"?(T.scroll.deleteAt(V,N.delete),V):V+(N.retain||N.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,T){return this.scroll.deleteAt(k,T),this.update(new b.default().retain(k).delete(T))}},{key:"formatLine",value:function(k,T){var R=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(D).forEach(function(V){if(!(R.scroll.whitelist!=null&&!R.scroll.whitelist[V])){var N=R.scroll.lines(k,Math.max(T,1)),I=T;N.forEach(function(H){var W=H.length();if(!(H instanceof m.default))H.format(V,D[V]);else{var K=k-H.offset(R.scroll),X=H.newlineIndex(K+I)-K+1;H.formatAt(K,X,V,D[V])}I-=W})}}),this.scroll.optimize(),this.update(new b.default().retain(k).retain(T,(0,E.default)(D)))}},{key:"formatText",value:function(k,T){var R=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(D).forEach(function(V){R.scroll.formatAt(k,T,V,D[V])}),this.update(new b.default().retain(k).retain(T,(0,E.default)(D)))}},{key:"getContents",value:function(k,T){return this.delta.slice(k,k+T)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,T){return k.concat(T.delta())},new b.default)}},{key:"getFormat",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=[],D=[];T===0?this.scroll.path(k).forEach(function(N){var I=y(N,1),H=I[0];H instanceof _.default?R.push(H):H instanceof l.default.Leaf&&D.push(H)}):(R=this.scroll.lines(k,T),D=this.scroll.descendants(l.default.Leaf,k,T));var V=[R,D].map(function(N){if(N.length===0)return{};for(var I=(0,c.bubbleFormats)(N.shift());Object.keys(I).length>0;){var H=N.shift();if(H==null)return I;I=q((0,c.bubbleFormats)(H),I)}return I});return x.default.apply(x.default,V)}},{key:"getText",value:function(k,T){return this.getContents(k,T).filter(function(R){return typeof R.insert=="string"}).map(function(R){return R.insert}).join("")}},{key:"insertEmbed",value:function(k,T,R){return this.scroll.insertAt(k,T,R),this.update(new b.default().retain(k).insert(F({},T,R)))}},{key:"insertText",value:function(k,T){var R=this,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return T=T.replace(/\r\n/g,`
|
|
28
|
+
`).replace(/\r/g,`
|
|
29
|
+
`),this.scroll.insertAt(k,T),Object.keys(D).forEach(function(V){R.scroll.formatAt(k,T.length,V,D[V])}),this.update(new b.default().retain(k).insert(T,(0,E.default)(D)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==_.default.blotName||k.children.length>1?!1:k.children.head instanceof w.default}},{key:"removeFormat",value:function(k,T){var R=this.getText(k,T),D=this.scroll.line(k+T),V=y(D,2),N=V[0],I=V[1],H=0,W=new b.default;N!=null&&(N instanceof m.default?H=N.newlineIndex(I)-I+1:H=N.length()-I,W=N.delta().slice(I,I+H-1).insert(`
|
|
30
|
+
`));var K=this.getContents(k,T+H),X=K.diff(new b.default().insert(R).concat(W)),Q=new b.default().retain(k).concat(X);return this.applyDelta(Q)}},{key:"update",value:function(k){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,D=this.delta;if(T.length===1&&T[0].type==="characterData"&&T[0].target.data.match(B)&&l.default.find(T[0].target)){var V=l.default.find(T[0].target),N=(0,c.bubbleFormats)(V),I=V.offset(this.scroll),H=T[0].oldValue.replace(u.default.CONTENTS,""),W=new b.default().insert(H),K=new b.default().insert(V.value()),X=new b.default().retain(I).concat(W.diff(K,R));k=X.reduce(function(Q,ee){return ee.insert?Q.insert(ee.insert,N):Q.push(ee)},new b.default),this.delta=D.compose(k)}else this.delta=this.getDelta(),(!k||!(0,A.default)(D.compose(k),this.delta))&&(k=D.diff(this.delta,R));return k}}]),j}();function q(j,P){return Object.keys(P).reduce(function(k,T){return j[T]==null||(P[T]===j[T]?k[T]=P[T]:Array.isArray(P[T])?P[T].indexOf(j[T])<0&&(k[T]=P[T].concat([j[T]])):k[T]=[P[T],j[T]]),k},{})}function G(j){return j.reduce(function(P,k){if(k.insert===1){var T=(0,E.default)(k.attributes);return delete T.image,P.insert({image:k.attributes.image},T)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,E.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var R=k.insert.replace(/\r\n/g,`
|
|
31
|
+
`).replace(/\r/g,`
|
|
32
|
+
`);return P.insert(R,k.attributes)}return P.push(k)},new b.default)}o.default=z},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.Range=void 0;var p=function(){function S(A,C){var x=[],O=!0,F=!1,M=void 0;try{for(var B=A[Symbol.iterator](),z;!(O=(z=B.next()).done)&&(x.push(z.value),!(C&&x.length===C));O=!0);}catch(q){F=!0,M=q}finally{try{!O&&B.return&&B.return()}finally{if(F)throw M}}return x}return function(A,C){if(Array.isArray(A))return A;if(Symbol.iterator in Object(A))return S(A,C);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function S(A,C){for(var x=0;x<C.length;x++){var O=C[x];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(A,O.key,O)}}return function(A,C,x){return C&&S(A.prototype,C),x&&S(A,x),A}}(),h=i(0),g=u(h),b=i(21),d=u(b),a=i(11),r=u(a),l=i(8),v=u(l),m=i(10),f=u(m);function u(S){return S&&S.__esModule?S:{default:S}}function c(S){if(Array.isArray(S)){for(var A=0,C=Array(S.length);A<S.length;A++)C[A]=S[A];return C}else return Array.from(S)}function _(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}var s=(0,f.default)("quill:selection"),w=function S(A){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,S),this.index=A,this.length=C},L=function(){function S(A,C){var x=this;_(this,S),this.emitter=C,this.scroll=A,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=g.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){x.mouseDown||setTimeout(x.update.bind(x,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(O,F){O===v.default.events.TEXT_CHANGE&&F.length()>0&&x.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!x.hasFocus()){var O=x.getNativeRange();O!=null&&O.start.node!==x.cursor.textNode&&x.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{x.setNativeRange(O.start.node,O.start.offset,O.end.node,O.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(O,F){if(F.range){var M=F.range,B=M.startNode,z=M.startOffset,q=M.endNode,G=M.endOffset;x.setNativeRange(B,z,q,G)}}),this.update(v.default.sources.SILENT)}return y(S,[{key:"handleComposition",value:function(){var C=this;this.root.addEventListener("compositionstart",function(){C.composing=!0}),this.root.addEventListener("compositionend",function(){if(C.composing=!1,C.cursor.parent){var x=C.cursor.restore();if(!x)return;setTimeout(function(){C.setNativeRange(x.startNode,x.startOffset,x.endNode,x.endOffset)},1)}})}},{key:"handleDragging",value:function(){var C=this;this.emitter.listenDOM("mousedown",document.body,function(){C.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){C.mouseDown=!1,C.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(C,x){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[C])){this.scroll.update();var O=this.getNativeRange();if(!(O==null||!O.native.collapsed||g.default.query(C,g.default.Scope.BLOCK))){if(O.start.node!==this.cursor.textNode){var F=g.default.find(O.start.node,!1);if(F==null)return;if(F instanceof g.default.Leaf){var M=F.split(O.start.offset);F.parent.insertBefore(this.cursor,M)}else F.insertBefore(this.cursor,O.start.node);this.cursor.attach()}this.cursor.format(C,x),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O=this.scroll.length();C=Math.min(C,O-1),x=Math.min(C+x,O-1)-C;var F=void 0,M=this.scroll.leaf(C),B=p(M,2),z=B[0],q=B[1];if(z==null)return null;var G=z.position(q,!0),j=p(G,2);F=j[0],q=j[1];var P=document.createRange();if(x>0){P.setStart(F,q);var k=this.scroll.leaf(C+x),T=p(k,2);if(z=T[0],q=T[1],z==null)return null;var R=z.position(q,!0),D=p(R,2);return F=D[0],q=D[1],P.setEnd(F,q),P.getBoundingClientRect()}else{var V="left",N=void 0;return F instanceof Text?(q<F.data.length?(P.setStart(F,q),P.setEnd(F,q+1)):(P.setStart(F,q-1),P.setEnd(F,q),V="right"),N=P.getBoundingClientRect()):(N=z.domNode.getBoundingClientRect(),q>0&&(V="right")),{bottom:N.top+N.height,height:N.height,left:N[V],right:N[V],top:N.top,width:0}}}},{key:"getNativeRange",value:function(){var C=document.getSelection();if(C==null||C.rangeCount<=0)return null;var x=C.getRangeAt(0);if(x==null)return null;var O=this.normalizeNative(x);return s.info("getNativeRange",O),O}},{key:"getRange",value:function(){var C=this.getNativeRange();if(C==null)return[null,null];var x=this.normalizedToRange(C);return[x,C]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(C){var x=this,O=[[C.start.node,C.start.offset]];C.native.collapsed||O.push([C.end.node,C.end.offset]);var F=O.map(function(z){var q=p(z,2),G=q[0],j=q[1],P=g.default.find(G,!0),k=P.offset(x.scroll);return j===0?k:P instanceof g.default.Container?k+P.length():k+P.index(G,j)}),M=Math.min(Math.max.apply(Math,c(F)),this.scroll.length()-1),B=Math.min.apply(Math,[M].concat(c(F)));return new w(B,M-B)}},{key:"normalizeNative",value:function(C){if(!E(this.root,C.startContainer)||!C.collapsed&&!E(this.root,C.endContainer))return null;var x={start:{node:C.startContainer,offset:C.startOffset},end:{node:C.endContainer,offset:C.endOffset},native:C};return[x.start,x.end].forEach(function(O){for(var F=O.node,M=O.offset;!(F instanceof Text)&&F.childNodes.length>0;)if(F.childNodes.length>M)F=F.childNodes[M],M=0;else if(F.childNodes.length===M)F=F.lastChild,M=F instanceof Text?F.data.length:F.childNodes.length+1;else break;O.node=F,O.offset=M}),x}},{key:"rangeToNative",value:function(C){var x=this,O=C.collapsed?[C.index]:[C.index,C.index+C.length],F=[],M=this.scroll.length();return O.forEach(function(B,z){B=Math.min(M-1,B);var q=void 0,G=x.scroll.leaf(B),j=p(G,2),P=j[0],k=j[1],T=P.position(k,z!==0),R=p(T,2);q=R[0],k=R[1],F.push(q,k)}),F.length<2&&(F=F.concat(F)),F}},{key:"scrollIntoView",value:function(C){var x=this.lastRange;if(x!=null){var O=this.getBounds(x.index,x.length);if(O!=null){var F=this.scroll.length()-1,M=this.scroll.line(Math.min(x.index,F)),B=p(M,1),z=B[0],q=z;if(x.length>0){var G=this.scroll.line(Math.min(x.index+x.length,F)),j=p(G,1);q=j[0]}if(!(z==null||q==null)){var P=C.getBoundingClientRect();O.top<P.top?C.scrollTop-=P.top-O.top:O.bottom>P.bottom&&(C.scrollTop+=O.bottom-P.bottom)}}}}},{key:"setNativeRange",value:function(C,x){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x,M=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(s.info("setNativeRange",C,x,O,F),!(C!=null&&(this.root.parentNode==null||C.parentNode==null||O.parentNode==null))){var B=document.getSelection();if(B!=null)if(C!=null){this.hasFocus()||this.root.focus();var z=(this.getNativeRange()||{}).native;if(z==null||M||C!==z.startContainer||x!==z.startOffset||O!==z.endContainer||F!==z.endOffset){C.tagName=="BR"&&(x=[].indexOf.call(C.parentNode.childNodes,C),C=C.parentNode),O.tagName=="BR"&&(F=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode);var q=document.createRange();q.setStart(C,x),q.setEnd(O,F),B.removeAllRanges(),B.addRange(q)}}else B.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(C){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof x=="string"&&(O=x,x=!1),s.info("setRange",C),C!=null){var F=this.rangeToNative(C);this.setNativeRange.apply(this,c(F).concat([x]))}else this.setNativeRange(null);this.update(O)}},{key:"update",value:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,x=this.lastRange,O=this.getRange(),F=p(O,2),M=F[0],B=F[1];if(this.lastRange=M,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,r.default)(x,this.lastRange)){var z;!this.composing&&B!=null&&B.native.collapsed&&B.start.node!==this.cursor.textNode&&this.cursor.restore();var q=[v.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(x),C];if((z=this.emitter).emit.apply(z,[v.default.events.EDITOR_CHANGE].concat(q)),C!==v.default.sources.SILENT){var G;(G=this.emitter).emit.apply(G,q)}}}}]),S}();function E(S,A){try{A.parentNode}catch{return!1}return A instanceof Text&&(A=A.parentNode),S.contains(A)}o.Range=w,o.default=L},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function v(m,f){for(var u=0;u<f.length;u++){var c=f[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}return function(m,f,u){return f&&v(m.prototype,f),u&&v(m,u),m}}(),y=function v(m,f,u){m===null&&(m=Function.prototype);var c=Object.getOwnPropertyDescriptor(m,f);if(c===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:v(_,f,u)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(u)}},h=i(0),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return p(m,[{key:"insertInto",value:function(u,c){u.children.length===0?y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,u,c):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(g.default.Embed);l.blotName="break",l.tagName="BR",o.default=l},function(e,o,i){var p=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var v in l)l.hasOwnProperty(v)&&(r[v]=l[v])};return function(r,l){a(r,l);function v(){this.constructor=r}r.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(44),h=i(30),g=i(1),b=function(a){p(r,a);function r(l){var v=a.call(this,l)||this;return v.build(),v}return r.prototype.appendChild=function(l){this.insertBefore(l)},r.prototype.attach=function(){a.prototype.attach.call(this),this.children.forEach(function(l){l.attach()})},r.prototype.build=function(){var l=this;this.children=new y.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var m=d(v);l.insertBefore(m,l.children.head||void 0)}catch(f){if(f instanceof g.ParchmentError)return;throw f}})},r.prototype.deleteAt=function(l,v){if(l===0&&v===this.length())return this.remove();this.children.forEachAt(l,v,function(m,f,u){m.deleteAt(f,u)})},r.prototype.descendant=function(l,v){var m=this.children.find(v),f=m[0],u=m[1];return l.blotName==null&&l(f)||l.blotName!=null&&f instanceof l?[f,u]:f instanceof r?f.descendant(l,u):[null,-1]},r.prototype.descendants=function(l,v,m){v===void 0&&(v=0),m===void 0&&(m=Number.MAX_VALUE);var f=[],u=m;return this.children.forEachAt(v,m,function(c,_,s){(l.blotName==null&&l(c)||l.blotName!=null&&c instanceof l)&&f.push(c),c instanceof r&&(f=f.concat(c.descendants(l,_,u))),u-=s}),f},r.prototype.detach=function(){this.children.forEach(function(l){l.detach()}),a.prototype.detach.call(this)},r.prototype.formatAt=function(l,v,m,f){this.children.forEachAt(l,v,function(u,c,_){u.formatAt(c,_,m,f)})},r.prototype.insertAt=function(l,v,m){var f=this.children.find(l),u=f[0],c=f[1];if(u)u.insertAt(c,v,m);else{var _=m==null?g.create("text",v):g.create(v,m);this.appendChild(_)}},r.prototype.insertBefore=function(l,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return l instanceof m}))throw new g.ParchmentError("Cannot insert "+l.statics.blotName+" into "+this.statics.blotName);l.insertInto(this,v)},r.prototype.length=function(){return this.children.reduce(function(l,v){return l+v.length()},0)},r.prototype.moveChildren=function(l,v){this.children.forEach(function(m){l.insertBefore(m,v)})},r.prototype.optimize=function(l){if(a.prototype.optimize.call(this,l),this.children.length===0)if(this.statics.defaultChild!=null){var v=g.create(this.statics.defaultChild);this.appendChild(v),v.optimize(l)}else this.remove()},r.prototype.path=function(l,v){v===void 0&&(v=!1);var m=this.children.find(l,v),f=m[0],u=m[1],c=[[this,l]];return f instanceof r?c.concat(f.path(u,v)):(f!=null&&c.push([f,u]),c)},r.prototype.removeChild=function(l){this.children.remove(l)},r.prototype.replace=function(l){l instanceof r&&l.moveChildren(this),a.prototype.replace.call(this,l)},r.prototype.split=function(l,v){if(v===void 0&&(v=!1),!v){if(l===0)return this;if(l===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(l,this.length(),function(f,u,c){f=f.split(u,v),m.appendChild(f)}),m},r.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},r.prototype.update=function(l,v){var m=this,f=[],u=[];l.forEach(function(c){c.target===m.domNode&&c.type==="childList"&&(f.push.apply(f,c.addedNodes),u.push.apply(u,c.removedNodes))}),u.forEach(function(c){if(!(c.parentNode!=null&&c.tagName!=="IFRAME"&&document.body.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=g.find(c);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===m.domNode)&&_.detach()}}),f.filter(function(c){return c.parentNode==m.domNode}).sort(function(c,_){return c===_?0:c.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(c){var _=null;c.nextSibling!=null&&(_=g.find(c.nextSibling));var s=d(c);(s.next!=_||s.next==null)&&(s.parent!=null&&s.parent.removeChild(m),m.insertBefore(s,_||void 0))})},r}(h.default);function d(a){var r=g.find(a);if(r==null)try{r=g.create(a)}catch{r=g.create(g.Scope.INLINE),[].slice.call(a.childNodes).forEach(function(v){r.domNode.appendChild(v)}),a.parentNode&&a.parentNode.replaceChild(r.domNode,a),r.attach()}return r}o.default=b},function(e,o,i){var p=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var v in l)l.hasOwnProperty(v)&&(r[v]=l[v])};return function(r,l){a(r,l);function v(){this.constructor=r}r.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(12),h=i(31),g=i(17),b=i(1),d=function(a){p(r,a);function r(l){var v=a.call(this,l)||this;return v.attributes=new h.default(v.domNode),v}return r.formats=function(l){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return l.tagName.toLowerCase()},r.prototype.format=function(l,v){var m=b.query(l);m instanceof y.default?this.attributes.attribute(m,v):v&&m!=null&&(l!==this.statics.blotName||this.formats()[l]!==v)&&this.replaceWith(l,v)},r.prototype.formats=function(){var l=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(l[this.statics.blotName]=v),l},r.prototype.replaceWith=function(l,v){var m=a.prototype.replaceWith.call(this,l,v);return this.attributes.copy(m),m},r.prototype.update=function(l,v){var m=this;a.prototype.update.call(this,l,v),l.some(function(f){return f.target===m.domNode&&f.type==="attributes"})&&this.attributes.build()},r.prototype.wrap=function(l,v){var m=a.prototype.wrap.call(this,l,v);return m instanceof r&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},r}(g.default);o.default=d},function(e,o,i){var p=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var r in a)a.hasOwnProperty(r)&&(d[r]=a[r])};return function(d,a){b(d,a);function r(){this.constructor=d}d.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(30),h=i(1),g=function(b){p(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.value=function(a){return!0},d.prototype.index=function(a,r){return this.domNode===a||this.domNode.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(r,1):-1},d.prototype.position=function(a,r){var l=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return a>0&&(l+=1),[this.parent.domNode,l]},d.prototype.value=function(){var a;return a={},a[this.statics.blotName]=this.statics.value(this.domNode)||!0,a},d.scope=h.Scope.INLINE_BLOT,d}(y.default);o.default=g},function(e,o,i){var p=i(11),y=i(3),h={attributes:{compose:function(b,d,a){typeof b!="object"&&(b={}),typeof d!="object"&&(d={});var r=y(!0,{},d);a||(r=Object.keys(r).reduce(function(v,m){return r[m]!=null&&(v[m]=r[m]),v},{}));for(var l in b)b[l]!==void 0&&d[l]===void 0&&(r[l]=b[l]);return Object.keys(r).length>0?r:void 0},diff:function(b,d){typeof b!="object"&&(b={}),typeof d!="object"&&(d={});var a=Object.keys(b).concat(Object.keys(d)).reduce(function(r,l){return p(b[l],d[l])||(r[l]=d[l]===void 0?null:d[l]),r},{});return Object.keys(a).length>0?a:void 0},transform:function(b,d,a){if(typeof b!="object")return d;if(typeof d=="object"){if(!a)return d;var r=Object.keys(d).reduce(function(l,v){return b[v]===void 0&&(l[v]=d[v]),l},{});return Object.keys(r).length>0?r:void 0}}},iterator:function(b){return new g(b)},length:function(b){return typeof b.delete=="number"?b.delete:typeof b.retain=="number"?b.retain:typeof b.insert=="string"?b.insert.length:1}};function g(b){this.ops=b,this.index=0,this.offset=0}g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(b){b||(b=1/0);var d=this.ops[this.index];if(d){var a=this.offset,r=h.length(d);if(b>=r-a?(b=r-a,this.index+=1,this.offset=0):this.offset+=b,typeof d.delete=="number")return{delete:b};var l={};return d.attributes&&(l.attributes=d.attributes),typeof d.retain=="number"?l.retain=b:typeof d.insert=="string"?l.insert=d.insert.substr(a,b):l.insert=d.insert,l}else return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?h.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var b=this.offset,d=this.index,a=this.next(),r=this.ops.slice(this.index);return this.offset=b,this.index=d,[a].concat(r)}else return[]},e.exports=h},function(e,o){var i=function(){function p(m,f){return f!=null&&m instanceof f}var y;try{y=Map}catch{y=function(){}}var h;try{h=Set}catch{h=function(){}}var g;try{g=Promise}catch{g=function(){}}function b(m,f,u,c,_){typeof f=="object"&&(u=f.depth,c=f.prototype,_=f.includeNonEnumerable,f=f.circular);var s=[],w=[],L=typeof Buffer!="undefined";typeof f=="undefined"&&(f=!0),typeof u=="undefined"&&(u=1/0);function E(S,A){if(S===null)return null;if(A===0)return S;var C,x;if(typeof S!="object")return S;if(p(S,y))C=new y;else if(p(S,h))C=new h;else if(p(S,g))C=new g(function(P,k){S.then(function(T){P(E(T,A-1))},function(T){k(E(T,A-1))})});else if(b.__isArray(S))C=[];else if(b.__isRegExp(S))C=new RegExp(S.source,v(S)),S.lastIndex&&(C.lastIndex=S.lastIndex);else if(b.__isDate(S))C=new Date(S.getTime());else{if(L&&Buffer.isBuffer(S))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(S.length):C=new Buffer(S.length),S.copy(C),C;p(S,Error)?C=Object.create(S):typeof c=="undefined"?(x=Object.getPrototypeOf(S),C=Object.create(x)):(C=Object.create(c),x=c)}if(f){var O=s.indexOf(S);if(O!=-1)return w[O];s.push(S),w.push(C)}p(S,y)&&S.forEach(function(P,k){var T=E(k,A-1),R=E(P,A-1);C.set(T,R)}),p(S,h)&&S.forEach(function(P){var k=E(P,A-1);C.add(k)});for(var F in S){var M;x&&(M=Object.getOwnPropertyDescriptor(x,F)),!(M&&M.set==null)&&(C[F]=E(S[F],A-1))}if(Object.getOwnPropertySymbols)for(var B=Object.getOwnPropertySymbols(S),F=0;F<B.length;F++){var z=B[F],q=Object.getOwnPropertyDescriptor(S,z);q&&!q.enumerable&&!_||(C[z]=E(S[z],A-1),q.enumerable||Object.defineProperty(C,z,{enumerable:!1}))}if(_)for(var G=Object.getOwnPropertyNames(S),F=0;F<G.length;F++){var j=G[F],q=Object.getOwnPropertyDescriptor(S,j);q&&q.enumerable||(C[j]=E(S[j],A-1),Object.defineProperty(C,j,{enumerable:!1}))}return C}return E(m,u)}b.clonePrototype=function(f){if(f===null)return null;var u=function(){};return u.prototype=f,new u};function d(m){return Object.prototype.toString.call(m)}b.__objToStr=d;function a(m){return typeof m=="object"&&d(m)==="[object Date]"}b.__isDate=a;function r(m){return typeof m=="object"&&d(m)==="[object Array]"}b.__isArray=r;function l(m){return typeof m=="object"&&d(m)==="[object RegExp]"}b.__isRegExp=l;function v(m){var f="";return m.global&&(f+="g"),m.ignoreCase&&(f+="i"),m.multiline&&(f+="m"),f}return b.__getRegExpFlags=v,b}();typeof e=="object"&&e.exports&&(e.exports=i)},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function C(x,O){var F=[],M=!0,B=!1,z=void 0;try{for(var q=x[Symbol.iterator](),G;!(M=(G=q.next()).done)&&(F.push(G.value),!(O&&F.length===O));M=!0);}catch(j){B=!0,z=j}finally{try{!M&&q.return&&q.return()}finally{if(B)throw z}}return F}return function(x,O){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return C(x,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function C(x,O){for(var F=0;F<O.length;F++){var M=O[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,O,F){return O&&C(x.prototype,O),F&&C(x,F),x}}(),h=function C(x,O,F){x===null&&(x=Function.prototype);var M=Object.getOwnPropertyDescriptor(x,O);if(M===void 0){var B=Object.getPrototypeOf(x);return B===null?void 0:C(B,O,F)}else{if("value"in M)return M.value;var z=M.get;return z===void 0?void 0:z.call(F)}},g=i(0),b=s(g),d=i(8),a=s(d),r=i(4),l=s(r),v=i(16),m=s(v),f=i(13),u=s(f),c=i(25),_=s(c);function s(C){return C&&C.__esModule?C:{default:C}}function w(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function L(C,x){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:C}function E(C,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);C.prototype=Object.create(x&&x.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(C,x):C.__proto__=x)}function S(C){return C instanceof l.default||C instanceof r.BlockEmbed}var A=function(C){E(x,C);function x(O,F){w(this,x);var M=L(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,O));return M.emitter=F.emitter,Array.isArray(F.whitelist)&&(M.whitelist=F.whitelist.reduce(function(B,z){return B[z]=!0,B},{})),M.domNode.addEventListener("DOMNodeInserted",function(){}),M.optimize(),M.enable(),M}return y(x,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(F,M){var B=this.line(F),z=p(B,2),q=z[0],G=z[1],j=this.line(F+M),P=p(j,1),k=P[0];if(h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,F,M),k!=null&&q!==k&&G>0){if(q instanceof r.BlockEmbed||k instanceof r.BlockEmbed){this.optimize();return}if(q instanceof u.default){var T=q.newlineIndex(q.length(),!0);if(T>-1&&(q=q.split(T+1),q===k)){this.optimize();return}}else if(k instanceof u.default){var R=k.newlineIndex(0);R>-1&&k.split(R+1)}var D=k.children.head instanceof m.default?null:k.children.head;q.moveChildren(k,D),q.remove()}this.optimize()}},{key:"enable",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",F)}},{key:"formatAt",value:function(F,M,B,z){this.whitelist!=null&&!this.whitelist[B]||(h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,F,M,B,z),this.optimize())}},{key:"insertAt",value:function(F,M,B){if(!(B!=null&&this.whitelist!=null&&!this.whitelist[M])){if(F>=this.length())if(B==null||b.default.query(M,b.default.Scope.BLOCK)==null){var z=b.default.create(this.statics.defaultChild);this.appendChild(z),B==null&&M.endsWith(`
|
|
33
|
+
`)&&(M=M.slice(0,-1)),z.insertAt(0,M,B)}else{var q=b.default.create(M,B);this.appendChild(q)}else h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,F,M,B);this.optimize()}}},{key:"insertBefore",value:function(F,M){if(F.statics.scope===b.default.Scope.INLINE_BLOT){var B=b.default.create(this.statics.defaultChild);B.appendChild(F),F=B}h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,F,M)}},{key:"leaf",value:function(F){return this.path(F).pop()||[null,-1]}},{key:"line",value:function(F){return F===this.length()?this.line(F-1):this.descendant(S,F)}},{key:"lines",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,B=function z(q,G,j){var P=[],k=j;return q.children.forEachAt(G,j,function(T,R,D){S(T)?P.push(T):T instanceof b.default.Container&&(P=P.concat(z(T,R,k))),k-=D}),P};return B(this,F,M)}},{key:"optimize",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,F,M),F.length>0&&this.emitter.emit(a.default.events.SCROLL_OPTIMIZE,F,M))}},{key:"path",value:function(F){return h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,F).slice(1)}},{key:"update",value:function(F){if(this.batch!==!0){var M=a.default.sources.USER;typeof F=="string"&&(M=F),Array.isArray(F)||(F=this.observer.takeRecords()),F.length>0&&this.emitter.emit(a.default.events.SCROLL_BEFORE_UPDATE,M,F),h(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"update",this).call(this,F.concat([])),F.length>0&&this.emitter.emit(a.default.events.SCROLL_UPDATE,M,F)}}}]),x}(b.default.Scroll);A.blotName="scroll",A.className="ql-editor",A.tagName="DIV",A.defaultChild="block",A.allowedChildren=[l.default,r.BlockEmbed,_.default],o.default=A},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.SHORTKEY=o.default=void 0;var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},y=function(){function N(I,H){var W=[],K=!0,X=!1,Q=void 0;try{for(var ee=I[Symbol.iterator](),re;!(K=(re=ee.next()).done)&&(W.push(re.value),!(H&&W.length===H));K=!0);}catch(oe){X=!0,Q=oe}finally{try{!K&&ee.return&&ee.return()}finally{if(X)throw Q}}return W}return function(I,H){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return N(I,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function N(I,H){for(var W=0;W<H.length;W++){var K=H[W];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(I,K.key,K)}}return function(I,H,W){return H&&N(I.prototype,H),W&&N(I,W),I}}(),g=i(21),b=C(g),d=i(11),a=C(d),r=i(3),l=C(r),v=i(2),m=C(v),f=i(20),u=C(f),c=i(0),_=C(c),s=i(5),w=C(s),L=i(10),E=C(L),S=i(9),A=C(S);function C(N){return N&&N.__esModule?N:{default:N}}function x(N,I,H){return I in N?Object.defineProperty(N,I,{value:H,enumerable:!0,configurable:!0,writable:!0}):N[I]=H,N}function O(N,I){if(!(N instanceof I))throw new TypeError("Cannot call a class as a function")}function F(N,I){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:N}function M(N,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);N.prototype=Object.create(I&&I.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(N,I):N.__proto__=I)}var B=(0,E.default)("quill:keyboard"),z=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",q=function(N){M(I,N),h(I,null,[{key:"match",value:function(W,K){return K=V(K),["altKey","ctrlKey","metaKey","shiftKey"].some(function(X){return!!K[X]!==W[X]&&K[X]!==null})?!1:K.key===(W.which||W.keyCode)}}]);function I(H,W){O(this,I);var K=F(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,H,W));return K.bindings={},Object.keys(K.options.bindings).forEach(function(X){X==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||K.options.bindings[X]&&K.addBinding(K.options.bindings[X])}),K.addBinding({key:I.keys.ENTER,shiftKey:null},T),K.addBinding({key:I.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(K.addBinding({key:I.keys.BACKSPACE},{collapsed:!0},j),K.addBinding({key:I.keys.DELETE},{collapsed:!0},P)):(K.addBinding({key:I.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),K.addBinding({key:I.keys.DELETE},{collapsed:!0,suffix:/^.?$/},P)),K.addBinding({key:I.keys.BACKSPACE},{collapsed:!1},k),K.addBinding({key:I.keys.DELETE},{collapsed:!1},k),K.addBinding({key:I.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),K.listen(),K}return h(I,[{key:"addBinding",value:function(W){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=V(W);if(Q==null||Q.key==null)return B.warn("Attempted to add invalid keyboard binding",Q);typeof K=="function"&&(K={handler:K}),typeof X=="function"&&(X={handler:X}),Q=(0,l.default)(Q,K,X),this.bindings[Q.key]=this.bindings[Q.key]||[],this.bindings[Q.key].push(Q)}},{key:"listen",value:function(){var W=this;this.quill.root.addEventListener("keydown",function(K){if(!K.defaultPrevented){var X=K.which||K.keyCode,Q=(W.bindings[X]||[]).filter(function(ae){return I.match(K,ae)});if(Q.length!==0){var ee=W.quill.getSelection();if(!(ee==null||!W.quill.hasFocus())){var re=W.quill.getLine(ee.index),oe=y(re,2),ue=oe[0],se=oe[1],U=W.quill.getLeaf(ee.index),$=y(U,2),J=$[0],Y=$[1],Z=ee.length===0?[J,Y]:W.quill.getLeaf(ee.index+ee.length),te=y(Z,2),ne=te[0],ie=te[1],ce=J instanceof _.default.Text?J.value().slice(0,Y):"",fe=ne instanceof _.default.Text?ne.value().slice(ie):"",le={collapsed:ee.length===0,empty:ee.length===0&&ue.length()<=1,format:W.quill.getFormat(ee),offset:se,prefix:ce,suffix:fe},ge=Q.some(function(ae){if(ae.collapsed!=null&&ae.collapsed!==le.collapsed||ae.empty!=null&&ae.empty!==le.empty||ae.offset!=null&&ae.offset!==le.offset)return!1;if(Array.isArray(ae.format)){if(ae.format.every(function(he){return le.format[he]==null}))return!1}else if(p(ae.format)==="object"&&!Object.keys(ae.format).every(function(he){return ae.format[he]===!0?le.format[he]!=null:ae.format[he]===!1?le.format[he]==null:(0,a.default)(ae.format[he],le.format[he])}))return!1;return ae.prefix!=null&&!ae.prefix.test(le.prefix)||ae.suffix!=null&&!ae.suffix.test(le.suffix)?!1:ae.handler.call(W,ee,le)!==!0});ge&&K.preventDefault()}}}})}}]),I}(A.default);q.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},q.DEFAULTS={bindings:{bold:D("bold"),italic:D("italic"),underline:D("underline"),indent:{key:q.keys.TAB,format:["blockquote","indent","list"],handler:function(I,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:q.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(I,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:q.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(I,H){H.format.indent!=null?this.quill.format("indent","-1",w.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":R(!0),"outdent code-block":R(!1),"remove tab":{key:q.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(I){this.quill.deleteText(I.index-1,1,w.default.sources.USER)}},tab:{key:q.keys.TAB,handler:function(I){this.quill.history.cutoff();var H=new m.default().retain(I.index).delete(I.length).insert(" ");this.quill.updateContents(H,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index+1,w.default.sources.SILENT)}},"list empty enter":{key:q.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(I,H){this.quill.format("list",!1,w.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:q.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(I){var H=this.quill.getLine(I.index),W=y(H,2),K=W[0],X=W[1],Q=(0,l.default)({},K.formats(),{list:"checked"}),ee=new m.default().retain(I.index).insert(`
|
|
34
|
+
`,Q).retain(K.length()-X-1).retain(1,{list:"unchecked"});this.quill.updateContents(ee,w.default.sources.USER),this.quill.setSelection(I.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:q.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(I,H){var W=this.quill.getLine(I.index),K=y(W,2),X=K[0],Q=K[1],ee=new m.default().retain(I.index).insert(`
|
|
35
|
+
`,H.format).retain(X.length()-Q-1).retain(1,{header:null});this.quill.updateContents(ee,w.default.sources.USER),this.quill.setSelection(I.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(I,H){var W=H.prefix.length,K=this.quill.getLine(I.index),X=y(K,2),Q=X[0],ee=X[1];if(ee>W)return!0;var re=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(I.index," ",w.default.sources.USER),this.quill.history.cutoff();var oe=new m.default().retain(I.index-ee).delete(W+1).retain(Q.length()-2-ee).retain(1,{list:re});this.quill.updateContents(oe,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(I.index-W,w.default.sources.SILENT)}},"code exit":{key:q.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(I){var H=this.quill.getLine(I.index),W=y(H,2),K=W[0],X=W[1],Q=new m.default().retain(I.index+K.length()-X-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Q,w.default.sources.USER)}},"embed left":G(q.keys.LEFT,!1),"embed left shift":G(q.keys.LEFT,!0),"embed right":G(q.keys.RIGHT,!1),"embed right shift":G(q.keys.RIGHT,!0)}};function G(N,I){var H,W=N===q.keys.LEFT?"prefix":"suffix";return H={key:N,shiftKey:I,altKey:null},x(H,W,/^$/),x(H,"handler",function(X){var Q=X.index;N===q.keys.RIGHT&&(Q+=X.length+1);var ee=this.quill.getLeaf(Q),re=y(ee,1),oe=re[0];return oe instanceof _.default.Embed?(N===q.keys.LEFT?I?this.quill.setSelection(X.index-1,X.length+1,w.default.sources.USER):this.quill.setSelection(X.index-1,w.default.sources.USER):I?this.quill.setSelection(X.index,X.length+1,w.default.sources.USER):this.quill.setSelection(X.index+X.length+1,w.default.sources.USER),!1):!0}),H}function j(N,I){if(!(N.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(N.index),W=y(H,1),K=W[0],X={};if(I.offset===0){var Q=this.quill.getLine(N.index-1),ee=y(Q,1),re=ee[0];if(re!=null&&re.length()>1){var oe=K.formats(),ue=this.quill.getFormat(N.index-1,1);X=u.default.attributes.diff(oe,ue)||{}}}var se=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(I.prefix)?2:1;this.quill.deleteText(N.index-se,se,w.default.sources.USER),Object.keys(X).length>0&&this.quill.formatLine(N.index-se,se,X,w.default.sources.USER),this.quill.focus()}}function P(N,I){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(I.suffix)?2:1;if(!(N.index>=this.quill.getLength()-H)){var W={},K=0,X=this.quill.getLine(N.index),Q=y(X,1),ee=Q[0];if(I.offset>=ee.length()-1){var re=this.quill.getLine(N.index+1),oe=y(re,1),ue=oe[0];if(ue){var se=ee.formats(),U=this.quill.getFormat(N.index,1);W=u.default.attributes.diff(se,U)||{},K=ue.length()}}this.quill.deleteText(N.index,H,w.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(N.index+K-1,H,W,w.default.sources.USER)}}function k(N){var I=this.quill.getLines(N),H={};if(I.length>1){var W=I[0].formats(),K=I[I.length-1].formats();H=u.default.attributes.diff(K,W)||{}}this.quill.deleteText(N,w.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(N.index,1,H,w.default.sources.USER),this.quill.setSelection(N.index,w.default.sources.SILENT),this.quill.focus()}function T(N,I){var H=this;N.length>0&&this.quill.scroll.deleteAt(N.index,N.length);var W=Object.keys(I.format).reduce(function(K,X){return _.default.query(X,_.default.Scope.BLOCK)&&!Array.isArray(I.format[X])&&(K[X]=I.format[X]),K},{});this.quill.insertText(N.index,`
|
|
36
|
+
`,W,w.default.sources.USER),this.quill.setSelection(N.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(I.format).forEach(function(K){W[K]==null&&(Array.isArray(I.format[K])||K!=="link"&&H.quill.format(K,I.format[K],w.default.sources.USER))})}function R(N){return{key:q.keys.TAB,shiftKey:!N,format:{"code-block":!0},handler:function(H){var W=_.default.query("code-block"),K=H.index,X=H.length,Q=this.quill.scroll.descendant(W,K),ee=y(Q,2),re=ee[0],oe=ee[1];if(re!=null){var ue=this.quill.getIndex(re),se=re.newlineIndex(oe,!0)+1,U=re.newlineIndex(ue+oe+X),$=re.domNode.textContent.slice(se,U).split(`
|
|
37
|
+
`);oe=0,$.forEach(function(J,Y){N?(re.insertAt(se+oe,W.TAB),oe+=W.TAB.length,Y===0?K+=W.TAB.length:X+=W.TAB.length):J.startsWith(W.TAB)&&(re.deleteAt(se+oe,W.TAB.length),oe-=W.TAB.length,Y===0?K-=W.TAB.length:X-=W.TAB.length),oe+=J.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(K,X,w.default.sources.SILENT)}}}}function D(N){return{key:N[0].toUpperCase(),shortKey:!0,handler:function(H,W){this.quill.format(N,!W.format[N],w.default.sources.USER)}}}function V(N){if(typeof N=="string"||typeof N=="number")return V({key:N});if((typeof N=="undefined"?"undefined":p(N))==="object"&&(N=(0,b.default)(N,!1)),typeof N.key=="string")if(q.keys[N.key.toUpperCase()]!=null)N.key=q.keys[N.key.toUpperCase()];else if(N.key.length===1)N.key=N.key.toUpperCase().charCodeAt(0);else return null;return N.shortKey&&(N[z]=N.shortKey,delete N.shortKey),N}o.default=q,o.SHORTKEY=z},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function u(c,_){var s=[],w=!0,L=!1,E=void 0;try{for(var S=c[Symbol.iterator](),A;!(w=(A=S.next()).done)&&(s.push(A.value),!(_&&s.length===_));w=!0);}catch(C){L=!0,E=C}finally{try{!w&&S.return&&S.return()}finally{if(L)throw E}}return s}return function(c,_){if(Array.isArray(c))return c;if(Symbol.iterator in Object(c))return u(c,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function u(c,_,s){c===null&&(c=Function.prototype);var w=Object.getOwnPropertyDescriptor(c,_);if(w===void 0){var L=Object.getPrototypeOf(c);return L===null?void 0:u(L,_,s)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(s)}},h=function(){function u(c,_){for(var s=0;s<_.length;s++){var w=_[s];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(c,w.key,w)}}return function(c,_,s){return _&&u(c.prototype,_),s&&u(c,s),c}}(),g=i(0),b=r(g),d=i(7),a=r(d);function r(u){return u&&u.__esModule?u:{default:u}}function l(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function v(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function m(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var f=function(u){m(c,u),h(c,null,[{key:"value",value:function(){}}]);function c(_,s){l(this,c);var w=v(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,_));return w.selection=s,w.textNode=document.createTextNode(c.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return h(c,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(s,w){if(this._length!==0)return y(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,s,w);for(var L=this,E=0;L!=null&&L.statics.scope!==b.default.Scope.BLOCK_BLOT;)E+=L.offset(L.parent),L=L.parent;L!=null&&(this._length=c.CONTENTS.length,L.optimize(),L.formatAt(E,c.CONTENTS.length,s,w),this._length=0)}},{key:"index",value:function(s,w){return s===this.textNode?0:y(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,s,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){y(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var s=this.textNode,w=this.selection.getNativeRange(),L=void 0,E=void 0,S=void 0;if(w!=null&&w.start.node===s&&w.end.node===s){var A=[s,w.start.offset,w.end.offset];L=A[0],E=A[1],S=A[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==c.CONTENTS){var C=this.textNode.data.split(c.CONTENTS).join("");this.next instanceof a.default?(L=this.next.domNode,this.next.insertAt(0,C),this.textNode.data=c.CONTENTS):(this.textNode.data=C,this.parent.insertBefore(b.default.create(this.textNode),this),this.textNode=document.createTextNode(c.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var x=[E,S].map(function(F){return Math.max(0,Math.min(L.data.length,F-1))}),O=p(x,2);return E=O[0],S=O[1],{startNode:L,startOffset:E,endNode:L,endOffset:S}}}}},{key:"update",value:function(s,w){var L=this;if(s.some(function(S){return S.type==="characterData"&&S.target===L.textNode})){var E=this.restore();E&&(w.range=E)}}},{key:"value",value:function(){return""}}]),c}(b.default.Embed);f.blotName="cursor",f.className="ql-cursor",f.tagName="span",f.CONTENTS="\uFEFF",o.default=f},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(0),y=b(p),h=i(4),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m}(y.default.Container);l.allowedChildren=[g.default,h.BlockEmbed,l],o.default=l},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.ColorStyle=o.ColorClass=o.ColorAttributor=void 0;var p=function(){function f(u,c){for(var _=0;_<c.length;_++){var s=c[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,c,_){return c&&f(u.prototype,c),_&&f(u,_),u}}(),y=function f(u,c,_){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,c);if(s===void 0){var w=Object.getPrototypeOf(u);return w===null?void 0:f(w,c,_)}else{if("value"in s)return s.value;var L=s.get;return L===void 0?void 0:L.call(_)}},h=i(0),g=b(h);function b(f){return f&&f.__esModule?f:{default:f}}function d(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function a(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function r(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var l=function(f){r(u,f);function u(){return d(this,u),a(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return p(u,[{key:"value",value:function(_){var s=y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,_);return s.startsWith("rgb(")?(s=s.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+s.split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join("")):s}}]),u}(g.default.Attributor.Style),v=new g.default.Attributor.Class("color","ql-color",{scope:g.default.Scope.INLINE}),m=new l("color","color",{scope:g.default.Scope.INLINE});o.ColorAttributor=l,o.ColorClass=v,o.ColorStyle=m},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.sanitize=o.default=void 0;var p=function(){function m(f,u){for(var c=0;c<u.length;c++){var _=u[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,_.key,_)}}return function(f,u,c){return u&&m(f.prototype,u),c&&m(f,c),f}}(),y=function m(f,u,c){f===null&&(f=Function.prototype);var _=Object.getOwnPropertyDescriptor(f,u);if(_===void 0){var s=Object.getPrototypeOf(f);return s===null?void 0:m(s,u,c)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(c)}},h=i(6),g=b(h);function b(m){return m&&m.__esModule?m:{default:m}}function d(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function a(m,f){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:m}function r(m,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);m.prototype=Object.create(f&&f.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(m,f):m.__proto__=f)}var l=function(m){r(f,m);function f(){return d(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return p(f,[{key:"format",value:function(c,_){if(c!==this.statics.blotName||!_)return y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"format",this).call(this,c,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(c){var _=y(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,c);return c=this.sanitize(c),_.setAttribute("href",c),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(c){return c.getAttribute("href")}},{key:"sanitize",value:function(c){return v(c,this.PROTOCOL_WHITELIST)?c:this.SANITIZED_URL}}]),f}(g.default);l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(m,f){var u=document.createElement("a");u.href=m;var c=u.href.slice(0,u.href.indexOf(":"));return f.indexOf(c)>-1}o.default=l,o.sanitize=v},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},y=function(){function f(u,c){for(var _=0;_<c.length;_++){var s=c[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,c,_){return c&&f(u.prototype,c),_&&f(u,_),u}}(),h=i(23),g=a(h),b=i(107),d=a(b);function a(f){return f&&f.__esModule?f:{default:f}}function r(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}var l=0;function v(f,u){f.setAttribute(u,f.getAttribute(u)!=="true")}var m=function(){function f(u){var c=this;r(this,f),this.select=u,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){c.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case g.default.keys.ENTER:c.togglePicker();break;case g.default.keys.ESCAPE:c.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return y(f,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(c){var _=this,s=document.createElement("span");return s.tabIndex="0",s.setAttribute("role","button"),s.classList.add("ql-picker-item"),c.hasAttribute("value")&&s.setAttribute("data-value",c.getAttribute("value")),c.textContent&&s.setAttribute("data-label",c.textContent),s.addEventListener("click",function(){_.selectItem(s,!0)}),s.addEventListener("keydown",function(w){switch(w.keyCode){case g.default.keys.ENTER:_.selectItem(s,!0),w.preventDefault();break;case g.default.keys.ESCAPE:_.escape(),w.preventDefault();break}}),s}},{key:"buildLabel",value:function(){var c=document.createElement("span");return c.classList.add("ql-picker-label"),c.innerHTML=d.default,c.tabIndex="0",c.setAttribute("role","button"),c.setAttribute("aria-expanded","false"),this.container.appendChild(c),c}},{key:"buildOptions",value:function(){var c=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(s){var w=c.buildItem(s);_.appendChild(w),s.selected===!0&&c.selectItem(w)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var c=this;[].slice.call(this.select.attributes).forEach(function(_){c.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var c=this;this.close(),setTimeout(function(){return c.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(c){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=this.container.querySelector(".ql-selected");if(c!==s&&(s!=null&&s.classList.remove("ql-selected"),c!=null&&(c.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(c.parentNode.children,c),c.hasAttribute("data-value")?this.label.setAttribute("data-value",c.getAttribute("data-value")):this.label.removeAttribute("data-value"),c.hasAttribute("data-label")?this.label.setAttribute("data-label",c.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":p(Event))==="object"){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var c=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];c=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var s=c!=null&&c!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",s)}}]),f}();o.default=m},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(0),y=B(p),h=i(5),g=B(h),b=i(4),d=B(b),a=i(16),r=B(a),l=i(25),v=B(l),m=i(24),f=B(m),u=i(35),c=B(u),_=i(6),s=B(_),w=i(22),L=B(w),E=i(7),S=B(E),A=i(55),C=B(A),x=i(42),O=B(x),F=i(23),M=B(F);function B(z){return z&&z.__esModule?z:{default:z}}g.default.register({"blots/block":d.default,"blots/block/embed":b.BlockEmbed,"blots/break":r.default,"blots/container":v.default,"blots/cursor":f.default,"blots/embed":c.default,"blots/inline":s.default,"blots/scroll":L.default,"blots/text":S.default,"modules/clipboard":C.default,"modules/history":O.default,"modules/keyboard":M.default}),y.default.register(d.default,r.default,f.default,s.default,L.default,S.default),o.default=g.default},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(1),y=function(){function h(g){this.domNode=g,this.domNode[p.DATA_KEY]={blot:this}}return Object.defineProperty(h.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),h.create=function(g){if(this.tagName==null)throw new p.ParchmentError("Blot definition missing tagName");var b;return Array.isArray(this.tagName)?(typeof g=="string"&&(g=g.toUpperCase(),parseInt(g).toString()===g&&(g=parseInt(g))),typeof g=="number"?b=document.createElement(this.tagName[g-1]):this.tagName.indexOf(g)>-1?b=document.createElement(g):b=document.createElement(this.tagName[0])):b=document.createElement(this.tagName),this.className&&b.classList.add(this.className),b},h.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},h.prototype.clone=function(){var g=this.domNode.cloneNode(!1);return p.create(g)},h.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[p.DATA_KEY]},h.prototype.deleteAt=function(g,b){var d=this.isolate(g,b);d.remove()},h.prototype.formatAt=function(g,b,d,a){var r=this.isolate(g,b);if(p.query(d,p.Scope.BLOT)!=null&&a)r.wrap(d,a);else if(p.query(d,p.Scope.ATTRIBUTE)!=null){var l=p.create(this.statics.scope);r.wrap(l),l.format(d,a)}},h.prototype.insertAt=function(g,b,d){var a=d==null?p.create("text",b):p.create(b,d),r=this.split(g);this.parent.insertBefore(a,r)},h.prototype.insertInto=function(g,b){b===void 0&&(b=null),this.parent!=null&&this.parent.children.remove(this);var d=null;g.children.insertBefore(this,b),b!=null&&(d=b.domNode),(this.domNode.parentNode!=g.domNode||this.domNode.nextSibling!=d)&&g.domNode.insertBefore(this.domNode,d),this.parent=g,this.attach()},h.prototype.isolate=function(g,b){var d=this.split(g);return d.split(b),d},h.prototype.length=function(){return 1},h.prototype.offset=function(g){return g===void 0&&(g=this.parent),this.parent==null||this==g?0:this.parent.children.offset(this)+this.parent.offset(g)},h.prototype.optimize=function(g){this.domNode[p.DATA_KEY]!=null&&delete this.domNode[p.DATA_KEY].mutations},h.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},h.prototype.replace=function(g){g.parent!=null&&(g.parent.insertBefore(this,g.next),g.remove())},h.prototype.replaceWith=function(g,b){var d=typeof g=="string"?p.create(g,b):g;return d.replace(this),d},h.prototype.split=function(g,b){return g===0?this:this.next},h.prototype.update=function(g,b){},h.prototype.wrap=function(g,b){var d=typeof g=="string"?p.create(g,b):g;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},h.blotName="abstract",h}();o.default=y},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(12),y=i(32),h=i(33),g=i(1),b=function(){function d(a){this.attributes={},this.domNode=a,this.build()}return d.prototype.attribute=function(a,r){r?a.add(this.domNode,r)&&(a.value(this.domNode)!=null?this.attributes[a.attrName]=a:delete this.attributes[a.attrName]):(a.remove(this.domNode),delete this.attributes[a.attrName])},d.prototype.build=function(){var a=this;this.attributes={};var r=p.default.keys(this.domNode),l=y.default.keys(this.domNode),v=h.default.keys(this.domNode);r.concat(l).concat(v).forEach(function(m){var f=g.query(m,g.Scope.ATTRIBUTE);f instanceof p.default&&(a.attributes[f.attrName]=f)})},d.prototype.copy=function(a){var r=this;Object.keys(this.attributes).forEach(function(l){var v=r.attributes[l].value(r.domNode);a.format(l,v)})},d.prototype.move=function(a){var r=this;this.copy(a),Object.keys(this.attributes).forEach(function(l){r.attributes[l].remove(r.domNode)}),this.attributes={}},d.prototype.values=function(){var a=this;return Object.keys(this.attributes).reduce(function(r,l){return r[l]=a.attributes[l].value(a.domNode),r},{})},d}();o.default=b},function(e,o,i){var p=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var r in a)a.hasOwnProperty(r)&&(d[r]=a[r])};return function(d,a){b(d,a);function r(){this.constructor=d}d.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(12);function h(b,d){var a=b.getAttribute("class")||"";return a.split(/\s+/).filter(function(r){return r.indexOf(d+"-")===0})}var g=function(b){p(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.keys=function(a){return(a.getAttribute("class")||"").split(/\s+/).map(function(r){return r.split("-").slice(0,-1).join("-")})},d.prototype.add=function(a,r){return this.canAdd(a,r)?(this.remove(a),a.classList.add(this.keyName+"-"+r),!0):!1},d.prototype.remove=function(a){var r=h(a,this.keyName);r.forEach(function(l){a.classList.remove(l)}),a.classList.length===0&&a.removeAttribute("class")},d.prototype.value=function(a){var r=h(a,this.keyName)[0]||"",l=r.slice(this.keyName.length+1);return this.canAdd(a,l)?l:""},d}(y.default);o.default=g},function(e,o,i){var p=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var r in a)a.hasOwnProperty(r)&&(d[r]=a[r])};return function(d,a){b(d,a);function r(){this.constructor=d}d.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(12);function h(b){var d=b.split("-"),a=d.slice(1).map(function(r){return r[0].toUpperCase()+r.slice(1)}).join("");return d[0]+a}var g=function(b){p(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.keys=function(a){return(a.getAttribute("style")||"").split(";").map(function(r){var l=r.split(":");return l[0].trim()})},d.prototype.add=function(a,r){return this.canAdd(a,r)?(a.style[h(this.keyName)]=r,!0):!1},d.prototype.remove=function(a){a.style[h(this.keyName)]="",a.getAttribute("style")||a.removeAttribute("style")},d.prototype.value=function(a){var r=a.style[h(this.keyName)];return this.canAdd(a,r)?r:""},d}(y.default);o.default=g},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function g(b,d){for(var a=0;a<d.length;a++){var r=d[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(b,r.key,r)}}return function(b,d,a){return d&&g(b.prototype,d),a&&g(b,a),b}}();function y(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}var h=function(){function g(b,d){y(this,g),this.quill=b,this.options=d,this.modules={}}return p(g,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(a){d.modules[a]==null&&d.addModule(a)})}},{key:"addModule",value:function(d){var a=this.quill.constructor.import("modules/"+d);return this.modules[d]=new a(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),g}();h.DEFAULTS={modules:{}},h.themes={default:h},o.default=h},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function u(c,_){for(var s=0;s<_.length;s++){var w=_[s];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(c,w.key,w)}}return function(c,_,s){return _&&u(c.prototype,_),s&&u(c,s),c}}(),y=function u(c,_,s){c===null&&(c=Function.prototype);var w=Object.getOwnPropertyDescriptor(c,_);if(w===void 0){var L=Object.getPrototypeOf(c);return L===null?void 0:u(L,_,s)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(s)}},h=i(0),g=a(h),b=i(7),d=a(b);function a(u){return u&&u.__esModule?u:{default:u}}function r(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function l(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function v(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var m="\uFEFF",f=function(u){v(c,u);function c(_){r(this,c);var s=l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,_));return s.contentNode=document.createElement("span"),s.contentNode.setAttribute("contenteditable",!1),[].slice.call(s.domNode.childNodes).forEach(function(w){s.contentNode.appendChild(w)}),s.leftGuard=document.createTextNode(m),s.rightGuard=document.createTextNode(m),s.domNode.appendChild(s.leftGuard),s.domNode.appendChild(s.contentNode),s.domNode.appendChild(s.rightGuard),s}return p(c,[{key:"index",value:function(s,w){return s===this.leftGuard?0:s===this.rightGuard?1:y(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,s,w)}},{key:"restore",value:function(s){var w=void 0,L=void 0,E=s.data.split(m).join("");if(s===this.leftGuard)if(this.prev instanceof d.default){var S=this.prev.length();this.prev.insertAt(S,E),w={startNode:this.prev.domNode,startOffset:S+E.length}}else L=document.createTextNode(E),this.parent.insertBefore(g.default.create(L),this),w={startNode:L,startOffset:E.length};else s===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,E),w={startNode:this.next.domNode,startOffset:E.length}):(L=document.createTextNode(E),this.parent.insertBefore(g.default.create(L),this.next),w={startNode:L,startOffset:E.length}));return s.data=m,w}},{key:"update",value:function(s,w){var L=this;s.forEach(function(E){if(E.type==="characterData"&&(E.target===L.leftGuard||E.target===L.rightGuard)){var S=L.restore(E.target);S&&(w.range=S)}})}}]),c}(g.default.Embed);o.default=f},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.AlignStyle=o.AlignClass=o.AlignAttribute=void 0;var p=i(0),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}var g={scope:y.default.Scope.BLOCK,whitelist:["right","center","justify"]},b=new y.default.Attributor.Attribute("align","align",g),d=new y.default.Attributor.Class("align","ql-align",g),a=new y.default.Attributor.Style("align","text-align",g);o.AlignAttribute=b,o.AlignClass=d,o.AlignStyle=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.BackgroundStyle=o.BackgroundClass=void 0;var p=i(0),y=g(p),h=i(26);function g(a){return a&&a.__esModule?a:{default:a}}var b=new y.default.Attributor.Class("background","ql-bg",{scope:y.default.Scope.INLINE}),d=new h.ColorAttributor("background","background-color",{scope:y.default.Scope.INLINE});o.BackgroundClass=b,o.BackgroundStyle=d},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.DirectionStyle=o.DirectionClass=o.DirectionAttribute=void 0;var p=i(0),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}var g={scope:y.default.Scope.BLOCK,whitelist:["rtl"]},b=new y.default.Attributor.Attribute("direction","dir",g),d=new y.default.Attributor.Class("direction","ql-direction",g),a=new y.default.Attributor.Style("direction","direction",g);o.DirectionAttribute=b,o.DirectionClass=d,o.DirectionStyle=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.FontClass=o.FontStyle=void 0;var p=function(){function u(c,_){for(var s=0;s<_.length;s++){var w=_[s];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(c,w.key,w)}}return function(c,_,s){return _&&u(c.prototype,_),s&&u(c,s),c}}(),y=function u(c,_,s){c===null&&(c=Function.prototype);var w=Object.getOwnPropertyDescriptor(c,_);if(w===void 0){var L=Object.getPrototypeOf(c);return L===null?void 0:u(L,_,s)}else{if("value"in w)return w.value;var E=w.get;return E===void 0?void 0:E.call(s)}},h=i(0),g=b(h);function b(u){return u&&u.__esModule?u:{default:u}}function d(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function a(u,c){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:u}function r(u,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);u.prototype=Object.create(c&&c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(u,c):u.__proto__=c)}var l={scope:g.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new g.default.Attributor.Class("font","ql-font",l),m=function(u){r(c,u);function c(){return d(this,c),a(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}return p(c,[{key:"value",value:function(s){return y(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"value",this).call(this,s).replace(/["']/g,"")}}]),c}(g.default.Attributor.Style),f=new m("font","font-family",l);o.FontStyle=f,o.FontClass=v},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.SizeStyle=o.SizeClass=void 0;var p=i(0),y=h(p);function h(d){return d&&d.__esModule?d:{default:d}}var g=new y.default.Attributor.Class("size","ql-size",{scope:y.default.Scope.INLINE,whitelist:["small","large","huge"]}),b=new y.default.Attributor.Style("size","font-size",{scope:y.default.Scope.INLINE,whitelist:["10px","18px","32px"]});o.SizeClass=g,o.SizeStyle=b},function(e,o,i){e.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{"1":i(92),"2":i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.getLastChangeIndex=o.default=void 0;var p=function(){function _(s,w){for(var L=0;L<w.length;L++){var E=w[L];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,w,L){return w&&_(s.prototype,w),L&&_(s,L),s}}(),y=i(0),h=r(y),g=i(5),b=r(g),d=i(9),a=r(d);function r(_){return _&&_.__esModule?_:{default:_}}function l(_,s){if(!(_ instanceof s))throw new TypeError("Cannot call a class as a function")}function v(_,s){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:_}function m(_,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);_.prototype=Object.create(s&&s.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(_,s):_.__proto__=s)}var f=function(_){m(s,_);function s(w,L){l(this,s);var E=v(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,w,L));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(b.default.events.EDITOR_CHANGE,function(S,A,C,x){S!==b.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||x===b.default.sources.USER?E.record(A,C):E.transform(A))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return p(s,[{key:"change",value:function(L,E){if(this.stack[L].length!==0){var S=this.stack[L].pop();this.stack[E].push(S),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(S[L],b.default.sources.USER),this.ignoreChange=!1;var A=c(S[L]);this.quill.setSelection(A)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(L,E){if(L.ops.length!==0){this.stack.redo=[];var S=this.quill.getContents().diff(E),A=Date.now();if(this.lastRecorded+this.options.delay>A&&this.stack.undo.length>0){var C=this.stack.undo.pop();S=S.compose(C.undo),L=C.redo.compose(L)}else this.lastRecorded=A;this.stack.undo.push({redo:L,undo:S}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(L){this.stack.undo.forEach(function(E){E.undo=L.transform(E.undo,!0),E.redo=L.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=L.transform(E.undo,!0),E.redo=L.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),s}(a.default);f.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function u(_){var s=_.ops[_.ops.length-1];return s==null?!1:s.insert!=null?typeof s.insert=="string"&&s.insert.endsWith(`
|
|
38
|
+
`):s.attributes!=null?Object.keys(s.attributes).some(function(w){return h.default.query(w,h.default.Scope.BLOCK)!=null}):!1}function c(_){var s=_.reduce(function(L,E){return L+=E.delete||0,L},0),w=_.length()-s;return u(_)&&(w-=1),w}o.default=f,o.getLastChangeIndex=c},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BaseTooltip=void 0;var p=function(){function T(R,D){for(var V=0;V<D.length;V++){var N=D[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(R,N.key,N)}}return function(R,D,V){return D&&T(R.prototype,D),V&&T(R,V),R}}(),y=function T(R,D,V){R===null&&(R=Function.prototype);var N=Object.getOwnPropertyDescriptor(R,D);if(N===void 0){var I=Object.getPrototypeOf(R);return I===null?void 0:T(I,D,V)}else{if("value"in N)return N.value;var H=N.get;return H===void 0?void 0:H.call(V)}},h=i(3),g=A(h),b=i(2),d=A(b),a=i(8),r=A(a),l=i(23),v=A(l),m=i(34),f=A(m),u=i(59),c=A(u),_=i(60),s=A(_),w=i(28),L=A(w),E=i(61),S=A(E);function A(T){return T&&T.__esModule?T:{default:T}}function C(T,R){if(!(T instanceof R))throw new TypeError("Cannot call a class as a function")}function x(T,R){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:T}function O(T,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);T.prototype=Object.create(R&&R.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(T,R):T.__proto__=R)}var F=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],B=[!1,"serif","monospace"],z=["1","2","3",!1],q=["small",!1,"large","huge"],G=function(T){O(R,T);function R(D,V){C(this,R);var N=x(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,D,V)),I=function H(W){if(!document.body.contains(D.root))return document.body.removeEventListener("click",H);N.tooltip!=null&&!N.tooltip.root.contains(W.target)&&document.activeElement!==N.tooltip.textbox&&!N.quill.hasFocus()&&N.tooltip.hide(),N.pickers!=null&&N.pickers.forEach(function(K){K.container.contains(W.target)||K.close()})};return D.emitter.listenDOM("click",document.body,I),N}return p(R,[{key:"addModule",value:function(V){var N=y(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"addModule",this).call(this,V);return V==="toolbar"&&this.extendToolbar(N),N}},{key:"buildButtons",value:function(V,N){V.forEach(function(I){var H=I.getAttribute("class")||"";H.split(/\s+/).forEach(function(W){if(!!W.startsWith("ql-")&&(W=W.slice("ql-".length),N[W]!=null))if(W==="direction")I.innerHTML=N[W][""]+N[W].rtl;else if(typeof N[W]=="string")I.innerHTML=N[W];else{var K=I.value||"";K!=null&&N[W][K]&&(I.innerHTML=N[W][K])}})})}},{key:"buildPickers",value:function(V,N){var I=this;this.pickers=V.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&k(W,F),new s.default(W,N.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var K=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&k(W,M,K==="background"?"#ffffff":"#000000"),new c.default(W,N[K])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?k(W,B):W.classList.contains("ql-header")?k(W,z):W.classList.contains("ql-size")&&k(W,q)),new L.default(W)});var H=function(){I.pickers.forEach(function(K){K.update()})};this.quill.on(r.default.events.EDITOR_CHANGE,H)}}]),R}(f.default);G.DEFAULTS=(0,g.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var R=this,D=this.container.querySelector("input.ql-image[type=file]");D==null&&(D=document.createElement("input"),D.setAttribute("type","file"),D.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),D.classList.add("ql-image"),D.addEventListener("change",function(){if(D.files!=null&&D.files[0]!=null){var V=new FileReader;V.onload=function(N){var I=R.quill.getSelection(!0);R.quill.updateContents(new d.default().retain(I.index).delete(I.length).insert({image:N.target.result}),r.default.sources.USER),R.quill.setSelection(I.index+1,r.default.sources.SILENT),D.value=""},V.readAsDataURL(D.files[0])}}),this.container.appendChild(D)),D.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(T){O(R,T);function R(D,V){C(this,R);var N=x(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,D,V));return N.textbox=N.root.querySelector('input[type="text"]'),N.listen(),N}return p(R,[{key:"listen",value:function(){var V=this;this.textbox.addEventListener("keydown",function(N){v.default.match(N,"enter")?(V.save(),N.preventDefault()):v.default.match(N,"escape")&&(V.cancel(),N.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),N!=null?this.textbox.value=N:V!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+V)||""),this.root.setAttribute("data-mode",V)}},{key:"restoreFocus",value:function(){var V=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=V}},{key:"save",value:function(){var V=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var N=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",V,r.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",V,r.default.sources.USER)),this.quill.root.scrollTop=N;break}case"video":V=P(V);case"formula":{if(!V)break;var I=this.quill.getSelection(!0);if(I!=null){var H=I.index+I.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),V,r.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",r.default.sources.USER),this.quill.setSelection(H+2,r.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),R}(S.default);function P(T){var R=T.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||T.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return R?(R[1]||"https")+"://www.youtube.com/embed/"+R[2]+"?showinfo=0":(R=T.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(R[1]||"https")+"://player.vimeo.com/video/"+R[2]+"/":T}function k(T,R){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;R.forEach(function(V){var N=document.createElement("option");V===D?N.setAttribute("selected","selected"):N.setAttribute("value",V),T.appendChild(N)})}o.BaseTooltip=j,o.default=G},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function y(){this.head=this.tail=null,this.length=0}return y.prototype.append=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];this.insertBefore(h[0],null),h.length>1&&this.append.apply(this,h.slice(1))},y.prototype.contains=function(h){for(var g,b=this.iterator();g=b();)if(g===h)return!0;return!1},y.prototype.insertBefore=function(h,g){!h||(h.next=g,g!=null?(h.prev=g.prev,g.prev!=null&&(g.prev.next=h),g.prev=h,g===this.head&&(this.head=h)):this.tail!=null?(this.tail.next=h,h.prev=this.tail,this.tail=h):(h.prev=null,this.head=this.tail=h),this.length+=1)},y.prototype.offset=function(h){for(var g=0,b=this.head;b!=null;){if(b===h)return g;g+=b.length(),b=b.next}return-1},y.prototype.remove=function(h){!this.contains(h)||(h.prev!=null&&(h.prev.next=h.next),h.next!=null&&(h.next.prev=h.prev),h===this.head&&(this.head=h.next),h===this.tail&&(this.tail=h.prev),this.length-=1)},y.prototype.iterator=function(h){return h===void 0&&(h=this.head),function(){var g=h;return h!=null&&(h=h.next),g}},y.prototype.find=function(h,g){g===void 0&&(g=!1);for(var b,d=this.iterator();b=d();){var a=b.length();if(h<a||g&&h===a&&(b.next==null||b.next.length()!==0))return[b,h];h-=a}return[null,0]},y.prototype.forEach=function(h){for(var g,b=this.iterator();g=b();)h(g)},y.prototype.forEachAt=function(h,g,b){if(!(g<=0))for(var d=this.find(h),a=d[0],r=d[1],l,v=h-r,m=this.iterator(a);(l=m())&&v<h+g;){var f=l.length();h>v?b(l,h-v,Math.min(g,v+f-h)):b(l,0,Math.min(f,h+g-v)),v+=f}},y.prototype.map=function(h){return this.reduce(function(g,b){return g.push(h(b)),g},[])},y.prototype.reduce=function(h,g){for(var b,d=this.iterator();b=d();)g=h(g,b);return g},y}();o.default=p},function(e,o,i){var p=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,l){r.__proto__=l}||function(r,l){for(var v in l)l.hasOwnProperty(v)&&(r[v]=l[v])};return function(r,l){a(r,l);function v(){this.constructor=r}r.prototype=l===null?Object.create(l):(v.prototype=l.prototype,new v)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(17),h=i(1),g={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},b=100,d=function(a){p(r,a);function r(l){var v=a.call(this,l)||this;return v.scroll=v,v.observer=new MutationObserver(function(m){v.update(m)}),v.observer.observe(v.domNode,g),v.attach(),v}return r.prototype.detach=function(){a.prototype.detach.call(this),this.observer.disconnect()},r.prototype.deleteAt=function(l,v){this.update(),l===0&&v===this.length()?this.children.forEach(function(m){m.remove()}):a.prototype.deleteAt.call(this,l,v)},r.prototype.formatAt=function(l,v,m,f){this.update(),a.prototype.formatAt.call(this,l,v,m,f)},r.prototype.insertAt=function(l,v,m){this.update(),a.prototype.insertAt.call(this,l,v,m)},r.prototype.optimize=function(l,v){var m=this;l===void 0&&(l=[]),v===void 0&&(v={}),a.prototype.optimize.call(this,v);for(var f=[].slice.call(this.observer.takeRecords());f.length>0;)l.push(f.pop());for(var u=function(w,L){L===void 0&&(L=!0),!(w==null||w===m)&&w.domNode.parentNode!=null&&(w.domNode[h.DATA_KEY].mutations==null&&(w.domNode[h.DATA_KEY].mutations=[]),L&&u(w.parent))},c=function(w){w.domNode[h.DATA_KEY]==null||w.domNode[h.DATA_KEY].mutations==null||(w instanceof y.default&&w.children.forEach(c),w.optimize(v))},_=l,s=0;_.length>0;s+=1){if(s>=b)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(w){var L=h.find(w.target,!0);L!=null&&(L.domNode===w.target&&(w.type==="childList"?(u(h.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(E){var S=h.find(E,!1);u(S,!1),S instanceof y.default&&S.children.forEach(function(A){u(A,!1)})})):w.type==="attributes"&&u(L.prev)),u(L))}),this.children.forEach(c),_=[].slice.call(this.observer.takeRecords()),f=_.slice();f.length>0;)l.push(f.pop())}},r.prototype.update=function(l,v){var m=this;v===void 0&&(v={}),l=l||this.observer.takeRecords(),l.map(function(f){var u=h.find(f.target,!0);return u==null?null:u.domNode[h.DATA_KEY].mutations==null?(u.domNode[h.DATA_KEY].mutations=[f],u):(u.domNode[h.DATA_KEY].mutations.push(f),null)}).forEach(function(f){f==null||f===m||f.domNode[h.DATA_KEY]==null||f.update(f.domNode[h.DATA_KEY].mutations||[],v)}),this.domNode[h.DATA_KEY].mutations!=null&&a.prototype.update.call(this,this.domNode[h.DATA_KEY].mutations,v),this.optimize(l,v)},r.blotName="scroll",r.defaultChild="block",r.scope=h.Scope.BLOCK_BLOT,r.tagName="DIV",r}(y.default);o.default=d},function(e,o,i){var p=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var l in r)r.hasOwnProperty(l)&&(a[l]=r[l])};return function(a,r){d(a,r);function l(){this.constructor=a}a.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(18),h=i(1);function g(d,a){if(Object.keys(d).length!==Object.keys(a).length)return!1;for(var r in d)if(d[r]!==a[r])return!1;return!0}var b=function(d){p(a,d);function a(){return d!==null&&d.apply(this,arguments)||this}return a.formats=function(r){if(r.tagName!==a.tagName)return d.formats.call(this,r)},a.prototype.format=function(r,l){var v=this;r===this.statics.blotName&&!l?(this.children.forEach(function(m){m instanceof y.default||(m=m.wrap(a.blotName,!0)),v.attributes.copy(m)}),this.unwrap()):d.prototype.format.call(this,r,l)},a.prototype.formatAt=function(r,l,v,m){if(this.formats()[v]!=null||h.query(v,h.Scope.ATTRIBUTE)){var f=this.isolate(r,l);f.format(v,m)}else d.prototype.formatAt.call(this,r,l,v,m)},a.prototype.optimize=function(r){d.prototype.optimize.call(this,r);var l=this.formats();if(Object.keys(l).length===0)return this.unwrap();var v=this.next;v instanceof a&&v.prev===this&&g(l,v.formats())&&(v.moveChildren(this),v.remove())},a.blotName="inline",a.scope=h.Scope.INLINE_BLOT,a.tagName="SPAN",a}(y.default);o.default=b},function(e,o,i){var p=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var r in a)a.hasOwnProperty(r)&&(d[r]=a[r])};return function(d,a){b(d,a);function r(){this.constructor=d}d.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(18),h=i(1),g=function(b){p(d,b);function d(){return b!==null&&b.apply(this,arguments)||this}return d.formats=function(a){var r=h.query(d.blotName).tagName;if(a.tagName!==r)return b.formats.call(this,a)},d.prototype.format=function(a,r){h.query(a,h.Scope.BLOCK)!=null&&(a===this.statics.blotName&&!r?this.replaceWith(d.blotName):b.prototype.format.call(this,a,r))},d.prototype.formatAt=function(a,r,l,v){h.query(l,h.Scope.BLOCK)!=null?this.format(l,v):b.prototype.formatAt.call(this,a,r,l,v)},d.prototype.insertAt=function(a,r,l){if(l==null||h.query(r,h.Scope.INLINE)!=null)b.prototype.insertAt.call(this,a,r,l);else{var v=this.split(a),m=h.create(r,l);v.parent.insertBefore(m,v)}},d.prototype.update=function(a,r){navigator.userAgent.match(/Trident/)?this.build():b.prototype.update.call(this,a,r)},d.blotName="block",d.scope=h.Scope.BLOCK_BLOT,d.tagName="P",d}(y.default);o.default=g},function(e,o,i){var p=this&&this.__extends||function(){var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return function(b,d){g(b,d);function a(){this.constructor=b}b.prototype=d===null?Object.create(d):(a.prototype=d.prototype,new a)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(19),h=function(g){p(b,g);function b(){return g!==null&&g.apply(this,arguments)||this}return b.formats=function(d){},b.prototype.format=function(d,a){g.prototype.formatAt.call(this,0,this.length(),d,a)},b.prototype.formatAt=function(d,a,r,l){d===0&&a===this.length()?this.format(r,l):g.prototype.formatAt.call(this,d,a,r,l)},b.prototype.formats=function(){return this.statics.formats(this.domNode)},b}(y.default);o.default=h},function(e,o,i){var p=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var r in a)a.hasOwnProperty(r)&&(d[r]=a[r])};return function(d,a){b(d,a);function r(){this.constructor=d}d.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}}();Object.defineProperty(o,"__esModule",{value:!0});var y=i(19),h=i(1),g=function(b){p(d,b);function d(a){var r=b.call(this,a)||this;return r.text=r.statics.value(r.domNode),r}return d.create=function(a){return document.createTextNode(a)},d.value=function(a){var r=a.data;return r.normalize&&(r=r.normalize()),r},d.prototype.deleteAt=function(a,r){this.domNode.data=this.text=this.text.slice(0,a)+this.text.slice(a+r)},d.prototype.index=function(a,r){return this.domNode===a?r:-1},d.prototype.insertAt=function(a,r,l){l==null?(this.text=this.text.slice(0,a)+r+this.text.slice(a),this.domNode.data=this.text):b.prototype.insertAt.call(this,a,r,l)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(a){b.prototype.optimize.call(this,a),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(a,r){return[this.domNode,a]},d.prototype.split=function(a,r){if(r===void 0&&(r=!1),!r){if(a===0)return this;if(a===this.length())return this.next}var l=h.create(this.domNode.splitText(a));return this.parent.insertBefore(l,this.next),this.text=this.statics.value(this.domNode),l},d.prototype.update=function(a,r){var l=this;a.some(function(v){return v.type==="characterData"&&v.target===l.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=h.Scope.INLINE_BLOT,d}(y.default);o.default=g},function(e,o,i){var p=document.createElement("div");if(p.classList.toggle("test-class",!1),p.classList.contains("test-class")){var y=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(h,g){return arguments.length>1&&!this.contains(h)==!g?g:y.call(this,h)}}String.prototype.startsWith||(String.prototype.startsWith=function(h,g){return g=g||0,this.substr(g,h.length)===h}),String.prototype.endsWith||(String.prototype.endsWith=function(h,g){var b=this.toString();(typeof g!="number"||!isFinite(g)||Math.floor(g)!==g||g>b.length)&&(g=b.length),g-=h.length;var d=b.indexOf(h,g);return d!==-1&&d===g}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(g){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof g!="function")throw new TypeError("predicate must be a function");for(var b=Object(this),d=b.length>>>0,a=arguments[1],r,l=0;l<d;l++)if(r=b[l],g.call(a,r,l,b))return r}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(e,o){var i=-1,p=1,y=0;function h(s,w,L){if(s==w)return s?[[y,s]]:[];(L<0||s.length<L)&&(L=null);var E=a(s,w),S=s.substring(0,E);s=s.substring(E),w=w.substring(E),E=r(s,w);var A=s.substring(s.length-E);s=s.substring(0,s.length-E),w=w.substring(0,w.length-E);var C=g(s,w);return S&&C.unshift([y,S]),A&&C.push([y,A]),v(C),L!=null&&(C=u(C,L)),C=c(C),C}function g(s,w){var L;if(!s)return[[p,w]];if(!w)return[[i,s]];var E=s.length>w.length?s:w,S=s.length>w.length?w:s,A=E.indexOf(S);if(A!=-1)return L=[[p,E.substring(0,A)],[y,S],[p,E.substring(A+S.length)]],s.length>w.length&&(L[0][0]=L[2][0]=i),L;if(S.length==1)return[[i,s],[p,w]];var C=l(s,w);if(C){var x=C[0],O=C[1],F=C[2],M=C[3],B=C[4],z=h(x,F),q=h(O,M);return z.concat([[y,B]],q)}return b(s,w)}function b(s,w){for(var L=s.length,E=w.length,S=Math.ceil((L+E)/2),A=S,C=2*S,x=new Array(C),O=new Array(C),F=0;F<C;F++)x[F]=-1,O[F]=-1;x[A+1]=0,O[A+1]=0;for(var M=L-E,B=M%2!=0,z=0,q=0,G=0,j=0,P=0;P<S;P++){for(var k=-P+z;k<=P-q;k+=2){var T=A+k,R;k==-P||k!=P&&x[T-1]<x[T+1]?R=x[T+1]:R=x[T-1]+1;for(var D=R-k;R<L&&D<E&&s.charAt(R)==w.charAt(D);)R++,D++;if(x[T]=R,R>L)q+=2;else if(D>E)z+=2;else if(B){var V=A+M-k;if(V>=0&&V<C&&O[V]!=-1){var N=L-O[V];if(R>=N)return d(s,w,R,D)}}}for(var I=-P+G;I<=P-j;I+=2){var V=A+I,N;I==-P||I!=P&&O[V-1]<O[V+1]?N=O[V+1]:N=O[V-1]+1;for(var H=N-I;N<L&&H<E&&s.charAt(L-N-1)==w.charAt(E-H-1);)N++,H++;if(O[V]=N,N>L)j+=2;else if(H>E)G+=2;else if(!B){var T=A+M-I;if(T>=0&&T<C&&x[T]!=-1){var R=x[T],D=A+R-T;if(N=L-N,R>=N)return d(s,w,R,D)}}}}return[[i,s],[p,w]]}function d(s,w,L,E){var S=s.substring(0,L),A=w.substring(0,E),C=s.substring(L),x=w.substring(E),O=h(S,A),F=h(C,x);return O.concat(F)}function a(s,w){if(!s||!w||s.charAt(0)!=w.charAt(0))return 0;for(var L=0,E=Math.min(s.length,w.length),S=E,A=0;L<S;)s.substring(A,S)==w.substring(A,S)?(L=S,A=L):E=S,S=Math.floor((E-L)/2+L);return S}function r(s,w){if(!s||!w||s.charAt(s.length-1)!=w.charAt(w.length-1))return 0;for(var L=0,E=Math.min(s.length,w.length),S=E,A=0;L<S;)s.substring(s.length-S,s.length-A)==w.substring(w.length-S,w.length-A)?(L=S,A=L):E=S,S=Math.floor((E-L)/2+L);return S}function l(s,w){var L=s.length>w.length?s:w,E=s.length>w.length?w:s;if(L.length<4||E.length*2<L.length)return null;function S(q,G,j){for(var P=q.substring(j,j+Math.floor(q.length/4)),k=-1,T="",R,D,V,N;(k=G.indexOf(P,k+1))!=-1;){var I=a(q.substring(j),G.substring(k)),H=r(q.substring(0,j),G.substring(0,k));T.length<H+I&&(T=G.substring(k-H,k)+G.substring(k,k+I),R=q.substring(0,j-H),D=q.substring(j+I),V=G.substring(0,k-H),N=G.substring(k+I))}return T.length*2>=q.length?[R,D,V,N,T]:null}var A=S(L,E,Math.ceil(L.length/4)),C=S(L,E,Math.ceil(L.length/2)),x;if(!A&&!C)return null;C?A?x=A[4].length>C[4].length?A:C:x=C:x=A;var O,F,M,B;s.length>w.length?(O=x[0],F=x[1],M=x[2],B=x[3]):(M=x[0],B=x[1],O=x[2],F=x[3]);var z=x[4];return[O,F,M,B,z]}function v(s){s.push([y,""]);for(var w=0,L=0,E=0,S="",A="",C;w<s.length;)switch(s[w][0]){case p:E++,A+=s[w][1],w++;break;case i:L++,S+=s[w][1],w++;break;case y:L+E>1?(L!==0&&E!==0&&(C=a(A,S),C!==0&&(w-L-E>0&&s[w-L-E-1][0]==y?s[w-L-E-1][1]+=A.substring(0,C):(s.splice(0,0,[y,A.substring(0,C)]),w++),A=A.substring(C),S=S.substring(C)),C=r(A,S),C!==0&&(s[w][1]=A.substring(A.length-C)+s[w][1],A=A.substring(0,A.length-C),S=S.substring(0,S.length-C))),L===0?s.splice(w-E,L+E,[p,A]):E===0?s.splice(w-L,L+E,[i,S]):s.splice(w-L-E,L+E,[i,S],[p,A]),w=w-L-E+(L?1:0)+(E?1:0)+1):w!==0&&s[w-1][0]==y?(s[w-1][1]+=s[w][1],s.splice(w,1)):w++,E=0,L=0,S="",A="";break}s[s.length-1][1]===""&&s.pop();var x=!1;for(w=1;w<s.length-1;)s[w-1][0]==y&&s[w+1][0]==y&&(s[w][1].substring(s[w][1].length-s[w-1][1].length)==s[w-1][1]?(s[w][1]=s[w-1][1]+s[w][1].substring(0,s[w][1].length-s[w-1][1].length),s[w+1][1]=s[w-1][1]+s[w+1][1],s.splice(w-1,1),x=!0):s[w][1].substring(0,s[w+1][1].length)==s[w+1][1]&&(s[w-1][1]+=s[w+1][1],s[w][1]=s[w][1].substring(s[w+1][1].length)+s[w+1][1],s.splice(w+1,1),x=!0)),w++;x&&v(s)}var m=h;m.INSERT=p,m.DELETE=i,m.EQUAL=y,e.exports=m;function f(s,w){if(w===0)return[y,s];for(var L=0,E=0;E<s.length;E++){var S=s[E];if(S[0]===i||S[0]===y){var A=L+S[1].length;if(w===A)return[E+1,s];if(w<A){s=s.slice();var C=w-L,x=[S[0],S[1].slice(0,C)],O=[S[0],S[1].slice(C)];return s.splice(E,1,x,O),[E+1,s]}else L=A}}throw new Error("cursor_pos is out of bounds!")}function u(s,w){var L=f(s,w),E=L[1],S=L[0],A=E[S],C=E[S+1];if(A==null)return s;if(A[0]!==y)return s;if(C!=null&&A[1]+C[1]===C[1]+A[1])return E.splice(S,2,C,A),_(E,S,2);if(C!=null&&C[1].indexOf(A[1])===0){E.splice(S,2,[C[0],A[1]],[0,A[1]]);var x=C[1].slice(A[1].length);return x.length>0&&E.splice(S+2,0,[C[0],x]),_(E,S,3)}else return s}function c(s){for(var w=!1,L=function(C){return C.charCodeAt(0)>=56320&&C.charCodeAt(0)<=57343},E=function(C){return C.charCodeAt(C.length-1)>=55296&&C.charCodeAt(C.length-1)<=56319},S=2;S<s.length;S+=1)s[S-2][0]===y&&E(s[S-2][1])&&s[S-1][0]===i&&L(s[S-1][1])&&s[S][0]===p&&L(s[S][1])&&(w=!0,s[S-1][1]=s[S-2][1].slice(-1)+s[S-1][1],s[S][1]=s[S-2][1].slice(-1)+s[S][1],s[S-2][1]=s[S-2][1].slice(0,-1));if(!w)return s;for(var A=[],S=0;S<s.length;S+=1)s[S][1].length>0&&A.push(s[S]);return A}function _(s,w,L){for(var E=w+L-1;E>=0&&E>=w-1;E--)if(E+1<s.length){var S=s[E],A=s[E+1];S[0]===A[1]&&s.splice(E,2,[S[0],S[1]+A[1]])}return s}},function(e,o){o=e.exports=typeof Object.keys=="function"?Object.keys:i,o.shim=i;function i(p){var y=[];for(var h in p)y.push(h);return y}},function(e,o){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";o=e.exports=i?p:y,o.supported=p;function p(h){return Object.prototype.toString.call(h)=="[object Arguments]"}o.unsupported=y;function y(h){return h&&typeof h=="object"&&typeof h.length=="number"&&Object.prototype.hasOwnProperty.call(h,"callee")&&!Object.prototype.propertyIsEnumerable.call(h,"callee")||!1}},function(e,o){var i=Object.prototype.hasOwnProperty,p="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(p=!1));function h(b,d,a){this.fn=b,this.context=d,this.once=a||!1}function g(){this._events=new y,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],a,r;if(this._eventsCount===0)return d;for(r in a=this._events)i.call(a,r)&&d.push(p?r.slice(1):r);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(a)):d},g.prototype.listeners=function(d,a){var r=p?p+d:d,l=this._events[r];if(a)return!!l;if(!l)return[];if(l.fn)return[l.fn];for(var v=0,m=l.length,f=new Array(m);v<m;v++)f[v]=l[v].fn;return f},g.prototype.emit=function(d,a,r,l,v,m){var f=p?p+d:d;if(!this._events[f])return!1;var u=this._events[f],c=arguments.length,_,s;if(u.fn){switch(u.once&&this.removeListener(d,u.fn,void 0,!0),c){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,a),!0;case 3:return u.fn.call(u.context,a,r),!0;case 4:return u.fn.call(u.context,a,r,l),!0;case 5:return u.fn.call(u.context,a,r,l,v),!0;case 6:return u.fn.call(u.context,a,r,l,v,m),!0}for(s=1,_=new Array(c-1);s<c;s++)_[s-1]=arguments[s];u.fn.apply(u.context,_)}else{var w=u.length,L;for(s=0;s<w;s++)switch(u[s].once&&this.removeListener(d,u[s].fn,void 0,!0),c){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,a);break;case 3:u[s].fn.call(u[s].context,a,r);break;case 4:u[s].fn.call(u[s].context,a,r,l);break;default:if(!_)for(L=1,_=new Array(c-1);L<c;L++)_[L-1]=arguments[L];u[s].fn.apply(u[s].context,_)}}return!0},g.prototype.on=function(d,a,r){var l=new h(a,r||this),v=p?p+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],l]:this._events[v].push(l):(this._events[v]=l,this._eventsCount++),this},g.prototype.once=function(d,a,r){var l=new h(a,r||this,!0),v=p?p+d:d;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],l]:this._events[v].push(l):(this._events[v]=l,this._eventsCount++),this},g.prototype.removeListener=function(d,a,r,l){var v=p?p+d:d;if(!this._events[v])return this;if(!a)return--this._eventsCount==0?this._events=new y:delete this._events[v],this;var m=this._events[v];if(m.fn)m.fn===a&&(!l||m.once)&&(!r||m.context===r)&&(--this._eventsCount==0?this._events=new y:delete this._events[v]);else{for(var f=0,u=[],c=m.length;f<c;f++)(m[f].fn!==a||l&&!m[f].once||r&&m[f].context!==r)&&u.push(m[f]);u.length?this._events[v]=u.length===1?u[0]:u:--this._eventsCount==0?this._events=new y:delete this._events[v]}return this},g.prototype.removeAllListeners=function(d){var a;return d?(a=p?p+d:d,this._events[a]&&(--this._eventsCount==0?this._events=new y:delete this._events[a])):(this._events=new y,this._eventsCount=0),this},g.prototype.off=g.prototype.removeListener,g.prototype.addListener=g.prototype.on,g.prototype.setMaxListeners=function(){return this},g.prefixed=p,g.EventEmitter=g,typeof e!="undefined"&&(e.exports=g)},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.matchText=o.matchSpacing=o.matchNewline=o.matchBlot=o.matchAttributor=o.default=void 0;var p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(U){return typeof U}:function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},y=function(){function U($,J){var Y=[],Z=!0,te=!1,ne=void 0;try{for(var ie=$[Symbol.iterator](),ce;!(Z=(ce=ie.next()).done)&&(Y.push(ce.value),!(J&&Y.length===J));Z=!0);}catch(fe){te=!0,ne=fe}finally{try{!Z&&ie.return&&ie.return()}finally{if(te)throw ne}}return Y}return function($,J){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return U($,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),h=function(){function U($,J){for(var Y=0;Y<J.length;Y++){var Z=J[Y];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty($,Z.key,Z)}}return function($,J,Y){return J&&U($.prototype,J),Y&&U($,Y),$}}(),g=i(3),b=O(g),d=i(2),a=O(d),r=i(0),l=O(r),v=i(5),m=O(v),f=i(10),u=O(f),c=i(9),_=O(c),s=i(36),w=i(37),L=i(13),E=O(L),S=i(26),A=i(38),C=i(39),x=i(40);function O(U){return U&&U.__esModule?U:{default:U}}function F(U,$,J){return $ in U?Object.defineProperty(U,$,{value:J,enumerable:!0,configurable:!0,writable:!0}):U[$]=J,U}function M(U,$){if(!(U instanceof $))throw new TypeError("Cannot call a class as a function")}function B(U,$){if(!U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $&&(typeof $=="object"||typeof $=="function")?$:U}function z(U,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof $);U.prototype=Object.create($&&$.prototype,{constructor:{value:U,enumerable:!1,writable:!0,configurable:!0}}),$&&(Object.setPrototypeOf?Object.setPrototypeOf(U,$):U.__proto__=$)}var q=(0,u.default)("quill:clipboard"),G="__ql-matcher",j=[[Node.TEXT_NODE,se],[Node.TEXT_NODE,re],["br",X],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,K],[Node.ELEMENT_NODE,oe],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,ue],["li",ee],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",Q]],P=[s.AlignAttribute,A.DirectionAttribute].reduce(function(U,$){return U[$.keyName]=$,U},{}),k=[s.AlignStyle,w.BackgroundStyle,S.ColorStyle,A.DirectionStyle,C.FontStyle,x.SizeStyle].reduce(function(U,$){return U[$.keyName]=$,U},{}),T=function(U){z($,U);function $(J,Y){M(this,$);var Z=B(this,($.__proto__||Object.getPrototypeOf($)).call(this,J,Y));return Z.quill.root.addEventListener("paste",Z.onPaste.bind(Z)),Z.container=Z.quill.addContainer("ql-clipboard"),Z.container.setAttribute("contenteditable",!0),Z.container.setAttribute("tabindex",-1),Z.matchers=[],j.concat(Z.options.matchers).forEach(function(te){var ne=y(te,2),ie=ne[0],ce=ne[1];!Y.matchVisual&&ce===oe||Z.addMatcher(ie,ce)}),Z}return h($,[{key:"addMatcher",value:function(Y,Z){this.matchers.push([Y,Z])}},{key:"convert",value:function(Y){if(typeof Y=="string")return this.container.innerHTML=Y.replace(/\>\r?\n +\</g,"><"),this.convert();var Z=this.quill.getFormat(this.quill.selection.savedRange.index);if(Z[E.default.blotName]){var te=this.container.innerText;return this.container.innerHTML="",new a.default().insert(te,F({},E.default.blotName,Z[E.default.blotName]))}var ne=this.prepareMatching(),ie=y(ne,2),ce=ie[0],fe=ie[1],le=I(this.container,ce,fe);return V(le,`
|
|
39
|
+
`)&&le.ops[le.ops.length-1].attributes==null&&(le=le.compose(new a.default().retain(le.length()-1).delete(1))),q.log("convert",this.container.innerHTML,le),this.container.innerHTML="",le}},{key:"dangerouslyPasteHTML",value:function(Y,Z){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof Y=="string")this.quill.setContents(this.convert(Y),Z),this.quill.setSelection(0,m.default.sources.SILENT);else{var ne=this.convert(Z);this.quill.updateContents(new a.default().retain(Y).concat(ne),te),this.quill.setSelection(Y+ne.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(Y){var Z=this;if(!(Y.defaultPrevented||!this.quill.isEnabled())){var te=this.quill.getSelection(),ne=new a.default().retain(te.index),ie=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){ne=ne.concat(Z.convert()).delete(te.length),Z.quill.updateContents(ne,m.default.sources.USER),Z.quill.setSelection(ne.length()-te.length,m.default.sources.SILENT),Z.quill.scrollingContainer.scrollTop=ie,Z.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Y=this,Z=[],te=[];return this.matchers.forEach(function(ne){var ie=y(ne,2),ce=ie[0],fe=ie[1];switch(ce){case Node.TEXT_NODE:te.push(fe);break;case Node.ELEMENT_NODE:Z.push(fe);break;default:[].forEach.call(Y.container.querySelectorAll(ce),function(le){le[G]=le[G]||[],le[G].push(fe)});break}}),[Z,te]}}]),$}(_.default);T.DEFAULTS={matchers:[],matchVisual:!0};function R(U,$,J){return(typeof $=="undefined"?"undefined":p($))==="object"?Object.keys($).reduce(function(Y,Z){return R(Y,Z,$[Z])},U):U.reduce(function(Y,Z){return Z.attributes&&Z.attributes[$]?Y.push(Z):Y.insert(Z.insert,(0,b.default)({},F({},$,J),Z.attributes))},new a.default)}function D(U){if(U.nodeType!==Node.ELEMENT_NODE)return{};var $="__ql-computed-style";return U[$]||(U[$]=window.getComputedStyle(U))}function V(U,$){for(var J="",Y=U.ops.length-1;Y>=0&&J.length<$.length;--Y){var Z=U.ops[Y];if(typeof Z.insert!="string")break;J=Z.insert+J}return J.slice(-1*$.length)===$}function N(U){if(U.childNodes.length===0)return!1;var $=D(U);return["block","list-item"].indexOf($.display)>-1}function I(U,$,J){return U.nodeType===U.TEXT_NODE?J.reduce(function(Y,Z){return Z(U,Y)},new a.default):U.nodeType===U.ELEMENT_NODE?[].reduce.call(U.childNodes||[],function(Y,Z){var te=I(Z,$,J);return Z.nodeType===U.ELEMENT_NODE&&(te=$.reduce(function(ne,ie){return ie(Z,ne)},te),te=(Z[G]||[]).reduce(function(ne,ie){return ie(Z,ne)},te)),Y.concat(te)},new a.default):new a.default}function H(U,$,J){return R(J,U,!0)}function W(U,$){var J=l.default.Attributor.Attribute.keys(U),Y=l.default.Attributor.Class.keys(U),Z=l.default.Attributor.Style.keys(U),te={};return J.concat(Y).concat(Z).forEach(function(ne){var ie=l.default.query(ne,l.default.Scope.ATTRIBUTE);ie!=null&&(te[ie.attrName]=ie.value(U),te[ie.attrName])||(ie=P[ne],ie!=null&&(ie.attrName===ne||ie.keyName===ne)&&(te[ie.attrName]=ie.value(U)||void 0),ie=k[ne],ie!=null&&(ie.attrName===ne||ie.keyName===ne)&&(ie=k[ne],te[ie.attrName]=ie.value(U)||void 0))}),Object.keys(te).length>0&&($=R($,te)),$}function K(U,$){var J=l.default.query(U);if(J==null)return $;if(J.prototype instanceof l.default.Embed){var Y={},Z=J.value(U);Z!=null&&(Y[J.blotName]=Z,$=new a.default().insert(Y,J.formats(U)))}else typeof J.formats=="function"&&($=R($,J.blotName,J.formats(U)));return $}function X(U,$){return V($,`
|
|
40
|
+
`)||$.insert(`
|
|
41
|
+
`),$}function Q(){return new a.default}function ee(U,$){var J=l.default.query(U);if(J==null||J.blotName!=="list-item"||!V($,`
|
|
42
|
+
`))return $;for(var Y=-1,Z=U.parentNode;!Z.classList.contains("ql-clipboard");)(l.default.query(Z)||{}).blotName==="list"&&(Y+=1),Z=Z.parentNode;return Y<=0?$:$.compose(new a.default().retain($.length()-1).retain(1,{indent:Y}))}function re(U,$){return V($,`
|
|
43
|
+
`)||(N(U)||$.length()>0&&U.nextSibling&&N(U.nextSibling))&&$.insert(`
|
|
44
|
+
`),$}function oe(U,$){if(N(U)&&U.nextElementSibling!=null&&!V($,`
|
|
45
|
+
|
|
46
|
+
`)){var J=U.offsetHeight+parseFloat(D(U).marginTop)+parseFloat(D(U).marginBottom);U.nextElementSibling.offsetTop>U.offsetTop+J*1.5&&$.insert(`
|
|
47
|
+
`)}return $}function ue(U,$){var J={},Y=U.style||{};return Y.fontStyle&&D(U).fontStyle==="italic"&&(J.italic=!0),Y.fontWeight&&(D(U).fontWeight.startsWith("bold")||parseInt(D(U).fontWeight)>=700)&&(J.bold=!0),Object.keys(J).length>0&&($=R($,J)),parseFloat(Y.textIndent||0)>0&&($=new a.default().insert(" ").concat($)),$}function se(U,$){var J=U.data;if(U.parentNode.tagName==="O:P")return $.insert(J.trim());if(J.trim().length===0&&U.parentNode.classList.contains("ql-clipboard"))return $;if(!D(U.parentNode).whiteSpace.startsWith("pre")){var Y=function(te,ne){return ne=ne.replace(/[^\u00a0]/g,""),ne.length<1&&te?" ":ne};J=J.replace(/\r\n/g," ").replace(/\n/g," "),J=J.replace(/\s\s+/g,Y.bind(Y,!0)),(U.previousSibling==null&&N(U.parentNode)||U.previousSibling!=null&&N(U.previousSibling))&&(J=J.replace(/^\s+/,Y.bind(Y,!1))),(U.nextSibling==null&&N(U.parentNode)||U.nextSibling!=null&&N(U.nextSibling))&&(J=J.replace(/\s+$/,Y.bind(Y,!1)))}return $.insert(J)}o.default=T,o.matchAttributor=W,o.matchBlot=K,o.matchNewline=re,o.matchSpacing=oe,o.matchText=se},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function v(m,f){for(var u=0;u<f.length;u++){var c=f[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}return function(m,f,u){return f&&v(m.prototype,f),u&&v(m,u),m}}(),y=function v(m,f,u){m===null&&(m=Function.prototype);var c=Object.getOwnPropertyDescriptor(m,f);if(c===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:v(_,f,u)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(u)}},h=i(6),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return p(m,[{key:"optimize",value:function(u){y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,u),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return y(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(g.default);l.blotName="bold",l.tagName=["STRONG","B"],o.default=l},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.addControls=o.default=void 0;var p=function(){function x(O,F){var M=[],B=!0,z=!1,q=void 0;try{for(var G=O[Symbol.iterator](),j;!(B=(j=G.next()).done)&&(M.push(j.value),!(F&&M.length===F));B=!0);}catch(P){z=!0,q=P}finally{try{!B&&G.return&&G.return()}finally{if(z)throw q}}return M}return function(O,F){if(Array.isArray(O))return O;if(Symbol.iterator in Object(O))return x(O,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function(){function x(O,F){for(var M=0;M<F.length;M++){var B=F[M];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(O,B.key,B)}}return function(O,F,M){return F&&x(O.prototype,F),M&&x(O,M),O}}(),h=i(2),g=u(h),b=i(0),d=u(b),a=i(5),r=u(a),l=i(10),v=u(l),m=i(9),f=u(m);function u(x){return x&&x.__esModule?x:{default:x}}function c(x,O,F){return O in x?Object.defineProperty(x,O,{value:F,enumerable:!0,configurable:!0,writable:!0}):x[O]=F,x}function _(x,O){if(!(x instanceof O))throw new TypeError("Cannot call a class as a function")}function s(x,O){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:x}function w(x,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);x.prototype=Object.create(O&&O.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(x,O):x.__proto__=O)}var L=(0,v.default)("quill:toolbar"),E=function(x){w(O,x);function O(F,M){_(this,O);var B=s(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,F,M));if(Array.isArray(B.options.container)){var z=document.createElement("div");A(z,B.options.container),F.container.parentNode.insertBefore(z,F.container),B.container=z}else typeof B.options.container=="string"?B.container=document.querySelector(B.options.container):B.container=B.options.container;if(!(B.container instanceof HTMLElement)){var q;return q=L.error("Container required for toolbar",B.options),s(B,q)}return B.container.classList.add("ql-toolbar"),B.controls=[],B.handlers={},Object.keys(B.options.handlers).forEach(function(G){B.addHandler(G,B.options.handlers[G])}),[].forEach.call(B.container.querySelectorAll("button, select"),function(G){B.attach(G)}),B.quill.on(r.default.events.EDITOR_CHANGE,function(G,j){G===r.default.events.SELECTION_CHANGE&&B.update(j)}),B.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){var G=B.quill.selection.getRange(),j=p(G,1),P=j[0];B.update(P)}),B}return y(O,[{key:"addHandler",value:function(M,B){this.handlers[M]=B}},{key:"attach",value:function(M){var B=this,z=[].find.call(M.classList,function(G){return G.indexOf("ql-")===0});if(!!z){if(z=z.slice("ql-".length),M.tagName==="BUTTON"&&M.setAttribute("type","button"),this.handlers[z]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[z]==null){L.warn("ignoring attaching to disabled format",z,M);return}if(d.default.query(z)==null){L.warn("ignoring attaching to nonexistent format",z,M);return}}var q=M.tagName==="SELECT"?"change":"click";M.addEventListener(q,function(G){var j=void 0;if(M.tagName==="SELECT"){if(M.selectedIndex<0)return;var P=M.options[M.selectedIndex];P.hasAttribute("selected")?j=!1:j=P.value||!1}else M.classList.contains("ql-active")?j=!1:j=M.value||!M.hasAttribute("value"),G.preventDefault();B.quill.focus();var k=B.quill.selection.getRange(),T=p(k,1),R=T[0];if(B.handlers[z]!=null)B.handlers[z].call(B,j);else if(d.default.query(z).prototype instanceof d.default.Embed){if(j=prompt("Enter "+z),!j)return;B.quill.updateContents(new g.default().retain(R.index).delete(R.length).insert(c({},z,j)),r.default.sources.USER)}else B.quill.format(z,j,r.default.sources.USER);B.update(R)}),this.controls.push([z,M])}}},{key:"update",value:function(M){var B=M==null?{}:this.quill.getFormat(M);this.controls.forEach(function(z){var q=p(z,2),G=q[0],j=q[1];if(j.tagName==="SELECT"){var P=void 0;if(M==null)P=null;else if(B[G]==null)P=j.querySelector("option[selected]");else if(!Array.isArray(B[G])){var k=B[G];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),P=j.querySelector('option[value="'+k+'"]')}P==null?(j.value="",j.selectedIndex=-1):P.selected=!0}else if(M==null)j.classList.remove("ql-active");else if(j.hasAttribute("value")){var T=B[G]===j.getAttribute("value")||B[G]!=null&&B[G].toString()===j.getAttribute("value")||B[G]==null&&!j.getAttribute("value");j.classList.toggle("ql-active",T)}else j.classList.toggle("ql-active",B[G]!=null)})}}]),O}(f.default);E.DEFAULTS={};function S(x,O,F){var M=document.createElement("button");M.setAttribute("type","button"),M.classList.add("ql-"+O),F!=null&&(M.value=F),x.appendChild(M)}function A(x,O){Array.isArray(O[0])||(O=[O]),O.forEach(function(F){var M=document.createElement("span");M.classList.add("ql-formats"),F.forEach(function(B){if(typeof B=="string")S(M,B);else{var z=Object.keys(B)[0],q=B[z];Array.isArray(q)?C(M,z,q):S(M,z,q)}}),x.appendChild(M)})}function C(x,O,F){var M=document.createElement("select");M.classList.add("ql-"+O),F.forEach(function(B){var z=document.createElement("option");B!==!1?z.setAttribute("value",B):z.setAttribute("selected","selected"),M.appendChild(z)}),x.appendChild(M)}E.DEFAULTS={container:null,handlers:{clean:function(){var O=this,F=this.quill.getSelection();if(F!=null)if(F.length==0){var M=this.quill.getFormat();Object.keys(M).forEach(function(B){d.default.query(B,d.default.Scope.INLINE)!=null&&O.quill.format(B,!1)})}else this.quill.removeFormat(F,r.default.sources.USER)},direction:function(O){var F=this.quill.getFormat().align;O==="rtl"&&F==null?this.quill.format("align","right",r.default.sources.USER):!O&&F==="right"&&this.quill.format("align",!1,r.default.sources.USER),this.quill.format("direction",O,r.default.sources.USER)},indent:function(O){var F=this.quill.getSelection(),M=this.quill.getFormat(F),B=parseInt(M.indent||0);if(O==="+1"||O==="-1"){var z=O==="+1"?1:-1;M.direction==="rtl"&&(z*=-1),this.quill.format("indent",B+z,r.default.sources.USER)}},link:function(O){O===!0&&(O=prompt("Enter link URL:")),this.quill.format("link",O,r.default.sources.USER)},list:function(O){var F=this.quill.getSelection(),M=this.quill.getFormat(F);O==="check"?M.list==="checked"||M.list==="unchecked"?this.quill.format("list",!1,r.default.sources.USER):this.quill.format("list","unchecked",r.default.sources.USER):this.quill.format("list",O,r.default.sources.USER)}}},o.default=E,o.addControls=A},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function v(m,f){for(var u=0;u<f.length;u++){var c=f[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}return function(m,f,u){return f&&v(m.prototype,f),u&&v(m,u),m}}(),y=function v(m,f,u){m===null&&(m=Function.prototype);var c=Object.getOwnPropertyDescriptor(m,f);if(c===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:v(_,f,u)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(u)}},h=i(28),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(f,u){d(this,m);var c=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,f));return c.label.innerHTML=u,c.container.classList.add("ql-color-picker"),[].slice.call(c.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),c}return p(m,[{key:"buildItem",value:function(u){var c=y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,u);return c.style.backgroundColor=u.getAttribute("value")||"",c}},{key:"selectItem",value:function(u,c){y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,u,c);var _=this.label.querySelector(".ql-color-label"),s=u&&u.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=s:_.style.fill=s)}}]),m}(g.default);o.default=l},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function v(m,f){for(var u=0;u<f.length;u++){var c=f[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}return function(m,f,u){return f&&v(m.prototype,f),u&&v(m,u),m}}(),y=function v(m,f,u){m===null&&(m=Function.prototype);var c=Object.getOwnPropertyDescriptor(m,f);if(c===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:v(_,f,u)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(u)}},h=i(28),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(f,u){d(this,m);var c=a(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,f));return c.container.classList.add("ql-icon-picker"),[].forEach.call(c.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=u[_.getAttribute("data-value")||""]}),c.defaultItem=c.container.querySelector(".ql-selected"),c.selectItem(c.defaultItem),c}return p(m,[{key:"selectItem",value:function(u,c){y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,u,c),u=u||this.defaultItem,this.label.innerHTML=u.innerHTML}}]),m}(g.default);o.default=l},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function g(b,d){for(var a=0;a<d.length;a++){var r=d[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(b,r.key,r)}}return function(b,d,a){return d&&g(b.prototype,d),a&&g(b,a),b}}();function y(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}var h=function(){function g(b,d){var a=this;y(this,g),this.quill=b,this.boundsContainer=d||document.body,this.root=b.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){a.root.style.marginTop=-1*a.quill.root.scrollTop+"px"}),this.hide()}return p(g,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var a=d.left+d.width/2-this.root.offsetWidth/2,r=d.bottom+this.quill.root.scrollTop;this.root.style.left=a+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var l=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;if(v.right>l.right&&(m=l.right-v.right,this.root.style.left=a+m+"px"),v.left<l.left&&(m=l.left-v.left,this.root.style.left=a+m+"px"),v.bottom>l.bottom){var f=v.bottom-v.top,u=d.bottom-d.top+f;this.root.style.top=r-u+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),g}();o.default=h},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function C(x,O){var F=[],M=!0,B=!1,z=void 0;try{for(var q=x[Symbol.iterator](),G;!(M=(G=q.next()).done)&&(F.push(G.value),!(O&&F.length===O));M=!0);}catch(j){B=!0,z=j}finally{try{!M&&q.return&&q.return()}finally{if(B)throw z}}return F}return function(x,O){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return C(x,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),y=function C(x,O,F){x===null&&(x=Function.prototype);var M=Object.getOwnPropertyDescriptor(x,O);if(M===void 0){var B=Object.getPrototypeOf(x);return B===null?void 0:C(B,O,F)}else{if("value"in M)return M.value;var z=M.get;return z===void 0?void 0:z.call(F)}},h=function(){function C(x,O){for(var F=0;F<O.length;F++){var M=O[F];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(x,M.key,M)}}return function(x,O,F){return O&&C(x.prototype,O),F&&C(x,F),x}}(),g=i(3),b=_(g),d=i(8),a=_(d),r=i(43),l=_(r),v=i(27),m=_(v),f=i(15),u=i(41),c=_(u);function _(C){return C&&C.__esModule?C:{default:C}}function s(C,x){if(!(C instanceof x))throw new TypeError("Cannot call a class as a function")}function w(C,x){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:C}function L(C,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);C.prototype=Object.create(x&&x.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(C,x):C.__proto__=x)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],S=function(C){L(x,C);function x(O,F){s(this,x),F.modules.toolbar!=null&&F.modules.toolbar.container==null&&(F.modules.toolbar.container=E);var M=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,O,F));return M.quill.container.classList.add("ql-snow"),M}return h(x,[{key:"extendToolbar",value:function(F){F.container.classList.add("ql-snow"),this.buildButtons([].slice.call(F.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(F.container.querySelectorAll("select")),c.default),this.tooltip=new A(this.quill,this.options.bounds),F.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(M,B){F.handlers.link.call(F,!B.format.link)})}}]),x}(l.default);S.DEFAULTS=(0,b.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(x){if(x){var O=this.quill.getSelection();if(O==null||O.length==0)return;var F=this.quill.getText(O);/^\S+@\S+\.\S+$/.test(F)&&F.indexOf("mailto:")!==0&&(F="mailto:"+F);var M=this.quill.theme.tooltip;M.edit("link",F)}else this.quill.format("link",!1)}}}}});var A=function(C){L(x,C);function x(O,F){s(this,x);var M=w(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,O,F));return M.preview=M.root.querySelector("a.ql-preview"),M}return h(x,[{key:"listen",value:function(){var F=this;y(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(M){F.root.classList.contains("ql-editing")?F.save():F.edit("link",F.preview.textContent),M.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(M){if(F.linkRange!=null){var B=F.linkRange;F.restoreFocus(),F.quill.formatText(B,"link",!1,a.default.sources.USER),delete F.linkRange}M.preventDefault(),F.hide()}),this.quill.on(a.default.events.SELECTION_CHANGE,function(M,B,z){if(M!=null){if(M.length===0&&z===a.default.sources.USER){var q=F.quill.scroll.descendant(m.default,M.index),G=p(q,2),j=G[0],P=G[1];if(j!=null){F.linkRange=new f.Range(M.index-P,j.length());var k=m.default.formats(j.domNode);F.preview.textContent=k,F.preview.setAttribute("href",k),F.show(),F.position(F.quill.getBounds(F.linkRange));return}}else delete F.linkRange;F.hide()}})}},{key:"show",value:function(){y(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),x}(r.BaseTooltip);A.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),o.default=S},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(29),y=Z(p),h=i(36),g=i(38),b=i(64),d=i(65),a=Z(d),r=i(66),l=Z(r),v=i(67),m=Z(v),f=i(37),u=i(26),c=i(39),_=i(40),s=i(56),w=Z(s),L=i(68),E=Z(L),S=i(27),A=Z(S),C=i(69),x=Z(C),O=i(70),F=Z(O),M=i(71),B=Z(M),z=i(72),q=Z(z),G=i(73),j=Z(G),P=i(13),k=Z(P),T=i(74),R=Z(T),D=i(75),V=Z(D),N=i(57),I=Z(N),H=i(41),W=Z(H),K=i(28),X=Z(K),Q=i(59),ee=Z(Q),re=i(60),oe=Z(re),ue=i(61),se=Z(ue),U=i(108),$=Z(U),J=i(62),Y=Z(J);function Z(te){return te&&te.__esModule?te:{default:te}}y.default.register({"attributors/attribute/direction":g.DirectionAttribute,"attributors/class/align":h.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":u.ColorClass,"attributors/class/direction":g.DirectionClass,"attributors/class/font":c.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":h.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":u.ColorStyle,"attributors/style/direction":g.DirectionStyle,"attributors/style/font":c.FontStyle,"attributors/style/size":_.SizeStyle},!0),y.default.register({"formats/align":h.AlignClass,"formats/direction":g.DirectionClass,"formats/indent":b.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":u.ColorStyle,"formats/font":c.FontClass,"formats/size":_.SizeClass,"formats/blockquote":a.default,"formats/code-block":k.default,"formats/header":l.default,"formats/list":m.default,"formats/bold":w.default,"formats/code":P.Code,"formats/italic":E.default,"formats/link":A.default,"formats/script":x.default,"formats/strike":F.default,"formats/underline":B.default,"formats/image":q.default,"formats/video":j.default,"formats/list/item":v.ListItem,"modules/formula":R.default,"modules/syntax":V.default,"modules/toolbar":I.default,"themes/bubble":$.default,"themes/snow":Y.default,"ui/icons":W.default,"ui/picker":X.default,"ui/icon-picker":oe.default,"ui/color-picker":ee.default,"ui/tooltip":se.default},!0),o.default=y.default},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.IndentClass=void 0;var p=function(){function m(f,u){for(var c=0;c<u.length;c++){var _=u[c];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,_.key,_)}}return function(f,u,c){return u&&m(f.prototype,u),c&&m(f,c),f}}(),y=function m(f,u,c){f===null&&(f=Function.prototype);var _=Object.getOwnPropertyDescriptor(f,u);if(_===void 0){var s=Object.getPrototypeOf(f);return s===null?void 0:m(s,u,c)}else{if("value"in _)return _.value;var w=_.get;return w===void 0?void 0:w.call(c)}},h=i(0),g=b(h);function b(m){return m&&m.__esModule?m:{default:m}}function d(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function a(m,f){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:m}function r(m,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);m.prototype=Object.create(f&&f.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(m,f):m.__proto__=f)}var l=function(m){r(f,m);function f(){return d(this,f),a(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return p(f,[{key:"add",value:function(c,_){if(_==="+1"||_==="-1"){var s=this.value(c)||0;_=_==="+1"?s+1:s-1}return _===0?(this.remove(c),!0):y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"add",this).call(this,c,_)}},{key:"canAdd",value:function(c,_){return y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,c,_)||y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"canAdd",this).call(this,c,parseInt(_))}},{key:"value",value:function(c){return parseInt(y(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"value",this).call(this,c))||void 0}}]),f}(g.default.Attributor.Class),v=new l("indent","ql-indent",{scope:g.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});o.IndentClass=v},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(4),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function b(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:r}function d(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}var a=function(r){d(l,r);function l(){return g(this,l),b(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(y.default);a.blotName="blockquote",a.tagName="blockquote",o.default=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function l(v,m){for(var f=0;f<m.length;f++){var u=m[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(v,u.key,u)}}return function(v,m,f){return m&&l(v.prototype,m),f&&l(v,f),v}}(),y=i(4),h=g(y);function g(l){return l&&l.__esModule?l:{default:l}}function b(l,v){if(!(l instanceof v))throw new TypeError("Cannot call a class as a function")}function d(l,v){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:l}function a(l,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);l.prototype=Object.create(v&&v.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(l,v):l.__proto__=v)}var r=function(l){a(v,l);function v(){return b(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return p(v,null,[{key:"formats",value:function(f){return this.tagName.indexOf(f.tagName)+1}}]),v}(h.default);r.blotName="header",r.tagName=["H1","H2","H3","H4","H5","H6"],o.default=r},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.ListItem=void 0;var p=function(){function s(w,L){for(var E=0;E<L.length;E++){var S=L[E];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(w,S.key,S)}}return function(w,L,E){return L&&s(w.prototype,L),E&&s(w,E),w}}(),y=function s(w,L,E){w===null&&(w=Function.prototype);var S=Object.getOwnPropertyDescriptor(w,L);if(S===void 0){var A=Object.getPrototypeOf(w);return A===null?void 0:s(A,L,E)}else{if("value"in S)return S.value;var C=S.get;return C===void 0?void 0:C.call(E)}},h=i(0),g=l(h),b=i(4),d=l(b),a=i(25),r=l(a);function l(s){return s&&s.__esModule?s:{default:s}}function v(s,w,L){return w in s?Object.defineProperty(s,w,{value:L,enumerable:!0,configurable:!0,writable:!0}):s[w]=L,s}function m(s,w){if(!(s instanceof w))throw new TypeError("Cannot call a class as a function")}function f(s,w){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:s}function u(s,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);s.prototype=Object.create(w&&w.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(s,w):s.__proto__=w)}var c=function(s){u(w,s);function w(){return m(this,w),f(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return p(w,[{key:"format",value:function(E,S){E===_.blotName&&!S?this.replaceWith(g.default.create(this.statics.scope)):y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,E,S)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,S){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,S),this):(this.parent.unwrap(),y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,E,S))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:y(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,E)}}]),w}(d.default);c.blotName="list-item",c.tagName="LI";var _=function(s){u(w,s),p(w,null,[{key:"create",value:function(E){var S=E==="ordered"?"OL":"UL",A=y(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,S);return(E==="checked"||E==="unchecked")&&A.setAttribute("data-checked",E==="checked"),A}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function w(L){m(this,w);var E=f(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,L)),S=function(C){if(C.target.parentNode===L){var x=E.statics.formats(L),O=g.default.find(C.target);x==="checked"?O.format("list","unchecked"):x==="unchecked"&&O.format("list","checked")}};return L.addEventListener("touchstart",S),L.addEventListener("mousedown",S),E}return p(w,[{key:"format",value:function(E,S){this.children.length>0&&this.children.tail.format(E,S)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,S){if(E instanceof c)y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,E,S);else{var A=S==null?this.length():S.offset(this),C=this.split(A);C.parent.insertBefore(E,C)}}},{key:"optimize",value:function(E){y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,E);var S=this.next;S!=null&&S.prev===this&&S.statics.blotName===this.statics.blotName&&S.domNode.tagName===this.domNode.tagName&&S.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(S.moveChildren(this),S.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var S=g.default.create(this.statics.defaultChild);E.moveChildren(S),this.appendChild(S)}y(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,E)}}]),w}(r.default);_.blotName="list",_.scope=g.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[c],o.ListItem=c,o.default=_},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(56),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function b(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:r}function d(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}var a=function(r){d(l,r);function l(){return g(this,l),b(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(y.default);a.blotName="italic",a.tagName=["EM","I"],o.default=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function v(m,f){for(var u=0;u<f.length;u++){var c=f[u];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(m,c.key,c)}}return function(m,f,u){return f&&v(m.prototype,f),u&&v(m,u),m}}(),y=function v(m,f,u){m===null&&(m=Function.prototype);var c=Object.getOwnPropertyDescriptor(m,f);if(c===void 0){var _=Object.getPrototypeOf(m);return _===null?void 0:v(_,f,u)}else{if("value"in c)return c.value;var s=c.get;return s===void 0?void 0:s.call(u)}},h=i(6),g=b(h);function b(v){return v&&v.__esModule?v:{default:v}}function d(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function a(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function r(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var l=function(v){r(m,v);function m(){return d(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return p(m,null,[{key:"create",value:function(u){return u==="super"?document.createElement("sup"):u==="sub"?document.createElement("sub"):y(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,u)}},{key:"formats",value:function(u){if(u.tagName==="SUB")return"sub";if(u.tagName==="SUP")return"super"}}]),m}(g.default);l.blotName="script",l.tagName=["SUB","SUP"],o.default=l},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(6),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function b(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:r}function d(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}var a=function(r){d(l,r);function l(){return g(this,l),b(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(y.default);a.blotName="strike",a.tagName="S",o.default=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=i(6),y=h(p);function h(r){return r&&r.__esModule?r:{default:r}}function g(r,l){if(!(r instanceof l))throw new TypeError("Cannot call a class as a function")}function b(r,l){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:r}function d(r,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);r.prototype=Object.create(l&&l.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(r,l):r.__proto__=l)}var a=function(r){d(l,r);function l(){return g(this,l),b(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return l}(y.default);a.blotName="underline",a.tagName="U",o.default=a},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function f(u,c){for(var _=0;_<c.length;_++){var s=c[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,c,_){return c&&f(u.prototype,c),_&&f(u,_),u}}(),y=function f(u,c,_){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,c);if(s===void 0){var w=Object.getPrototypeOf(u);return w===null?void 0:f(w,c,_)}else{if("value"in s)return s.value;var L=s.get;return L===void 0?void 0:L.call(_)}},h=i(0),g=d(h),b=i(27);function d(f){return f&&f.__esModule?f:{default:f}}function a(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function r(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function l(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var v=["alt","height","width"],m=function(f){l(u,f);function u(){return a(this,u),r(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return p(u,[{key:"format",value:function(_,s){v.indexOf(_)>-1?s?this.domNode.setAttribute(_,s):this.domNode.removeAttribute(_):y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,_,s)}}],[{key:"create",value:function(_){var s=y(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,_);return typeof _=="string"&&s.setAttribute("src",this.sanitize(_)),s}},{key:"formats",value:function(_){return v.reduce(function(s,w){return _.hasAttribute(w)&&(s[w]=_.getAttribute(w)),s},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,b.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),u}(g.default.Embed);m.blotName="image",m.tagName="IMG",o.default=m},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0});var p=function(){function f(u,c){for(var _=0;_<c.length;_++){var s=c[_];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(u,s.key,s)}}return function(u,c,_){return c&&f(u.prototype,c),_&&f(u,_),u}}(),y=function f(u,c,_){u===null&&(u=Function.prototype);var s=Object.getOwnPropertyDescriptor(u,c);if(s===void 0){var w=Object.getPrototypeOf(u);return w===null?void 0:f(w,c,_)}else{if("value"in s)return s.value;var L=s.get;return L===void 0?void 0:L.call(_)}},h=i(4),g=i(27),b=d(g);function d(f){return f&&f.__esModule?f:{default:f}}function a(f,u){if(!(f instanceof u))throw new TypeError("Cannot call a class as a function")}function r(f,u){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:f}function l(f,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);f.prototype=Object.create(u&&u.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(f,u):f.__proto__=u)}var v=["height","width"],m=function(f){l(u,f);function u(){return a(this,u),r(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return p(u,[{key:"format",value:function(_,s){v.indexOf(_)>-1?s?this.domNode.setAttribute(_,s):this.domNode.removeAttribute(_):y(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,_,s)}}],[{key:"create",value:function(_){var s=y(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,_);return s.setAttribute("frameborder","0"),s.setAttribute("allowfullscreen",!0),s.setAttribute("src",this.sanitize(_)),s}},{key:"formats",value:function(_){return v.reduce(function(s,w){return _.hasAttribute(w)&&(s[w]=_.getAttribute(w)),s},{})}},{key:"sanitize",value:function(_){return b.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),u}(h.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",o.default=m},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.FormulaBlot=void 0;var p=function(){function _(s,w){for(var L=0;L<w.length;L++){var E=w[L];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(s,E.key,E)}}return function(s,w,L){return w&&_(s.prototype,w),L&&_(s,L),s}}(),y=function _(s,w,L){s===null&&(s=Function.prototype);var E=Object.getOwnPropertyDescriptor(s,w);if(E===void 0){var S=Object.getPrototypeOf(s);return S===null?void 0:_(S,w,L)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(L)}},h=i(35),g=l(h),b=i(5),d=l(b),a=i(9),r=l(a);function l(_){return _&&_.__esModule?_:{default:_}}function v(_,s){if(!(_ instanceof s))throw new TypeError("Cannot call a class as a function")}function m(_,s){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:_}function f(_,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);_.prototype=Object.create(s&&s.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(_,s):_.__proto__=s)}var u=function(_){f(s,_);function s(){return v(this,s),m(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return p(s,null,[{key:"create",value:function(L){var E=y(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,L);return typeof L=="string"&&(window.katex.render(L,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",L)),E}},{key:"value",value:function(L){return L.getAttribute("data-value")}}]),s}(g.default);u.blotName="formula",u.className="ql-formula",u.tagName="SPAN";var c=function(_){f(s,_),p(s,null,[{key:"register",value:function(){d.default.register(u,!0)}}]);function s(){v(this,s);var w=m(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return w}return s}(r.default);o.FormulaBlot=u,o.default=c},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.CodeToken=o.CodeBlock=void 0;var p=function(){function L(E,S){for(var A=0;A<S.length;A++){var C=S[A];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(E,C.key,C)}}return function(E,S,A){return S&&L(E.prototype,S),A&&L(E,A),E}}(),y=function L(E,S,A){E===null&&(E=Function.prototype);var C=Object.getOwnPropertyDescriptor(E,S);if(C===void 0){var x=Object.getPrototypeOf(E);return x===null?void 0:L(x,S,A)}else{if("value"in C)return C.value;var O=C.get;return O===void 0?void 0:O.call(A)}},h=i(0),g=m(h),b=i(5),d=m(b),a=i(9),r=m(a),l=i(13),v=m(l);function m(L){return L&&L.__esModule?L:{default:L}}function f(L,E){if(!(L instanceof E))throw new TypeError("Cannot call a class as a function")}function u(L,E){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:L}function c(L,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);L.prototype=Object.create(E&&E.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(L,E):L.__proto__=E)}var _=function(L){c(E,L);function E(){return f(this,E),u(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return p(E,[{key:"replaceWith",value:function(A){this.domNode.textContent=this.domNode.textContent,this.attach(),y(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,A)}},{key:"highlight",value:function(A){var C=this.domNode.textContent;this.cachedText!==C&&((C.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=A(C),this.domNode.normalize(),this.attach()),this.cachedText=C)}}]),E}(v.default);_.className="ql-syntax";var s=new g.default.Attributor.Class("token","hljs",{scope:g.default.Scope.INLINE}),w=function(L){c(E,L),p(E,null,[{key:"register",value:function(){d.default.register(s,!0),d.default.register(_,!0)}}]);function E(S,A){f(this,E);var C=u(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,S,A));if(typeof C.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var x=null;return C.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(x),x=setTimeout(function(){C.highlight(),x=null},C.options.interval)}),C.highlight(),C}return p(E,[{key:"highlight",value:function(){var A=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var C=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(x){x.highlight(A.options.highlight)}),this.quill.update(d.default.sources.SILENT),C!=null&&this.quill.setSelection(C,d.default.sources.SILENT)}}}]),E}(r.default);w.DEFAULTS={highlight:function(){return window.hljs==null?null:function(L){var E=window.hljs.highlightAuto(L);return E.value}}(),interval:1e3},o.CodeBlock=_,o.CodeToken=s,o.default=w},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,o){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,o){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,o){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,o,i){Object.defineProperty(o,"__esModule",{value:!0}),o.default=o.BubbleTooltip=void 0;var p=function E(S,A,C){S===null&&(S=Function.prototype);var x=Object.getOwnPropertyDescriptor(S,A);if(x===void 0){var O=Object.getPrototypeOf(S);return O===null?void 0:E(O,A,C)}else{if("value"in x)return x.value;var F=x.get;return F===void 0?void 0:F.call(C)}},y=function(){function E(S,A){for(var C=0;C<A.length;C++){var x=A[C];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(S,x.key,x)}}return function(S,A,C){return A&&E(S.prototype,A),C&&E(S,C),S}}(),h=i(3),g=f(h),b=i(8),d=f(b),a=i(43),r=f(a),l=i(15),v=i(41),m=f(v);function f(E){return E&&E.__esModule?E:{default:E}}function u(E,S){if(!(E instanceof S))throw new TypeError("Cannot call a class as a function")}function c(E,S){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:E}function _(E,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);E.prototype=Object.create(S&&S.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(E,S):E.__proto__=S)}var s=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(E){_(S,E);function S(A,C){u(this,S),C.modules.toolbar!=null&&C.modules.toolbar.container==null&&(C.modules.toolbar.container=s);var x=c(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,A,C));return x.quill.container.classList.add("ql-bubble"),x}return y(S,[{key:"extendToolbar",value:function(C){this.tooltip=new L(this.quill,this.options.bounds),this.tooltip.root.appendChild(C.container),this.buildButtons([].slice.call(C.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(C.container.querySelectorAll("select")),m.default)}}]),S}(r.default);w.DEFAULTS=(0,g.default)(!0,{},r.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){S?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var L=function(E){_(S,E);function S(A,C){u(this,S);var x=c(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,A,C));return x.quill.on(d.default.events.EDITOR_CHANGE,function(O,F,M,B){if(O===d.default.events.SELECTION_CHANGE)if(F!=null&&F.length>0&&B===d.default.sources.USER){x.show(),x.root.style.left="0px",x.root.style.width="",x.root.style.width=x.root.offsetWidth+"px";var z=x.quill.getLines(F.index,F.length);if(z.length===1)x.position(x.quill.getBounds(F));else{var q=z[z.length-1],G=x.quill.getIndex(q),j=Math.min(q.length()-1,F.index+F.length-G),P=x.quill.getBounds(new l.Range(G,j));x.position(P)}}else document.activeElement!==x.textbox&&x.quill.hasFocus()&&x.hide()}),x}return y(S,[{key:"listen",value:function(){var C=this;p(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){C.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!C.root.classList.contains("ql-hidden")){var x=C.quill.getSelection();x!=null&&C.position(C.quill.getBounds(x))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(C){var x=p(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"position",this).call(this,C),O=this.root.querySelector(".ql-tooltip-arrow");if(O.style.marginLeft="",x===0)return x;O.style.marginLeft=-1*x-O.offsetWidth/2+"px"}}]),S}(a.BaseTooltip);L.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),o.BubbleTooltip=L,o.default=w},function(e,o,i){e.exports=i(63)}]).default})})(quill);var Quill=getDefaultExportFromCjs(quill.exports),quill_core="",quill_snow="",quill_bubble="";const defaultOptions={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert content here ...",readOnly:!1},_sfc_main$t={name:"quill-editor",props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:()=>({})}},emits:["ready","change","input","blur","focus","update:value"],setup(t,n){const e={editorOption:{},quill:null};let o="";vue.watch(()=>t.value,h=>{e.quill&&(h&&h!==o?(o=h,e.quill.pasteHTML(h)):h||e.quill.setText(""))}),vue.watch(()=>t.content,h=>{e.quill&&(h&&h!==o?(o=h,e.quill.pasteHTML(h)):h||e.quill.setText(""))}),vue.watch(()=>t.disabled,h=>{e.quill&&e.quill.enable(!h)});const i=vue.ref(null),p=(h,g)=>{for(const b in g)!h[b]||b!=="modules"?h[b]=g[b]:p(h[b],g[b]);return h},y=()=>{i.value&&(e.editorOption=p(defaultOptions,t.options),e.editorOption.readOnly=!!t.disabled,e.quill=new Quill(i.value,e.editorOption),t.value&&e.quill.pasteHTML(t.value),e.quill.on("selection-change",h=>{h?n.emit("focus",e.quill):n.emit("blur",e.quill)}),e.quill.on("text-change",()=>{t.disabled&&e.quill.enable(!1);let h=i.value.children[0].innerHTML;const g=e.quill,b=e.quill.getText();h==="<p><br></p>"&&(h=""),o=h,n.emit("update:value",o),n.emit("change",{html:h,text:b,quill:g})}),n.emit("ready",e.quill))};return vue.onBeforeUnmount(()=>{const h=i.value.previousSibling;h&&h.className.indexOf("ql-toolbar")>-1&&h.parentNode.removeChild(h)}),vue.onMounted(()=>{y()}),vue.onUnmounted(()=>{e.quill=null}),{editor:i}}},_hoisted_1$g={ref:"editor"};function _sfc_render$t(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("section",_hoisted_1$g,null,512)}var quillEditor=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$t]]);quillEditor.install=function(t){t.component(quillEditor.name,quillEditor)};var richEditorWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$s={name:"rich-editor-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper,quillEditor},data(){return{oldFieldValue:null,fieldModel:null,rules:[],customToolbar:[],valueChangedFlag:!1}},computed:{editorOption(){return{placeholder:this.field.options.placeholder,modules:{}}}},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleRichEditorChangeEvent(){this.valueChangedFlag=!0,this.syncUpdateFormModel(this.fieldModel)},handleRichEditorFocusEvent(){this.oldFieldValue=deepClone(this.fieldModel)},handleRichEditorBlurEvent(){this.valueChangedFlag&&(this.emitFieldDataChange(this.fieldModel,this.oldFieldValue),this.valueChangedFlag=!1)}}};function _sfc_render$s(t,n,e,o,i,p){const y=vue.resolveComponent("quill-editor"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",null,[vue.createVNode(y,{value:i.fieldModel,"onUpdate:value":n[0]||(n[0]=g=>i.fieldModel=g),options:p.editorOption,disabled:e.field.options.disabled,onBlur:p.handleRichEditorBlurEvent,onFocus:p.handleRichEditorFocusEvent,onChange:p.handleRichEditorChangeEvent,style:vue.normalizeStyle(e.field.options.contentHeight?`height: ${e.field.options.contentHeight};`:"")},null,8,["value","options","disabled","onBlur","onFocus","onChange","style"])])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var richEditorWidget=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$s],["__scopeId","data-v-a23436fa"]]),__glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:richEditorWidget},Symbol.toStringTag,{value:"Module"})),selectWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$r={name:"select-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{allowDefaultFirstOption(){return!!this.field.options.filterable&&!!this.field.options.allowCreate},remoteMethod(){if(!!this.field.options.remote&&!!this.field.options.onRemoteQuery)return this.remoteQuery}},beforeCreate(){},created(){this.initOptionItems(),this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$r(t,n,e,o,i,p){const y=vue.resolveComponent("el-option"),h=vue.resolveComponent("el-select"),g=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(g,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(h,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=b=>i.fieldModel=b),class:"full-width-input",disabled:e.field.options.disabled,size:t.widgetSize,clearable:e.field.options.clearable,filterable:e.field.options.filterable,"allow-create":e.field.options.allowCreate,"default-first-option":p.allowDefaultFirstOption,"automatic-dropdown":e.field.options.automaticDropdown,multiple:e.field.options.multiple,"multiple-limit":e.field.options.multipleLimit,placeholder:e.field.options.placeholder||t.i18nt("render.hint.selectPlaceholder"),remote:e.field.options.remote,"remote-method":p.remoteMethod,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.field.options.optionItems,b=>(vue.openBlock(),vue.createBlock(y,{key:b.value,label:b.label,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue","disabled","size","clearable","filterable","allow-create","default-first-option","automatic-dropdown","multiple","multiple-limit","placeholder","remote","remote-method","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var selectWidget=_export_sfc$1(_sfc_main$r,[["render",_sfc_render$r],["__scopeId","data-v-038816bf"]]),__glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:selectWidget},Symbol.toStringTag,{value:"Module"})),sliderWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$q={name:"slider-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$q(t,n,e,o,i,p){const y=vue.resolveComponent("el-slider"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,"show-stops":e.field.options.showStops,min:e.field.options.min,max:e.field.options.max,step:e.field.options.step,range:e.field.options.range,vertical:e.field.options.vertical,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","show-stops","min","max","step","range","vertical","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var sliderWidget=_export_sfc$1(_sfc_main$q,[["render",_sfc_render$q],["__scopeId","data-v-92a76556"]]),__glob_0_17=Object.freeze(Object.defineProperty({__proto__:null,default:sliderWidget},Symbol.toStringTag,{value:"Module"})),slotWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$p={name:"slot-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}},_hoisted_1$f={key:0,class:"slot-title"};function _sfc_render$p(t,n,e,o,i,p){const y=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(y,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass([e.designState?"slot-wrapper-design":"slot-wrapper-render"])},[vue.renderSlot(t.$slots,e.field.options.name,{formModel:t.formModel},void 0,!0),e.designState?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$f,vue.toDisplayString(e.field.options.label),1)):vue.createCommentVNode("",!0)],2)]),_:3},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var slotWidget=_export_sfc$1(_sfc_main$p,[["render",_sfc_render$p],["__scopeId","data-v-95f13fca"]]),__glob_0_18=Object.freeze(Object.defineProperty({__proto__:null,default:slotWidget},Symbol.toStringTag,{value:"Module"})),staticTextWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$o={name:"static-text-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},computed:{},beforeCreate(){},created(){this.registerToRefList(),this.initEventHandler(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$o(t,n,e,o,i,p){const y=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(y,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",{ref:"fieldEditor",style:vue.normalizeStyle(e.field.options.fontSize?`font-size: ${e.field.options.fontSize};`:"")},[vue.createElementVNode("pre",{style:vue.normalizeStyle({"white-space":e.field.options.preWrap?"pre-wrap":"pre","text-align":e.field.options.textAlign?e.field.options.textAlign:"left"})},vue.toDisplayString(e.field.options.textContent),5)],4)]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var staticTextWidget=_export_sfc$1(_sfc_main$o,[["render",_sfc_render$o],["__scopeId","data-v-4071ab53"]]),__glob_0_20=Object.freeze(Object.defineProperty({__proto__:null,default:staticTextWidget},Symbol.toStringTag,{value:"Module"})),switchWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$n={name:"switch-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$n(t,n,e,o,i,p){const y=vue.resolveComponent("el-switch"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,"active-text":e.field.options.activeText,"inactive-text":e.field.options.inactiveText,"active-color":e.field.options.activeColor,"inactive-color":e.field.options.inactiveColor,width:e.field.options.switchWidth,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","active-text","inactive-text","active-color","inactive-color","width","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var switchWidget=_export_sfc$1(_sfc_main$n,[["render",_sfc_render$n],["__scopeId","data-v-3529e848"]]),__glob_0_21=Object.freeze(Object.defineProperty({__proto__:null,default:switchWidget},Symbol.toStringTag,{value:"Module"})),textareaWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$m={name:"textarea-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$m(t,n,e,o,i,p){const y=vue.resolveComponent("el-input"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{type:"textarea",ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,placeholder:e.field.options.placeholder,rows:e.field.options.rows,minlength:e.field.options.minLength,maxlength:e.field.options.maxLength,"show-word-limit":e.field.options.showWordLimit,onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onInput:t.handleInputCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","disabled","readonly","size","placeholder","rows","minlength","maxlength","show-word-limit","onFocus","onBlur","onInput","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var textareaWidget=_export_sfc$1(_sfc_main$m,[["render",_sfc_render$m],["__scopeId","data-v-072d98c8"]]),__glob_0_22=Object.freeze(Object.defineProperty({__proto__:null,default:textareaWidget},Symbol.toStringTag,{value:"Module"})),timeRangeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$l={name:"time-range-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$l(t,n,e,o,i,p){const y=vue.resolveComponent("el-time-picker"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""])},[vue.createVNode(y,{ref:"fieldEditor","is-range":"",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),class:vue.normalizeClass([e.field.options.autoFullWidth?"full-width-input":""]),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss","start-placeholder":e.field.options.startPlaceholder||t.i18nt("render.hint.startTimePlaceholder"),"end-placeholder":e.field.options.endPlaceholder||t.i18nt("render.hint.endTimePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","start-placeholder","end-placeholder","onFocus","onBlur","onChange"])],2)]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeRangeWidget=_export_sfc$1(_sfc_main$l,[["render",_sfc_render$l],["__scopeId","data-v-60824824"]]),__glob_0_23=Object.freeze(Object.defineProperty({__proto__:null,default:timeRangeWidget},Symbol.toStringTag,{value:"Module"})),timeWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$k={name:"time-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{FormItemWrapper},data(){return{oldFieldValue:null,fieldModel:null,rules:[]}},computed:{},beforeCreate(){},created(){this.initFieldModel(),this.registerToRefList(),this.initEventHandler(),this.buildFieldRules(),this.handleOnCreated()},mounted(){this.handleOnMounted()},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$k(t,n,e,o,i,p){const y=vue.resolveComponent("el-time-picker"),h=vue.resolveComponent("form-item-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,rules:i.rules,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",modelValue:i.fieldModel,"onUpdate:modelValue":n[0]||(n[0]=g=>i.fieldModel=g),class:vue.normalizeClass([e.field.options.autoFullWidth?"auto-full-width":""]),disabled:e.field.options.disabled,readonly:e.field.options.readonly,size:t.widgetSize,clearable:e.field.options.clearable,editable:e.field.options.editable,format:e.field.options.format,"value-format":"HH:mm:ss",placeholder:e.field.options.placeholder||t.i18nt("render.hint.timePlaceholder"),onFocus:t.handleFocusCustomEvent,onBlur:t.handleBlurCustomEvent,onChange:t.handleChangeEvent},null,8,["modelValue","class","disabled","readonly","size","clearable","editable","format","placeholder","onFocus","onBlur","onChange"])]),_:1},8,["designer","field","rules","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var timeWidget=_export_sfc$1(_sfc_main$k,[["render",_sfc_render$k],["__scopeId","data-v-417e0c7c"]]),__glob_0_24=Object.freeze(Object.defineProperty({__proto__:null,default:timeWidget},Symbol.toStringTag,{value:"Module"}));let comps={};const modules$1={"./button-widget.vue":__glob_0_0,"./cascader-widget.vue":__glob_0_1$1,"./checkbox-widget.vue":__glob_0_2$1,"./color-widget.vue":__glob_0_3$1,"./date-range-widget.vue":__glob_0_4$1,"./date-widget.vue":__glob_0_5$1,"./divider-widget.vue":__glob_0_6$1,"./file-upload-widget.vue":__glob_0_7,"./form-item-wrapper.vue":__glob_0_8,"./html-text-widget.vue":__glob_0_9,"./input-widget.vue":__glob_0_10,"./number-widget.vue":__glob_0_11,"./picture-upload-widget.vue":__glob_0_12,"./radio-widget.vue":__glob_0_13,"./rate-widget.vue":__glob_0_14,"./rich-editor-widget.vue":__glob_0_15,"./select-widget.vue":__glob_0_16,"./slider-widget.vue":__glob_0_17,"./slot-widget.vue":__glob_0_18,"./static-content-wrapper.vue":__glob_0_19,"./static-text-widget.vue":__glob_0_20,"./switch-widget.vue":__glob_0_21,"./textarea-widget.vue":__glob_0_22,"./time-range-widget.vue":__glob_0_23,"./time-widget.vue":__glob_0_24};for(const t in modules$1){let n=modules$1[t].default.name;comps[n]=modules$1[t].default}var gridColItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$j={name:"GridColItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:de({},comps),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,colHeight:{type:String,default:null}},inject:["refList","globalModel","getFormConfig","previewState"],data(){return{layoutProps:{span:this.widget.options.span,md:this.widget.options.md||12,sm:this.widget.options.sm||12,xs:this.widget.options.xs||12,offset:this.widget.options.offset||0,push:this.widget.options.push||0,pull:this.widget.options.pull||0}}},computed:{formConfig(){return this.getFormConfig()},customClass(){return this.widget.options.customClass||""},colHeightStyle(){return this.colHeight?{height:this.colHeight+"px"}:{}}},created(){this.initLayoutProps(),this.initRefList()},methods:{initLayoutProps(){if(this.widget.options.responsive)if(this.previewState){this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0;let t=this.formConfig.layoutType;t==="H5"?this.layoutProps.span=this.widget.options.xs||12:t==="Pad"?this.layoutProps.span=this.widget.options.sm||12:this.layoutProps.span=this.widget.options.md||12}else this.layoutProps.span=void 0;else this.layoutProps.md=void 0,this.layoutProps.sm=void 0,this.layoutProps.xs=void 0}}},_hoisted_1$e={class:"blank-cell"},_hoisted_2$c={class:"invisible-content"};function _sfc_render$j(t,n,e,o,i,p){const y=vue.resolveComponent("el-col");return vue.withDirectives((vue.openBlock(),vue.createBlock(y,vue.mergeProps({class:["grid-cell",[p.customClass]]},i.layoutProps,{style:p.colHeightStyle,key:e.widget.id}),{default:vue.withCtx(()=>[!!e.widget.widgetList&&e.widget.widgetList.length>0?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.widget.widgetList,(h,g)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[h.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.getComponentByContainer(h)),{widget:h,key:g,"parent-list":e.widget.widgetList,"index-of-parent-list":g,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),b=>({name:b,fn:vue.withCtx(d=>[vue.renderSlot(t.$slots,b,vue.mergeProps({ref_for:!0},d),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(h.type+"-widget"),{field:h,designer:null,key:g,"parent-list":e.widget.widgetList,"index-of-parent-list":g,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),b=>({name:b,fn:vue.withCtx(d=>[vue.renderSlot(t.$slots,b,vue.mergeProps({ref_for:!0},d),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256)):(vue.openBlock(),vue.createBlock(y,{key:1},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$e,[vue.createElementVNode("span",_hoisted_2$c,vue.toDisplayString(t.i18nt("render.hint.blankCellContent")),1)])]),_:1}))]),_:3},16,["class","style"])),[[vue.vShow,!e.widget.options.hidden]])}var GridColItem=_export_sfc$1(_sfc_main$j,[["render",_sfc_render$j],["__scopeId","data-v-9332ab84"]]),__glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:GridColItem},Symbol.toStringTag,{value:"Module"})),containerItemMixin={inject:["getFormConfig","getGlobalDsv"],computed:{customClass(){return this.widget.options.customClass||""},formModel:{cache:!1,get(){return this.globalModel.formModel}}},mounted(){this.callSetHidden()},methods:{unregisterFromRefList(){if(this.refList!==null&&!!this.widget.options.name){let t=this.widget.options.name;delete this.refList[t]}},callSetHidden(){this.widget.options.hidden===!0&&this.setHidden(!0)},setHidden(t){this.widget.options.hidden=t;let n=e=>{let o=e.options.name,i=this.getWidgetRef(o);t&&!!i&&!!i.clearFieldRules&&i.clearFieldRules(),!t&&!!i&&!!i.buildFieldRules&&i.buildFieldRules()};traverseFieldWidgetsOfContainer(this.widget,n)},activeTab(t){t>=0&&t<this.widget.tabs.length&&this.widget.tabs.forEach((n,e)=>{n.options.active=e===t,e===t&&(this.activeTabName=n.options.name)})},disableTab(t){t>=0&&t<this.widget.tabs.length&&(this.widget.tabs[t].options.disabled=!0)},enableTab(t){t>=0&&t<this.widget.tabs.length&&(this.widget.tabs[t].options.disabled=!1)},hideTab(t){t>=0&&t<this.widget.tabs.length&&(this.widget.tabs[t].options.hidden=!0)},showTab(t){t>=0&&t<this.widget.tabs.length&&(this.widget.tabs[t].options.hidden=!1)},setWidgetOption(t,n){this.widget.options.hasOwnProperty(t)&&(this.widget.options[t]=n)},getSubFormRowCount(){return this.rowIdData?this.rowIdData.length:0},disableSubFormRow(t){this.widget.widgetList.forEach(n=>{let e=n.options.name+"@row"+this.rowIdData[t],o=this.getWidgetRef(e);o&&o.setDisabled(!0)})},enableSubFormRow(t){this.widget.widgetList.forEach(n=>{let e=n.options.name+"@row"+this.rowIdData[t],o=this.getWidgetRef(e);o&&o.setDisabled(!1)})},disableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach((t,n)=>{this.disableSubFormRow(n)}),this.actionDisabled=!0},enableSubForm(){this.rowIdData.length>0&&this.rowIdData.forEach((t,n)=>{this.enableSubFormRow(n)}),this.actionDisabled=!1},resetSubForm(){if(this.widget.type==="sub-form"){let t=this.formModel[this.widget.options.name];t&&(t.splice(0,t.length),this.rowIdData.splice(0,this.rowIdData.length)),this.widget.options.showBlankRow&&this.addSubFormRow()}},getSubFormValues(t=!0){if(this.widget.type==="sub-form")return this.formModel[this.widget.options.name];this.$message.error(this.i18nt("render.hint.nonSubFormType"))},addCssClass(t){this.widget.options.customClass?this.widget.options.customClass.push(t):this.widget.options.customClass=[t]},removeCssClass(t){if(!this.widget.options.customClass)return;let n=-1;this.widget.options.customClass.map((e,o)=>{e===t&&(n=o)}),n>-1&&this.widget.options.customClass.splice(n,1)}}};const _sfc_main$i={name:"vf-grid-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,GridColItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$i(t,n,e,o,i,p){const y=vue.resolveComponent("grid-col-item"),h=vue.resolveComponent("el-row"),g=vue.resolveComponent("container-item-wrapper");return vue.openBlock(),vue.createBlock(g,{widget:e.widget},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createBlock(h,{key:e.widget.id,gutter:e.widget.options.gutter,class:vue.normalizeClass(["grid-container",[t.customClass]]),ref:e.widget.id},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widget.cols,(b,d)=>(vue.openBlock(),vue.createBlock(y,{key:d,widget:b,"parent-list":e.widget.cols,"index-of-parent-list":d,"parent-widget":e.widget,"col-height":e.widget.options.colHeight},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),a=>({name:a,fn:vue.withCtx(r=>[vue.renderSlot(t.$slots,a,vue.mergeProps({ref_for:!0},r))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget","col-height"]))),128))]),_:3},8,["gutter","class"])),[[vue.vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var gridItem=_export_sfc$1(_sfc_main$i,[["render",_sfc_render$i]]),__glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:gridItem},Symbol.toStringTag,{value:"Module"})),subFormItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$h={name:"sub-form-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:me(de({ContainerItemWrapper},comps),{SvgIcon}),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{rowIdData:[],fieldSchemaData:[],actionDisabled:!1}},created(){this.initRefList(),this.registerSubFormToRefList(),this.initRowIdData(!0),this.initFieldSchemaData(),this.initEventHandler()},mounted(){this.handleSubFormFirstRowAdd()},beforeUnmount(){this.unregisterFromRefList()},methods:{getLabelAlign(t,n){return n.options.labelAlign||t.options.labelAlign},registerSubFormToRefList(){this.widget.type==="sub-form"&&(this.sfRefList[this.widget.options.name]=this)},initRowIdData(t){if(this.widget.type==="sub-form"){this.rowIdData.splice(0,this.rowIdData.length);let n=this.formModel[this.widget.options.name];!!n&&n.length>0&&(n.forEach(()=>{this.rowIdData.push("id"+generateId())}),t&&setTimeout(()=>{this.handleSubFormRowChange(n)},800))}},addToRowIdData(){this.rowIdData.push("id"+generateId())},insertToRowIdData(t){this.rowIdData.splice(t,0,"id"+generateId())},deleteFromRowIdData(t){this.rowIdData.splice(t,1)},getRowIdData(){return this.rowIdData},getWidgetRefOfSubForm(t,n){let e=t+"@row"+this.rowIdData[n];return this.getWidgetRef(e)},initFieldSchemaData(){if(this.widget.type!=="sub-form")return;let t=this.rowIdData.length;if(this.fieldSchemaData.splice(0,this.fieldSchemaData.length),t>0)for(let n=0;n<t;n++){let e=[];this.widget.widgetList.forEach(o=>{e.push(this.cloneFieldSchema(o))}),this.fieldSchemaData.push(e)}},addToFieldSchemaData(t){let n=[];this.widget.widgetList.forEach(e=>{n.push(this.cloneFieldSchema(e))}),t===void 0?this.fieldSchemaData.push(n):this.fieldSchemaData.splice(t,0,n)},deleteFromFieldSchemaData(t){this.fieldSchemaData.splice(t,1)},cloneFieldSchema(t){let n=deepClone(t);return n.id=t.type+generateId(),n},initEventHandler(){this.widget.type==="sub-form"&&this.on$("setFormData",t=>{this.initRowIdData(!1),this.initFieldSchemaData();let n=t[this.widget.options.name]||[];setTimeout(()=>{this.handleSubFormRowChange(n)},800)})},handleSubFormFirstRowAdd(){if(this.widget.type==="sub-form"&&!!this.widget.options.showBlankRow&&this.rowIdData.length===1){let t=this.formModel[this.widget.options.name]||[];this.handleSubFormRowAdd(t,this.rowIdData[0]),this.handleSubFormRowChange(t)}},addSubFormRow(){let t={};this.widget.widgetList.forEach(e=>{e.formItemFlag&&(t[e.options.name]=e.options.defaultValue)});let n=this.formModel[this.widget.options.name]||[];n.push(t),this.addToRowIdData(),this.addToFieldSchemaData(),this.handleSubFormRowAdd(n,this.rowIdData[n.length-1]),this.handleSubFormRowChange(n)},insertSubFormRow(t){let n={};this.widget.widgetList.forEach(o=>{o.formItemFlag&&(n[o.options.name]=o.options.defaultValue)});let e=this.formModel[this.widget.options.name]||[];e.splice(t,0,n),this.insertToRowIdData(t),this.addToFieldSchemaData(t),this.handleSubFormRowInsert(e,this.rowIdData[t]),this.handleSubFormRowChange(e)},deleteSubFormRow(t){this.$confirm(this.i18nt("render.hint.deleteSubFormRow")+"?",this.i18nt("render.hint.prompt"),{confirmButtonText:this.i18nt("render.hint.confirm"),cancelButtonText:this.i18nt("render.hint.cancel")}).then(()=>{let n=this.formModel[this.widget.options.name]||[],e=deepClone(n[t]);n.splice(t,1),this.deleteFromRowIdData(t),this.deleteFromFieldSchemaData(t),this.handleSubFormRowDelete(n,e),this.handleSubFormRowChange(n)}).catch(()=>{})},handleSubFormRowChange(t){this.widget.options.onSubFormRowChange&&new Function("subFormData",this.widget.options.onSubFormRowChange).call(this,t)},handleSubFormRowAdd(t,n){this.widget.options.onSubFormRowAdd&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowAdd).call(this,t,n)},handleSubFormRowInsert(t,n){this.widget.options.onSubFormRowInsert&&new Function("subFormData","newRowId",this.widget.options.onSubFormRowInsert).call(this,t,n)},handleSubFormRowDelete(t,n){this.widget.options.onSubFormRowDelete&&new Function("subFormData","deletedDataRow",this.widget.options.onSubFormRowDelete).call(this,t,n)}}},_hoisted_1$d={class:"action-header-column"},_hoisted_2$b={class:"action-label"},_hoisted_3$a={key:0,class:"custom-label"},_hoisted_4$3=["title"],_hoisted_5$2={class:"sub-form-action-column hide-label"},_hoisted_6$1={class:"action-button-column"},_hoisted_7$1={key:0,class:"row-number-span"};function _sfc_render$h(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon"),h=vue.resolveComponent("el-button"),g=vue.resolveComponent("el-tooltip"),b=vue.resolveComponent("el-row"),d=vue.resolveComponent("container-item-wrapper");return vue.openBlock(),vue.createBlock(d,{widget:e.widget},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:e.widget.id,class:"sub-form-container"},[vue.createVNode(b,{class:"header-row"},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$d,[vue.createElementVNode("span",_hoisted_2$b,vue.toDisplayString(t.i18nt("render.hint.subFormAction")),1),vue.createVNode(h,{disabled:i.actionDisabled,round:"",type:"primary",size:"small",class:"action-button",onClick:p.addSubFormRow,title:t.i18nt("render.hint.subFormAddActionHint")},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(t.i18nt("render.hint.subFormAddAction")),1),vue.createVNode(y,{"icon-class":"el-plus"})]),_:1},8,["disabled","onClick","title"])]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widget.widgetList,a=>(vue.openBlock(),vue.createElementBlock("div",{key:a.id+"thc",class:vue.normalizeClass(["field-header-column",[p.getLabelAlign(e.widget,a),a.options.required?"is-required":""]]),style:vue.normalizeStyle({width:a.options.columnWidth})},[a.options.labelIconClass?(vue.openBlock(),vue.createElementBlock("span",_hoisted_3$a,[a.options.labelIconPosition==="front"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[a.options.labelTooltip?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(g,{content:a.options.labelTooltip,effect:"light"},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":a.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"]),vue.createTextVNode(vue.toDisplayString(a.options.label),1)],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createVNode(y,{"icon-class":a.options.labelIconClass},null,8,["icon-class"]),vue.createTextVNode(vue.toDisplayString(a.options.label),1)],64))],64)):a.options.labelIconPosition==="rear"?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[a.options.labelTooltip?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createTextVNode(vue.toDisplayString(a.options.label),1),vue.createVNode(g,{content:a.options.labelTooltip,effect:"light"},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":a.options.labelIconClass},null,8,["icon-class"])]),_:2},1032,["content"])],64)):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:1},[vue.createTextVNode(vue.toDisplayString(a.options.label),1),vue.createVNode(y,{"icon-class":a.options.labelIconClass},null,8,["icon-class"])],64))],64)):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createElementBlock("span",{key:1,title:a.options.labelTooltip},vue.toDisplayString(a.options.label),9,_hoisted_4$3))],6))),128))]),_:1}),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(i.rowIdData,(a,r)=>(vue.openBlock(),vue.createBlock(b,{class:"sub-form-row",key:a},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_5$2,[vue.createElementVNode("div",_hoisted_6$1,[vue.createVNode(h,{disabled:i.actionDisabled,circle:"",onClick:l=>p.insertSubFormRow(r),title:t.i18nt("render.hint.insertSubFormRow")},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":"el-plus"})]),_:1},8,["disabled","onClick","title"]),vue.createVNode(h,{disabled:i.actionDisabled,circle:"",onClick:l=>p.deleteSubFormRow(r),title:t.i18nt("render.hint.deleteSubFormRow")},{default:vue.withCtx(()=>[vue.createVNode(y,{"icon-class":"el-delete"})]),_:1},8,["disabled","onClick","title"]),e.widget.options.showRowNumber?(vue.openBlock(),vue.createElementBlock("span",_hoisted_7$1,"#"+vue.toDisplayString(r+1),1)):vue.createCommentVNode("",!0)])]),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widget.widgetList,(l,v)=>(vue.openBlock(),vue.createElementBlock("div",{key:l.id+"tc"+a,class:"sub-form-table-column hide-label",style:vue.normalizeStyle({width:l.options.columnWidth})},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(l.type+"-widget"),{field:i.fieldSchemaData[r][v],key:i.fieldSchemaData[r][v].id,"parent-list":e.widget.widgetList,"index-of-parent-list":v,"parent-widget":e.widget,"sub-form-row-id":a,"sub-form-row-index":r,"sub-form-col-index":v},null,8,["field","parent-list","index-of-parent-list","parent-widget","sub-form-row-id","sub-form-row-index","sub-form-col-index"]))],4))),128))]),_:2},1024))),128))])),[[vue.vShow,!e.widget.options.hidden]])]),_:1},8,["widget"])}var subFormItem=_export_sfc$1(_sfc_main$h,[["render",_sfc_render$h],["__scopeId","data-v-2eb559e6"]]),__glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:subFormItem},Symbol.toStringTag,{value:"Module"}));const _sfc_main$g={name:"tab-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:de({ContainerItemWrapper},comps),props:{widget:Object},inject:["refList","sfRefList","globalModel"],data(){return{activeTabName:""}},computed:{visibleTabs(){return this.widget.tabs.filter(t=>!t.options.hidden)}},created(){this.initRefList()},mounted(){this.initActiveTab()},beforeUnmount(){this.unregisterFromRefList()},methods:{initActiveTab(){if(this.widget.type==="tab"&&this.widget.tabs.length>0){let t=this.widget.tabs.filter(n=>n.options.active===!0);t.length>0?this.activeTabName=t[0].options.name:this.activeTabName=this.widget.tabs[0].options.name}}}};function _sfc_render$g(t,n,e,o,i,p){const y=vue.resolveComponent("el-tab-pane"),h=vue.resolveComponent("el-tabs"),g=vue.resolveComponent("container-item-wrapper");return vue.openBlock(),vue.createBlock(g,{widget:e.widget},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:e.widget.id,class:"tab-container"},[vue.createVNode(h,{modelValue:i.activeTabName,"onUpdate:modelValue":n[0]||(n[0]=b=>i.activeTabName=b),type:e.widget.displayType,ref:e.widget.id,class:vue.normalizeClass([t.customClass])},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.visibleTabs,(b,d)=>(vue.openBlock(),vue.createBlock(y,{key:d,label:b.options.label,disabled:b.options.disabled,name:b.options.name},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(b.widgetList,(a,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[a.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.getComponentByContainer(a)),{widget:a,key:r,"parent-list":b.widgetList,"index-of-parent-list":r,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),l=>({name:l,fn:vue.withCtx(v=>[vue.renderSlot(t.$slots,l,vue.mergeProps({ref_for:!0},v))])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(a.type+"-widget"),{field:a,key:r,"parent-list":b.widgetList,"index-of-parent-list":r,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),l=>({name:l,fn:vue.withCtx(v=>[vue.renderSlot(t.$slots,l,vue.mergeProps({ref_for:!0},v))])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))]),_:2},1032,["label","disabled","name"]))),128))]),_:3},8,["modelValue","type","class"])])),[[vue.vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var tabItem=_export_sfc$1(_sfc_main$g,[["render",_sfc_render$g]]),__glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:tabItem},Symbol.toStringTag,{value:"Module"})),tableCellItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$f={name:"TableCellItem",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin],components:de({},comps),props:{widget:Object,rowIndex:Number,colIndex:Number},inject:["refList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){},methods:{}},_hoisted_1$c=["colspan","rowspan"];function _sfc_render$f(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("td",{class:vue.normalizeClass(["table-cell",[p.customClass]]),colspan:e.widget.options.colspan||1,rowspan:e.widget.options.rowspan||1,style:vue.normalizeStyle({width:e.widget.options.cellWidth+" !important"||"",height:e.widget.options.cellHeight+" !important"||"","word-break":e.widget.options.wordBreak?"break-all":"normal"})},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widget.widgetList,(y,h)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[y.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.getComponentByContainer(y)),{widget:y,key:h,"parent-list":e.widget.widgetList,"index-of-parent-list":h,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),g=>({name:g,fn:vue.withCtx(b=>[vue.renderSlot(t.$slots,g,vue.mergeProps({ref_for:!0},b),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type+"-widget"),{field:y,key:h,"parent-list":e.widget.widgetList,"index-of-parent-list":h,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),g=>({name:g,fn:vue.withCtx(b=>[vue.renderSlot(t.$slots,g,vue.mergeProps({ref_for:!0},b),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256))],14,_hoisted_1$c)}var TableCellItem=_export_sfc$1(_sfc_main$f,[["render",_sfc_render$f],["__scopeId","data-v-1825ed0b"]]),__glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:TableCellItem},Symbol.toStringTag,{value:"Module"})),tableItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$e={name:"table-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:{ContainerItemWrapper,TableCellItem},props:{widget:Object},inject:["refList","sfRefList","globalModel"],created(){this.initRefList()},mounted(){},beforeUnmount(){this.unregisterFromRefList()},methods:{}};function _sfc_render$e(t,n,e,o,i,p){const y=vue.resolveComponent("table-cell-item"),h=vue.resolveComponent("container-item-wrapper");return vue.openBlock(),vue.createBlock(h,{widget:e.widget},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createElementBlock("div",{key:e.widget.id,class:"table-container"},[vue.createElementVNode("table",{ref:e.widget.id,class:vue.normalizeClass(["table-layout",[t.customClass]])},[vue.createElementVNode("tbody",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(e.widget.rows,(g,b)=>(vue.openBlock(),vue.createElementBlock("tr",{key:g.id},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(g.cols,(d,a)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[d.merged?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(y,{widget:d,key:a,"parent-list":e.widget.cols,"row-index":b,"col-index":a,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),r=>({name:r,fn:vue.withCtx(l=>[vue.renderSlot(t.$slots,r,vue.mergeProps({ref_for:!0},l),void 0,!0)])}))]),1032,["widget","parent-list","row-index","col-index","parent-widget"]))],64))),256))]))),128))])],2)])),[[vue.vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var tableItem=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$e],["__scopeId","data-v-dfc6ca8e"]]),__glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:tableItem},Symbol.toStringTag,{value:"Module"}));const modules={"./container-item-wrapper.vue":__glob_0_0$1,"./grid-col-item.vue":__glob_0_1,"./grid-item.vue":__glob_0_2,"./sub-form-item.vue":__glob_0_3,"./tab-item.vue":__glob_0_4,"./table-cell-item.vue":__glob_0_5,"./table-item.vue":__glob_0_6};var ContainerItems={install(t){for(const n in modules){let e=modules[n].default.name;t.component(e,modules[n].default)}}},index_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$d={name:"VFormRender",componentName:"VFormRender",mixins:[emitter,i18n$1],components:de({},comps),props:{formJson:{type:Object,default:()=>buildDefaultFormJson()},formData:{type:Object,default:()=>({})},optionData:{type:Object,default:()=>({})},previewState:{type:Boolean,default:!1},globalDsv:{type:Object,default:()=>({})}},provide(){return{refList:this.widgetRefList,sfRefList:this.subFormRefList,getFormConfig:()=>this.formJsonObj.formConfig,getGlobalDsv:()=>this.globalDsv,globalOptionData:this.optionData,getOptionData:()=>this.optionData,globalModel:{formModel:this.formDataModel},previewState:this.previewState}},data(){return{formJsonObj:this.formJson,formDataModel:{},widgetRefList:{},subFormRefList:{},formId:null,externalComponents:{}}},computed:{formConfig(){return this.formJsonObj.formConfig},widgetList(){return this.formJsonObj.widgetList},labelPosition(){return!!this.formConfig&&!!this.formConfig.labelPosition?this.formConfig.labelPosition:"left"},labelWidth(){return!!this.formConfig&&!!this.formConfig.labelWidth?this.formConfig.labelWidth+"px":"80px"},size(){return!!this.formConfig&&!!this.formConfig.size?this.formConfig.size:"default"},customClass(){return!!this.formConfig&&!!this.formConfig.customClass?this.formConfig.customClass:""}},watch:{},created(){this.buildFormModel(this.formJsonObj?this.formJsonObj.widgetList:null),this.initFormObject()},mounted(){this.initLocale(),this.handleOnMounted()},methods:{initFormObject(t=!0){this.formId="vfRender"+generateId(),t&&this.insertCustomStyleAndScriptNode(),this.addFieldChangeEventHandler(),this.addFieldValidateEventHandler(),this.registerFormToRefList(),this.handleOnCreated()},getContainerWidgetName(t){return t.type==="grid"?"vf-grid-item":t.type+"-item"},getWidgetName(t){return t.type+"-widget"},initLocale(){let t=localStorage.getItem("v_form_locale")||"zh-CN";this.changeLanguage(t)},insertCustomStyleAndScriptNode(){!!this.formConfig&&!!this.formConfig.cssCode&&insertCustomCssToHead(this.formConfig.cssCode,this.previewState?"":this.formId),!!this.formConfig&&!!this.formConfig.functions&&insertGlobalFunctionsToHtml(this.formConfig.functions,this.previewState?"":this.formId)},buildFormModel(t){!!t&&t.length>0&&t.forEach(n=>{this.buildDataFromWidget(n)})},buildDataFromWidget(t){if(t.category==="container")if(t.type==="grid")!!t.cols&&t.cols.length>0&&t.cols.forEach(n=>{this.buildDataFromWidget(n)});else if(t.type==="table")!!t.rows&&t.rows.length>0&&t.rows.forEach(n=>{!!n.cols&&n.cols.length>0&&n.cols.forEach(e=>{this.buildDataFromWidget(e)})});else if(t.type==="tab")!!t.tabs&&t.tabs.length>0&&t.tabs.forEach(n=>{!!n.widgetList&&n.widgetList.length>0&&n.widgetList.forEach(e=>{this.buildDataFromWidget(e)})});else if(t.type==="sub-form"){let n=t.options.name;if(this.formData.hasOwnProperty(n)){let e=this.formData[n];this.formDataModel[n]=deepClone(e)}else{let e={};t.options.showBlankRow?(t.widgetList.forEach(o=>{o.formItemFlag&&(e[o.options.name]=o.options.defaultValue)}),this.formDataModel[n]=[e]):this.formDataModel[n]=[]}}else t.type==="grid-col"||t.type==="table-cell"?!!t.widgetList&&t.widgetList.length>0&&t.widgetList.forEach(n=>{this.buildDataFromWidget(n)}):!!t.widgetList&&t.widgetList.length>0&&t.widgetList.forEach(n=>{this.buildDataFromWidget(n)});else if(t.formItemFlag)if(!this.formData.hasOwnProperty(t.options.name))this.formDataModel[t.options.name]=t.options.defaultValue;else{let n=this.formData[t.options.name];this.formDataModel[t.options.name]=deepClone(n)}},addFieldChangeEventHandler(){this.off$("fieldChange"),this.on$("fieldChange",(t,n,e,o,i)=>{this.handleFieldDataChange(t,n,e,o,i),this.$emit("formChange",t,n,e,this.formDataModel,o,i)})},addFieldValidateEventHandler(){this.off$("fieldValidation"),this.on$("fieldValidation",t=>{this.$refs.renderForm.validateField(t)})},registerFormToRefList(){this.widgetRefList.v_form_ref=this},handleFieldDataChange(t,n,e,o,i){!!this.formConfig&&!!this.formConfig.onFormDataChange&&new Function("fieldName","newValue","oldValue","formModel","subFormName","subFormRowIndex",this.formConfig.onFormDataChange).call(this,t,n,e,this.formDataModel,o,i)},handleOnCreated(){!!this.formConfig&&!!this.formConfig.onFormCreated&&new Function(this.formConfig.onFormCreated).call(this)},handleOnMounted(){!!this.formConfig&&!!this.formConfig.onFormMounted&&new Function(this.formConfig.onFormMounted).call(this)},findWidgetAndSetDisabled(t,n){let e=this.getWidgetRef(t);e?e.setDisabled(n):this.findWidgetOfSubFormAndSetDisabled(t,n)},findWidgetOfSubFormAndSetDisabled(t,n){this.findWidgetNameInSubForm(t).forEach(e=>{let o=this.getWidgetRef(e);o&&o.setDisabled(n)})},findWidgetAndSetHidden(t,n){let e=this.getWidgetRef(t);e?e.setHidden(n):this.findWidgetOfSubFormAndSetHidden(t,n)},findWidgetOfSubFormAndSetHidden(t,n){this.findWidgetNameInSubForm(t).forEach(e=>{let o=this.getWidgetRef(e);o&&o.setHidden(n)})},findWidgetNameInSubForm(t){let n=[],e=null,o=(i,p)=>{!!i.options&&i.options.name===t&&(e=p.options.name)};if(traverseFieldWidgets(this.widgetList,o),e){let i=this.getWidgetRef(e);if(i){let p=i.getRowIdData();!!p&&p.length>0&&p.forEach(y=>{n.push(t+"@row"+y)})}}return n},changeLanguage(t){changeLocale(t)},getNativeForm(){return this.$refs.renderForm},getFormRef(){return this},getWidgetRef(t,n=!1){let e=this.widgetRefList[t];return!e&&!!n&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},clearFormDataModel(){for(let t in this.formDataModel)delete this.formDataModel[t]},setFormJson(t){if(t)if(typeof t=="string"||t.constructor===Object){let n=null;if(typeof t=="string"?n=JSON.parse(t):n=t,!n.formConfig||!n.widgetList){this.$message.error("Invalid format of form json.");return}this.clearFormDataModel(),this.buildFormModel(n.widgetList),this.formJsonObj.formConfig=n.formConfig,this.formJsonObj.widgetList=n.widgetList,this.insertCustomStyleAndScriptNode(),this.$nextTick(()=>{this.initFormObject(!1),this.handleOnMounted()})}else this.$message.error("Set form json failed.")},reloadOptionData(t){let n=[];!!t&&typeof t=="string"?n=[t]:!!t&&Array.isArray(t)&&(n=[...t]),this.broadcast("FieldWidget","reloadOptionItems",n)},getFormData(t=!0){if(!t)return this.formDataModel;let n=function(){},e=new window.Promise(function(o,i){n=function(p,y){y?i(y):o(p)}});return this.$refs.renderForm.validate(o=>{o?n(this.formDataModel):n(this.formDataModel,this.i18nt("render.hint.validationFailed"))}),e},setFormData(t){Object.keys(this.formDataModel).forEach(n=>{!!t&&t.hasOwnProperty(n)&&(this.formDataModel[n]=deepClone(t[n]))}),this.broadcast("ContainerItem","setFormData",this.formDataModel),this.broadcast("FieldWidget","setFormData",this.formDataModel)},getFieldValue(t){let n=this.getWidgetRef(t);if(!!n&&!!n.getValue)return n.getValue();if(!n){let e=[];return this.findWidgetNameInSubForm(t).forEach(o=>{let i=this.getWidgetRef(o);!!i&&!!i.getValue&&e.push(i.getValue())}),e}},setFieldValue(t,n){let e=this.getWidgetRef(t);!!e&&!!e.setValue&&e.setValue(n),e||this.findWidgetNameInSubForm(t).forEach(o=>{let i=this.getWidgetRef(o);!!i&&!!i.setValue&&i.setValue(n)})},getSubFormValues(t,n=!0){return this.subFormRefList[t].getSubFormValues(n)},disableForm(){Object.keys(this.widgetRefList).forEach(n=>{let e=this.getWidgetRef(n);if(e)if(!!e.widget&&e.widget.type==="sub-form")e.disableSubForm();else{//!!foundW.setDisabled && foundW.setDisabled(true)
|
|
48
|
+
e.setDisabled&&e.setDisabled(!0)}})},enableForm(){Object.keys(this.widgetRefList).forEach(n=>{let e=this.getWidgetRef(n);if(e)if(!!e.widget&&e.widget.type==="sub-form")e.enableSubForm();else{//!!foundW.setDisabled && foundW.setDisabled(false)
|
|
49
|
+
e.setDisabled&&e.setDisabled(!1)}})},resetForm(){Object.keys(this.subFormRefList).forEach(e=>{this.subFormRefList[e].resetSubForm&&this.subFormRefList[e].resetSubForm()}),Object.keys(this.widgetRefList).forEach(e=>{let o=this.getWidgetRef(e);!!o&&!o.subFormItemFlag&&!!o.resetField&&o.resetField()}),this.$nextTick(()=>{this.clearValidate()})},clearValidate(t){this.$refs.renderForm.clearValidate(t)},validateForm(t){this.$refs.renderForm.validate(n=>{t(n)})},validateFields(){},disableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!0):Array.isArray(t)&&t.forEach(n=>{this.findWidgetAndSetDisabled(n,!0)}))},enableWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetDisabled(t,!1):Array.isArray(t)&&t.forEach(n=>{this.findWidgetAndSetDisabled(n,!1)}))},hideWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!0):Array.isArray(t)&&t.forEach(n=>{this.findWidgetAndSetHidden(n,!0)}))},showWidgets(t){t&&(typeof t=="string"?this.findWidgetAndSetHidden(t,!1):Array.isArray(t)&&t.forEach(n=>{this.findWidgetAndSetHidden(n,!1)}))},getFieldWidgets(){return getAllFieldWidgets(this.formJsonObj.widgetList)},getContainerWidgets(){return getAllContainerWidgets(this.formJsonObj.widgetList)},addEC(t,n){this.externalComponents[t]=n},hasEC(t){return this.externalComponents.hasOwnProperty(t)},getEC(t){return this.externalComponents[t]},getGlobalDsv(){return this.globalDsv}}};function _sfc_render$d(t,n,e,o,i,p){const y=vue.resolveComponent("el-form");return vue.openBlock(),vue.createBlock(y,{"label-position":p.labelPosition,size:p.size,class:vue.normalizeClass([[p.customClass],"render-form"]),"label-width":p.labelWidth,"validate-on-rule-change":!1,model:i.formDataModel,ref:"renderForm",onSubmit:n[0]||(n[0]=vue.withModifiers(()=>{},["prevent"]))},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(p.widgetList,(h,g)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[h.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(p.getContainerWidgetName(h)),{widget:h,key:h.id,"parent-list":p.widgetList,"index-of-parent-list":g,"parent-widget":null},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),b=>({name:b,fn:vue.withCtx(d=>[vue.renderSlot(t.$slots,b,vue.mergeProps({ref_for:!0},d),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(p.getWidgetName(h)),{field:h,"form-model":i.formDataModel,designer:null,key:h.id,"parent-list":p.widgetList,"index-of-parent-list":g,"parent-widget":null},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),b=>({name:b,fn:vue.withCtx(d=>[vue.renderSlot(t.$slots,b,vue.mergeProps({ref_for:!0},d),void 0,!0)])}))]),1032,["field","form-model","parent-list","index-of-parent-list"]))],64))),256))]),_:3},8,["label-position","size","class","label-width","model"])}var VFormRender=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$d],["__scopeId","data-v-544703a2"]]),_export_sfc=(t,n)=>{const e=t.__vccOpts||t;for(const[o,i]of n)e[o]=i;return e};const _sfc_main$c=vue.defineComponent({name:"ArrowDown"}),_hoisted_1$b={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$a=vue.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"},null,-1),_hoisted_3$9=[_hoisted_2$a];function _sfc_render$c(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$b,_hoisted_3$9)}var arrowDown=_export_sfc(_sfc_main$c,[["render",_sfc_render$c]]);const _sfc_main$b=vue.defineComponent({name:"ArrowUp"}),_hoisted_1$a={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$9=vue.createElementVNode("path",{fill:"currentColor",d:"M488.832 344.32l-339.84 356.672a32 32 0 000 44.16l.384.384a29.44 29.44 0 0042.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0042.688 0l.384-.384a32 32 0 000-44.16L535.168 344.32a32 32 0 00-46.336 0z"},null,-1),_hoisted_3$8=[_hoisted_2$9];function _sfc_render$b(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$a,_hoisted_3$8)}var arrowUp=_export_sfc(_sfc_main$b,[["render",_sfc_render$b]]);const _sfc_main$a=vue.defineComponent({name:"CirclePlus"}),_hoisted_1$9={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$8=vue.createElementVNode("path",{fill:"currentColor",d:"M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"},null,-1),_hoisted_3$7=vue.createElementVNode("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"},null,-1),_hoisted_4$2=vue.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 100-768 384 384 0 000 768zm0 64a448 448 0 110-896 448 448 0 010 896z"},null,-1),_hoisted_5$1=[_hoisted_2$8,_hoisted_3$7,_hoisted_4$2];function _sfc_render$a(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$9,_hoisted_5$1)}var circlePlus=_export_sfc(_sfc_main$a,[["render",_sfc_render$a]]);const _sfc_main$9=vue.defineComponent({name:"Delete"}),_hoisted_1$8={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$7=vue.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"},null,-1),_hoisted_3$6=[_hoisted_2$7];function _sfc_render$9(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$8,_hoisted_3$6)}var _delete=_export_sfc(_sfc_main$9,[["render",_sfc_render$9]]);const _sfc_main$8=vue.defineComponent({name:"Edit"}),_hoisted_1$7={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$6=vue.createElementVNode("path",{fill:"currentColor",d:"M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"},null,-1),_hoisted_3$5=vue.createElementVNode("path",{fill:"currentColor",d:"M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"},null,-1),_hoisted_4$1=[_hoisted_2$6,_hoisted_3$5];function _sfc_render$8(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$7,_hoisted_4$1)}var edit=_export_sfc(_sfc_main$8,[["render",_sfc_render$8]]);const _sfc_main$7=vue.defineComponent({name:"InfoFilled"}),_hoisted_1$6={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$5=vue.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3$4=[_hoisted_2$5];function _sfc_render$7(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$6,_hoisted_3$4)}var infoFilled=_export_sfc(_sfc_main$7,[["render",_sfc_render$7]]);const _sfc_main$6=vue.defineComponent({name:"Minus"}),_hoisted_1$5={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4=vue.createElementVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 100-64H128a32 32 0 000 64z"},null,-1),_hoisted_3$3=[_hoisted_2$4];function _sfc_render$6(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$5,_hoisted_3$3)}var minus=_export_sfc(_sfc_main$6,[["render",_sfc_render$6]]);const _sfc_main$5=vue.defineComponent({name:"Plus"}),_hoisted_1$4={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$3=vue.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0164 0v352h352a32 32 0 110 64H544v352a32 32 0 11-64 0V544H128a32 32 0 010-64h352z"},null,-1),_hoisted_3$2=[_hoisted_2$3];function _sfc_render$5(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$4,_hoisted_3$2)}var plus=_export_sfc(_sfc_main$5,[["render",_sfc_render$5]]);const _sfc_main$4=vue.defineComponent({name:"Search"}),_hoisted_1$3={class:"icon",width:"200",height:"200",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$2=vue.createElementVNode("path",{fill:"currentColor",d:"M795.904 750.72l124.992 124.928a32 32 0 01-45.248 45.248L750.656 795.904a416 416 0 1145.248-45.248zM480 832a352 352 0 100-704 352 352 0 000 704z"},null,-1),_hoisted_3$1=[_hoisted_2$2];function _sfc_render$4(t,n,e,o,i,p){return vue.openBlock(),vue.createElementBlock("svg",_hoisted_1$3,_hoisted_3$1)}var search=_export_sfc(_sfc_main$4,[["render",_sfc_render$4]]);function registerIcon(t){t.component("el-icon-edit",edit),t.component("el-icon-minus",minus),t.component("el-icon-plus",plus),t.component("el-icon-info",infoFilled),t.component("el-icon-search",search),t.component("el-icon-circle-plus-outline",circlePlus),t.component("el-icon-delete",_delete),t.component("el-icon-arrow-down",arrowDown),t.component("el-icon-arrow-up",arrowUp)}if(typeof window!="undefined"){let t=function(){var n=document.body,e=document.getElementById("__svg__icons__dom__1762584112330__");e||(e=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.style.position="absolute",e.style.width="0",e.style.height="0",e.id="__svg__icons__dom__1762584112330__",e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),e.innerHTML='<symbol class="icon" viewBox="0 0 1024 1024" id="icon-alert"><path d="M512 85.163a319.573 319.573 0 0 1 319.83 309.333l.17 10.667v174.805l58.88 134.656a53.29 53.29 0 0 1-48.853 74.71L640 789.418a128 128 0 0 1-255.787 7.509l-.213-7.637-201.6.042a53.333 53.333 0 0 1-48.939-74.581L192 580.011V405.163c0-177.28 143.019-320 320-320zm64 704.17-128 .128a64 64 0 0 0 127.701 6.144l.256-6.272zm-64-640.17c-141.653 0-256 114.09-256 256v188.16l-57.344 132.01h627.072L768 593.365V405.717l-.17-9.6A255.488 255.488 0 0 0 512 149.163zM896 352h85.333a32 32 0 0 1 4.352 63.701l-4.352.299H896a32 32 0 0 1-4.352-63.701L896 352zm-853.333 0H128a32 32 0 0 1 4.352 63.701L128 416H42.667a32 32 0 0 1-4.352-63.701l4.352-.299zm921.6-243.2a32 32 0 0 1-2.816 41.685l-3.584 3.115-85.334 64a32 32 0 0 1-41.984-48.085l3.584-3.115 85.334-64a32 32 0 0 1 44.8 6.4zm-859.734-6.4 85.334 64a32 32 0 1 1-38.4 51.2l-85.334-64a32 32 0 1 1 38.4-51.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-button"><path d="M912 176v416H732.48v-32H880V208H144v352h175.488v32H112V176z" /><path d="m436.384 788.512.544 2.688a16 16 0 0 0 27.776 5.504l44.032-54.336 56.768 97.664a16 16 0 0 0 21.792 5.856l68.672-39.392 2.368-1.664a16 16 0 0 0 3.52-20.256l-55.904-96.16 68.8-12.064a16 16 0 0 0 6.464-28.8l-256-180.64a16 16 0 0 0-25.12 14.976l36.288 306.624z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-card"><path d="M858.656 864H165.344C109.472 864 64 818.56 64 762.688V261.312C64 205.44 109.472 160 165.344 160h693.312C914.528 160 960 205.44 960 261.312v501.376C960 818.56 914.528 864 858.656 864zM165.344 224C144.736 224 128 240.736 128 261.312v501.376C128 783.264 144.736 800 165.344 800h693.312C879.264 800 896 783.264 896 762.688V261.312C896 240.736 879.264 224 858.656 224H165.344zM800 416H224c-17.664 0-32-14.336-32-32s14.336-32 32-32h576c17.696 0 32 14.336 32 32s-14.304 32-32 32zM320 736h-96c-17.664 0-32-14.304-32-32s14.336-32 32-32h96c17.664 0 32 14.304 32 32s-14.336 32-32 32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-cascader-field"><path d="M661.377 411.07v64.595H314.175v395.654H871.32V475.665h-48.447V411.07h48.447c35.675 0 64.595 28.92 64.595 64.595v395.654c0 35.675-28.92 64.595-64.595 64.595H314.175c-35.675 0-64.6-28.92-64.6-64.595V475.665c0-35.675 28.925-64.595 64.6-64.595h347.202zm48.448-322.984c35.675 0 64.6 28.92 64.6 64.595v403.73c0 35.676-28.925 64.595-64.6 64.595H362.623v-64.594h347.202V152.68H152.68v403.73h48.447v64.595H152.68c-35.675 0-64.595-28.92-64.595-64.594V152.68c0-35.675 28.92-64.595 64.595-64.595h557.144z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-checkbox-field"><path d="M897.94 896.77c6.259-6.278 10.257-14.835 10.257-24.531V147.672c0-9.118-3.998-18.235-10.257-24.533-6.277-6.258-14.815-9.696-24.51-9.696H149.644c-9.688 0-18.236 3.437-24.503 9.696-6.268 6.297-9.687 15.414-9.687 24.533V872.24c0 9.696 3.42 18.253 9.687 24.53 6.267 6.278 14.815 10.276 24.503 10.276h723.784c9.697 0 18.234-3.998 24.511-10.276zM149.645 61.52h723.784c23.933 0 45.586 9.697 60.98 25.111 15.397 15.974 25.073 37.666 25.073 61.04v724.567c0 23.97-9.676 45.643-25.073 61.056-15.394 15.396-37.047 25.093-60.98 25.093H149.645c-23.364 0-45.017-9.697-60.972-25.093-15.396-15.414-25.082-37.087-25.082-61.056V147.672c0-23.374 9.686-45.065 25.082-61.039 15.955-15.415 37.608-25.112 60.972-25.112z" /><path d="M417.42 698.27a23.556 23.556 0 0 1-16.668-6.9L259.5 550.12c-9.173-9.15-9.173-24.095 0-33.291 9.17-9.147 24.115-9.147 33.288 0l124.583 124.607 312.895-312.917c9.194-9.172 24.14-9.172 33.288 0 9.196 9.172 9.196 24.116 0 33.29L433.992 691.37c-4.618 4.645-10.643 6.9-16.666 6.9h.093z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-color-field"><path d="M619.52 490.667h-.853l-85.334-85.334h.854z" /><path d="M619.52 507.733h-.853a17.067 17.067 0 1 1 0-34.133c9.438 0 17.476 7.646 17.476 17.067s-7.185 17.066-16.623 17.066zM534.187 422.4c-9.438 0-17.494-7.646-17.494-17.067s7.202-17.066 16.64-17.066h.854a17.067 17.067 0 1 1 0 34.133zM192 866.133a34.133 34.133 0 0 1-24.132-58.265l42.666-42.667a34.133 34.133 0 1 1 48.265 48.265l-42.667 42.666A33.963 33.963 0 0 1 192 866.133z" /><path d="m619.52 490.667-.427-.427-84.906-84.907L746.667 192H832v85.333z" /><path d="M662.187 567.467a33.997 33.997 0 0 1-24.133-10.001L467.388 386.799a34.133 34.133 0 0 1 48.281-48.282l170.667 170.667a34.133 34.133 0 0 1-24.15 58.283z" /><path d="M320 806.4h-85.333a17.067 17.067 0 0 1-17.067-17.067V704c0-4.54 1.792-8.875 5-12.066L521.695 392.84a16.52 16.52 0 0 1 3.567-2.731l209.305-210.142a17.117 17.117 0 0 1 12.1-5.018H832a17.067 17.067 0 0 1 17.067 17.067v85.333a17.067 17.067 0 0 1-4.967 12.05L631.62 502.732a17.954 17.954 0 0 1-3.618 2.782L332.066 801.434A17.135 17.135 0 0 1 320 806.4zm-68.267-34.133h61.201l294.093-294.093a16.52 16.52 0 0 1 3.567-2.73l204.34-205.16v-61.217h-61.185L546.287 417.382a17.954 17.954 0 0 1-3.618 2.782L251.733 711.066v61.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-custom-component"><path d="M811.008 335.872c-2.048-7.168-11.264-9.216-17.408-4.096L690.176 435.2c-8.192 8.192-20.48 8.192-28.672 0L588.8 362.496c-8.192-8.192-8.192-20.48 0-28.672l104.448-104.448c5.12-5.12 3.072-14.336-4.096-17.408-17.408-4.096-35.84-7.168-54.272-7.168-108.544 0-195.584 94.208-183.296 204.8 2.048 17.408 6.144 32.768 12.288 48.128L225.28 697.344c-27.648 27.648-27.648 73.728 0 101.376 14.336 14.336 32.768 21.504 51.2 21.504s36.864-7.168 51.2-21.504l238.592-238.592c15.36 6.144 31.744 10.24 48.128 12.288 111.616 12.288 204.8-74.752 204.8-183.296 0-18.432-3.072-36.864-8.192-53.248z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-data-table"><path d="M915.692 39.385H108.308c-15.754 0-29.539 13.784-29.539 29.538v98.462c0 15.753 13.785 29.538 29.539 29.538h807.384c15.754 0 29.539-13.785 29.539-29.538V68.923c0-15.754-13.785-29.538-29.539-29.538zM285.538 275.692h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V305.23c0-15.754-13.785-29.539-29.539-29.539zM285.538 472.615h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zM285.538 669.538h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zm315.077 0h-177.23c-15.754 0-29.539 13.785-29.539 29.539v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538v-59.077c0-15.754-13.785-29.539-29.539-29.539zM285.538 866.462h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538zm315.077 0h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538zm315.077 0h-177.23c-15.754 0-29.539 13.784-29.539 29.538v59.077c0 15.754 13.785 29.538 29.539 29.538h177.23c15.754 0 29.539-13.784 29.539-29.538V896c0-15.754-13.785-29.538-29.539-29.538z" /></symbol><symbol class="icon" viewBox="0 0 1132 1024" id="icon-date-field"><path d="M1023.995 1023.995H107.789C48.262 1023.995 0 975.732 0 916.205V188.63C0 129.105 48.262 80.843 107.789 80.843h80.842v53.894h-80.842c-29.777 0-53.895 24.118-53.895 53.895V296.42H1077.89V188.63c0-29.776-24.117-53.894-53.894-53.894h-80.842V80.842h80.842c59.526 0 107.789 48.262 107.789 107.789v727.575c0 59.526-48.263 107.789-107.79 107.789Zm53.894-673.681H53.894v565.892c0 29.777 24.118 53.894 53.895 53.894h916.206c29.777 0 53.894-24.117 53.894-53.894V350.314ZM794.943 628.086l-3.584 5.632c-3.314 6.306-7.087 12.153-11.237 17.731L646.734 861.476H589.12l98.358-160.875c-.108 0-.216.027-.324.027-66.963 0-121.262-60.335-121.262-134.736 0-74.401 54.299-134.736 121.262-134.736 66.964 0 121.263 60.335 121.263 134.736 0 22.42-5.39 43.25-14.12 61.844l.646.35ZM687.154 485.05c-37.214 0-67.368 36.19-67.368 80.842 0 44.651 30.154 80.842 67.368 80.842 19.052 0 36.164-9.567 48.425-24.819l9.781-16.006c5.66-11.83 9.163-25.385 9.163-40.017 0-44.652-30.154-80.842-67.369-80.842Zm-310.216 21.881-80.734 72.327v-66.991l82.405-80.41h52.062v429.727h-53.733V506.93Zm512.32-291.353c-14.874 0-26.947-12.072-26.947-26.947V26.947C862.311 12.072 874.384 0 889.26 0s26.947 12.072 26.947 26.947v161.684c0 14.875-12.072 26.947-26.947 26.947ZM296.42 80.842h538.944v53.894H296.42V80.842Zm-53.895 134.736c-14.875 0-26.947-12.072-26.947-26.947V26.947C215.578 12.072 227.65 0 242.525 0s26.947 12.072 26.947 26.947v161.684c0 14.875-12.072 26.947-26.947 26.947Z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-date-range-field"><path d="M887.467 192.853H786.773v-73.386c0-10.24-6.826-17.067-17.066-17.067s-17.067 6.827-17.067 17.067v73.386H303.787v-73.386c0-10.24-6.827-17.067-17.067-17.067s-17.067 6.827-17.067 17.067v73.386H168.96c-46.08 0-85.333 37.547-85.333 85.334v558.08c0 46.08 37.546 85.333 85.333 85.333h718.507c46.08 0 85.333-37.547 85.333-85.333v-558.08c0-47.787-37.547-85.334-85.333-85.334zM168.96 226.987h100.693v66.56c0 10.24 6.827 17.066 17.067 17.066s17.067-6.826 17.067-17.066v-66.56h450.56v66.56c0 10.24 6.826 17.066 17.066 17.066s17.067-6.826 17.067-17.066v-66.56h98.987c27.306 0 51.2 22.186 51.2 51.2v88.746H117.76v-88.746c0-29.014 22.187-51.2 51.2-51.2zm718.507 660.48H168.96c-27.307 0-51.2-22.187-51.2-51.2v-435.2h820.907v435.2c0 27.306-22.187 51.2-51.2 51.2z" /><path d="M858.453 493.227H327.68c-10.24 0-17.067 6.826-17.067 17.066V624.64H194.56c-10.24 0-17.067 6.827-17.067 17.067v133.12c0 10.24 6.827 17.066 17.067 17.066H460.8c10.24 0 17.067-6.826 17.067-17.066V660.48h380.586c10.24 0 17.067-6.827 17.067-17.067v-133.12c0-10.24-6.827-17.066-17.067-17.066zM445.44 527.36v97.28h-98.987v-97.28h98.987zm-230.4 131.413h98.987v98.987H215.04v-98.987zm131.413 97.28v-97.28h98.987v97.28h-98.987zm133.12-228.693h97.28v98.987h-97.28V527.36zm131.414 0h98.986v98.987h-98.986V527.36zm230.4 97.28H742.4v-98.987h98.987v98.987z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-divider"><path d="M62.5 491.773h899v74.918h-899v-74.918z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-document"><path d="M979.478 706.382a44.522 44.522 0 0 1-11.843 57.967l-4.363 2.85L569.478 995.06l-5.388 4.764a84.013 84.013 0 0 1-43.943 17.808l-8.102.401c-19.056 0-37.31-6.545-52.046-18.254l-5.432-4.72L60.817 767.2a44.522 44.522 0 0 1-18.61-56.187l2.36-4.63a44.522 44.522 0 0 1 60.816-16.25l405.326 234.54 1.336 1.514 1.335-1.514 405.282-234.54a44.522 44.522 0 0 1 60.86 16.25zm0-222.609a44.522 44.522 0 0 1-11.843 57.968l-4.363 2.849-393.794 227.862-5.388 4.764a84.013 84.013 0 0 1-43.943 17.809l-8.102.4c-19.056 0-37.31-6.544-52.046-18.254l-5.432-4.719L60.817 544.59a44.522 44.522 0 0 1-18.61-56.187l2.36-4.63a44.522 44.522 0 0 1 60.816-16.25l405.326 234.54 1.336 1.514 1.335-1.514 405.282-234.54a44.522 44.522 0 0 1 60.86 16.25zM512 0c18.788 0 36.864 6.1 51.645 17.185l4.586 3.74 403.5 199.68 5.61 6.144c32.501 35.44 32.501 89.89 0 125.329l-5.61 6.144-403.5 199.59-4.541 3.785a86.239 86.239 0 0 1-43.676 16.83l-8.014.356c-18.788 0-36.864-6.1-51.645-17.186l-4.63-3.784L52.269 358.222l-5.61-6.144a92.739 92.739 0 0 1 0-125.329l5.61-6.144 403.456-199.68 4.585-3.74C473 7.702 488.136 1.87 503.986.356z" fill="#008df0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-drag"><path d="M574.958 267.016h-63.454 204.649L511.213 63.655 307.85 267.016h141.191V456.68H258.688v125.917H449.04V772.95h125.917V582.596h188.875V456.679H574.958V267.016zm-63.704 693.33 189.62-187.396H323.126l188.129 187.395zM71.292 518.891l187.395 189.62v-377.75L71.292 518.892zm692.54-188.13v377.75L952.708 518.89 763.833 330.762z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-file-upload-field"><path d="m676.48 72.96 209.92 211.2 9.6 23.04V928l-32 32H160l-32-32V96l32-32h494.08l22.4 8.96zM640 320h192L640 128v192zM192 128v768h640V384H608l-32-32V128H192zm512 320H320v64h384v-64zM320 576h384v64H320v-64zm384 128H320v64h384v-64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-github"><path d="M512 0C229.284 0 .142 234.943.142 524.868c0 231.829 146.647 428.553 350.068 497.952 25.593 4.82 34.977-11.389 34.977-25.294 0-12.455-.469-45.47-.725-89.277-142.382 31.735-172.453-70.38-172.453-70.38-23.247-60.57-56.817-76.694-56.817-76.694-46.493-32.588 3.54-31.948 3.54-31.948 51.357 3.71 78.358 54.086 78.358 54.086 45.683 80.191 119.817 57.072 148.993 43.594 4.65-33.911 17.915-57.03 32.503-70.168-113.675-13.223-233.151-58.224-233.151-259.341 0-57.285 19.92-104.163 52.678-140.846-5.246-13.266-22.82-66.627 4.991-138.884 0 0 42.996-14.076 140.76 53.787 40.864-11.644 84.628-17.445 128.179-17.659 43.465.214 87.271 6.015 128.135 17.66 97.68-67.907 140.59-53.788 140.59-53.788 27.939 72.257 10.408 125.618 5.119 138.884 32.844 36.683 52.593 83.56 52.593 140.846 0 201.587-119.647 245.99-233.663 258.957 18.341 16.21 34.72 48.2 34.72 97.21 0 70.168-.639 126.728-.639 143.96 0 14.034 9.214 30.371 35.19 25.21 203.25-69.528 349.77-266.124 349.77-497.867C1023.858 234.943 794.674 0 512 0" fill="#3E75C3" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-grid"><path d="M819.354 921.6h102.4V819.2h-102.4v102.4zm102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V819.2a102.4 102.4 0 0 0-102.4-102.4zm-460.8 204.8h102.4V819.2h-102.4v102.4zm102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V819.2a102.4 102.4 0 0 0-102.4-102.4zm-460.8 204.8h102.4V819.2h-102.4v102.4zm102.4-204.8h-102.4A102.4 102.4 0 0 0 .154 819.2v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V819.2a102.4 102.4 0 0 0-102.4-102.4zm614.4-153.6h102.4V460.8h-102.4v102.4zm102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4zm-460.8 204.8h102.4V460.8h-102.4v102.4zm102.4-204.8h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4zm-460.8 204.8h102.4V460.8h-102.4v102.4zm102.4-204.8h-102.4A102.4 102.4 0 0 0 .154 460.8v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V460.8a102.4 102.4 0 0 0-102.4-102.4zm614.4-153.6h102.4V102.4h-102.4v102.4zM921.754 0h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4A102.4 102.4 0 0 0 921.754 0zm-460.8 204.8h102.4V102.4h-102.4v102.4zM563.354 0h-102.4a102.4 102.4 0 0 0-102.4 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4A102.4 102.4 0 0 0 563.354 0zm-460.8 204.8h102.4V102.4h-102.4v102.4zM204.954 0h-102.4A102.4 102.4 0 0 0 .154 102.4v102.4a102.4 102.4 0 0 0 102.4 102.4h102.4a102.4 102.4 0 0 0 102.4-102.4V102.4A102.4 102.4 0 0 0 204.954 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-html-text"><path d="m137.6 512 204.8-204.8c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L70.4 489.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4l227.2 227.2c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L137.6 512zm464-339.2c-16-3.2-35.2 6.4-38.4 22.4L396.8 812.8c-3.2 16 6.4 35.2 22.4 38.4 16 3.2 35.2-6.4 38.4-22.4L624 211.2c6.4-16-3.2-35.2-22.4-38.4zm352 316.8L726.4 262.4c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L886.4 512 681.6 716.8c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l227.2-227.2c6.4-6.4 9.6-16 9.6-22.4 0-9.6-3.2-16-9.6-22.4z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-node-tree"><path d="M332.48 500.864a25.6 25.6 0 1 0 0-51.2H192.384v-184.96a115.2 115.2 0 0 0 89.6-112.128c0-63.488-51.712-115.2-115.2-115.2s-115.2 51.712-115.2 115.2a115.2 115.2 0 0 0 89.6 112.128v696.192a25.6 25.6 0 1 0 51.2 0v-141.12c2.304.192 4.48.512 6.912.512H332.48a25.6 25.6 0 1 0 0-51.2H199.296c-3.456 0-5.504-.448-6.08-.256a29.184 29.184 0 0 1-.896-8.576V500.8h140.16zM102.784 152.64c0-35.264 28.736-64 64-64s64 28.736 64 64-28.736 64-64 64-64-28.736-64-64zm818.432 207.424h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2zm-486.336 179.2v-128h486.4v128h-486.4zm486.336 140.352h-486.4c-28.224 0-51.2 22.976-51.2 51.2v128c0 28.224 22.976 51.2 51.2 51.2h486.4c28.224 0 51.2-22.976 51.2-51.2v-128c0-28.224-22.976-51.2-51.2-51.2zm-486.336 179.2v-128h486.4v128h-486.4z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-number-field"><path d="M960 1024H64a64 64 0 0 1-64-64V64A64 64 0 0 1 64 0h896a64 64 0 0 1 64 64v896a64 64 0 0 1-64 64zm0-896a64 64 0 0 0-64-64H128a64 64 0 0 0-64 64v768a64 64 0 0 0 64 64h768a64 64 0 0 0 64-64V128zM832 768H704a64 64 0 0 1 0-128h64v-64h-64a64 64 0 0 1 0-128h64v-64h-64a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v384a64 64 0 0 1-64 64zM512 640a64 64 0 0 1 0 128H384a64 64 0 0 1-64-64V512a64 64 0 0 1 64-64h64v-64h-64a64 64 0 0 1 0-128h128a64 64 0 0 1 64 64v192a64 64 0 0 1-64 64h-64v64h64zM192 768a64 64 0 0 1-64-64V320a64 64 0 0 1 128 0v384a64 64 0 0 1-64 64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-picture-upload-field"><path d="M896 1024H128C57.312 1024 0 966.688 0 896V128C0 57.312 57.312 0 128 0h768c70.688 0 128 57.312 128 128v768c0 70.688-57.312 128-128 128zm0-64c35.328 0 64-28.672 64-64V639.968l-192-192L494.816 721.12 730.624 960H896zM64 896c0 35.328 28.672 64 64 64h512.032L318.24 638.208 64 865.952V896zm896-768c0-35.328-28.672-64-64-64H128c-35.328 0-64 28.672-64 64v650.752L320 544l129.856 131.552L768 352l192 196.096V128zM256 384c-70.688 0-128-57.312-128-128s57.312-128 128-128 128 57.312 128 128-57.312 128-128 128zm0-192c-35.328 0-64 28.672-64 64s28.672 64 64 64 64-28.672 64-64-28.672-64-64-64z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-radio-field"><path d="M512 65.983C266.08 65.983 65.983 266.08 65.983 512c0 245.952 200.065 446.017 446.017 446.017S958.017 757.952 958.017 512c0-245.92-200.065-446.017-446.017-446.017zm0 828.034c-210.656 0-382.017-171.392-382.017-382.017 0-210.656 171.36-382.017 382.017-382.017 210.625 0 382.017 171.36 382.017 382.017 0 210.625-171.392 382.017-382.017 382.017zM512 352C423.776 352 352 423.776 352 512s71.774 160 160 160 160-71.774 160-160-71.776-160-160-160z" /></symbol><symbol class="icon" viewBox="0 0 1069 1024" id="icon-rate-field"><path d="m633.73 378.02 9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-.263l94.568 185.635zM496.647 85.52 374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682.802z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-redo"><path d="M412.081 346.3h443.415L640.168 133.871c-18.973-18.973-18.973-46.064 0-65.038s44.325-19.884 63.381-.83l291.385 284.591c18.973 18.973 18.973 44.159 0 63.132L703.549 700.649c-18.973 18.973-44.325 18.973-63.381-.083-18.973-18.973-18.973-43.91 0-62.883l215.328-208.534H412.081c-177.3 0-314.335 138.359-314.335 309.364v44.325c0 25.354-16.074 44.325-41.425 44.325s-41.425-18.973-41.425-44.325v-44.325c0-221.709 169.181-392.213 397.185-392.213z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-rich-editor-field"><path d="M313.36 448.094H632.63v31.927H313.36v-31.927ZM313.36 583.784h223.49v31.927H313.36v-31.927ZM313.36 719.474h127.709v31.927h-127.71v-31.927ZM889.412 554.809l-39.955-39.971-39.957-39.941c-7.358-7.358-19.285-7.358-26.642 0l-329.7 329.694a14.08 14.08 0 0 0-4.592 6.873L412.078 932.86a14.158 14.158 0 0 0 3.54 14.079l.99.763.77.982a14.174 14.174 0 0 0 14.062 3.555l121.395-36.495a14.04 14.04 0 0 0 6.938-4.677l329.639-329.63c7.35-7.343 7.35-19.284 0-26.627zM541.136 889.756l-95.198 28.622 28.623-95.235 255.02-255.02 66.6 66.599-255.045 255.034zM856.112 574.78l-46.611 46.611-66.59-66.598 46.605-46.597c3.677-3.68 9.641-3.68 13.319-.016l26.892 26.892 26.384 26.394c3.68 3.68 3.68 9.65.001 13.314z" /><path d="M671.874 224.898v-28.934c0-22.004-17.905-39.909-39.909-39.909H314.026c-22.004 0-39.909 17.905-39.909 39.91v28.933h-104.43v643.564c0 35.26 28.592 63.854 63.855 63.854h127.709v-47.89H249.506c-17.632 0-31.928-14.299-31.928-31.928v-579.71h56.54v10.976c0 22.004 17.904 39.909 39.908 39.909h317.938c22.004 0 39.91-17.905 39.91-39.91V272.79h56.538V437.45h47.89V224.898H671.875zm-47.89 50.884H322.007v-71.836h301.974v71.836z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-section"><path d="M141.074 906.496h741.852c89.581 0 134.583-44.562 134.583-132.846V250.331c0-88.283-45.002-132.845-134.583-132.845H141.074c-89.143.018-134.583 44.16-134.583 132.845V773.67c0 88.704 45.44 132.845 134.583 132.845zm1.28-68.992c-42.861 0-66.852-22.71-66.852-67.291V253.806c0-44.58 23.99-67.292 66.852-67.292h739.292c42.423 0 66.852 22.711 66.852 67.292v516.388c0 44.58-24.43 67.292-66.852 67.292z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-select-field"><path d="M374.784 649.515a32 32 0 0 1 3.072 41.685l-3.115 3.584L225.28 843.947a32 32 0 0 1-37.845 5.504l-3.968-2.56-85.334-64a32 32 0 0 1 34.432-53.76l3.968 2.56 63.147 47.36 129.835-129.622a32 32 0 0 1 45.269.043zm531.37 75.818a32 32 0 0 1 4.31 63.702l-4.31.298h-448a32 32 0 0 1-4.351-63.744l4.352-.256h448zm.513-256a32 32 0 0 1 4.352 63.702l-4.352.298h-448a32 32 0 0 1-4.352-63.701l4.352-.299h448zm-531.84-331.776a32 32 0 0 1 2.986 41.686l-3.114 3.584-149.846 149.205a32 32 0 0 1-37.888 5.419l-3.925-2.56-84.907-64a32 32 0 0 1 34.518-53.675l3.968 2.56 62.72 47.275L329.6 137.472a32 32 0 0 1 45.227.085zm531.328 75.819a32 32 0 0 1 4.309 63.701l-4.31.299H459.35a32 32 0 0 1-4.352-63.744l4.352-.256h446.806z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slider-field"><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slot-component"><path d="M512 102.4c-212.48 0-384 171.52-384 384s171.52 384 384 384 384-171.52 384-384-171.52-384-384-384zm25.6 716.8v-128c0-15.36-10.24-25.6-25.6-25.6s-25.6 10.24-25.6 25.6v128C322.56 806.4 192 675.84 179.2 512h128c15.36 0 25.6-10.24 25.6-25.6s-10.24-25.6-25.6-25.6h-128C192 296.96 322.56 166.4 486.4 156.16V281.6c0 15.36 10.24 25.6 25.6 25.6s25.6-10.24 25.6-25.6V156.16C701.44 168.96 832 299.52 844.8 460.8h-128c-15.36 0-25.6 10.24-25.6 25.6s10.24 25.6 25.6 25.6h128C832 675.84 701.44 806.4 537.6 819.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-slot-field"><path d="M493.969 244.87h36.285q18.031 0 18.031 18.03v217.267q0 18.031-18.031 18.031h-36.285q-18.032 0-18.032-18.031V262.901q0-18.031 18.032-18.031ZM323.45000000000005 525.802h36.286q18.031 0 18.031 18.031v217.266q0 18.031-18.031 18.031H323.45q-18.03 0-18.03-18.03V543.832q0-18.031 18.03-18.031ZM664.2639999999999 525.802h36.286q18.03 0 18.03 18.031v217.266q0 18.031-18.03 18.031h-36.286q-18.031 0-18.031-18.03V543.832q0-18.031 18.031-18.031Z" /><path d="M827.437 122.212H196.563a74.574 74.574 0 0 0-74.35 74.351v630.874a74.574 74.574 0 0 0 74.35 74.35h630.874a74.574 74.574 0 0 0 74.35-74.35V196.563a74.574 74.574 0 0 0-74.35-74.35zm52.09 705.225a52.09 52.09 0 0 1-52.09 52.09H196.563a52.09 52.09 0 0 1-52.09-52.09V196.563a52.09 52.09 0 0 1 52.09-52.09h630.874a52.09 52.09 0 0 1 52.09 52.09z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-static-text"><path d="M213.333 160c-4.821 0-9.472.64-13.824 1.792a32 32 0 0 1-16.554-61.824C192.683 97.408 202.88 96 213.333 96h33.195a32 32 0 0 1 0 64h-33.195zm133.931-32a32 32 0 0 1 32-32h66.347a32 32 0 1 1 0 64h-66.304a32 32 0 0 1-32-32zm199.125 0a32 32 0 0 1 32-32h66.347a32 32 0 0 1 0 64h-66.347a32 32 0 0 1-32-32zm199.083 0a32 32 0 0 1 32-32h33.195c10.453 0 20.65 1.365 30.378 3.968a32 32 0 1 1-16.554 61.867A53.419 53.419 0 0 0 810.667 160h-33.195a32 32 0 0 1-32-32zm-606.293 32.341a32 32 0 0 1 22.613 39.168A53.461 53.461 0 0 0 160 213.333v33.195a32 32 0 0 1-64 0v-33.195c0-10.453 1.365-20.65 3.968-30.378a32 32 0 0 1 39.168-22.614zm745.685 0a32 32 0 0 1 39.168 22.614c2.56 9.728 3.968 19.925 3.968 30.378v33.195a32 32 0 0 1-64 0v-33.195c0-4.821-.64-9.472-1.792-13.824a32 32 0 0 1 22.613-39.168zM128 347.221a32 32 0 0 1 32 32v66.39a32 32 0 1 1-64 0v-66.304a32 32 0 0 1 32-32zm768 0a32 32 0 0 1 32 32v66.39a32 32 0 1 1-64 0v-66.304a32 32 0 0 1 32-32zM128 546.432a32 32 0 0 1 32 32v66.347a32 32 0 0 1-64 0v-66.347a32 32 0 0 1 32-32zm768 0a32 32 0 0 1 32 32v66.347a32 32 0 0 1-64 0v-66.347a32 32 0 0 1 32-32zm0 199.083a32 32 0 0 1 32 32v33.152c0 10.453-1.365 20.65-3.968 30.378a32 32 0 1 1-61.867-16.554c1.195-4.352 1.835-8.96 1.835-13.824v-33.195a32 32 0 0 1 32-32zm-768 0a32 32 0 0 1 32 32v33.152c0 4.821.64 9.472 1.792 13.824a32 32 0 0 1-61.824 16.512A117.461 117.461 0 0 1 96 810.667v-33.195a32 32 0 0 1 32-32zm32.341 139.392a32 32 0 0 1 39.168-22.656 53.814 53.814 0 0 0 13.824 1.792h33.195a32 32 0 0 1 0 64h-33.195c-10.453 0-20.65-1.366-30.378-3.968a32 32 0 0 1-22.614-39.168zm703.318 0a32 32 0 0 1-22.614 39.168c-9.728 2.56-19.925 3.968-30.378 3.968h-33.195a32 32 0 0 1 0-64h33.195c4.821 0 9.472-.64 13.824-1.792a32 32 0 0 1 39.168 22.613zM347.307 896a32 32 0 0 1 32-32h66.346a32 32 0 1 1 0 64h-66.346a32 32 0 0 1-32-32zm199.125 0a32 32 0 0 1 32-32h66.347a32 32 0 0 1 0 64h-66.347a32 32 0 0 1-32-32zM341.333 352a32 32 0 0 0 0 64H480v266.667a32 32 0 0 0 64 0V416h138.667a32 32 0 0 0 0-64H341.333z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-sub-form"><path d="M512 106.667H112a5.333 5.333 0 0 0-5.333 5.333v800a5.333 5.333 0 0 0 5.333 5.333h800a5.333 5.333 0 0 0 5.333-5.333V112a5.333 5.333 0 0 0-5.333-5.333zm0 74.666h325.333a5.333 5.333 0 0 1 5.334 5.334v160a5.333 5.333 0 0 1-5.334 5.333H186.667a5.333 5.333 0 0 1-5.334-5.333v-160a5.333 5.333 0 0 1 5.334-5.334zM597.333 432v405.333a5.333 5.333 0 0 1-5.333 5.334H432a5.333 5.333 0 0 1-5.333-5.334V432a5.333 5.333 0 0 1 5.333-5.333h160a5.333 5.333 0 0 1 5.333 5.333zm-410.666-5.333h160A5.333 5.333 0 0 1 352 432v405.333a5.333 5.333 0 0 1-5.333 5.334h-160a5.333 5.333 0 0 1-5.334-5.334V432a5.333 5.333 0 0 1 5.334-5.333zM672 837.333V432a5.333 5.333 0 0 1 5.333-5.333h160a5.333 5.333 0 0 1 5.334 5.333v405.333a5.333 5.333 0 0 1-5.334 5.334h-160a5.333 5.333 0 0 1-5.333-5.334z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-switch-field"><path d="M692 792H332C182 792 62 672 62 522s120-270 270-270h360c150 0 270 120 270 270 0 147-120 270-270 270zM332 312c-117 0-210 93-210 210s93 210 210 210h360c117 0 210-93 210-210s-93-210-210-210H332z" /><path d="M191 522a150 150 0 1 0 300 0 150 150 0 1 0-300 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-tab"><path d="M908.8 1005.44H115.2A101.76 101.76 0 0 1 14.08 903.68V110.72A101.76 101.76 0 0 1 115.2 8.96h296.96a32.64 32.64 0 0 1 32 32V262.4a32 32 0 0 1-32 32 32 32 0 0 1-32-32v-192H115.2a37.76 37.76 0 0 0-37.12 37.76v795.52a37.76 37.76 0 0 0 37.12 37.76h793.6a37.76 37.76 0 0 0 37.12-37.76V267.52a32 32 0 0 1 32-32 32 32 0 0 1 32 32v636.16a101.76 101.76 0 0 1-101.12 101.76z" /><path d="M977.92 299.52a32.64 32.64 0 0 1-32-32v-87.04a37.12 37.12 0 0 0-37.12-37.76H421.12a32 32 0 0 1-32-32 32 32 0 0 1 32-32H908.8a101.76 101.76 0 0 1 101.12 101.76v87.04a32 32 0 0 1-32 32z" /><path d="M977.92 299.52H64a32 32 0 0 1-32-32 32 32 0 0 1 32-32h913.92a32 32 0 0 1 32 32 32 32 0 0 1-32 32z" /><path d="M699.52 299.52a32 32 0 0 1-32-32v-156.8a32 32 0 0 1 64 0v156.8a32 32 0 0 1-32 32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-table"><path d="M925.586 0H101.369C69.885 0 42.24 28.924 42.24 62.328v902.8c0 33.403 27.645 58.872 59.129 58.872h824.217c31.484 0 56.057-25.469 56.057-58.873V62.328C981.643 28.924 957.198 0 925.586 0zM373.719 735.908V543.932h276.445v191.976zm276.445 42.235v203.494H373.719V778.143zm287.964-276.446h-244.45V298.203h244.45zm-287.964 0H373.719V298.203h276.445zm-319.96 0H85.754V298.203h244.45zm-244.45 42.235h244.45v191.976H85.754zm607.925 0h244.449v191.976h-244.45zM101.369 42.235h824.217c7.807 0 12.542 10.366 12.542 20.093v193.64H85.755V62.328c0-9.727 7.807-20.093 15.614-20.093zM85.755 964.999V778.143h244.449v203.494H101.369c-7.807 0-15.614-6.91-15.614-16.51zm839.83 16.638H693.68V778.143h244.449v186.856c0 9.727-4.607 16.638-12.542 16.638z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-text-field"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-textarea-field"><path d="M896.4 173.1H128.9c-35.2 0-49 13.8-49 49v575.6c0 35.2 13.8 49 49 49h767.5c35.2 0 49-13.8 49-49V222.1c0-35.2-13.8-49-49-49zm0 592.6c0 16-12.8 32-32 32H160.9c-19.2 0-32-12.8-32-32V254.1c0-16 12.8-32 32-32h703.5c19.2 0 32 12.8 32 32v511.6z" /><path d="M710.2 766.7h141.5c8.1 0 14.7-6.6 14.7-14.7V610.4c0-1.3-1.6-2-2.6-1.1L709.1 764.1c-1 1-.3 2.6 1.1 2.6zm-503-172.4h-13.5c-10 0-18.2-8.2-18.2-18.2V291.8c0-10.2 8.4-18.6 18.6-18.6h12.8c10.2 0 18.6 8.4 18.6 18.6v284.3c-.1 10-8.3 18.2-18.3 18.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time-field"><path d="M512 39.385A472.615 472.615 0 1 0 984.615 512 472.615 472.615 0 0 0 512 39.385zm0 866.461A393.846 393.846 0 1 1 905.846 512 393.846 393.846 0 0 1 512 905.846zm75.855-373.72A77.154 77.154 0 0 0 590.769 512a78.454 78.454 0 0 0-39.384-67.86V196.923a39.385 39.385 0 0 0-78.77 0V444.14a78.336 78.336 0 0 0 59.55 143.715l70.144 70.144a39.385 39.385 0 0 0 55.69-55.69zM512 551.385A39.385 39.385 0 1 1 551.385 512 39.385 39.385 0 0 1 512 551.385zm315.077-78.77A39.385 39.385 0 1 0 866.462 512a39.385 39.385 0 0 0-39.385-39.385zm-630.154 0A39.385 39.385 0 1 0 236.308 512a39.385 39.385 0 0 0-39.385-39.385zm509.991 234.3a39.385 39.385 0 1 0 55.69 0 39.385 39.385 0 0 0-55.69 0zM317.007 317.006a39.385 39.385 0 1 0-55.73 0 39.385 39.385 0 0 0 55.809.04zM512 787.692a39.385 39.385 0 1 0 39.385 39.385A39.385 39.385 0 0 0 512 787.692zm-250.604-80.778a39.385 39.385 0 1 0 55.69 0 39.385 39.385 0 0 0-55.69-.039zm445.518-445.518a39.385 39.385 0 1 0 55.69 0 39.385 39.385 0 0 0-55.69-.04z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-time-range-field"><path d="M498.596 482.29H345.42v57.308h210.478V274.197h-57.301V482.29zm79.089 162.695h379.88v57.302h-379.88v-57.302zm0 128.78h379.88v57.307h-379.88v-57.307zm0 128.785h379.88v57.307h-379.88V902.55zm0 0" /><path d="M102.523 382.29a28.668 28.668 0 0 0 23.367 2.56l190.81-61.886c15.053-4.883 23.298-21.04 18.415-36.09-4.882-15.052-21.04-23.297-36.093-18.415l-123.346 40c15.994-26.117 35.17-50.538 57.37-72.745 73.768-73.767 171.847-114.388 276.169-114.388 104.32 0 202.395 40.622 276.161 114.388S899.77 407.56 899.77 511.882c0 26.428-2.616 52.45-7.71 77.78h58.303c4.465-25.499 6.709-51.47 6.709-77.78 0-60.45-11.846-119.102-35.205-174.336-22.56-53.335-54.85-101.227-95.969-142.35-41.122-41.122-89.017-73.408-142.348-95.968-55.233-23.361-113.89-35.207-174.334-35.207-60.45 0-119.107 11.846-174.337 35.208-53.335 22.56-101.23 54.846-142.35 95.969-23.98 23.98-44.933 50.278-62.727 78.6l-20.738-105.654c-3.043-15.528-18.105-25.642-33.632-22.6-15.528 3.048-25.643 18.105-22.6 33.637l36.103 183.932a28.666 28.666 0 0 0 13.588 19.178zm23.497 205.652H67.768c5.76 33.679 15.368 66.544 28.79 98.278 22.56 53.334 54.85 101.225 95.972 142.348 41.123 41.123 89.014 73.409 142.349 95.969 54.112 22.888 111.518 34.711 170.668 35.182v-57.324c-102.95-.941-199.595-41.446-272.5-114.349-55.501-55.502-92.237-124.77-107.027-200.104zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-undo"><path d="M609.206 396.656H193.504l201.87-199.152c17.787-17.787 17.787-43.185 0-60.973s-41.555-18.641-59.42-.778L62.857 402.557c-17.787 17.787-17.787 41.399 0 59.186L336.03 728.858c17.787 17.787 41.555 17.787 59.42-.078 17.787-17.787 17.787-41.166 0-58.953L193.502 474.326h415.702c166.219 0 311.155 129.712 311.155 290.029v41.555c0 23.769 15.069 41.555 38.836 41.555s38.836-17.787 38.836-41.555v-41.555c0-207.852-175.073-367.7-388.828-367.7z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-vue-sfc"><path d="M454.138 11.176 54.066 174.092c-72.088 29.49-72.088 120.523 0 150.014l400.276 162.916c36.454 14.95 78.847 14.95 115.506 0l400.071-162.814c72.191-29.593 72.089-120.83-.307-150.116L569.746 11.278a155.339 155.339 0 0 0-115.608-.205zm469.19 237.872L532.37 408.585l-7.885 2.457a55.09 55.09 0 0 1-32.562-2.457L100.35 249.048l391.265-159.23a55.09 55.09 0 0 1 40.447 0l391.162 159.23z" fill="#1890FF" /><path d="M498.681 729.911c-20.275 0-40.652-3.788-59.391-11.673L53.76 561.26C20.48 547.847 0 519.89 0 488.558c0-31.436 20.582-59.391 53.862-72.703l36.556-15.053c21.401-8.806 47.103-1.024 57.24 17.408 10.24 18.227 1.025 40.14-20.479 48.947l-36.454 14.95c-3.072 1.229-4.71 3.584-4.71 6.45 0 3.073 1.536 5.12 4.71 6.452l385.326 156.875c14.336 5.939 30.924 5.939 45.362 0L906.74 495.009c3.072-1.229 4.915-3.584 4.915-6.451 0-3.072-1.536-5.222-4.607-6.451l-44.851-18.227c-21.401-8.806-30.412-30.72-20.377-48.947 10.342-18.329 35.84-26.214 57.24-17.407l44.851 18.431c33.177 13.517 53.76 41.267 53.76 72.703 0 31.334-20.48 59.391-53.76 72.703L558.482 718.238a161.585 161.585 0 0 1-59.801 11.673z" fill="#5DE1C8" /><path d="M498.681 966.247c-20.275 0-40.652-3.89-59.391-11.673L53.76 797.597C20.48 784.08 0 756.227 0 724.997c0-31.437 20.582-59.494 53.862-72.806l36.556-14.95c21.401-8.807 47.103-1.024 57.24 17.407 10.24 18.227 1.025 40.14-20.479 48.947l-36.454 14.95c-3.072 1.126-4.71 3.584-4.71 6.451 0 3.072 1.536 5.12 4.71 6.349l385.326 156.977c14.336 5.939 30.924 5.939 45.362 0L906.74 731.14c3.072-1.126 4.915-3.584 4.915-6.349 0-3.072-1.536-5.324-4.607-6.45l-44.851-18.33c-21.401-8.806-30.412-30.72-20.377-48.947 10.342-18.431 35.84-26.214 57.24-17.407l44.851 18.329c33.177 13.517 53.76 41.369 53.76 72.703 0 31.436-20.48 59.494-53.76 72.805l-385.428 157.08a161.585 161.585 0 0 1-59.801 11.673z" fill="#FF7272" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-custom-search"><path d="M863.3 641.94A416.1 416.1 0 0 0 96.7 318.06a416.1 416.1 0 0 0 766.6 323.88zM480 832a352 352 0 1 1 248.9-103.1A349.69 349.69 0 0 1 480 832z" /><path d="m950.63 841.37-96-96a32 32 0 0 0-45.25 45.25l96 96a13.25 13.25 0 1 1-18.75 18.75l-96-96a32 32 0 0 0-45.25 45.25l96 96a77.25 77.25 0 1 0 109.25-109.25z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-arrow-down"><path d="M512 714.667c-8.533 0-17.067-2.134-23.467-8.534L147.2 364.8c-12.8-12.8-12.8-32 0-44.8 12.8-12.8 32-12.8 44.8 0l320 317.867 317.867-320c12.8-12.8 32-12.8 44.8 0 12.8 12.8 12.8 32 0 44.8L533.333 704c-4.266 8.533-12.8 10.667-21.333 10.667z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-back"><path fill="currentColor" d="M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z" /><path fill="currentColor" d="m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z" /></symbol><symbol viewBox="0 0 1024 1024" id="icon-el-check"><path fill="currentColor" d="M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-clone"><path d="M774.144 839.68c-.683 36.864-13.483 67.755-38.4 92.672s-55.808 37.717-92.672 38.4H184.32c-36.864-.683-67.755-13.483-92.672-38.4s-37.717-55.808-38.4-92.672V380.928c.683-36.864 13.483-67.755 38.4-92.672s55.808-37.717 92.672-38.4v65.536c-18.432.683-33.792 7.168-46.08 19.456s-18.773 27.648-19.456 46.08V839.68c.683 18.432 7.168 33.792 19.456 46.08s27.648 18.773 46.08 19.456h458.752c18.432-.683 33.792-7.168 46.08-19.456s18.773-27.648 19.456-46.08h65.536zM380.928 118.784c-18.432.683-33.792 7.168-46.08 19.456s-18.773 27.648-19.456 46.08v458.752c.683 18.432 7.168 33.792 19.456 46.08s27.648 18.773 46.08 19.456H839.68c18.432-.683 33.792-7.168 46.08-19.456s18.773-27.648 19.456-46.08V184.32c-.683-18.432-7.168-33.792-19.456-46.08s-27.648-18.773-46.08-19.456H380.928zm0-65.536H839.68c36.864.683 67.755 13.483 92.672 38.4s37.717 55.808 38.4 92.672v458.752c-.683 36.864-13.483 67.755-38.4 92.672s-55.808 37.717-92.672 38.4H380.928c-36.864-.683-67.755-13.483-92.672-38.4s-37.717-55.808-38.4-92.672V184.32c.683-36.864 13.483-67.755 38.4-92.672s55.808-37.717 92.672-38.4z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-delete"><path fill="currentColor" d="M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-download"><path d="M896 672c-17.067 0-32 14.933-32 32v128c0 6.4-4.267 10.667-10.667 10.667H170.667c-6.4 0-10.667-4.267-10.667-10.667V704c0-17.067-14.933-32-32-32s-32 14.933-32 32v128c0 40.533 34.133 74.667 74.667 74.667h682.666C893.867 906.667 928 872.533 928 832V704c0-17.067-14.933-32-32-32z" /><path d="M488.533 727.467c6.4 6.4 14.934 8.533 23.467 8.533s17.067-2.133 23.467-8.533L748.8 514.133c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L546.133 627.2V170.667c0-17.067-14.933-32-32-32S480 153.6 480 170.667V627.2L322.133 469.333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8l211.2 213.334z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-drag-move"><path d="M909.3 506.3 781.7 405.6c-4.7-3.7-11.7-.4-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7c-2.9-3.7-8.5-3.7-11.3 0L405.6 242.3c-3.7 4.7-.4 11.7 5.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3c-3.7 2.9-3.7 8.5 0 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.7-2.9 3.7-8.5.1-11.4z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-form-template"><path d="M298.667 981.333A85.333 85.333 0 0 1 213.333 896V128a85.333 85.333 0 0 1 85.334-85.333h426.666A85.333 85.333 0 0 1 810.667 128v768a85.333 85.333 0 0 1-85.334 85.333zm0-832v725.334A21.333 21.333 0 0 0 320 896h384a21.333 21.333 0 0 0 21.333-21.333V149.333A21.333 21.333 0 0 0 704 128H320a21.333 21.333 0 0 0-21.333 21.333zm640 618.667V256a42.667 42.667 0 0 1 42.666-42.667A42.667 42.667 0 0 1 1024 256v512a42.667 42.667 0 0 1-42.667 42.667A42.667 42.667 0 0 1 938.667 768zM0 768V256a42.667 42.667 0 0 1 42.667-42.667A42.667 42.667 0 0 1 85.333 256v512a42.667 42.667 0 0 1-42.666 42.667A42.667 42.667 0 0 1 0 768z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-hide"><path d="M956.8 496c-41.6-70.4-99.2-147.2-176-204.8l105.6-105.6c12.8-12.8 12.8-32 0-44.8s-32-12.8-44.8 0L726.4 256C665.6 214.4 592 192 512 192c-214.4 0-358.4 166.4-444.8 304-6.4 9.6-6.4 22.4 0 32 41.6 70.4 102.4 147.2 176 204.8L134.4 841.6c-12.8 12.8-12.8 32 0 44.8 9.6 6.4 16 9.6 25.6 9.6s16-3.2 22.4-9.6l115.2-115.2C358.4 809.6 432 832 512 832c185.6 0 374.4-128 444.8-307.2 3.2-9.6 3.2-19.2 0-28.8zm-822.4 16C211.2 390.4 336 256 512 256c60.8 0 118.4 16 166.4 44.8l-80 80C576 361.6 544 352 512 352c-89.6 0-160 70.4-160 160 0 32 9.6 64 25.6 89.6L288 691.2C224 640 172.8 572.8 134.4 512zm473.6 0c0 54.4-41.6 96-96 96-16 0-28.8-3.2-41.6-9.6l128-128c6.4 12.8 9.6 25.6 9.6 41.6zm-192 0c0-54.4 41.6-96 96-96 16 0 28.8 3.2 41.6 9.6l-128 128c-6.4-12.8-9.6-25.6-9.6-41.6zm96 256c-60.8 0-118.4-16-166.4-44.8l80-80C448 662.4 480 672 512 672c89.6 0 160-70.4 160-160 0-32-9.6-64-25.6-89.6l89.6-89.6C803.2 384 854.4 451.2 892.8 512 825.6 659.2 665.6 768 512 768z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-info"><path d="M512.001 928.997c230.524 0 418.076-187.552 418.075-418.077 0-230.527-187.552-418.077-418.075-418.077S93.924 280.393 93.924 510.92c0 230.525 187.552 418.077 418.077 418.077zM512 301.88c28.86 0 52.26 23.399 52.26 52.263 0 28.858-23.399 52.257-52.26 52.257s-52.26-23.399-52.26-52.257c0-28.863 23.399-52.263 52.26-52.263zm-52.26 209.042c0-28.86 23.399-52.26 52.26-52.26s52.26 23.399 52.26 52.26v156.775c0 28.86-23.399 52.26-52.26 52.26s-52.26-23.399-52.26-52.26V510.922z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-insert-column"><path d="M653.184 713.6c12.864-12.864 33.6-12.864 46.528 0 6.4 6.4 3.776 14.72 3.776 23.232a32.675 32.675 0 0 1-9.6 23.104L569.92 886.4c-.128.128-.32.192-.512.32-2.88 2.88-9.536 5.184-13.312 6.784-3.456 1.344-.64 1.856-4.096 2.112-.768 0-1.344.384-2.048.384-.512 0-.896-.256-1.344-.256-3.84-.192-5.76-.896-9.344-2.24-3.264-1.344-6.016-3.52-8.64-5.76-.64-.512-1.472-.768-2.048-1.344L391.232 760c-12.864-12.736-6.976-33.6 5.888-46.4 12.8-12.864 33.6-12.864 46.464 0l105.472 100.352L653.184 713.6zM384 64v576h320V64H384zM128 704v256H64V640h256v320h-62.976L256 704H128m704 0v256h-64V640h256v320h-62.976L960 704H832" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-insert-row"><path d="M310.336 653.184c12.864 12.864 12.864 33.6 0 46.528-6.4 6.4-14.72 3.776-23.168 3.776s-16.832-3.264-23.168-9.6L137.6 569.92c-.128-.128-.192-.32-.256-.512-2.88-2.816-5.248-9.536-6.848-13.312-1.344-3.392-1.856-.576-2.112-4.096 0-.768-.384-1.344-.384-2.048 0-.512.256-.896.256-1.344.192-3.84.896-5.76 2.24-9.344 1.344-3.264 3.52-6.016 5.76-8.64.512-.704.768-1.536 1.344-2.112l126.336-137.344c12.8-12.864 33.6-6.976 46.4 5.888 12.864 12.8 12.864 33.6 0 46.464L210.048 548.992l100.288 104.192zM960 384H384v320h576V384zM320 128H64V64h320v256H64v-62.976L320 256V128m0 704H64v-64h320v256H64v-62.976L320 960V832" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-menu"><path d="M844.8 883.2h-256c-19.2 0-38.4-19.2-38.4-38.4v-256c0-19.2 19.2-38.4 38.4-38.4h256c19.2 0 38.4 19.2 38.4 38.4v256c0 19.2-19.2 38.4-38.4 38.4zm0-403.2h-256c-19.2 0-38.4-19.2-38.4-38.4v-256c0-19.2 19.2-38.4 38.4-38.4h256c19.2 0 38.4 19.2 38.4 38.4v256c0 19.2-19.2 38.4-38.4 38.4zM435.2 883.2h-256c-19.2 0-38.4-19.2-38.4-38.4v-256c0-19.2 19.2-38.4 38.4-38.4h256c19.2 0 38.4 19.2 38.4 38.4v256c6.4 19.2-12.8 38.4-38.4 38.4zm0-403.2h-256c-19.2 0-38.4-19.2-38.4-38.4v-256c0-19.2 19.2-38.4 38.4-38.4h256c19.2 0 38.4 19.2 38.4 38.4v256c6.4 19.2-12.8 38.4-38.4 38.4z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-move-down"><path d="M898.133 512c-12.8-12.8-32-12.8-44.8-2.133L544 800V149.333c0-17.066-14.933-32-32-32s-32 14.934-32 32V800L170.667 509.867c-12.8-12.8-34.134-10.667-44.8 2.133-12.8 12.8-10.667 34.133 2.133 44.8l362.667 341.333c2.133 2.134 6.4 4.267 8.533 6.4 4.267 2.134 6.4 2.134 10.667 2.134s8.533 0 10.666-2.134c4.267-2.133 6.4-4.266 8.534-6.4L891.733 556.8c17.067-12.8 19.2-32 6.4-44.8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-move-up"><path d="M896 467.2 533.333 125.867c-2.133-2.134-6.4-4.267-8.533-6.4-4.267-2.134-6.4-2.134-10.667-2.134s-8.533 0-10.666 2.134c-4.267 2.133-6.4 4.266-8.534 6.4L132.267 467.2c-12.8 12.8-12.8 32-2.134 44.8 12.8 12.8 32 12.8 44.8 2.133L484.267 224v650.667c0 17.066 14.933 32 32 32s32-14.934 32-32V224l305.066 290.133c6.4 6.4 14.934 8.534 21.334 8.534 8.533 0 17.066-4.267 23.466-10.667 12.8-12.8 10.667-32-2.133-44.8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-plus"><path d="M554.667 213.333h-85.334v256h-256v85.334h256v256h85.334v-256h256v-85.334h-256z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-set-up"><path d="M217.088 151.552c-18.432.683-33.792 7.168-46.08 19.456s-18.773 27.648-19.456 46.08v589.824c.683 18.432 7.168 33.792 19.456 46.08s27.648 18.773 46.08 19.456h589.824c18.432-.683 33.792-7.168 46.08-19.456s18.773-27.648 19.456-46.08V217.088c-.683-18.432-7.168-33.792-19.456-46.08s-27.648-18.773-46.08-19.456H217.088zm0-65.536h589.824c36.864.683 67.755 13.483 92.672 38.4s37.717 55.808 38.4 92.672v589.824c-.683 36.864-13.483 67.755-38.4 92.672s-55.808 37.717-92.672 38.4H217.088c-36.864-.683-67.755-13.483-92.672-38.4s-37.717-55.808-38.4-92.672V217.088c.683-36.864 13.483-67.755 38.4-92.672s55.808-37.717 92.672-38.4zm163.84 327.68c18.432-.683 33.792-7.168 46.08-19.456s18.432-27.648 18.432-46.08-6.144-33.792-18.432-46.08-27.648-18.432-46.08-18.432-33.792 6.144-46.08 18.432-18.432 27.648-18.432 46.08 6.144 33.792 18.432 46.08 27.648 18.773 46.08 19.456zm0 65.536c-36.864-.683-67.755-13.483-92.672-38.4s-37.717-55.808-38.4-92.672c.683-36.864 13.483-67.755 38.4-92.672s55.808-37.717 92.672-38.4c36.864.683 67.755 13.483 92.672 38.4s37.717 55.808 38.4 92.672c-.683 36.864-13.483 67.755-38.4 92.672s-55.808 37.717-92.672 38.4zm98.304-163.84h262.144c21.845 0 32.768 10.923 32.768 32.768s-10.923 32.768-32.768 32.768H479.232c-21.845 0-32.768-10.923-32.768-32.768s10.923-32.768 32.768-32.768zm163.84 425.984c18.432-.683 33.792-7.168 46.08-19.456s18.432-27.648 18.432-46.08-6.144-33.792-18.432-46.08-27.648-18.432-46.08-18.432-33.792 6.144-46.08 18.432-18.432 27.648-18.432 46.08 6.144 33.792 18.432 46.08 27.648 18.773 46.08 19.456zm0 65.536c-36.864-.683-67.755-13.483-92.672-38.4s-37.717-55.808-38.4-92.672c.683-36.864 13.483-67.755 38.4-92.672s55.808-37.717 92.672-38.4c36.864.683 67.755 13.483 92.672 38.4s37.717 55.808 38.4 92.672c-.683 36.864-13.483 67.755-38.4 92.672s-55.808 37.717-92.672 38.4zm-360.448-163.84h262.144c21.845 0 32.768 10.923 32.768 32.768s-10.923 32.768-32.768 32.768H282.624c-21.845 0-32.768-10.923-32.768-32.768s10.923-32.768 32.768-32.768z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="icon-el-view"><path fill="currentColor" d="M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z" /></symbol><symbol viewBox="0 0 1024 1024" id="icon-el-zoom-in"><path fill="currentColor" d="m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z" /></symbol>',n.insertBefore(e,n.firstChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",t):t()}var iconfont="";function registerCPEditor(t,n,e,o){t.component(e,o)}function registerEPEditor(t,n,e,o){t.component(e,o)}function _isSlot(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!vue.isVNode(t)}const createInputTextEditor=function(t,n){return{props:{optionModel:Object},render(e){return vue.createVNode(vue.resolveComponent("el-form-item"),{label:translate(n)},{default:()=>[vue.createVNode(vue.resolveComponent("el-input"),{type:"text",modelValue:this.optionModel[t],"onUpdate:modelValue":o=>this.optionModel[t]=o},null)]})}}},createBooleanEditor=function(t,n){return{props:{optionModel:Object},render(e){return vue.createVNode(vue.resolveComponent("el-form-item"),{label:translate(n)},{default:()=>[vue.createVNode(vue.resolveComponent("el-switch"),{modelValue:this.optionModel[t],"onUpdate:modelValue":o=>this.optionModel[t]=o},null)]})}}},createRadioButtonGroupEditor=function(t,n,e){return{props:{optionModel:Object},render(o){let i;return vue.createVNode(vue.resolveComponent("el-form-item"),{label:translate(n)},{default:()=>[vue.createVNode(vue.resolveComponent("el-radio-group"),{modelValue:this.optionModel[t],"onUpdate:modelValue":p=>this.optionModel[t]=p},_isSlot(i=e.optionItems.map(p=>vue.createVNode(vue.resolveComponent("el-radio-button"),{label:p.value},{default:()=>[p.label]})))?i:{default:()=>[i]})]})}}},createSelectEditor=function(t,n,e){return{props:{optionModel:Object},render(o){let i;return vue.createVNode(vue.resolveComponent("el-form-item"),{label:translate(n)},{default:()=>[vue.createVNode(vue.resolveComponent("el-select"),{modelValue:this.optionModel[t],"onUpdate:modelValue":p=>this.optionModel[t]=p},_isSlot(i=e.optionItems.map(p=>vue.createVNode(vue.resolveComponent("el-option"),{label:p.label,value:p.value},null)))?i:{default:()=>[i]})]})}}},createEventHandlerEditor=function(t,n){return{props:{optionModel:Object},mixins:[emitter],methods:{editEventHandler(){this.dispatch("SettingPanel","editEventHandler",[t,[...n]])}},render(e){let o;return vue.createVNode(vue.resolveComponent("el-form-item"),{label:t,"label-width":"150px"},{default:()=>[vue.createVNode(vue.resolveComponent("el-button"),{type:"info",icon:"el-icon-edit",plain:!0,round:!0,onClick:this.editEventHandler},_isSlot(o=translate("designer.setting.addEventHandler"))?o:{default:()=>[o]})]})}}};var containerMixin={inject:["getFormConfig","getGlobalDsv"],computed:{formConfig(){return this.getFormConfig()}},methods:{appendTableRow(t){this.designer.appendTableRow(t)},appendTableCol(t){this.designer.appendTableCol(t)},onContainerDragAdd(t,n){const e=t.newIndex;n[e]&&this.designer.setSelected(n[e]),this.designer.emitHistoryChange()},onContainerDragUpdate(){this.designer.emitHistoryChange()},checkContainerMove(t){return this.designer.checkWidgetMove(t)},selectWidget(t){this.designer.setSelected(t)},selectParentWidget(){this.parentWidget?this.designer.setSelected(this.parentWidget):this.designer.clearSelected()},moveUpWidget(){this.designer.moveUpWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},moveDownWidget(){this.designer.moveDownWidget(this.parentList,this.indexOfParentList),this.designer.emitHistoryChange()},cloneContainer(t){if(this.parentList){let n=this.designer.cloneContainer(t);this.parentList.splice(this.indexOfParentList+1,0,n),this.designer.setSelected(n),this.designer.emitHistoryChange()}},removeWidget(){if(this.parentList){const t=this.designer.selectedWidgetName;let n=null;this.parentList.length===1?this.parentWidget&&(n=this.parentWidget):this.parentList.length===1+this.indexOfParentList?n=this.parentList[this.indexOfParentList-1]:n=this.parentList[this.indexOfParentList+1],this.$nextTick(()=>{this.parentList.splice(this.indexOfParentList,1),this.designer.setSelected(n),this.designer.formWidget.deleteWidgetRef(t),this.designer.emitHistoryChange()})}},setWidgetOption(t,n){this.widget.options.hasOwnProperty(t)&&(this.widget.options[t]=n)}}},containerWrapper_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$3={name:"container-wrapper",mixins:[i18n$1,containerMixin],components:{SvgIcon},props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{customClass(){return this.widget.options.customClass?this.widget.options.customClass.join(" "):""}}},_hoisted_1$2={key:0,class:"container-action"},_hoisted_2$1=["title"],_hoisted_3=["title"],_hoisted_4=["title"],_hoisted_5=["title"],_hoisted_6=["title"],_hoisted_7=["title"],_hoisted_8=["title"],_hoisted_9={key:1,class:"drag-handler"},_hoisted_10=["title"],_hoisted_11={key:0};function _sfc_render$3(t,n,e,o,i,p){const y=vue.resolveComponent("svg-icon");return vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["container-wrapper",[p.customClass]])},[vue.renderSlot(t.$slots,"default",{},void 0,!0),e.designer.selectedId===e.widget.id&&!e.widget.internal?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.selectParentWidget"),onClick:n[0]||(n[0]=vue.withModifiers(h=>t.selectParentWidget(e.widget),["stop"]))},[vue.createVNode(y,{"icon-class":"el-back"})],8,_hoisted_2$1),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:0,title:t.i18nt("designer.hint.moveUpWidget"),onClick:n[1]||(n[1]=vue.withModifiers(h=>t.moveUpWidget(),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-up"})],8,_hoisted_3)):vue.createCommentVNode("",!0),!!e.parentList&&e.parentList.length>1?(vue.openBlock(),vue.createElementBlock("i",{key:1,title:t.i18nt("designer.hint.moveDownWidget"),onClick:n[2]||(n[2]=vue.withModifiers(h=>t.moveDownWidget(),["stop"]))},[vue.createVNode(y,{"icon-class":"el-move-down"})],8,_hoisted_4)):vue.createCommentVNode("",!0),e.widget.type==="table"?(vue.openBlock(),vue.createElementBlock("i",{key:2,title:t.i18nt("designer.hint.insertRow"),onClick:n[3]||(n[3]=vue.withModifiers(h=>t.appendTableRow(e.widget),["stop"]))},[vue.createVNode(y,{"icon-class":"el-insert-row"})],8,_hoisted_5)):vue.createCommentVNode("",!0),e.widget.type==="table"?(vue.openBlock(),vue.createElementBlock("i",{key:3,title:t.i18nt("designer.hint.insertColumn"),onClick:n[4]||(n[4]=vue.withModifiers(h=>t.appendTableCol(e.widget),["stop"]))},[vue.createVNode(y,{"icon-class":"el-insert-column"})],8,_hoisted_6)):vue.createCommentVNode("",!0),e.widget.type==="grid"||e.widget.type==="table"?(vue.openBlock(),vue.createElementBlock("i",{key:4,title:t.i18nt("designer.hint.cloneWidget"),onClick:n[5]||(n[5]=vue.withModifiers(h=>t.cloneContainer(e.widget),["stop"]))},[vue.createVNode(y,{"icon-class":"el-clone"})],8,_hoisted_7)):vue.createCommentVNode("",!0),vue.createElementVNode("i",{title:t.i18nt("designer.hint.remove"),onClick:n[6]||(n[6]=vue.withModifiers((...h)=>t.removeWidget&&t.removeWidget(...h),["stop"]))},[vue.createVNode(y,{"icon-class":"el-delete"})],8,_hoisted_8)])):vue.createCommentVNode("",!0),e.designer.selectedId===e.widget.id&&!e.widget.internal?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9,[vue.createElementVNode("i",{title:t.i18nt("designer.hint.dragHandler")},[vue.createVNode(y,{"icon-class":"el-drag-move"})],8,_hoisted_10),vue.createElementVNode("i",null,vue.toDisplayString(t.i18n2t(`designer.widgetLabel.${e.widget.type}`,`extension.widgetLabel.${e.widget.type}`)),1),e.widget.options.hidden===!0?(vue.openBlock(),vue.createElementBlock("i",_hoisted_11,[vue.createVNode(y,{"icon-class":"el-hide"})])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)],2)}var ContainerWrapper=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-679de05a"]]),refMixinDesign={methods:{initRefList(){this.refList!==null&&!!this.widget.options.name&&(this.refList[this.widget.options.name]=this)},getWidgetRef(t,n){let e=this.refList[t];return!e&&!!n&&this.$message.error(this.i18nt("render.hint.refNotFound")+t),e},registerToRefList(t){this.refList!==null&&!!this.widget.options.name&&(t&&delete this.refList[t],this.refList[this.widget.options.name]=this)}}},cardWidget_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$2={name:"card-widget",componentName:"ContainerWidget",mixins:[i18n$1,containerMixin,refMixinDesign],inject:["refList"],components:me(de({ContainerWrapper},comps),{ArrowDown:arrowDown,ArrowUp:arrowUp}),props:{widget:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object},computed:{selected(){return this.widget.id===this.designer.selectedId},customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},methods:{checkContainerMove(t){return!0},toggleCard(){this.widget.options.folded=!this.widget.options.folded},setFolded(t){this.widget.options.folded=!!t}}},_hoisted_1$1={class:"clear-fix"},_hoisted_2={class:"form-widget-list"};function _sfc_render$2(t,n,e,o,i,p){const y=vue.resolveComponent("ArrowDown"),h=vue.resolveComponent("el-icon"),g=vue.resolveComponent("ArrowUp"),b=vue.resolveComponent("draggable"),d=vue.resolveComponent("el-card"),a=vue.resolveComponent("container-wrapper");return vue.openBlock(),vue.createBlock(a,{designer:e.designer,widget:e.widget,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(d,{key:e.widget.id,class:vue.normalizeClass(["card-container",[p.selected?"selected":"",e.widget.options.folded?"folded":"",p.customClass]]),onClick:n[2]||(n[2]=vue.withModifiers(r=>t.selectWidget(e.widget),["stop"])),shadow:e.widget.options.shadow,style:vue.normalizeStyle({width:e.widget.options.cardWidth+"!important"||""})},{header:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createElementVNode("span",null,vue.toDisplayString(e.widget.options.label),1),e.widget.options.showFold?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"float-right",onClick:n[0]||(n[0]=(...r)=>p.toggleCard&&p.toggleCard(...r))},[e.widget.options.folded?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g)]),_:1})):(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(y)]),_:1}))])):vue.createCommentVNode("",!0)])]),default:vue.withCtx(()=>[vue.createVNode(b,vue.mergeProps({list:e.widget.widgetList,"item-key":"id"},{group:"dragGroup",ghostClass:"ghost",animation:200},{handle:".drag-handler",tag:"transition-group","component-data":{name:"fade"},onAdd:n[1]||(n[1]=r=>t.onContainerDragAdd(r,e.widget.widgetList)),onUpdate:t.onContainerDragUpdate,move:p.checkContainerMove}),{item:vue.withCtx(({element:r,index:l})=>[vue.createElementVNode("div",_hoisted_2,[r.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(r.type+"-widget"),{widget:r,designer:e.designer,key:r.id,"parent-list":e.widget.widgetList,"index-of-parent-list":l,"parent-widget":e.widget},null,8,["widget","designer","parent-list","index-of-parent-list","parent-widget"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(r.type+"-widget"),{field:r,designer:e.designer,key:r.id,"parent-list":e.widget.widgetList,"index-of-parent-list":l,"parent-widget":e.widget,"design-state":!0},null,8,["field","designer","parent-list","index-of-parent-list","parent-widget"]))])]),_:1},16,["list","onUpdate","move"])]),_:1},8,["shadow","style","class"]))]),_:1},8,["designer","widget","parent-widget","parent-list","index-of-parent-list"])}var CardWidget=_export_sfc$1(_sfc_main$2,[["render",_sfc_render$2],["__scopeId","data-v-06588696"]]),cardItem_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$1={name:"card-item",componentName:"ContainerItem",mixins:[emitter,i18n$1,refMixin,containerItemMixin],components:me(de({ContainerItemWrapper},comps),{ArrowDown:arrowDown,ArrowUp:arrowUp}),props:{widget:Object},inject:["refList","sfRefList","globalModel"],computed:{customClass(){return this.widget.options.customClass||""}},created(){this.initRefList()},beforeUnmount(){this.unregisterFromRefList()},methods:{toggleCard(){this.widget.options.folded=!this.widget.options.folded}}},_hoisted_1={class:"clear-fix"};function _sfc_render$1(t,n,e,o,i,p){const y=vue.resolveComponent("ArrowDown"),h=vue.resolveComponent("el-icon"),g=vue.resolveComponent("ArrowUp"),b=vue.resolveComponent("el-card"),d=vue.resolveComponent("container-item-wrapper");return vue.openBlock(),vue.createBlock(d,{widget:e.widget},{default:vue.withCtx(()=>[vue.withDirectives((vue.openBlock(),vue.createBlock(b,{key:e.widget.id,class:vue.normalizeClass(["card-container",[e.widget.options.folded?"folded":"",p.customClass]]),shadow:e.widget.options.shadow,style:vue.normalizeStyle({width:e.widget.options.cardWidth+"!important"||""}),ref:e.widget.id},{header:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1,[vue.createElementVNode("span",null,vue.toDisplayString(e.widget.options.label),1),e.widget.options.showFold?(vue.openBlock(),vue.createElementBlock("i",{key:0,class:"float-right",onClick:n[0]||(n[0]=(...a)=>p.toggleCard&&p.toggleCard(...a))},[e.widget.options.folded?(vue.openBlock(),vue.createBlock(h,{key:1},{default:vue.withCtx(()=>[vue.createVNode(g)]),_:1})):(vue.openBlock(),vue.createBlock(h,{key:0},{default:vue.withCtx(()=>[vue.createVNode(y)]),_:1}))])):vue.createCommentVNode("",!0)])]),default:vue.withCtx(()=>[!!e.widget.widgetList&&e.widget.widgetList.length>0?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:0},vue.renderList(e.widget.widgetList,(a,r)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[a.category==="container"?(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(t.getComponentByContainer(a)),{widget:a,key:r,"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),l=>({name:l,fn:vue.withCtx(v=>[vue.renderSlot(t.$slots,l,vue.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1032,["widget","parent-list","index-of-parent-list","parent-widget"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(a.type+"-widget"),{field:a,designer:null,key:r,"parent-list":e.widget.widgetList,"index-of-parent-list":r,"parent-widget":e.widget},vue.createSlots({_:2},[vue.renderList(Object.keys(t.$slots),l=>({name:l,fn:vue.withCtx(v=>[vue.renderSlot(t.$slots,l,vue.mergeProps({ref_for:!0},v),void 0,!0)])}))]),1032,["field","parent-list","index-of-parent-list","parent-widget"]))],64))),256)):vue.createCommentVNode("",!0)]),_:3},8,["class","shadow","style"])),[[vue.vShow,!e.widget.options.hidden]])]),_:3},8,["widget"])}var CardItem=_export_sfc$1(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-52275f84"]]);const _sfc_main={name:"alert-widget",componentName:"FieldWidget",mixins:[emitter,fieldMixin,i18n$1],props:{field:Object,parentWidget:Object,parentList:Array,indexOfParentList:Number,designer:Object,designState:{type:Boolean,default:!1},subFormRowIndex:{type:Number,default:-1},subFormColIndex:{type:Number,default:-1},subFormRowId:{type:String,default:""}},components:{StaticContentWrapper},created(){this.registerToRefList(),this.initEventHandler()},beforeUnmount(){this.unregisterFromRefList()},methods:{handleCloseCustomEvent(){this.field.options.onClose&&new Function(this.field.options.onClose).call(this)}}};function _sfc_render(t,n,e,o,i,p){const y=vue.resolveComponent("el-alert"),h=vue.resolveComponent("static-content-wrapper");return vue.openBlock(),vue.createBlock(h,{designer:e.designer,field:e.field,"design-state":e.designState,"parent-widget":e.parentWidget,"parent-list":e.parentList,"index-of-parent-list":e.indexOfParentList,"sub-form-row-index":e.subFormRowIndex,"sub-form-col-index":e.subFormColIndex,"sub-form-row-id":e.subFormRowId},{default:vue.withCtx(()=>[vue.createVNode(y,{ref:"fieldEditor",title:e.field.options.title,type:e.field.options.type,description:e.field.options.description,closable:e.field.options.closable,center:e.field.options.center,"close-text":e.field.options.closeText,"show-icon":e.field.options.showIcon,effect:e.field.options.effect,onClose:p.handleCloseCustomEvent},null,8,["title","type","description","closable","center","close-text","show-icon","effect","onClose"])]),_:1},8,["designer","field","design-state","parent-widget","parent-list","index-of-parent-list","sub-form-row-index","sub-form-col-index","sub-form-row-id"])}var AlertWidget=_export_sfc$1(_sfc_main,[["render",_sfc_render]]);const loadExtension=function(t){t.component(CardWidget.name,CardWidget),t.component(CardItem.name,CardItem),registerCPEditor(t,"card-folded","card-folded-editor",createBooleanEditor("folded","extension.setting.cardFolded")),registerCPEditor(t,"card-showFold","card-showFold-editor",createBooleanEditor("showFold","extension.setting.cardShowFold")),registerCPEditor(t,"card-cardWidth","card-cardWidth-editor",createInputTextEditor("cardWidth","extension.setting.cardWidth")),registerCPEditor(t,"card-shadow","card-shadow-editor",createSelectEditor("shadow","extension.setting.cardShadow",{optionItems:[{label:"never",value:"never"},{label:"hover",value:"hover"},{label:"always",value:"always"}]})),t.component(AlertWidget.name,AlertWidget),registerCPEditor(t,"alert-title","alert-title-editor",createInputTextEditor("title","extension.setting.alertTitle"));let e=[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}];t.component("alert-type-editor",createSelectEditor("type","extension.setting.alertType",{optionItems:e})),registerCPEditor(t,"alert-description","alert-description-editor",createInputTextEditor("description","extension.setting.description")),registerCPEditor(t,"alert-closable","alert-closable-editor",createBooleanEditor("closable","extension.setting.closable")),registerCPEditor(t,"alert-closeText","alert-closeText-editor",createInputTextEditor("closeText","extension.setting.closeText")),registerCPEditor(t,"alert-center","alert-center-editor",createBooleanEditor("center","extension.setting.center")),registerCPEditor(t,"alert-showIcon","alert-showIcon-editor",createBooleanEditor("showIcon","extension.setting.showIcon")),registerCPEditor(t,"alert-effect","alert-effect-editor",createRadioButtonGroupEditor("effect","extension.setting.effect",{optionItems:[{label:"light",value:"light"},{label:"dark",value:"dark"}]})),registerEPEditor(t,"alert-onClose","alert-onClose-editor",createEventHandlerEditor("onClose",[]))};VFormRender.install=function(t){loadExtension(t),t.use(ContainerItems),registerIcon(t),t.component(VFormRender.name,VFormRender)};const components=[VFormRender],install=t=>{loadExtension(t),t.use(ContainerItems),registerIcon(t),components.forEach(n=>{t.component(n.name,n)}),window.axios=axios};var installRender={install,VFormRender};return installRender});
|