tenghui-ui 2.4.21 → 2.4.23

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.
@@ -1,8 +1,8 @@
1
- var Md=Object.defineProperty,Fd=Object.defineProperties;var jd=Object.getOwnPropertyDescriptors;var La=Object.getOwnPropertySymbols;var Bd=Object.prototype.hasOwnProperty,qd=Object.prototype.propertyIsEnumerable;var Da=(De,Pe,je)=>Pe in De?Md(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:je}):De[Pe]=je,ye=(De,Pe)=>{for(var je in Pe||(Pe={}))Bd.call(Pe,je)&&Da(De,je,Pe[je]);if(La)for(var je of La(Pe))qd.call(Pe,je)&&Da(De,je,Pe[je]);return De},gt=(De,Pe)=>Fd(De,jd(Pe));(function(De,Pe){typeof exports=="object"&&typeof module!="undefined"?module.exports=Pe(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Pe):(De=typeof globalThis!="undefined"?globalThis:De||self,De["tenghui-ui"]=Pe(De.Vue))})(this,function(De){"use strict";function Pe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var je=Pe(De),Ud="";function ci(e,r){return function(){return e.apply(r,arguments)}}const{toString:Ra}=Object.prototype,{getPrototypeOf:ir}=Object,cn=(e=>r=>{const n=Ra.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),r=>cn(r)===e),dn=e=>r=>typeof r===e,{isArray:xt}=Array,Ft=dn("undefined");function $a(e){return e!==null&&!Ft(e)&&e.constructor!==null&&!Ft(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const di=Ze("ArrayBuffer");function Ma(e){let r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&di(e.buffer),r}const Fa=dn("string"),We=dn("function"),hi=dn("number"),hn=e=>e!==null&&typeof e=="object",ja=e=>e===!0||e===!1,pn=e=>{if(cn(e)!=="object")return!1;const r=ir(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ba=Ze("Date"),qa=Ze("File"),Ua=Ze("Blob"),Ha=Ze("FileList"),za=e=>hn(e)&&We(e.pipe),Wa=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((r=cn(e))==="formdata"||r==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Ga=Ze("URLSearchParams"),Va=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,r,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let t,o;if(typeof e!="object"&&(e=[e]),xt(e))for(t=0,o=e.length;t<o;t++)r.call(null,e[t],t,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let f;for(t=0;t<a;t++)f=i[t],r.call(null,e[f],f,e)}}function pi(e,r){r=r.toLowerCase();const n=Object.keys(e);let t=n.length,o;for(;t-- >0;)if(o=n[t],r===o.toLowerCase())return o;return null}const vi=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),mi=e=>!Ft(e)&&e!==vi;function or(){const{caseless:e}=mi(this)&&this||{},r={},n=(t,o)=>{const i=e&&pi(r,o)||o;pn(r[i])&&pn(t)?r[i]=or(r[i],t):pn(t)?r[i]=or({},t):xt(t)?r[i]=t.slice():r[i]=t};for(let t=0,o=arguments.length;t<o;t++)arguments[t]&&jt(arguments[t],n);return r}const Ka=(e,r,n,{allOwnKeys:t}={})=>(jt(r,(o,i)=>{n&&We(o)?e[i]=ci(o,n):e[i]=o},{allOwnKeys:t}),e),Ya=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xa=(e,r,n,t)=>{e.prototype=Object.create(r.prototype,t),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},Ja=(e,r,n,t)=>{let o,i,a;const f={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!t||t(a,e,r))&&!f[a]&&(r[a]=e[a],f[a]=!0);e=n!==!1&&ir(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},Za=(e,r,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=r.length;const t=e.indexOf(r,n);return t!==-1&&t===n},Qa=e=>{if(!e)return null;if(xt(e))return e;let r=e.length;if(!hi(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=e[r];return n},el=(e=>r=>e&&r instanceof e)(typeof Uint8Array!="undefined"&&ir(Uint8Array)),tl=(e,r)=>{const t=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=t.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},nl=(e,r)=>{let n;const t=[];for(;(n=e.exec(r))!==null;)t.push(n);return t},rl=Ze("HTMLFormElement"),il=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,o){return t.toUpperCase()+o}),yi=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),ol=Ze("RegExp"),gi=(e,r)=>{const n=Object.getOwnPropertyDescriptors(e),t={};jt(n,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(t[i]=a||o)}),Object.defineProperties(e,t)},al=e=>{gi(e,(r,n)=>{if(We(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=e[n];if(!!We(t)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ll=(e,r)=>{const n={},t=o=>{o.forEach(i=>{n[i]=!0})};return xt(e)?t(e):t(String(e).split(r)),n},sl=()=>{},ul=(e,r)=>(e=+e,Number.isFinite(e)?e:r),ar="abcdefghijklmnopqrstuvwxyz",bi="0123456789",_i={DIGIT:bi,ALPHA:ar,ALPHA_DIGIT:ar+ar.toUpperCase()+bi},fl=(e=16,r=_i.ALPHA_DIGIT)=>{let n="";const{length:t}=r;for(;e--;)n+=r[Math.random()*t|0];return n};function cl(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dl=e=>{const r=new Array(10),n=(t,o)=>{if(hn(t)){if(r.indexOf(t)>=0)return;if(!("toJSON"in t)){r[o]=t;const i=xt(t)?[]:{};return jt(t,(a,f)=>{const c=n(a,o+1);!Ft(c)&&(i[f]=c)}),r[o]=void 0,i}}return t};return n(e,0)},hl=Ze("AsyncFunction");var G={isArray:xt,isArrayBuffer:di,isBuffer:$a,isFormData:Wa,isArrayBufferView:Ma,isString:Fa,isNumber:hi,isBoolean:ja,isObject:hn,isPlainObject:pn,isUndefined:Ft,isDate:Ba,isFile:qa,isBlob:Ua,isRegExp:ol,isFunction:We,isStream:za,isURLSearchParams:Ga,isTypedArray:el,isFileList:Ha,forEach:jt,merge:or,extend:Ka,trim:Va,stripBOM:Ya,inherits:Xa,toFlatObject:Ja,kindOf:cn,kindOfTest:Ze,endsWith:Za,toArray:Qa,forEachEntry:tl,matchAll:nl,isHTMLForm:rl,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:gi,freezeMethods:al,toObjectSet:ll,toCamelCase:il,noop:sl,toFiniteNumber:ul,findKey:pi,global:vi,isContextDefined:mi,ALPHABET:_i,generateString:fl,isSpecCompliantForm:cl,toJSONObject:dl,isAsyncFn:hl,isThenable:e=>e&&(hn(e)||We(e))&&We(e.then)&&We(e.catch)};function he(e,r,n,t,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),t&&(this.request=t),o&&(this.response=o)}G.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oi=he.prototype,Ei={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ei[e]={value:e}}),Object.defineProperties(he,Ei),Object.defineProperty(Oi,"isAxiosError",{value:!0}),he.from=(e,r,n,t,o,i)=>{const a=Object.create(Oi);return G.toFlatObject(e,a,function(c){return c!==Error.prototype},f=>f!=="isAxiosError"),he.call(a,e.message,r,n,t,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var pl=null;function lr(e){return G.isPlainObject(e)||G.isArray(e)}function Si(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,r,n){return e?e.concat(r).map(function(o,i){return o=Si(o),!n&&i?"["+o+"]":o}).join(n?".":""):r}function vl(e){return G.isArray(e)&&!e.some(lr)}const ml=G.toFlatObject(G,{},null,function(r){return/^is[A-Z]/.test(r)});function vn(e,r,n){if(!G.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!G.isUndefined(b[p])});const t=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&G.isSpecCompliantForm(r);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function h(v){if(v===null)return"";if(G.isDate(v))return v.toISOString();if(!c&&G.isBlob(v))throw new he("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(v)||G.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,b){let m=v;if(v&&!b&&typeof v=="object"){if(G.endsWith(p,"{}"))p=t?p:p.slice(0,-2),v=JSON.stringify(v);else if(G.isArray(v)&&vl(v)||(G.isFileList(v)||G.endsWith(p,"[]"))&&(m=G.toArray(v)))return p=Si(p),m.forEach(function(_,y){!(G.isUndefined(_)||_===null)&&r.append(a===!0?wi([p],y,i):a===null?p:p+"[]",h(_))}),!1}return lr(v)?!0:(r.append(wi(b,p,i),h(v)),!1)}const l=[],s=Object.assign(ml,{defaultVisitor:u,convertValue:h,isVisitable:lr});function d(v,p){if(!G.isUndefined(v)){if(l.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(v),G.forEach(v,function(m,g){(!(G.isUndefined(m)||m===null)&&o.call(r,m,G.isString(g)?g.trim():g,p,s))===!0&&d(m,p?p.concat(g):[g])}),l.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return d(e),r}function xi(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return r[t]})}function sr(e,r){this._pairs=[],e&&vn(e,this,r)}const Ai=sr.prototype;Ai.append=function(r,n){this._pairs.push([r,n])},Ai.toString=function(r){const n=r?function(t){return r.call(this,t,xi)}:xi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function yl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ti(e,r,n){if(!r)return e;const t=n&&n.encode||yl,o=n&&n.serialize;let i;if(o?i=o(r,n):i=G.isURLSearchParams(r)?r.toString():new sr(r,n).toString(t),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gl{constructor(){this.handlers=[]}use(r,n,t){return this.handlers.push({fulfilled:r,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){G.forEach(this.handlers,function(t){t!==null&&r(t)})}}var Ci=gl,Ni={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bl=typeof URLSearchParams!="undefined"?URLSearchParams:sr,_l=typeof FormData!="undefined"?FormData:null,Ol=typeof Blob!="undefined"?Blob:null,El={isBrowser:!0,classes:{URLSearchParams:bl,FormData:_l,Blob:Ol},protocols:["http","https","file","blob","url","data"]};const Pi=typeof window!="undefined"&&typeof document!="undefined",Sl=(e=>Pi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),wl=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var xl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",hasBrowserEnv:Pi,hasStandardBrowserWebWorkerEnv:wl,hasStandardBrowserEnv:Sl}),Qe=ye(ye({},xl),El);function Al(e,r){return vn(e,new Qe.classes.URLSearchParams,Object.assign({visitor:function(n,t,o,i){return Qe.isNode&&G.isBuffer(n)?(this.append(t,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Tl(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Cl(e){const r={},n=Object.keys(e);let t;const o=n.length;let i;for(t=0;t<o;t++)i=n[t],r[i]=e[i];return r}function ki(e){function r(n,t,o,i){let a=n[i++];const f=Number.isFinite(+a),c=i>=n.length;return a=!a&&G.isArray(o)?o.length:a,c?(G.hasOwnProp(o,a)?o[a]=[o[a],t]:o[a]=t,!f):((!o[a]||!G.isObject(o[a]))&&(o[a]=[]),r(n,t,o[a],i)&&G.isArray(o[a])&&(o[a]=Cl(o[a])),!f)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(t,o)=>{r(Tl(t),o,n,0)}),n}return null}function Nl(e,r,n){if(G.isString(e))try{return(r||JSON.parse)(e),G.trim(e)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(e)}const ur={transitional:Ni,adapter:["xhr","http"],transformRequest:[function(r,n){const t=n.getContentType()||"",o=t.indexOf("application/json")>-1,i=G.isObject(r);if(i&&G.isHTMLForm(r)&&(r=new FormData(r)),G.isFormData(r))return o&&o?JSON.stringify(ki(r)):r;if(G.isArrayBuffer(r)||G.isBuffer(r)||G.isStream(r)||G.isFile(r)||G.isBlob(r))return r;if(G.isArrayBufferView(r))return r.buffer;if(G.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Al(r,this.formSerializer).toString();if((f=G.isFileList(r))||t.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vn(f?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Nl(r)):r}],transformResponse:[function(r){const n=this.transitional||ur.transitional,t=n&&n.forcedJSONParsing,o=this.responseType==="json";if(r&&G.isString(r)&&(t&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(f){if(a)throw f.name==="SyntaxError"?he.from(f,he.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ur.headers[e]={}});var fr=ur;const Pl=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var kl=e=>{const r={};let n,t,o;return e&&e.split(`
2
- `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),t=a.substring(o+1).trim(),!(!n||r[n]&&Pl[n])&&(n==="set-cookie"?r[n]?r[n].push(t):r[n]=[t]:r[n]=r[n]?r[n]+", "+t:t)}),r};const Ii=Symbol("internals");function Bt(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:G.isArray(e)?e.map(mn):String(e)}function Il(e){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(e);)r[t[1]]=t[2];return r}const Ll=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cr(e,r,n,t,o){if(G.isFunction(t))return t.call(this,r,n);if(o&&(r=n),!!G.isString(r)){if(G.isString(t))return r.indexOf(t)!==-1;if(G.isRegExp(t))return t.test(r)}}function Dl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,t)=>n.toUpperCase()+t)}function Rl(e,r){const n=G.toCamelCase(" "+r);["get","set","has"].forEach(t=>{Object.defineProperty(e,t+n,{value:function(o,i,a){return this[t].call(this,r,o,i,a)},configurable:!0})})}class yn{constructor(r){r&&this.set(r)}set(r,n,t){const o=this;function i(f,c,h){const u=Bt(c);if(!u)throw new Error("header name must be a non-empty string");const l=G.findKey(o,u);(!l||o[l]===void 0||h===!0||h===void 0&&o[l]!==!1)&&(o[l||c]=mn(f))}const a=(f,c)=>G.forEach(f,(h,u)=>i(h,u,c));return G.isPlainObject(r)||r instanceof this.constructor?a(r,n):G.isString(r)&&(r=r.trim())&&!Ll(r)?a(kl(r),n):r!=null&&i(n,r,t),this}get(r,n){if(r=Bt(r),r){const t=G.findKey(this,r);if(t){const o=this[t];if(!n)return o;if(n===!0)return Il(o);if(G.isFunction(n))return n.call(this,o,t);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=Bt(r),r){const t=G.findKey(this,r);return!!(t&&this[t]!==void 0&&(!n||cr(this,this[t],t,n)))}return!1}delete(r,n){const t=this;let o=!1;function i(a){if(a=Bt(a),a){const f=G.findKey(t,a);f&&(!n||cr(t,t[f],f,n))&&(delete t[f],o=!0)}}return G.isArray(r)?r.forEach(i):i(r),o}clear(r){const n=Object.keys(this);let t=n.length,o=!1;for(;t--;){const i=n[t];(!r||cr(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const n=this,t={};return G.forEach(this,(o,i)=>{const a=G.findKey(t,i);if(a){n[a]=mn(o),delete n[i];return}const f=r?Dl(i):String(i).trim();f!==i&&delete n[i],n[f]=mn(o),t[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return G.forEach(this,(t,o)=>{t!=null&&t!==!1&&(n[o]=r&&G.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
3
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const t=new this(r);return n.forEach(o=>t.set(o)),t}static accessor(r){const t=(this[Ii]=this[Ii]={accessors:{}}).accessors,o=this.prototype;function i(a){const f=Bt(a);t[f]||(Rl(o,a),t[f]=!0)}return G.isArray(r)?r.forEach(i):i(r),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(yn.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(t){this[n]=t}}}),G.freezeMethods(yn);var rt=yn;function dr(e,r){const n=this||fr,t=r||n,o=rt.from(t.headers);let i=t.data;return G.forEach(e,function(f){i=f.call(n,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function Li(e){return!!(e&&e.__CANCEL__)}function qt(e,r,n){he.call(this,e==null?"canceled":e,he.ERR_CANCELED,r,n),this.name="CanceledError"}G.inherits(qt,he,{__CANCEL__:!0});function $l(e,r,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?e(n):r(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Ml=Qe.hasStandardBrowserEnv?{write(e,r,n,t,o,i){const a=[e+"="+encodeURIComponent(r)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(t)&&a.push("path="+t),G.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jl(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}function Di(e,r){return e&&!Fl(r)?jl(e,r):r}var Bl=Qe.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let t;function o(i){let a=i;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(a){const f=G.isString(a)?o(a):a;return f.protocol===t.protocol&&f.host===t.host}}():function(){return function(){return!0}}();function ql(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function Ul(e,r){e=e||10;const n=new Array(e),t=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const h=Date.now(),u=t[i];a||(a=h),n[o]=c,t[o]=h;let l=i,s=0;for(;l!==o;)s+=n[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),h-a<r)return;const d=u&&h-u;return d?Math.round(s*1e3/d):void 0}}function Ri(e,r){let n=0;const t=Ul(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-n,c=t(f),h=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:c||void 0,estimated:c&&a&&h?(a-i)/c:void 0,event:o};u[r?"download":"upload"]=!0,e(u)}}var Hl=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,t){let o=e.data;const i=rt.from(e.headers).normalize();let{responseType:a,withXSRFToken:f}=e,c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(G.isFormData(o)){if(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[p,...b]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...b].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+b))}const s=Di(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ti(s,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const p=rt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};$l(function(_){n(_),h()},function(_){t(_),h()},m),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){!l||(t(new he("Request aborted",he.ECONNABORTED,e,l)),l=null)},l.onerror=function(){t(new he("Network Error",he.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Ni;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),t(new he(b,m.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,l)),l=null},Qe.hasStandardBrowserEnv&&(f&&G.isFunction(f)&&(f=f(e)),f||f!==!1&&Bl(s))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Ml.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&G.forEach(i.toJSON(),function(b,m){l.setRequestHeader(m,b)}),G.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Ri(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Ri(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{!l||(t(!p||p.type?new qt(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const v=ql(s);if(v&&Qe.protocols.indexOf(v)===-1){t(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e));return}l.send(o||null)})};const hr={http:pl,xhr:Hl};G.forEach(hr,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const $i=e=>`- ${e}`,zl=e=>G.isFunction(e)||e===null||e===!1;var Mi={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:r}=e;let n,t;const o={};for(let i=0;i<r;i++){n=e[i];let a;if(t=n,!zl(n)&&(t=hr[(a=String(n)).toLowerCase()],t===void 0))throw new he(`Unknown adapter '${a}'`);if(t)break;o[a||"#"+i]=t}if(!t){const i=Object.entries(o).map(([f,c])=>`adapter ${f} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
1
+ var Md=Object.defineProperty,Fd=Object.defineProperties;var jd=Object.getOwnPropertyDescriptors;var La=Object.getOwnPropertySymbols;var Bd=Object.prototype.hasOwnProperty,qd=Object.prototype.propertyIsEnumerable;var Ra=(Re,Pe,je)=>Pe in Re?Md(Re,Pe,{enumerable:!0,configurable:!0,writable:!0,value:je}):Re[Pe]=je,ye=(Re,Pe)=>{for(var je in Pe||(Pe={}))Bd.call(Pe,je)&&Ra(Re,je,Pe[je]);if(La)for(var je of La(Pe))qd.call(Pe,je)&&Ra(Re,je,Pe[je]);return Re},gt=(Re,Pe)=>Fd(Re,jd(Pe));(function(Re,Pe){typeof exports=="object"&&typeof module!="undefined"?module.exports=Pe(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Pe):(Re=typeof globalThis!="undefined"?globalThis:Re||self,Re["tenghui-ui"]=Pe(Re.Vue))})(this,function(Re){"use strict";function Pe(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var je=Pe(Re),Ud="";function ci(e,r){return function(){return e.apply(r,arguments)}}const{toString:Da}=Object.prototype,{getPrototypeOf:ir}=Object,cn=(e=>r=>{const n=Da.call(r);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ze=e=>(e=e.toLowerCase(),r=>cn(r)===e),dn=e=>r=>typeof r===e,{isArray:xt}=Array,Ft=dn("undefined");function $a(e){return e!==null&&!Ft(e)&&e.constructor!==null&&!Ft(e.constructor)&&We(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const di=Ze("ArrayBuffer");function Ma(e){let r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(e):r=e&&e.buffer&&di(e.buffer),r}const Fa=dn("string"),We=dn("function"),hi=dn("number"),hn=e=>e!==null&&typeof e=="object",ja=e=>e===!0||e===!1,pn=e=>{if(cn(e)!=="object")return!1;const r=ir(e);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Ba=Ze("Date"),qa=Ze("File"),Ua=Ze("Blob"),Ha=Ze("FileList"),za=e=>hn(e)&&We(e.pipe),Wa=e=>{let r;return e&&(typeof FormData=="function"&&e instanceof FormData||We(e.append)&&((r=cn(e))==="formdata"||r==="object"&&We(e.toString)&&e.toString()==="[object FormData]"))},Ga=Ze("URLSearchParams"),Va=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jt(e,r,{allOwnKeys:n=!1}={}){if(e===null||typeof e=="undefined")return;let t,o;if(typeof e!="object"&&(e=[e]),xt(e))for(t=0,o=e.length;t<o;t++)r.call(null,e[t],t,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let f;for(t=0;t<a;t++)f=i[t],r.call(null,e[f],f,e)}}function pi(e,r){r=r.toLowerCase();const n=Object.keys(e);let t=n.length,o;for(;t-- >0;)if(o=n[t],r===o.toLowerCase())return o;return null}const vi=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),mi=e=>!Ft(e)&&e!==vi;function or(){const{caseless:e}=mi(this)&&this||{},r={},n=(t,o)=>{const i=e&&pi(r,o)||o;pn(r[i])&&pn(t)?r[i]=or(r[i],t):pn(t)?r[i]=or({},t):xt(t)?r[i]=t.slice():r[i]=t};for(let t=0,o=arguments.length;t<o;t++)arguments[t]&&jt(arguments[t],n);return r}const Ka=(e,r,n,{allOwnKeys:t}={})=>(jt(r,(o,i)=>{n&&We(o)?e[i]=ci(o,n):e[i]=o},{allOwnKeys:t}),e),Ya=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Xa=(e,r,n,t)=>{e.prototype=Object.create(r.prototype,t),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:r.prototype}),n&&Object.assign(e.prototype,n)},Ja=(e,r,n,t)=>{let o,i,a;const f={};if(r=r||{},e==null)return r;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!t||t(a,e,r))&&!f[a]&&(r[a]=e[a],f[a]=!0);e=n!==!1&&ir(e)}while(e&&(!n||n(e,r))&&e!==Object.prototype);return r},Za=(e,r,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=r.length;const t=e.indexOf(r,n);return t!==-1&&t===n},Qa=e=>{if(!e)return null;if(xt(e))return e;let r=e.length;if(!hi(r))return null;const n=new Array(r);for(;r-- >0;)n[r]=e[r];return n},el=(e=>r=>e&&r instanceof e)(typeof Uint8Array!="undefined"&&ir(Uint8Array)),tl=(e,r)=>{const t=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=t.next())&&!o.done;){const i=o.value;r.call(e,i[0],i[1])}},nl=(e,r)=>{let n;const t=[];for(;(n=e.exec(r))!==null;)t.push(n);return t},rl=Ze("HTMLFormElement"),il=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,t,o){return t.toUpperCase()+o}),yi=(({hasOwnProperty:e})=>(r,n)=>e.call(r,n))(Object.prototype),ol=Ze("RegExp"),gi=(e,r)=>{const n=Object.getOwnPropertyDescriptors(e),t={};jt(n,(o,i)=>{let a;(a=r(o,i,e))!==!1&&(t[i]=a||o)}),Object.defineProperties(e,t)},al=e=>{gi(e,(r,n)=>{if(We(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const t=e[n];if(!!We(t)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ll=(e,r)=>{const n={},t=o=>{o.forEach(i=>{n[i]=!0})};return xt(e)?t(e):t(String(e).split(r)),n},sl=()=>{},ul=(e,r)=>(e=+e,Number.isFinite(e)?e:r),ar="abcdefghijklmnopqrstuvwxyz",bi="0123456789",_i={DIGIT:bi,ALPHA:ar,ALPHA_DIGIT:ar+ar.toUpperCase()+bi},fl=(e=16,r=_i.ALPHA_DIGIT)=>{let n="";const{length:t}=r;for(;e--;)n+=r[Math.random()*t|0];return n};function cl(e){return!!(e&&We(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const dl=e=>{const r=new Array(10),n=(t,o)=>{if(hn(t)){if(r.indexOf(t)>=0)return;if(!("toJSON"in t)){r[o]=t;const i=xt(t)?[]:{};return jt(t,(a,f)=>{const c=n(a,o+1);!Ft(c)&&(i[f]=c)}),r[o]=void 0,i}}return t};return n(e,0)},hl=Ze("AsyncFunction");var G={isArray:xt,isArrayBuffer:di,isBuffer:$a,isFormData:Wa,isArrayBufferView:Ma,isString:Fa,isNumber:hi,isBoolean:ja,isObject:hn,isPlainObject:pn,isUndefined:Ft,isDate:Ba,isFile:qa,isBlob:Ua,isRegExp:ol,isFunction:We,isStream:za,isURLSearchParams:Ga,isTypedArray:el,isFileList:Ha,forEach:jt,merge:or,extend:Ka,trim:Va,stripBOM:Ya,inherits:Xa,toFlatObject:Ja,kindOf:cn,kindOfTest:Ze,endsWith:Za,toArray:Qa,forEachEntry:tl,matchAll:nl,isHTMLForm:rl,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:gi,freezeMethods:al,toObjectSet:ll,toCamelCase:il,noop:sl,toFiniteNumber:ul,findKey:pi,global:vi,isContextDefined:mi,ALPHABET:_i,generateString:fl,isSpecCompliantForm:cl,toJSONObject:dl,isAsyncFn:hl,isThenable:e=>e&&(hn(e)||We(e))&&We(e.then)&&We(e.catch)};function he(e,r,n,t,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),t&&(this.request=t),o&&(this.response=o)}G.inherits(he,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Oi=he.prototype,Ei={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ei[e]={value:e}}),Object.defineProperties(he,Ei),Object.defineProperty(Oi,"isAxiosError",{value:!0}),he.from=(e,r,n,t,o,i)=>{const a=Object.create(Oi);return G.toFlatObject(e,a,function(c){return c!==Error.prototype},f=>f!=="isAxiosError"),he.call(a,e.message,r,n,t,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var pl=null;function lr(e){return G.isPlainObject(e)||G.isArray(e)}function Si(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function wi(e,r,n){return e?e.concat(r).map(function(o,i){return o=Si(o),!n&&i?"["+o+"]":o}).join(n?".":""):r}function vl(e){return G.isArray(e)&&!e.some(lr)}const ml=G.toFlatObject(G,{},null,function(r){return/^is[A-Z]/.test(r)});function vn(e,r,n){if(!G.isObject(e))throw new TypeError("target must be an object");r=r||new FormData,n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,b){return!G.isUndefined(b[p])});const t=n.metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob!="undefined"&&Blob)&&G.isSpecCompliantForm(r);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function h(v){if(v===null)return"";if(G.isDate(v))return v.toISOString();if(!c&&G.isBlob(v))throw new he("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(v)||G.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,b){let m=v;if(v&&!b&&typeof v=="object"){if(G.endsWith(p,"{}"))p=t?p:p.slice(0,-2),v=JSON.stringify(v);else if(G.isArray(v)&&vl(v)||(G.isFileList(v)||G.endsWith(p,"[]"))&&(m=G.toArray(v)))return p=Si(p),m.forEach(function(_,y){!(G.isUndefined(_)||_===null)&&r.append(a===!0?wi([p],y,i):a===null?p:p+"[]",h(_))}),!1}return lr(v)?!0:(r.append(wi(b,p,i),h(v)),!1)}const l=[],s=Object.assign(ml,{defaultVisitor:u,convertValue:h,isVisitable:lr});function d(v,p){if(!G.isUndefined(v)){if(l.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));l.push(v),G.forEach(v,function(m,g){(!(G.isUndefined(m)||m===null)&&o.call(r,m,G.isString(g)?g.trim():g,p,s))===!0&&d(m,p?p.concat(g):[g])}),l.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return d(e),r}function xi(e){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(t){return r[t]})}function sr(e,r){this._pairs=[],e&&vn(e,this,r)}const Ai=sr.prototype;Ai.append=function(r,n){this._pairs.push([r,n])},Ai.toString=function(r){const n=r?function(t){return r.call(this,t,xi)}:xi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function yl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ti(e,r,n){if(!r)return e;const t=n&&n.encode||yl,o=n&&n.serialize;let i;if(o?i=o(r,n):i=G.isURLSearchParams(r)?r.toString():new sr(r,n).toString(t),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class gl{constructor(){this.handlers=[]}use(r,n,t){return this.handlers.push({fulfilled:r,rejected:n,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){G.forEach(this.handlers,function(t){t!==null&&r(t)})}}var Ci=gl,Ni={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bl=typeof URLSearchParams!="undefined"?URLSearchParams:sr,_l=typeof FormData!="undefined"?FormData:null,Ol=typeof Blob!="undefined"?Blob:null,El={isBrowser:!0,classes:{URLSearchParams:bl,FormData:_l,Blob:Ol},protocols:["http","https","file","blob","url","data"]};const Pi=typeof window!="undefined"&&typeof document!="undefined",Sl=(e=>Pi&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),wl=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var xl=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",hasBrowserEnv:Pi,hasStandardBrowserWebWorkerEnv:wl,hasStandardBrowserEnv:Sl}),Qe=ye(ye({},xl),El);function Al(e,r){return vn(e,new Qe.classes.URLSearchParams,Object.assign({visitor:function(n,t,o,i){return Qe.isNode&&G.isBuffer(n)?(this.append(t,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},r))}function Tl(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function Cl(e){const r={},n=Object.keys(e);let t;const o=n.length;let i;for(t=0;t<o;t++)i=n[t],r[i]=e[i];return r}function ki(e){function r(n,t,o,i){let a=n[i++];const f=Number.isFinite(+a),c=i>=n.length;return a=!a&&G.isArray(o)?o.length:a,c?(G.hasOwnProp(o,a)?o[a]=[o[a],t]:o[a]=t,!f):((!o[a]||!G.isObject(o[a]))&&(o[a]=[]),r(n,t,o[a],i)&&G.isArray(o[a])&&(o[a]=Cl(o[a])),!f)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,(t,o)=>{r(Tl(t),o,n,0)}),n}return null}function Nl(e,r,n){if(G.isString(e))try{return(r||JSON.parse)(e),G.trim(e)}catch(t){if(t.name!=="SyntaxError")throw t}return(n||JSON.stringify)(e)}const ur={transitional:Ni,adapter:["xhr","http"],transformRequest:[function(r,n){const t=n.getContentType()||"",o=t.indexOf("application/json")>-1,i=G.isObject(r);if(i&&G.isHTMLForm(r)&&(r=new FormData(r)),G.isFormData(r))return o&&o?JSON.stringify(ki(r)):r;if(G.isArrayBuffer(r)||G.isBuffer(r)||G.isStream(r)||G.isFile(r)||G.isBlob(r))return r;if(G.isArrayBufferView(r))return r.buffer;if(G.isURLSearchParams(r))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let f;if(i){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Al(r,this.formSerializer).toString();if((f=G.isFileList(r))||t.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return vn(f?{"files[]":r}:r,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Nl(r)):r}],transformResponse:[function(r){const n=this.transitional||ur.transitional,t=n&&n.forcedJSONParsing,o=this.responseType==="json";if(r&&G.isString(r)&&(t&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(r)}catch(f){if(a)throw f.name==="SyntaxError"?he.from(f,he.ERR_BAD_RESPONSE,this,null,this.response):f}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{ur.headers[e]={}});var fr=ur;const Pl=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var kl=e=>{const r={};let n,t,o;return e&&e.split(`
2
+ `).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),t=a.substring(o+1).trim(),!(!n||r[n]&&Pl[n])&&(n==="set-cookie"?r[n]?r[n].push(t):r[n]=[t]:r[n]=r[n]?r[n]+", "+t:t)}),r};const Ii=Symbol("internals");function Bt(e){return e&&String(e).trim().toLowerCase()}function mn(e){return e===!1||e==null?e:G.isArray(e)?e.map(mn):String(e)}function Il(e){const r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let t;for(;t=n.exec(e);)r[t[1]]=t[2];return r}const Ll=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function cr(e,r,n,t,o){if(G.isFunction(t))return t.call(this,r,n);if(o&&(r=n),!!G.isString(r)){if(G.isString(t))return r.indexOf(t)!==-1;if(G.isRegExp(t))return t.test(r)}}function Rl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,n,t)=>n.toUpperCase()+t)}function Dl(e,r){const n=G.toCamelCase(" "+r);["get","set","has"].forEach(t=>{Object.defineProperty(e,t+n,{value:function(o,i,a){return this[t].call(this,r,o,i,a)},configurable:!0})})}class yn{constructor(r){r&&this.set(r)}set(r,n,t){const o=this;function i(f,c,h){const u=Bt(c);if(!u)throw new Error("header name must be a non-empty string");const l=G.findKey(o,u);(!l||o[l]===void 0||h===!0||h===void 0&&o[l]!==!1)&&(o[l||c]=mn(f))}const a=(f,c)=>G.forEach(f,(h,u)=>i(h,u,c));return G.isPlainObject(r)||r instanceof this.constructor?a(r,n):G.isString(r)&&(r=r.trim())&&!Ll(r)?a(kl(r),n):r!=null&&i(n,r,t),this}get(r,n){if(r=Bt(r),r){const t=G.findKey(this,r);if(t){const o=this[t];if(!n)return o;if(n===!0)return Il(o);if(G.isFunction(n))return n.call(this,o,t);if(G.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,n){if(r=Bt(r),r){const t=G.findKey(this,r);return!!(t&&this[t]!==void 0&&(!n||cr(this,this[t],t,n)))}return!1}delete(r,n){const t=this;let o=!1;function i(a){if(a=Bt(a),a){const f=G.findKey(t,a);f&&(!n||cr(t,t[f],f,n))&&(delete t[f],o=!0)}}return G.isArray(r)?r.forEach(i):i(r),o}clear(r){const n=Object.keys(this);let t=n.length,o=!1;for(;t--;){const i=n[t];(!r||cr(this,this[i],i,r,!0))&&(delete this[i],o=!0)}return o}normalize(r){const n=this,t={};return G.forEach(this,(o,i)=>{const a=G.findKey(t,i);if(a){n[a]=mn(o),delete n[i];return}const f=r?Rl(i):String(i).trim();f!==i&&delete n[i],n[f]=mn(o),t[f]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const n=Object.create(null);return G.forEach(this,(t,o)=>{t!=null&&t!==!1&&(n[o]=r&&G.isArray(t)?t.join(", "):t)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,n])=>r+": "+n).join(`
3
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...n){const t=new this(r);return n.forEach(o=>t.set(o)),t}static accessor(r){const t=(this[Ii]=this[Ii]={accessors:{}}).accessors,o=this.prototype;function i(a){const f=Bt(a);t[f]||(Dl(o,a),t[f]=!0)}return G.isArray(r)?r.forEach(i):i(r),this}}yn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(yn.prototype,({value:e},r)=>{let n=r[0].toUpperCase()+r.slice(1);return{get:()=>e,set(t){this[n]=t}}}),G.freezeMethods(yn);var rt=yn;function dr(e,r){const n=this||fr,t=r||n,o=rt.from(t.headers);let i=t.data;return G.forEach(e,function(f){i=f.call(n,i,o.normalize(),r?r.status:void 0)}),o.normalize(),i}function Li(e){return!!(e&&e.__CANCEL__)}function qt(e,r,n){he.call(this,e==null?"canceled":e,he.ERR_CANCELED,r,n),this.name="CanceledError"}G.inherits(qt,he,{__CANCEL__:!0});function $l(e,r,n){const t=n.config.validateStatus;!n.status||!t||t(n.status)?e(n):r(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var Ml=Qe.hasStandardBrowserEnv?{write(e,r,n,t,o,i){const a=[e+"="+encodeURIComponent(r)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(t)&&a.push("path="+t),G.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fl(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function jl(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}function Ri(e,r){return e&&!Fl(r)?jl(e,r):r}var Bl=Qe.hasStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let t;function o(i){let a=i;return r&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(a){const f=G.isString(a)?o(a):a;return f.protocol===t.protocol&&f.host===t.host}}():function(){return function(){return!0}}();function ql(e){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return r&&r[1]||""}function Ul(e,r){e=e||10;const n=new Array(e),t=new Array(e);let o=0,i=0,a;return r=r!==void 0?r:1e3,function(c){const h=Date.now(),u=t[i];a||(a=h),n[o]=c,t[o]=h;let l=i,s=0;for(;l!==o;)s+=n[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),h-a<r)return;const d=u&&h-u;return d?Math.round(s*1e3/d):void 0}}function Di(e,r){let n=0;const t=Ul(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,f=i-n,c=t(f),h=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:f,rate:c||void 0,estimated:c&&a&&h?(a-i)/c:void 0,event:o};u[r?"download":"upload"]=!0,e(u)}}var Hl=typeof XMLHttpRequest!="undefined"&&function(e){return new Promise(function(n,t){let o=e.data;const i=rt.from(e.headers).normalize();let{responseType:a,withXSRFToken:f}=e,c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let u;if(G.isFormData(o)){if(Qe.hasStandardBrowserEnv||Qe.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[p,...b]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",...b].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+b))}const s=Ri(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ti(s,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const p=rt.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),m={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:p,config:e,request:l};$l(function(_){n(_),h()},function(_){t(_),h()},m),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){!l||(t(new he("Request aborted",he.ECONNABORTED,e,l)),l=null)},l.onerror=function(){t(new he("Network Error",he.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let b=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const m=e.transitional||Ni;e.timeoutErrorMessage&&(b=e.timeoutErrorMessage),t(new he(b,m.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,l)),l=null},Qe.hasStandardBrowserEnv&&(f&&G.isFunction(f)&&(f=f(e)),f||f!==!1&&Bl(s))){const p=e.xsrfHeaderName&&e.xsrfCookieName&&Ml.read(e.xsrfCookieName);p&&i.set(e.xsrfHeaderName,p)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&G.forEach(i.toJSON(),function(b,m){l.setRequestHeader(m,b)}),G.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",Di(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",Di(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=p=>{!l||(t(!p||p.type?new qt(null,e,l):p),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const v=ql(s);if(v&&Qe.protocols.indexOf(v)===-1){t(new he("Unsupported protocol "+v+":",he.ERR_BAD_REQUEST,e));return}l.send(o||null)})};const hr={http:pl,xhr:Hl};G.forEach(hr,(e,r)=>{if(e){try{Object.defineProperty(e,"name",{value:r})}catch{}Object.defineProperty(e,"adapterName",{value:r})}});const $i=e=>`- ${e}`,zl=e=>G.isFunction(e)||e===null||e===!1;var Mi={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:r}=e;let n,t;const o={};for(let i=0;i<r;i++){n=e[i];let a;if(t=n,!zl(n)&&(t=hr[(a=String(n)).toLowerCase()],t===void 0))throw new he(`Unknown adapter '${a}'`);if(t)break;o[a||"#"+i]=t}if(!t){const i=Object.entries(o).map(([f,c])=>`adapter ${f} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?i.length>1?`since :
4
4
  `+i.map($i).join(`
5
- `):" "+$i(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return t},adapters:hr};function pr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qt(null,e)}function Fi(e){return pr(e),e.headers=rt.from(e.headers),e.data=dr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mi.getAdapter(e.adapter||fr.adapter)(e).then(function(t){return pr(e),t.data=dr.call(e,e.transformResponse,t),t.headers=rt.from(t.headers),t},function(t){return Li(t)||(pr(e),t&&t.response&&(t.response.data=dr.call(e,e.transformResponse,t.response),t.response.headers=rt.from(t.response.headers))),Promise.reject(t)})}const ji=e=>e instanceof rt?e.toJSON():e;function At(e,r){r=r||{};const n={};function t(h,u,l){return G.isPlainObject(h)&&G.isPlainObject(u)?G.merge.call({caseless:l},h,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(h,u,l){if(G.isUndefined(u)){if(!G.isUndefined(h))return t(void 0,h,l)}else return t(h,u,l)}function i(h,u){if(!G.isUndefined(u))return t(void 0,u)}function a(h,u){if(G.isUndefined(u)){if(!G.isUndefined(h))return t(void 0,h)}else return t(void 0,u)}function f(h,u,l){if(l in r)return t(h,u);if(l in e)return t(void 0,h)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:f,headers:(h,u)=>o(ji(h),ji(u),!0)};return G.forEach(Object.keys(Object.assign({},e,r)),function(u){const l=c[u]||o,s=l(e[u],r[u],u);G.isUndefined(s)&&l!==f||(n[u]=s)}),n}const Bi="1.6.2",vr={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{vr[e]=function(t){return typeof t===e||"a"+(r<1?"n ":" ")+e}});const qi={};vr.transitional=function(r,n,t){function o(i,a){return"[Axios v"+Bi+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,f)=>{if(r===!1)throw new he(o(a," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!qi[a]&&(qi[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(i,a,f):!0}};function Wl(e,r,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const t=Object.keys(e);let o=t.length;for(;o-- >0;){const i=t[o],a=r[i];if(a){const f=e[i],c=f===void 0||a(f,i,e);if(c!==!0)throw new he("option "+i+" must be "+c,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}var mr={assertOptions:Wl,validators:vr};const st=mr.validators;class gn{constructor(r){this.defaults=r,this.interceptors={request:new Ci,response:new Ci}}request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=At(this.defaults,n);const{transitional:t,paramsSerializer:o,headers:i}=n;t!==void 0&&mr.assertOptions(t,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:mr.assertOptions(o,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=rt.concat(a,i);const f=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,f.unshift(p.fulfilled,p.rejected))});const h=[];this.interceptors.response.forEach(function(p){h.push(p.fulfilled,p.rejected)});let u,l=0,s;if(!c){const v=[Fi.bind(this),void 0];for(v.unshift.apply(v,f),v.push.apply(v,h),s=v.length,u=Promise.resolve(n);l<s;)u=u.then(v[l++],v[l++]);return u}s=f.length;let d=n;for(l=0;l<s;){const v=f[l++],p=f[l++];try{d=v(d)}catch(b){p.call(this,b);break}}try{u=Fi.call(this,d)}catch(v){return Promise.reject(v)}for(l=0,s=h.length;l<s;)u=u.then(h[l++],h[l++]);return u}getUri(r){r=At(this.defaults,r);const n=Di(r.baseURL,r.url);return Ti(n,r.params,r.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(r){gn.prototype[r]=function(n,t){return this.request(At(t||{},{method:r,url:n,data:(t||{}).data}))}}),G.forEach(["post","put","patch"],function(r){function n(t){return function(i,a,f){return this.request(At(f||{},{method:r,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}gn.prototype[r]=n(),gn.prototype[r+"Form"]=n(!0)});var bn=gn;class yr{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const t=this;this.promise.then(o=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](o);t._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(f=>{t.subscribe(f),i=f}).then(o);return a.cancel=function(){t.unsubscribe(i)},a},r(function(i,a,f){t.reason||(t.reason=new qt(i,a,f),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}static source(){let r;return{token:new yr(function(o){r=o}),cancel:r}}}var Gl=yr;function Vl(e){return function(n){return e.apply(null,n)}}function Kl(e){return G.isObject(e)&&e.isAxiosError===!0}const gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gr).forEach(([e,r])=>{gr[r]=e});var Yl=gr;function Ui(e){const r=new bn(e),n=ci(bn.prototype.request,r);return G.extend(n,bn.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(o){return Ui(At(e,o))},n}const we=Ui(fr);we.Axios=bn,we.CanceledError=qt,we.CancelToken=Gl,we.isCancel=Li,we.VERSION=Bi,we.toFormData=vn,we.AxiosError=he,we.Cancel=we.CanceledError,we.all=function(r){return Promise.all(r)},we.spread=Vl,we.isAxiosError=Kl,we.mergeConfig=At,we.AxiosHeaders=rt,we.formToJSON=e=>ki(G.isHTMLForm(e)?new FormData(e):e),we.getAdapter=Mi.getAdapter,we.HttpStatusCode=Yl,we.default=we;var Xl=we,Jl=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},Zl=[],Wd="";function Ce(e,r,n,t,o,i,a,f){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._scopeId="data-v-"+i);var h;if(a?(h=function(s){s=s||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!s&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(s=__VUE_SSR_CONTEXT__),o&&o.call(this,s),s&&s._registeredComponents&&s._registeredComponents.add(a)},c._ssrRegister=h):o&&(h=f?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(c.functional){c._injectStyles=h;var u=c.render;c.render=function(d,v){return h.call(v),u(d,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:c}}const Ql={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},Hi={};var es=Ce(Ql,Jl,Zl,!1,ts,"183fe45a",null,null);function ts(e){for(let r in Hi)this[r]=Hi[r]}var _n=function(){return es.exports}();_n.install=e=>{e.component(_n.name,_n)};const zi=_n;var ns=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,a){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(f,c){return n("el-menu-item",{key:f.name,attrs:{index:f.path||f.name}},[e._v(e._s(f.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},rs=[],Gd="";const is={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Wi={};var os=Ce(is,ns,rs,!1,as,"0c59bf82",null,null);function as(e){for(let r in Wi)this[r]=Wi[r]}var On=function(){return os.exports}();On.install=e=>{e.component(On.name,On)};const Gi=On;var ls=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},ss=[],Vd="";const us={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Vi={};var fs=Ce(us,ls,ss,!1,cs,"355ab970",null,null);function cs(e){for(let r in Vi)this[r]=Vi[r]}var En=function(){return fs.exports}();En.install=e=>{e.component(En.name,En)};const Ki=En;var ds=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("dropdown"),e._l(e.items,function(t){return n("el-dropdown-item",{key:t.command,attrs:{icon:t.icon,command:t.command||t.key}},[e._v(e._s(t.name))])}),n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],2)],1)],1)},hs=[],Kd="";const ps={name:"ComTool",props:{themes:{type:Array,default(){return[]}},items:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},Yi={};var vs=Ce(ps,ds,hs,!1,ms,"c39787c2",null,null);function ms(e){for(let r in Yi)this[r]=Yi[r]}var Sn=function(){return vs.exports}();Sn.install=e=>{e.component(Sn.name,Sn)};const Xi=Sn;var Ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zi(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var Qi={exports:{}},eo={exports:{}};/*!
5
+ `):" "+$i(i[0]):"as no adapter specified";throw new he("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return t},adapters:hr};function pr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qt(null,e)}function Fi(e){return pr(e),e.headers=rt.from(e.headers),e.data=dr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Mi.getAdapter(e.adapter||fr.adapter)(e).then(function(t){return pr(e),t.data=dr.call(e,e.transformResponse,t),t.headers=rt.from(t.headers),t},function(t){return Li(t)||(pr(e),t&&t.response&&(t.response.data=dr.call(e,e.transformResponse,t.response),t.response.headers=rt.from(t.response.headers))),Promise.reject(t)})}const ji=e=>e instanceof rt?e.toJSON():e;function At(e,r){r=r||{};const n={};function t(h,u,l){return G.isPlainObject(h)&&G.isPlainObject(u)?G.merge.call({caseless:l},h,u):G.isPlainObject(u)?G.merge({},u):G.isArray(u)?u.slice():u}function o(h,u,l){if(G.isUndefined(u)){if(!G.isUndefined(h))return t(void 0,h,l)}else return t(h,u,l)}function i(h,u){if(!G.isUndefined(u))return t(void 0,u)}function a(h,u){if(G.isUndefined(u)){if(!G.isUndefined(h))return t(void 0,h)}else return t(void 0,u)}function f(h,u,l){if(l in r)return t(h,u);if(l in e)return t(void 0,h)}const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:f,headers:(h,u)=>o(ji(h),ji(u),!0)};return G.forEach(Object.keys(Object.assign({},e,r)),function(u){const l=c[u]||o,s=l(e[u],r[u],u);G.isUndefined(s)&&l!==f||(n[u]=s)}),n}const Bi="1.6.2",vr={};["object","boolean","number","function","string","symbol"].forEach((e,r)=>{vr[e]=function(t){return typeof t===e||"a"+(r<1?"n ":" ")+e}});const qi={};vr.transitional=function(r,n,t){function o(i,a){return"[Axios v"+Bi+"] Transitional option '"+i+"'"+a+(t?". "+t:"")}return(i,a,f)=>{if(r===!1)throw new he(o(a," has been removed"+(n?" in "+n:"")),he.ERR_DEPRECATED);return n&&!qi[a]&&(qi[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(i,a,f):!0}};function Wl(e,r,n){if(typeof e!="object")throw new he("options must be an object",he.ERR_BAD_OPTION_VALUE);const t=Object.keys(e);let o=t.length;for(;o-- >0;){const i=t[o],a=r[i];if(a){const f=e[i],c=f===void 0||a(f,i,e);if(c!==!0)throw new he("option "+i+" must be "+c,he.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new he("Unknown option "+i,he.ERR_BAD_OPTION)}}var mr={assertOptions:Wl,validators:vr};const st=mr.validators;class gn{constructor(r){this.defaults=r,this.interceptors={request:new Ci,response:new Ci}}request(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=At(this.defaults,n);const{transitional:t,paramsSerializer:o,headers:i}=n;t!==void 0&&mr.assertOptions(t,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),o!=null&&(G.isFunction(o)?n.paramsSerializer={serialize:o}:mr.assertOptions(o,{encode:st.function,serialize:st.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&G.merge(i.common,i[n.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=rt.concat(a,i);const f=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(c=c&&p.synchronous,f.unshift(p.fulfilled,p.rejected))});const h=[];this.interceptors.response.forEach(function(p){h.push(p.fulfilled,p.rejected)});let u,l=0,s;if(!c){const v=[Fi.bind(this),void 0];for(v.unshift.apply(v,f),v.push.apply(v,h),s=v.length,u=Promise.resolve(n);l<s;)u=u.then(v[l++],v[l++]);return u}s=f.length;let d=n;for(l=0;l<s;){const v=f[l++],p=f[l++];try{d=v(d)}catch(b){p.call(this,b);break}}try{u=Fi.call(this,d)}catch(v){return Promise.reject(v)}for(l=0,s=h.length;l<s;)u=u.then(h[l++],h[l++]);return u}getUri(r){r=At(this.defaults,r);const n=Ri(r.baseURL,r.url);return Ti(n,r.params,r.paramsSerializer)}}G.forEach(["delete","get","head","options"],function(r){gn.prototype[r]=function(n,t){return this.request(At(t||{},{method:r,url:n,data:(t||{}).data}))}}),G.forEach(["post","put","patch"],function(r){function n(t){return function(i,a,f){return this.request(At(f||{},{method:r,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}gn.prototype[r]=n(),gn.prototype[r+"Form"]=n(!0)});var bn=gn;class yr{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const t=this;this.promise.then(o=>{if(!t._listeners)return;let i=t._listeners.length;for(;i-- >0;)t._listeners[i](o);t._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(f=>{t.subscribe(f),i=f}).then(o);return a.cancel=function(){t.unsubscribe(i)},a},r(function(i,a,f){t.reason||(t.reason=new qt(i,a,f),n(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}static source(){let r;return{token:new yr(function(o){r=o}),cancel:r}}}var Gl=yr;function Vl(e){return function(n){return e.apply(null,n)}}function Kl(e){return G.isObject(e)&&e.isAxiosError===!0}const gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gr).forEach(([e,r])=>{gr[r]=e});var Yl=gr;function Ui(e){const r=new bn(e),n=ci(bn.prototype.request,r);return G.extend(n,bn.prototype,r,{allOwnKeys:!0}),G.extend(n,r,null,{allOwnKeys:!0}),n.create=function(o){return Ui(At(e,o))},n}const we=Ui(fr);we.Axios=bn,we.CanceledError=qt,we.CancelToken=Gl,we.isCancel=Li,we.VERSION=Bi,we.toFormData=vn,we.AxiosError=he,we.Cancel=we.CanceledError,we.all=function(r){return Promise.all(r)},we.spread=Vl,we.isAxiosError=Kl,we.mergeConfig=At,we.AxiosHeaders=rt,we.formToJSON=e=>ki(G.isHTMLForm(e)?new FormData(e):e),we.getAdapter=Mi.getAdapter,we.HttpStatusCode=Yl,we.default=we;var Xl=we,Jl=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-template"},[n("h1",[e._v(e._s(e.msg))]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[n("el-table-column",{attrs:{prop:"date",label:"\u65E5\u671F",width:"180"}}),n("el-table-column",{attrs:{prop:"name",label:"\u59D3\u540D",width:"180"}}),n("el-table-column",{attrs:{prop:"address",label:"\u5730\u5740"}})],1)],1)},Zl=[],Wd="";function Ce(e,r,n,t,o,i,a,f){var c=typeof e=="function"?e.options:e;r&&(c.render=r,c.staticRenderFns=n,c._compiled=!0),t&&(c.functional=!0),i&&(c._scopeId="data-v-"+i);var h;if(a?(h=function(s){s=s||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!s&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(s=__VUE_SSR_CONTEXT__),o&&o.call(this,s),s&&s._registeredComponents&&s._registeredComponents.add(a)},c._ssrRegister=h):o&&(h=f?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(c.functional){c._injectStyles=h;var u=c.render;c.render=function(d,v){return h.call(v),u(d,v)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,h):[h]}return{exports:e,options:c}}const Ql={name:"ComTemplate",data(){return{msg:"\u6D4B\u8BD5\u7EC4\u4EF611111",tableData:[{date:"2016-05-02",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1518 \u5F04"},{date:"2016-05-04",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1517 \u5F04"},{date:"2016-05-01",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1519 \u5F04"},{date:"2016-05-03",name:"\u738B\u5C0F\u864E",address:"\u4E0A\u6D77\u5E02\u666E\u9640\u533A\u91D1\u6C99\u6C5F\u8DEF 1516 \u5F04"}]}},methods:{}},Hi={};var es=Ce(Ql,Jl,Zl,!1,ts,"183fe45a",null,null);function ts(e){for(let r in Hi)this[r]=Hi[r]}var _n=function(){return es.exports}();_n.install=e=>{e.component(_n.name,_n)};const zi=_n;var ns=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-menu",class:{"flex-direction-column ui-hasbg":e.mode=="vertical"},style:{width:e.isCollapse?"64px":"200px"}},[e.mode=="vertical"?n("div",{staticClass:"ui-menu__header"},[n("div",{staticClass:"ui-collapse"},[n("span",{class:e.isCollapse?"icon-qiehuan1 mr-24":"icon-qiehuan",on:{click:function(t){e.isCollapse=!e.isCollapse}}})]),n("div",{staticClass:"ui-user"},[e._t("avatar",[n("div",{staticClass:"ui-user__img"})],{size:e.isCollapse?30:64}),n("div",{staticClass:"ui-user--name"},[e._v(" "+e._s(e.userData.userName)+" ")])],2)]):e._e(),n("div",{staticClass:"ui-fast__search",class:{"ui-collapse--form":e.isCollapse}},[n("com-form-item",{attrs:{type:"cascader","popper-class":"fast_search__cascader",options:e.data,props:e.searchProps,placeholder:"\u641C\u7D22\u83DC\u5355"},on:{change:e.handleSearch},model:{value:e.activePath,callback:function(t){e.activePath=t},expression:"activePath"}})],1),n("com-container",{attrs:{"static-class":[".ui-fast__search",".ui-user",".el-header"],"static-num":50}},[n("el-menu",{class:"ui-menu--"+e.mode,attrs:{"background-color":"#545c64","text-color":"#FFF","active-text-color":"#FFF","menu-trigger":"hover",mode:e.mode,"default-active":e.$route.path,collapse:e.isCollapse},on:{select:e.handleJump}},[e._l(e.data,function(t,o){return[t.children?n("el-submenu",{attrs:{index:t.path||t.name}},[n("template",{slot:"title"},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",[e._v(e._s(t.name))])]),e._l(t.children,function(i,a){return[i.children?n("el-submenu",{attrs:{index:i.path||i.name}},[n("template",{slot:"title"},[e._v(e._s(i.name))]),e._l(i.children,function(f,c){return n("el-menu-item",{key:f.name,attrs:{index:f.path||f.name}},[e._v(e._s(f.name))])})],2):n("el-menu-item",{attrs:{index:i.path||i.name}},[e._v(e._s(i.name))])]})],2):n("el-menu-item",{attrs:{index:t.path||t.name}},[n("i",{class:t.icon||"icon-chanpinguanli-chanpinliebiao"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v(e._s(t.name))])])]})],2)],1)],1)},rs=[],Gd="";const is={name:"ComMenu",props:{data:{type:Array,default(){return[]}},mode:{type:String,default:"horizontal"},userData:{type:Object,default(){return{}}}},data(){return{searchProps:{label:"name",value:"path",emitPath:!1},activePath:"",isCollapse:localStorage.getItem("SAVE_COLLAPSE_STATE")==1}},methods:{handleJump(e){this.$emit("jump",e)},handleSearch(e){!e||this.handleJump(e)}},watch:{"$route.path"(e){this.activePath=e},isCollapse(e){localStorage.setItem("SAVE_COLLAPSE_STATE",e?1:0)}}},Wi={};var os=Ce(is,ns,rs,!1,as,"0c59bf82",null,null);function as(e){for(let r in Wi)this[r]=Wi[r]}var On=function(){return os.exports}();On.install=e=>{e.component(On.name,On)};const Gi=On;var ls=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tabs"},[n("div",{staticClass:"inline-block h-full"},[n("div",{staticClass:"h-full flex items-end"},e._l(e.data,function(t,o){return n("div",{key:t.path,staticClass:"admin-tab__chrome-tab",class:{"admin-tab__chrome-tab--active":e.currentTab.path===t.path,"admin-tab__chrome-tab--hover":e.hoverItem==t.path},on:{click:function(i){return e.handleToggle(t.path)},mouseenter:function(i){return e.itemEnter(t.path)},mouseleave:function(i){return e.itemLeave(t.path)}}},[n("div",{staticClass:"admin-tab__chrome-tab__bg"},[n("svg",{staticStyle:{width:"100%",height:"100%"}},[n("defs",[n("symbol",{attrs:{id:"geometry-left",viewBox:"0 0 214 36"}},[n("path",{attrs:{d:"M17 0h197v36H0v-2c4.5 0 9-3.5 9-8V8c0-4.5 3.5-8 8-8z"}})]),n("symbol",{attrs:{id:"geometry-right",viewBox:"0 0 214 36"}},[n("use",{attrs:{"xlink:href":"#geometry-left"}})]),n("clipPath",[n("rect",{attrs:{width:"100%",height:"100%",x:"0"}})])]),n("svg",{attrs:{width:"52%",height:"100%"}},[n("use",{attrs:{"xlink:href":"#geometry-left",width:"214",height:"36",fill:e.stateColor(t.path)}})]),n("g",{attrs:{transform:"scale(-1, 1)"}},[n("svg",{attrs:{width:"52%",height:"100%",x:"-100%",y:"0"}},[n("use",{attrs:{"xlink:href":"#geometry-right",width:"214",height:"36",fill:e.stateColor(t.path)}})])])])]),n("span",{staticClass:"admin-tab__chrome-tab__slot"},[n("i",{class:t.icon||"",staticStyle:{"margin-right":"5px"}}),e._v(" "+e._s(t.name)+" ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.path!=="/Home",expression:"item.path !== '/Home'"}],staticClass:"admin-tab__chrome-tab__icon"},[n("div",{staticClass:"admin-tab__icon",on:{click:function(i){return i.stopPropagation(),e.handleDeleteTab(t.path)}}},[n("i",{staticClass:"icon-guanbi1 font-size-12"})])]),n("div",{staticClass:"admin-tab__chrome-tab__divider",class:{"admin-tab__chrome-tab__divider--hide":e.hoverItem==t.path||e.currentTab.path===t.path}})])}),0)])])},ss=[],Vd="";const us={name:"ComTabs",props:{data:{type:Array,default(){return[]}},currentTab:{type:Object,default(){return{}}}},data(){return{hoverItem:""}},methods:{handleToggle(e){this.$emit("toggle",e)},handleDeleteTab(e){this.$emit("deleteTab",e)},itemEnter(e){this.hoverItem=e},itemLeave(e){this.hoverItem=""},stateColor(e){const r="#dee1e6",n="#f5f7fa";return this.currentTab.path==e?r:this.hoverItem==e?n:"#FFFFFF"}}},Vi={};var fs=Ce(us,ls,ss,!1,cs,"355ab970",null,null);function cs(e){for(let r in Vi)this[r]=Vi[r]}var En=function(){return fs.exports}();En.install=e=>{e.component(En.name,En)};const Ki=En;var ds=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-tool"},[e.themes.length?n("el-dropdown",{on:{command:function(t){return e.handleOperation("theme",t)}}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"icon-pifu"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.themes,function(t){return n("el-dropdown-item",{key:t.value,attrs:{command:t.value}},[n("i",{staticClass:"el-icon-s-platform",style:{color:t.theme["@theme-color"]}}),n("span",[e._v(e._s(t.label))])])}),1)],1):e._e(),n("el-dropdown",{on:{command:e.handleOperation}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"el-icon-s-tools"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("dropdown"),e._l(e.items,function(t){return n("el-dropdown-item",{key:t.command,attrs:{icon:t.icon,command:t.command||t.key}},[e._v(e._s(t.name))])}),n("el-dropdown-item",{attrs:{icon:"icon-tuichudenglu",command:"outLogin"}},[e._v("\u9000\u51FA\u767B\u5F55")])],2)],1)],1)},hs=[],Kd="";const ps={name:"ComTool",props:{themes:{type:Array,default(){return[]}},items:{type:Array,default(){return[]}}},methods:{handleOperation(e,r){switch(e){case"outLogin":this.$confirm("\u786E\u8BA4\u9000\u51FA\u767B\u5F55?","\u63D0\u793A",{type:"warning"}).then(()=>{console.log("out login"),this.$emit("operation",e)});break;default:this.$emit("operation",e,r);break}}}},Yi={};var vs=Ce(ps,ds,hs,!1,ms,"c39787c2",null,null);function ms(e){for(let r in Yi)this[r]=Yi[r]}var Sn=function(){return vs.exports}();Sn.install=e=>{e.component(Sn.name,Sn)};const Xi=Sn;var Ut=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Ji(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zi(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var Qi={exports:{}},eo={exports:{}};/*!
6
6
  * Infinite Scroll v2.0.4
7
7
  * measure size of elements
8
8
  * MIT license
@@ -15,48 +15,48 @@ var Md=Object.defineProperty,Fd=Object.defineProperties;var jd=Object.getOwnProp
15
15
  * Make that shiz draggable
16
16
  * https://draggabilly.desandro.com
17
17
  * MIT license
18
- */(function(e){(function(r,n){e.exports?e.exports=n(r,eo.exports,to.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Ut,function(n,t,o){function i(){}let a=n.jQuery;function f(v,p){this.element=typeof v=="string"?document.querySelector(v):v,a&&(this.$element=a(this.element)),this.options={},this.option(p),this._create()}let c=f.prototype=Object.create(o.prototype);c.option=function(v){this.options=ye(ye({},this.options),v)};const h=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=ye({},this.position);let v=getComputedStyle(this.element);h.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const u=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,p){if(!this.isEnabled&&u.includes(v))return;l.call(this,v,p);let m=n.jQuery;if(!m||!this.$element)return;let g,_=p;p&&p[0]instanceof Event&&([g,..._]=p);let O=m.Event(g);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),p=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(p)?0:p,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,p){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[p]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let p=v.transform;if(!p.startsWith("matrix"))return;let b=p.split(","),m=p.startsWith("matrix3d")?12:4,g=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=g,this.position.y+=_},c.handlePointerDown=function(v,p){!this.isEnabled||(this.pointerDownPointer={pageX:p.pageX,pageY:p.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let p=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:g,borderTopWidth:_,borderBottomWidth:y}=b,O=this.element.getBoundingClientRect(),N=v.getBoundingClientRect(),T=m+g,A=_+y,I=this.relativeStartPosition={x:O.left-(N.left+m),y:O.top-(N.top+_)};this.containSize={width:b.width-T-I.x-p.width,height:b.height-A-I.y-p.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,p,b){if(!this.isEnabled)return;let m=b.x,g=b.y,_=this.options.grid,y=_&&_[0],O=_&&_[1];m=s(m,y),g=s(g,O),m=this.containDrag("x",m,y),g=this.containDrag("y",g,O),m=this.options.axis=="y"?0:m,g=this.options.axis=="x"?0:g,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+g,this.dragPoint.x=m,this.dragPoint.y=g};function s(v,p,b){return p?(b=b||"round",Math[b](v/p)*p):v}c.containDrag=function(v,p,b){if(!this.options.containment)return p;let m=v=="x"?"width":"height",g=this.relativeStartPosition[v],_=s(-g,b,"ceil"),y=this.containSize[m];return y=s(y,b,"floor"),Math.max(_,Math.min(y,p))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:p}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${p}px`},c.positionDrag=function(){let{x:v,y:p}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${p}px, 0)`},c.setPosition=function(v,p){this.position.x=v,this.position.y=p,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const d=["transform","left","top","position"];return c.destroy=function(){this.disable(),d.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,a&&a.bridget&&a.bridget("draggabilly",f),f})})(Qi);var ys=Qi.exports,gs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},bs=[],Yd="";const _s={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new ys(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},ro={};var Os=Ce(_s,gs,bs,!1,Es,"68b35a11",null,null);function Es(e){for(let r in ro)this[r]=ro[r]}var wn=function(){return Os.exports}();wn.install=e=>{e.component(wn.name,wn)};const io=wn,oo={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Ss=gt(ye({},oo),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),ws=gt(ye({},oo),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),xs={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:ws,datetimerange:Ss,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var As=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-checkcell"},e._l(e.rows,function(t,o){return n("div",{key:t,staticClass:"row"},[n("div",{staticClass:"cell"},[o?n("span",[e._v(e._s(t))]):n("div",{staticClass:"ui-checkcell--fast"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:e.checkAll}},[e._v("\u53CD\u9009")])],1)]),e._l(e.cols,function(i,a){return n("div",{key:i+t,staticClass:"cell"},[o?n("div",{staticClass:"ui-checkcell--item",class:{"ui-active":e.modelForm.includes(o+"_"+a)},on:{click:function(f){return e.handleCheck(o,a)}}},[n("span",{staticClass:"el-icon-check"})]):n("span",[e._v(e._s(i))])])})],2)}),0)},Ts=[],Zd="";const Cs={model:{prop:"model",event:"changes"},props:{model:{type:Array,default(){return[]}},cols:{type:Array,default(){return new Array(24).fill("").map((e,r)=>`${r}:00`)}},rows:{type:Array,default(){return["","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D","\u661F\u671F\u65E5"]}},disabled:{type:Boolean,default:!1}},data(){return{modelForm:this.model}},methods:{handleCheck(e,r){if(this.disabled)return;const n=`${e}_${r}`,t=this.modelForm.indexOf(n);t>-1?this.modelForm.splice(t,1):this.modelForm.push(n)},checkAll(){this.disabled||(this.modelForm=this.rows.reduce((e,r,n)=>(n&&this.cols.forEach((t,o)=>{this.modelForm.includes(`${n}_${o}`)||e.push(`${n}_${o}`)}),e),[]))}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e}}},ao={};var Ns=Ce(Cs,As,Ts,!1,Ps,"4cb7a998",null,null);function Ps(e){for(let r in ao)this[r]=ao[r]}var ks=function(){return Ns.exports}(),Is=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="autocomplete"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-autocomplete",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{"fetch-suggestions":e.handleAutoQuerySearch},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-autocomplete",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="remoteselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{remote:"",filterable:"",loading:e.remoteLoading,"remote-method":e.remoteMethod,multiple:e.multiple,collapseTags:e.collapseTags,"reserve-keyword":e.reserveKeyword},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i[e.props.value||"value"]==e.treeCheck.value}},[n("span",[e._v(e._s(o[e.props.label||"label"]))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="checkcell"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("check-cell",e._g(e._b({ref:"checkcell",model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"check-cell",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))]:e._e()],2)])},Ls=[],Qd="";const Ds={components:{CheckCell:ks},inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteApi:{type:Function},remoteCreate:{type:Boolean,default:!0},remoteMethod:{type:Function,default(e){const r=this.$parent;r.remoteApi&&(r.remoteLoading=!0,r.remoteApi({keyword:e}).then(n=>{r.filterOptions=n.data,r.remoteLoading=!1}))}},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String],optionLimit:{type:Number,default:150}},data(){let e=this.model;return this.type=="select"&&(Array.isArray(this.model)?e=this.model.map(r=>r.toString()):(this.model||this.model===0)&&(e=this.model.toString())),{modelForm:e,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,remoteLoading:!1,treeCheck:{label:"",value:""}}},computed:{staticStyle(){return ye({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,this.optionLimit);const e=this.selectOption.findIndex(r=>r.value==this.modelForm);e>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[e]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm)})),this.filterOptions=this.selectOption.slice(0),this.remoteCreate&&this.type=="remoteselect"&&this.remoteMethod()},methods:{handleAutoQuerySearch(e,r){const n=e?this.selectOption.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):this.selectOption;r(n.map(t=>({label:t.label,value:t.label})))},bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,this.optionLimit):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,this.optionLimit))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&!this.bigOptions.find(n=>n.value==this.modelForm)&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return gt(ye({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||xs[r]||{};return ye(ye({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?(this.modelForm=this.filterOptions.map(r=>r.value),this.$emit("change",this.modelForm)):(this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[]),this.$emit("change",this.modelForm))},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){if(r.isLeaf){const{value:n="value"}=this.props;this.modelForm=e[n],this.treeCheck=gt(ye({},e),{value:e[n]}),console.log(this.treeCheck,"this.treeCheck"),this.$refs.TreeSelect.blur()}},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){let r=e;this.type=="select"&&!this.multiple&&(e||e===0)&&(r=e.toString()),this.modelForm=r},selectOption(e){this.bigOptions=e.slice(0,this.optionLimit);const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[r]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm)})),this.filterOptions=e.slice(0)}}},lo={};var Rs=Ce(Ds,Is,Ls,!1,$s,"64765c14",null,null);function $s(e){for(let r in lo)this[r]=lo[r]}var xn=function(){return Rs.exports}();xn.install=e=>{e.component(xn.name,xn)};const so=xn;var Ms=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},Fs=[],eh="";const js={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},uo={};var Bs=Ce(js,Ms,Fs,!1,qs,"c24a1f4c",null,null);function qs(e){for(let r in uo)this[r]=uo[r]}var Us=function(){return Bs.exports}(),Hs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},zs=[],th="";const Ws={name:"ComOperation",components:{Items:Us},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},fo={};var Gs=Ce(Ws,Hs,zs,!1,Vs,"3592f4b8",null,null);function Vs(e){for(let r in fo)this[r]=fo[r]}var An=function(){return Gs.exports}();An.install=e=>{e.component(An.name,An)};const co=An;var ho={exports:{}};/**!
18
+ */(function(e){(function(r,n){e.exports?e.exports=n(r,eo.exports,to.exports):r.Draggabilly=n(r,r.getSize,r.Unidragger)})(typeof window!="undefined"?window:Ut,function(n,t,o){function i(){}let a=n.jQuery;function f(v,p){this.element=typeof v=="string"?document.querySelector(v):v,a&&(this.$element=a(this.element)),this.options={},this.option(p),this._create()}let c=f.prototype=Object.create(o.prototype);c.option=function(v){this.options=ye(ye({},this.options),v)};const h=["relative","absolute","fixed"];c._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=ye({},this.position);let v=getComputedStyle(this.element);h.includes(v.position)||(this.element.style.position="relative"),this.on("pointerDown",this.handlePointerDown),this.on("pointerUp",this.handlePointerUp),this.on("dragStart",this.handleDragStart),this.on("dragMove",this.handleDragMove),this.on("dragEnd",this.handleDragEnd),this.setHandles(),this.enable()},c.setHandles=function(){let{handle:v}=this.options;typeof v=="string"?this.handles=this.element.querySelectorAll(v):typeof v=="object"&&v.length?this.handles=v:v instanceof HTMLElement?this.handles=[v]:this.handles=[this.element]};const u=["dragStart","dragMove","dragEnd"];let l=c.emitEvent;c.emitEvent=function(v,p){if(!this.isEnabled&&u.includes(v))return;l.call(this,v,p);let m=n.jQuery;if(!m||!this.$element)return;let g,_=p;p&&p[0]instanceof Event&&([g,..._]=p);let O=m.Event(g);O.type=v,this.$element.trigger(O,_)},c._getPosition=function(){let v=getComputedStyle(this.element),p=this._getPositionCoord(v.left,"width"),b=this._getPositionCoord(v.top,"height");this.position.x=isNaN(p)?0:p,this.position.y=isNaN(b)?0:b,this._addTransformPosition(v)},c._getPositionCoord=function(v,p){if(v.includes("%")){let b=t(this.element.parentNode);return b?parseFloat(v)/100*b[p]:0}return parseInt(v,10)},c._addTransformPosition=function(v){let p=v.transform;if(!p.startsWith("matrix"))return;let b=p.split(","),m=p.startsWith("matrix3d")?12:4,g=parseInt(b[m],10),_=parseInt(b[m+1],10);this.position.x+=g,this.position.y+=_},c.handlePointerDown=function(v,p){!this.isEnabled||(this.pointerDownPointer={pageX:p.pageX,pageY:p.pageY},v.preventDefault(),document.activeElement.blur(),this.bindActivePointerEvents(v),this.element.classList.add("is-pointer-down"))},c.handleDragStart=function(){!this.isEnabled||(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.animate())},c.measureContainment=function(){let v=this.getContainer();if(!v)return;let p=t(this.element),b=t(v),{borderLeftWidth:m,borderRightWidth:g,borderTopWidth:_,borderBottomWidth:y}=b,O=this.element.getBoundingClientRect(),N=v.getBoundingClientRect(),T=m+g,A=_+y,I=this.relativeStartPosition={x:O.left-(N.left+m),y:O.top-(N.top+_)};this.containSize={width:b.width-T-I.x-p.width,height:b.height-A-I.y-p.height}},c.getContainer=function(){let v=this.options.containment;return v?v instanceof HTMLElement?v:typeof v=="string"?document.querySelector(v):this.element.parentNode:void 0},c.handleDragMove=function(v,p,b){if(!this.isEnabled)return;let m=b.x,g=b.y,_=this.options.grid,y=_&&_[0],O=_&&_[1];m=s(m,y),g=s(g,O),m=this.containDrag("x",m,y),g=this.containDrag("y",g,O),m=this.options.axis=="y"?0:m,g=this.options.axis=="x"?0:g,this.position.x=this.startPosition.x+m,this.position.y=this.startPosition.y+g,this.dragPoint.x=m,this.dragPoint.y=g};function s(v,p,b){return p?(b=b||"round",Math[b](v/p)*p):v}c.containDrag=function(v,p,b){if(!this.options.containment)return p;let m=v=="x"?"width":"height",g=this.relativeStartPosition[v],_=s(-g,b,"ceil"),y=this.containSize[m];return y=s(y,b,"floor"),Math.max(_,Math.min(y,p))},c.handlePointerUp=function(){this.element.classList.remove("is-pointer-down")},c.handleDragEnd=function(){!this.isEnabled||(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"))},c.animate=function(){!this.isDragging||(this.positionDrag(),requestAnimationFrame(()=>this.animate()))},c.setLeftTop=function(){let{x:v,y:p}=this.position;this.element.style.left=`${v}px`,this.element.style.top=`${p}px`},c.positionDrag=function(){let{x:v,y:p}=this.dragPoint;this.element.style.transform=`translate3d(${v}px, ${p}px, 0)`},c.setPosition=function(v,p){this.position.x=v,this.position.y=p,this.setLeftTop()},c.enable=function(){this.isEnabled||(this.isEnabled=!0,this.bindHandles())},c.disable=function(){!this.isEnabled||(this.isEnabled=!1,this.isDragging&&this.dragEnd(),this.unbindHandles())};const d=["transform","left","top","position"];return c.destroy=function(){this.disable(),d.forEach(v=>{this.element.style[v]=""}),this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},c._init=i,a&&a.bridget&&a.bridget("draggabilly",f),f})})(Qi);var ys=Qi.exports,gs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{"append-to-body":"","custom-class":"drag-dialog drag-dialog--"+e.dgFlagId,top:e.top,title:e.title,visible:e.visible,width:e.width,"close-on-click-modal":e.closeOnClickModal,"before-close":e.beforeClose},on:{"~opened":function(t){return e.handleBindDragEvent(t)},close:e.handleClose},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[e.showBtn?n("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\u53D6\u6D88")]):e._e(),e.showBtn?n("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\u786E\u5B9A")]):e._e()])]},proxy:!0}],null,!0)},[e._t("default")],2)},bs=[],Yd="";const _s={name:"ComDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"},width:{type:String,default:"600px"},top:{type:String,default:"50px"},closeOnClickModal:{type:Boolean,default:!0},beforeClose:{type:Function,default(e){e()}},showBtn:{type:Boolean,default:!0}},data(){return{show:!1,dgFlagId:Math.ceil(Math.random()*1e3)}},methods:{handleClose(){this.$emit("close"),this.$emit("update:visible",!1)},handleConfirm(){this.$emit("confirm")},handleCancel(){this.$emit("cancel"),this.$emit("update:visible",!1)},handleBindDragEvent(){new ys(`.drag-dialog--${this.dgFlagId}`,{handle:".el-dialog__header"})}}},ro={};var Os=Ce(_s,gs,bs,!1,Es,"68b35a11",null,null);function Es(e){for(let r in ro)this[r]=ro[r]}var wn=function(){return Os.exports}();wn.install=e=>{e.component(wn.name,wn)};const io=wn,oo={"range-separator":"\u81F3","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4",size:"small"},Ss=gt(ye({},oo),{type:"datetimerange","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss",format:"yyyy-MM-dd HH:mm:ss",size:"small"}),ws=gt(ye({},oo),{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",size:"small"}),xs={input:{size:"small"},select:{size:"small",clearable:!0,placeholder:"\u8BF7\u9009\u62E9"},textarea:{placeholder:"\u8BF7\u8F93\u5165",size:"small",rows:4},"input-number":{"controls-position":"right",size:"small"},cascader:{size:"small",clearable:!0},daterange:ws,datetimerange:Ss,datetime:{type:"datetime","default-time":"00:00:00",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",size:"small"},date:{type:"date",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",size:"small"}};var As=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-checkcell"},e._l(e.rows,function(t,o){return n("div",{key:t,staticClass:"row"},[n("div",{staticClass:"cell"},[o?n("span",[e._v(e._s(t))]):n("div",{staticClass:"ui-checkcell--fast"},[n("el-button",{attrs:{type:"text",size:"small"},on:{click:e.checkAll}},[e._v("\u53CD\u9009")])],1)]),e._l(e.cols,function(i,a){return n("div",{key:i+t,staticClass:"cell"},[o?n("div",{staticClass:"ui-checkcell--item",class:{"ui-active":e.modelForm.includes(o+"_"+a)},on:{click:function(f){return e.handleCheck(o,a)}}},[n("span",{staticClass:"el-icon-check"})]):n("span",[e._v(e._s(i))])])})],2)}),0)},Ts=[],Zd="";const Cs={model:{prop:"model",event:"changes"},props:{model:{type:Array,default(){return[]}},cols:{type:Array,default(){return new Array(24).fill("").map((e,r)=>`${r}:00`)}},rows:{type:Array,default(){return["","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D","\u661F\u671F\u65E5"]}},disabled:{type:Boolean,default:!1}},data(){return{modelForm:this.model}},methods:{handleCheck(e,r){if(this.disabled)return;const n=`${e}_${r}`,t=this.modelForm.indexOf(n);t>-1?this.modelForm.splice(t,1):this.modelForm.push(n)},checkAll(){this.disabled||(this.modelForm=this.rows.reduce((e,r,n)=>(n&&this.cols.forEach((t,o)=>{this.modelForm.includes(`${n}_${o}`)||e.push(`${n}_${o}`)}),e),[]))}},watch:{modelForm(e){this.$emit("changes",e)},model(e){this.modelForm=e}}},ao={};var Ns=Ce(Cs,As,Ts,!1,Ps,"4cb7a998",null,null);function Ps(e){for(let r in ao)this[r]=ao[r]}var ks=function(){return Ns.exports}(),Is=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-form__item",class:"ui-form__item--"+e.type,style:e.staticStyle},[n("div",[e._t("label",[e.label?n("div",{staticClass:"ui-item__label"},[n("span",[e._v(e._s(e.label))])]):e._e()])],2),n("div",{staticClass:"ui-item__main",class:e.inlineLabel?"inline_form":""},[e.type==="input"||e.type=="password"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="autocomplete"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-autocomplete",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{"fetch-suggestions":e.handleAutoQuerySearch},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-autocomplete",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="select"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"remote-method":e.remoteMethod,"filter-method":e.checkFilterMethod,"popper-class":e.multiple?"ui-select__popper--"+e.itemFlag:""},on:{"visible-change":e.handleSetSelectOpeWidth},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),[e.multiple&&e.filterOptions.length?n("div",{staticClass:"ui-select__ope"},[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck(!0)}}},[e._v("\u5168\u9009")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSelectCheck()}}},[e._v("\u53CD\u9009")])],1):e._e(),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})})],2)],1)]:e.type==="bigselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{multiple:e.multiple,collapseTags:e.collapseTags,filterable:e.filterable,remote:e.remote,"reserve-keyword":e.reserveKeyword,"filter-method":e.bigFilterMethod},on:{"visible-change":e.visibleChange},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.bigOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="remoteselect"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-select",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{remote:"",filterable:"",loading:e.remoteLoading,"remote-method":e.remoteMethod,multiple:e.multiple,collapseTags:e.collapseTags,"reserve-keyword":e.reserveKeyword},scopedSlots:e._u([e._l(e.getComponentSlots(e.$slots),function(t,o){return{key:o,fn:function(){return[e._t(o)]},proxy:!0}})],null,!0),model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-select",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners),e._l(e.filterOptions,function(t,o){return n("el-option",{key:""+t.value+o,attrs:{value:t.value.toString(),label:t.label}})}),1)],1)]:e.type==="textarea"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.mprepend}},[e._t("mprepend")],2),n("el-input",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:"textarea"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input",e.setDefaultAttrs(e.polyfillAttrs(e.$attrs)),!1),e.$listeners))],1)]:e.type==="input-number"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-input-number",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-input-number",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="cascader"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-cascader",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{options:e.options,props:e.props,"filter-method":e.filterMethod,filterable:e.filterable,collapseTags:e.collapseTags},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-cascader",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[e._t("empty")],2)],1)]:e.type==="daterange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetimerange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="datetime"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="daterangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"date",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:e.type==="datetimerangesplit"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex",staticStyle:{"align-items":"baseline"}},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[0]:""}),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-date-picker",Object.assign({},e.setDefaultAttrs(e.$attrs),{type:"datetime",defaultTime:e.defaultTime?e.defaultTime[1]:""}),!1),e.$listeners))],1)]:["date","month"].includes(e.type)?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"flex"},[n("div",{class:{"ui-item-prepend":!!e.$slots.prepend}},[e._t("prepend")],2),n("el-date-picker",e._g(e._b({ref:e.type,class:{inline_content:e.inlineLabel},attrs:{type:e.type},model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-date-picker",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="inputrange"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("div",{staticClass:"ui-input__range",class:{inline_content:e.inlineLabel}},[e._t("prepend"),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[0],callback:function(t){e.$set(e.modelForm,0,t)},expression:"modelForm[0]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners)),n("span",{staticStyle:{color:"#dcdfe6"}},[e._v("-")]),n("el-input",e._g(e._b({staticStyle:{width:"50%"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleEnter(t)}},model:{value:e.modelForm[1],callback:function(t){e.$set(e.modelForm,1,t)},expression:"modelForm[1]"}},"el-input",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],2)]:e.type==="radio"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-radio-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-radio-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="tree"?[n("el-select",{ref:"TreeSelect",attrs:{filterable:"","filter-method":e.handleTreeFilter},model:{value:e.treeCheck.value,callback:function(t){e.$set(e.treeCheck,"value",t)},expression:"treeCheck.value"}},[n("el-option",{staticStyle:{display:"none"},attrs:{label:e.treeCheck.label,value:e.treeCheck.value}}),n("el-tree",e._g(e._b({ref:"Tree",attrs:{data:e.options,"filter-node-method":e.handleTreeFilterNode},on:{"node-click":e.handleTreeClick},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.node,i=t.data;return[n("span",{staticClass:"custom-tree-node",class:{active:i[e.props.value||"value"]==e.treeCheck.value}},[n("span",[e._v(e._s(o[e.props.label||"label"]))])])]}}])},"el-tree",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))],1)]:e.type==="checkbox"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-checkbox-group",e._g(e._b({model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"el-checkbox-group",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),e._l(e.selectOption,function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])}),1)]:e.type==="checkcell"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("check-cell",e._g(e._b({ref:"checkcell",model:{value:e.modelForm,callback:function(t){e.modelForm=t},expression:"modelForm"}},"check-cell",e.setDefaultAttrs(e.$attrs),!1),e.$listeners))]:e.type==="upload"?[e.inlineLabel?n("span",{staticClass:"inline_label",style:{width:e.labelWidth}},[e._v(e._s(e.inlineLabel))]):e._e(),n("el-upload",e._g(e._b({ref:"UploadRef",attrs:{action:"#","list-type":"picture-card","http-request":e.handleUploadReqeust,"file-list":e.uploadFileList,limit:1,"on-exceed":function(){return e.$message.warning("\u8D85\u51FA\u53EF\u4E0A\u4F20\u6570\u91CF\uFF0C\u8BF7\u5220\u9664\u540E\u518D\u8BD5\uFF01")}},scopedSlots:e._u([{key:"file",fn:function(t){var o=t.file;return n("div",{},[n("el-image",{ref:"UploadImage",attrs:{src:o.url,"preview-src-list":[o.url]}}),n("span",{staticClass:"el-upload-list__item-actions"},[n("span",{staticClass:"el-upload-list__item-preview",on:{click:function(i){return e.handleUploadOperation("zoom",o)}}},[n("i",{staticClass:"el-icon-zoom-in"})]),n("span",{staticClass:"el-upload-list__item-delete",on:{click:function(i){return e.handleUploadOperation("remove",o)}}},[n("i",{staticClass:"el-icon-delete"})])])],1)}}])},"el-upload",e.setDefaultAttrs(e.$attrs),!1),e.$listeners),[n("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})])]:e._e()],2)])},Ls=[],Qd="";const Rs={components:{CheckCell:ks},inheritAttrs:!1,name:"ComFormItem",model:{prop:"model",event:"changes"},props:{model:void 0,type:{type:String,default:"input"},label:{type:String,default:""},options:{type:[Object,Array],default(){return[]}},props:{type:Object,default(){return{value:"value",label:"label"}}},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},remote:{type:Boolean,default:!1},reserveKeyword:{type:Boolean,default:!1},remoteApi:{type:Function},remoteCreate:{type:Boolean,default:!0},remoteMethod:{type:Function,default(e){const r=this.$parent;r.remoteApi&&(r.remoteLoading=!0,r.remoteApi({keyword:e}).then(n=>{r.filterOptions=n.data,r.remoteLoading=!1}))}},inlineLabel:{type:String,default:""},labelWidth:{type:String,default:"120px"},minWidth:{type:[String,Number],default:""},filterMethod:{type:Function},defaultTime:[Array,String],optionLimit:{type:Number,default:150},uploadApi:{type:Function}},data(){let e=this.model;return["select","radio"].includes(this.type)&&(Array.isArray(this.model)?e=this.model.map(r=>r.toString()):(this.model||this.model===0)&&(e=this.model.toString())),{modelForm:e,bigOptions:[],staticOptions:[],itemFlag:Math.ceil(Math.random()*1e4),filterOptions:[],modifyTime:0,remoteLoading:!1,treeCheck:{label:"",value:""}}},computed:{uploadFileList(){return this.modelForm?[{url:this.modelForm}]:[]},staticStyle(){return ye({},this.minWidth?{minWidth:`${parseFloat(this.minWidth)}px`}:{})},selectOption(){let e=[];if(Array.isArray(this.options)&&this.options.length&&this.options[0][this.props.label]===void 0){const{label:r,value:n}=this.props;e=this.options.map((t,o)=>{const i={label:t,value:o};return{label:i[r],value:Number.isFinite(Number(i[n]))?i[n].toString():i[n]}})}else if(!Array.isArray(this.options))e=Object.entries(this.options).map(([r,n])=>({label:n,value:Number.isFinite(Number(r))?r.toString():r}));else{let r=[];r.push(...this.options),e=r.map(n=>({label:n[this.props.label],value:Number.isFinite(Number(n[this.props.value]))?n[this.props.value].toString():n[this.props.value]}))}return e}},created(){this.bigOptions=this.selectOption.slice(0,this.optionLimit);const e=this.selectOption.findIndex(r=>r.value==this.modelForm);e>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[e]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm)})),this.filterOptions=this.selectOption.slice(0),this.remoteCreate&&this.type=="remoteselect"&&this.remoteMethod()},methods:{handleUploadOperation(e,r){switch(e){case"zoom":this.$refs.UploadImage.clickHandler();break;case"remove":this.modelForm="",this.$refs.UploadRef.clearFiles();break}},handleUploadReqeust(e){if(!this.uploadApi)return this.$message.warning("\u7F3A\u5C11\u4E0A\u4F20API\uFF01");this.uploadApi(e).then(r=>{this.modelForm=r})},handleAutoQuerySearch(e,r){const n=e?this.selectOption.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):this.selectOption;r(n.map(t=>({label:t.label,value:t.label})))},bigFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1).slice(0,this.optionLimit):n=JSON.parse(JSON.stringify(this.selectOption.slice(0,this.optionLimit))),this.bigOptions=n},visibleChange(e){if(!e)this.bigFilterMethod("");else{const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&!this.bigOptions.find(n=>n.value==this.modelForm)&&this.bigOptions.unshift(this.selectOption[r])}},getComponentSlots(e){const r=["label"],n={};return Object.entries(e).forEach(([t,o])=>{r.includes(t)||(n[t]=o)}),n},getCurrentInstance(){return this.$refs[this.type]},polyfillAttrs(e){return gt(ye({},e),{disabled:e.readonly||e.disabled})},getformItemConfig(){if(!this.$UICONFIG)return{};const{formItemConfig:e}=this.$UICONFIG;return e||{}},setDefaultAttrs(e){const{type:r}=this,t=this.getformItemConfig()[r]||xs[r]||{};return ye(ye({},t),e)},handleEnter(){const e=this.$parent.$refs.Search?this.$parent:this.$parent.$parent.$refs.Search?this.$parent.$parent:null;e&&e.handleQuery()},async handleSetSelectOpeWidth(e){if(!e){this.filterOptions=JSON.parse(JSON.stringify(this.selectOption));return}await this.$nextTick();const r=document.querySelector(`.ui-select__popper--${this.itemFlag}`),n=r&&r.querySelector(".ui-select__ope");n&&(n.style.width=`${r.offsetWidth-2}px`)},handleSelectCheck(e){e?(this.modelForm=this.filterOptions.map(r=>r.value),this.$emit("change",this.modelForm)):(this.modelForm=this.filterOptions.reduce((r,n)=>this.modelForm.includes(n.value)?r:[...r,n.value],[]),this.$emit("change",this.modelForm))},checkFilterMethod(e){const r=new Date().getTime()-this.modifyTime;if(!e&&r<50)return;let n=[];e?n=this.selectOption.filter(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1):n=JSON.parse(JSON.stringify(this.selectOption)),this.filterOptions=n},handleTreeClick(e,r){if(r.isLeaf){const{value:n="value"}=this.props;this.modelForm=e[n],this.treeCheck=gt(ye({},e),{value:e[n]}),console.log(this.treeCheck,"this.treeCheck"),this.$refs.TreeSelect.blur()}},handleTreeFilter(e){console.log(e,"value"),console.log(this.$refs.Tree),this.$refs.Tree.filter(e)},handleTreeFilterNode(e,r){return e?r.label.toLowerCase().indexOf(e.toLowerCase())!==-1:!0}},watch:{modelForm(e){this.modifyTime=new Date().getTime(),this.$emit("changes",e)},model(e){let r=e;["select","radio"].includes(this.type)&&!this.multiple&&(e||e===0)&&(r=e.toString()),this.modelForm=r},selectOption(e){this.bigOptions=e.slice(0,this.optionLimit);const r=this.selectOption.findIndex(n=>n.value==this.modelForm);r>=this.optionLimit&&(this.bigOptions.unshift(this.selectOption[r]),this.$nextTick().then(()=>{this.modelForm.splice(0,this.modelForm.length,...this.modelForm)})),this.filterOptions=e.slice(0)}}},lo={};var Ds=Ce(Rs,Is,Ls,!1,$s,"56a4eea9",null,null);function $s(e){for(let r in lo)this[r]=lo[r]}var xn=function(){return Ds.exports}();xn.install=e=>{e.component(xn.name,xn)};const so=xn;var Ms=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[e._l(e.showItems,function(t,o){return[n(t.constructor,e._g(e._b({directives:[{name:"permit",rawName:"v-permit",value:{value:t.$attrs.permit||"break"},expression:"{ value: item.$attrs.permit || 'break' }"}],tag:"component",attrs:{size:"mini","btn-type":"mock",type:t.type=="text"?"primary":t.type,icon:t.icon}},"component",e.$attrs,!1),t.$listeners),[e._v(" "+e._s(t.$slots.default[0].text)+" ")])]})],2)},Fs=[],eh="";const js={props:{showItems:{type:Array,default(){return[]}}},created(){setTimeout(()=>{console.log(this.showItems)},1e3)}},uo={};var Bs=Ce(js,Ms,Fs,!1,qs,"c24a1f4c",null,null);function qs(e){for(let r in uo)this[r]=uo[r]}var Us=function(){return Bs.exports}(),Hs=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-operation"},[e._t("default")],2)},zs=[],th="";const Ws={name:"ComOperation",components:{Items:Us},prop:{type:String,default:"main"},data(){return{isInit:!1,listItems:[]}},computed:{showItems(){return this.listItems.filter(e=>e.$options._componentTag=="el-button")}},mounted(){this.listItems=this.$children},watch:{listItems(e){e.length&&(this.isInit=!0)}}},fo={};var Gs=Ce(Ws,Hs,zs,!1,Vs,"3592f4b8",null,null);function Vs(e){for(let r in fo)this[r]=fo[r]}var An=function(){return Gs.exports}();An.install=e=>{e.component(An.name,An)};const co=An;var ho={exports:{}};/**!
19
19
  * Sortable 1.10.2
20
20
  * @author RubaXa <trash@rubaxa.org>
21
21
  * @author owenm <owen23355@gmail.com>
22
22
  * @license MIT
23
- */function Tn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(r){return typeof r}:Tn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function Ks(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ge(){return Ge=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},Ge.apply(this,arguments)}function ut(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){Ks(e,o,n[o])})}return e}function Ys(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Xs(e,r){if(e==null)return{};var n=Ys(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function Js(e){return Zs(e)||Qs(e)||eu()}function Zs(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function Qs(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function eu(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var tu="1.10.2";function it(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var ot=it(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ht=it(/Edge/i),po=it(/firefox/i),br=it(/safari/i)&&!it(/chrome/i)&&!it(/android/i),vo=it(/iP(ad|od|hone)/i),nu=it(/chrome/i)&&it(/android/i),mo={capture:!1,passive:!1};function ce(e,r,n){e.addEventListener(r,n,!ot&&mo)}function le(e,r,n){e.removeEventListener(r,n,!ot&&mo)}function Cn(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function ru(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ye(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&Cn(e,r):Cn(e,r))||t&&e===n)return e;if(e===n)break}while(e=ru(e))}return null}var yo=/\s+/g;function ge(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(yo," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(yo," ")}}function te(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function bt(e,r){var n="";if(typeof e=="string")n=e;else do{var t=te(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function go(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function et(){var e=document.scrollingElement;return e||document.documentElement}function Oe(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,f,c,h,u,l;if(e!==window&&e!==et()?(i=e.getBoundingClientRect(),a=i.top,f=i.left,c=i.bottom,h=i.right,u=i.height,l=i.width):(a=0,f=0,c=window.innerHeight,h=window.innerWidth,u=window.innerHeight,l=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(te(o,"transform")!=="none"||n&&te(o,"position")!=="static")){var s=o.getBoundingClientRect();a-=s.top+parseInt(te(o,"border-top-width")),f-=s.left+parseInt(te(o,"border-left-width")),c=a+i.height,h=f+i.width;break}while(o=o.parentNode);if(t&&e!==window){var d=bt(o||e),v=d&&d.a,p=d&&d.d;d&&(a/=p,f/=v,l/=v,u/=p,c=a+u,h=f+l)}return{top:a,left:f,bottom:c,right:h,width:l,height:u}}}function bo(e,r,n){for(var t=ft(e,!0),o=Oe(e)[r];t;){var i=Oe(t)[n],a=void 0;if(n==="top"||n==="left"?a=o>=i:a=o<=i,!a)return t;if(t===et())break;t=ft(t,!1)}return!1}function Nn(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==ne.ghost&&i[o]!==ne.dragged&&Ye(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function _r(e,r){for(var n=e.lastElementChild;n&&(n===ne.ghost||te(n,"display")==="none"||r&&!Cn(n,r));)n=n.previousElementSibling;return n||null}function Ee(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ne.clone&&(!r||Cn(e,r))&&n++;return n}function _o(e){var r=0,n=0,t=et();if(e)do{var o=bt(e),i=o.a,a=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==t&&(e=e.parentNode));return[r,n]}function iu(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function ft(e,r){if(!e||!e.getBoundingClientRect)return et();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=te(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return et();if(t||r)return n;t=!0}}while(n=n.parentNode);return et()}function ou(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Or(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var zt;function Oo(e,r){return function(){if(!zt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),zt=setTimeout(function(){zt=void 0},r)}}}function au(){clearTimeout(zt),zt=void 0}function Eo(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function Er(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function So(e,r){te(e,"position","absolute"),te(e,"top",r.top),te(e,"left",r.left),te(e,"width",r.width),te(e,"height",r.height)}function Sr(e){te(e,"position",""),te(e,"top",""),te(e,"left",""),te(e,"width",""),te(e,"height","")}var Re="Sortable"+new Date().getTime();function lu(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(te(o,"display")==="none"||o===ne.ghost)){e.push({target:o,rect:Oe(o)});var i=ut({},e[e.length-1].rect);if(o.thisAnimationDuration){var a=bt(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(iu(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,a=0;e.forEach(function(f){var c=0,h=f.target,u=h.fromRect,l=Oe(h),s=h.prevFromRect,d=h.prevToRect,v=f.rect,p=bt(h,!0);p&&(l.top-=p.f,l.left-=p.e),h.toRect=l,h.thisAnimationDuration&&Or(s,l)&&!Or(u,l)&&(v.top-l.top)/(v.left-l.left)==(u.top-l.top)/(u.left-l.left)&&(c=uu(v,s,d,o.options)),Or(l,u)||(h.prevFromRect=u,h.prevToRect=l,c||(c=o.options.animation),o.animate(h,v,l,c)),c&&(i=!0,a=Math.max(a,c),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},c),h.thisAnimationDuration=c)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,a){if(a){te(t,"transition",""),te(t,"transform","");var f=bt(this.el),c=f&&f.a,h=f&&f.d,u=(o.left-i.left)/(c||1),l=(o.top-i.top)/(h||1);t.animatingX=!!u,t.animatingY=!!l,te(t,"transform","translate3d("+u+"px,"+l+"px,0)"),su(t),te(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),te(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){te(t,"transition",""),te(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function su(e){return e.offsetWidth}function uu(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Wt=[],wr={initializeByDefault:!0},Gt={mount:function(r){for(var n in wr)wr.hasOwnProperty(n)&&!(n in r)&&(r[n]=wr[n]);Wt.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Wt.forEach(function(a){!n[a.pluginName]||(n[a.pluginName][i]&&n[a.pluginName][i](ut({sortable:n},t)),n.options[a.pluginName]&&n[a.pluginName][r]&&n[a.pluginName][r](ut({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Wt.forEach(function(f){var c=f.pluginName;if(!(!r.options[c]&&!f.initializeByDefault)){var h=new f(r,n,r.options);h.sortable=r,h.options=r.options,r[c]=h,Ge(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var a=this.modifyOption(r,i,r.options[i]);typeof a!="undefined"&&(r.options[i]=a)}},getEventProperties:function(r,n){var t={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&Ge(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Wt.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Vt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,f=e.fromEl,c=e.oldIndex,h=e.newIndex,u=e.oldDraggableIndex,l=e.newDraggableIndex,s=e.originalEvent,d=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[Re],!!r){var p,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ot&&!Ht?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||n,p.from=f||n,p.item=o||n,p.clone=i,p.oldIndex=c,p.newIndex=h,p.oldDraggableIndex=u,p.newDraggableIndex=l,p.originalEvent=s,p.pullMode=d?d.lastPutMode:void 0;var g=ut({},v,Gt.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[m]&&b[m].call(r,p)}}var Be=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Xs(t,["evt"]);Gt.pluginEvent.bind(ne)(r,n,ut({dragEl:J,parentEl:xe,ghostEl:oe,rootEl:be,nextEl:_t,lastDownEl:Pn,cloneEl:Se,cloneHidden:ct,dragStarted:Yt,putSortable:Ie,activeSortable:ne.active,originalEvent:o,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt,hideGhostForTarget:Po,unhideGhostForTarget:ko,cloneNowHidden:function(){ct=!0},cloneNowShown:function(){ct=!1},dispatchSortableEvent:function(f){Fe({sortable:n,name:f,originalEvent:o})}},i))};function Fe(e){Vt(ut({putSortable:Ie,cloneEl:Se,targetEl:J,rootEl:be,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt},e))}var J,xe,oe,be,_t,Pn,Se,ct,Tt,Ue,Kt,dt,kn,Ie,Ct=!1,In=!1,Ln=[],Ot,Xe,xr,Ar,wo,xo,Yt,Nt,Xt,Jt=!1,Dn=!1,Rn,$e,Tr=[],Cr=!1,$n=[],Mn=typeof document!="undefined",Fn=vo,Ao=Ht||ot?"cssFloat":"float",fu=Mn&&!nu&&!vo&&"draggable"in document.createElement("div"),To=function(){if(!!Mn){if(ot)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Co=function(r,n){var t=te(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Nn(r,0,n),a=Nn(r,1,n),f=i&&te(i),c=a&&te(a),h=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Oe(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Oe(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&f.float&&f.float!=="none"){var l=f.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||h>=o&&t[Ao]==="none"||a&&t[Ao]==="none"&&h+u>o)?"vertical":"horizontal"},cu=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,a=t?r.width:r.height,f=t?n.left:n.top,c=t?n.right:n.bottom,h=t?n.width:n.height;return o===f||i===c||o+a/2===f+h/2},du=function(r,n){var t;return Ln.some(function(o){if(!_r(o)){var i=Oe(o),a=o[Re].options.emptyInsertThreshold,f=r>=i.left-a&&r<=i.right+a,c=n>=i.top-a&&n<=i.bottom+a;if(a&&f&&c)return t=o}}),t},No=function(r){function n(i,a){return function(f,c,h,u){var l=f.options.group.name&&c.options.group.name&&f.options.group.name===c.options.group.name;if(i==null&&(a||l))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(f,c,h,u),a)(f,c,h,u);var s=(a?f:c).options.group.name;return i===!0||typeof i=="string"&&i===s||i.join&&i.indexOf(s)>-1}}var t={},o=r.group;(!o||Tn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},Po=function(){!To&&oe&&te(oe,"display","none")},ko=function(){!To&&oe&&te(oe,"display","")};Mn&&document.addEventListener("click",function(e){if(In)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),In=!1,!1},!0);var Et=function(r){if(J){r=r.touches?r.touches[0]:r;var n=du(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[Re]._onDragOver(t)}}},hu=function(r){J&&J.parentNode[Re]._isOutsideThisEl(r.target)};function ne(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Ge({},r),e[Re]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Co(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,f){a.setData("Text",f.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ne.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Gt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);No(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:fu,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ce(e,"pointerdown",this._onTapStart):(ce(e,"mousedown",this._onTapStart),ce(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ce(e,"dragover",this),ce(e,"dragenter",this)),Ln.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ge(this,lu())}ne.prototype={constructor:ne,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Nt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,J):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,a=r.type,f=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(f||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,u=o.filter;if(_u(t),!J&&!(/mousedown|pointerdown/.test(a)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(c=Ye(c,o.draggable,t,!1),!(c&&c.animated)&&Pn!==c)){if(Tt=Ee(c),Kt=Ee(c,o.draggable),typeof u=="function"){if(u.call(this,r,c,this)){Fe({sortable:n,rootEl:h,name:"filter",targetEl:c,toEl:t,fromEl:t}),Be("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(u&&(u=u.split(",").some(function(l){if(l=Ye(h,l.trim(),t,!1),l)return Fe({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),Be("filter",n,{evt:r}),!0}),u)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!Ye(h,o.handle,t,!1)||this._prepareDragStart(r,f,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,a=o.options,f=i.ownerDocument,c;if(t&&!J&&t.parentNode===i){var h=Oe(t);if(be=i,J=t,xe=J.parentNode,_t=J.nextSibling,Pn=t,kn=a.group,ne.dragged=J,Ot={target:J,clientX:(n||r).clientX,clientY:(n||r).clientY},wo=Ot.clientX-h.left,xo=Ot.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,J.style["will-change"]="all",c=function(){if(Be("delayEnded",o,{evt:r}),ne.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!po&&o.nativeDraggable&&(J.draggable=!0),o._triggerDragStart(r,n),Fe({sortable:o,name:"choose",originalEvent:r}),ge(J,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){go(J,u.trim(),Pr)}),ce(f,"dragover",Et),ce(f,"mousemove",Et),ce(f,"touchmove",Et),ce(f,"mouseup",o._onDrop),ce(f,"touchend",o._onDrop),ce(f,"touchcancel",o._onDrop),po&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),Be("delayStart",this,{evt:r}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ht||ot))){if(ne.eventCanceled){this._onDrop();return}ce(f,"mouseup",o._disableDelayedDrag),ce(f,"touchend",o._disableDelayedDrag),ce(f,"touchcancel",o._disableDelayedDrag),ce(f,"mousemove",o._delayedDragTouchMoveHandler),ce(f,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&ce(f,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&Pr(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._disableDelayedDrag),le(r,"touchend",this._disableDelayedDrag),le(r,"touchcancel",this._disableDelayedDrag),le(r,"mousemove",this._delayedDragTouchMoveHandler),le(r,"touchmove",this._delayedDragTouchMoveHandler),le(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?ce(document,"pointermove",this._onTouchMove):n?ce(document,"touchmove",this._onTouchMove):ce(document,"mousemove",this._onTouchMove):(ce(J,"dragend",this),ce(be,"dragstart",this._onDragStart));try{document.selection?jn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(Ct=!1,be&&J){Be("dragStarted",this,{evt:n}),this.nativeDraggable&&ce(document,"dragover",hu);var t=this.options;!r&&ge(J,t.dragClass,!1),ge(J,t.ghostClass,!0),ne.active=this,r&&this._appendGhost(),Fe({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Xe){this._lastX=Xe.clientX,this._lastY=Xe.clientY,Po();for(var r=document.elementFromPoint(Xe.clientX,Xe.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Xe.clientX,Xe.clientY),r!==n);)n=r;if(J.parentNode[Re]._isOutsideThisEl(r),n)do{if(n[Re]){var t=void 0;if(t=n[Re]._onDragOver({clientX:Xe.clientX,clientY:Xe.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);ko()}},_onTouchMove:function(r){if(Ot){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,a=oe&&bt(oe,!0),f=oe&&a&&a.a,c=oe&&a&&a.d,h=Fn&&$e&&_o($e),u=(i.clientX-Ot.clientX+o.x)/(f||1)+(h?h[0]-Tr[0]:0)/(f||1),l=(i.clientY-Ot.clientY+o.y)/(c||1)+(h?h[1]-Tr[1]:0)/(c||1);if(!ne.active&&!Ct){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(oe){a?(a.e+=u-(xr||0),a.f+=l-(Ar||0)):a={a:1,b:0,c:0,d:1,e:u,f:l};var s="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");te(oe,"webkitTransform",s),te(oe,"mozTransform",s),te(oe,"msTransform",s),te(oe,"transform",s),xr=u,Ar=l,Xe=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!oe){var r=this.options.fallbackOnBody?document.body:be,n=Oe(J,!0,Fn,!0,r),t=this.options;if(Fn){for($e=r;te($e,"position")==="static"&&te($e,"transform")==="none"&&$e!==document;)$e=$e.parentNode;$e!==document.body&&$e!==document.documentElement?($e===document&&($e=et()),n.top+=$e.scrollTop,n.left+=$e.scrollLeft):$e=et(),Tr=_o($e)}oe=J.cloneNode(!0),ge(oe,t.ghostClass,!1),ge(oe,t.fallbackClass,!0),ge(oe,t.dragClass,!0),te(oe,"transition",""),te(oe,"transform",""),te(oe,"box-sizing","border-box"),te(oe,"margin",0),te(oe,"top",n.top),te(oe,"left",n.left),te(oe,"width",n.width),te(oe,"height",n.height),te(oe,"opacity","0.8"),te(oe,"position",Fn?"absolute":"fixed"),te(oe,"zIndex","100000"),te(oe,"pointerEvents","none"),ne.ghost=oe,r.appendChild(oe),te(oe,"transform-origin",wo/parseInt(oe.style.width)*100+"% "+xo/parseInt(oe.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Be("dragStart",this,{evt:r}),ne.eventCanceled){this._onDrop();return}Be("setupClone",this),ne.eventCanceled||(Se=Er(J),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),ge(Se,this.options.chosenClass,!1),ne.clone=Se),t.cloneId=jn(function(){Be("clone",t),!ne.eventCanceled&&(t.options.removeCloneOnHide||be.insertBefore(Se,J),t._hideClone(),Fe({sortable:t,name:"clone"}))}),!n&&ge(J,i.dragClass,!0),n?(In=!0,t._loopId=setInterval(t._emulateDragOver,50)):(le(document,"mouseup",t._onDrop),le(document,"touchend",t._onDrop),le(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,J)),ce(document,"drop",t),te(J,"transform","translateZ(0)")),Ct=!0,t._dragStartId=jn(t._dragStarted.bind(t,n,r)),ce(document,"selectstart",t),Yt=!0,br&&te(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,a,f=this.options,c=f.group,h=ne.active,u=kn===c,l=f.sort,s=Ie||h,d,v=this,p=!1;if(Cr)return;function b(U,V){Be(U,v,ut({evt:r,isOwner:u,axis:d?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:l,fromSortable:s,target:t,completed:g,onMove:function($,S){return Nr(be,n,J,o,$,Oe($),r,S)},changed:_},V))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==s&&s.captureAnimationState()}function g(U){return b("dragOverCompleted",{insertion:U}),U&&(u?h._hideClone():h._showClone(v),v!==s&&(ge(J,Ie?Ie.options.ghostClass:h.options.ghostClass,!1),ge(J,f.ghostClass,!0)),Ie!==v&&v!==ne.active?Ie=v:v===ne.active&&Ie&&(Ie=null),s===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(t===J&&!J.animated||t===n&&!t.animated)&&(Nt=null),!f.dragoverBubble&&!r.rootEl&&t!==document&&(J.parentNode[Re]._isOutsideThisEl(r.target),!U&&Et(r)),!f.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){Ue=Ee(J),dt=Ee(J,f.draggable),Fe({sortable:v,name:"change",toEl:n,newIndex:Ue,newDraggableIndex:dt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=Ye(t,f.draggable,n,!0),b("dragOver"),ne.eventCanceled)return p;if(J.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return g(!1);if(In=!1,h&&!f.disabled&&(u?l||(a=!be.contains(J)):Ie===this||(this.lastPutMode=kn.checkPull(this,h,J,r))&&c.checkPut(this,h,J,r))){if(d=this._getDirection(r,t)==="vertical",o=Oe(J),b("dragOverValid"),ne.eventCanceled)return p;if(a)return xe=be,m(),this._hideClone(),b("revert"),ne.eventCanceled||(_t?be.insertBefore(J,_t):be.appendChild(J)),g(!0);var y=_r(n,f.draggable);if(!y||mu(r,d,this)&&!y.animated){if(y===J)return g(!1);if(y&&n===r.target&&(t=y),t&&(i=Oe(t)),Nr(be,n,J,o,t,i,r,!!t)!==!1)return m(),n.appendChild(J),xe=n,_(),g(!0)}else if(t.parentNode===n){i=Oe(t);var O=0,N,T=J.parentNode!==n,A=!cu(J.animated&&J.toRect||o,t.animated&&t.toRect||i,d),I=d?"top":"left",w=bo(t,"top","top")||bo(J,"top","top"),E=w?w.scrollTop:void 0;Nt!==t&&(N=i[I],Jt=!1,Dn=!A&&f.invertSwap||T),O=yu(r,t,i,d,A?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Dn,Nt===t);var x;if(O!==0){var P=Ee(J);do P-=O,x=xe.children[P];while(x&&(te(x,"display")==="none"||x===oe))}if(O===0||x===t)return g(!1);Nt=t,Xt=O;var D=t.nextElementSibling,R=!1;R=O===1;var B=Nr(be,n,J,o,t,i,r,R);if(B!==!1)return(B===1||B===-1)&&(R=B===1),Cr=!0,setTimeout(vu,30),m(),R&&!D?n.appendChild(J):t.parentNode.insertBefore(J,R?D:t),w&&Eo(w,0,E-w.scrollTop),xe=J.parentNode,N!==void 0&&!Dn&&(Rn=Math.abs(N-Oe(t)[I])),_(),g(!0)}if(n.contains(J))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){le(document,"mousemove",this._onTouchMove),le(document,"touchmove",this._onTouchMove),le(document,"pointermove",this._onTouchMove),le(document,"dragover",Et),le(document,"mousemove",Et),le(document,"touchmove",Et)},_offUpEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._onDrop),le(r,"touchend",this._onDrop),le(r,"pointerup",this._onDrop),le(r,"touchcancel",this._onDrop),le(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(Ue=Ee(J),dt=Ee(J,t.draggable),Be("drop",this,{evt:r}),xe=J&&J.parentNode,Ue=Ee(J),dt=Ee(J,t.draggable),ne.eventCanceled){this._nulling();return}Ct=!1,Dn=!1,Jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kr(this.cloneId),kr(this._dragStartId),this.nativeDraggable&&(le(document,"drop",this),le(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),br&&te(document.body,"user-select",""),te(J,"transform",""),r&&(Yt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),(be===xe||Ie&&Ie.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),J&&(this.nativeDraggable&&le(J,"dragend",this),Pr(J),J.style["will-change"]="",Yt&&!Ct&&ge(J,Ie?Ie.options.ghostClass:this.options.ghostClass,!1),ge(J,this.options.chosenClass,!1),Fe({sortable:this,name:"unchoose",toEl:xe,newIndex:null,newDraggableIndex:null,originalEvent:r}),be!==xe?(Ue>=0&&(Fe({rootEl:xe,name:"add",toEl:xe,fromEl:be,originalEvent:r}),Fe({sortable:this,name:"remove",toEl:xe,originalEvent:r}),Fe({rootEl:xe,name:"sort",toEl:xe,fromEl:be,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),Ie&&Ie.save()):Ue!==Tt&&Ue>=0&&(Fe({sortable:this,name:"update",toEl:xe,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),ne.active&&((Ue==null||Ue===-1)&&(Ue=Tt,dt=Kt),Fe({sortable:this,name:"end",toEl:xe,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Be("nulling",this),be=J=xe=oe=_t=Se=Pn=ct=Ot=Xe=Yt=Ue=dt=Tt=Kt=Nt=Xt=Ie=kn=ne.dragged=ne.ghost=ne.clone=ne.active=null,$n.forEach(function(r){r.checked=!0}),$n.length=xr=Ar=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":J&&(this._onDragOver(r),pu(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,a=this.options;o<i;o++)n=t[o],Ye(n,a.draggable,this.el,!1)&&r.push(n.getAttribute(a.dataIdAttr)||bu(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var a=t.children[i];Ye(a,this.options.draggable,t,!1)&&(n[o]=a)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return Ye(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Gt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&No(t)},destroy:function(){Be("destroy",this);var r=this.el;r[Re]=null,le(r,"mousedown",this._onTapStart),le(r,"touchstart",this._onTapStart),le(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(le(r,"dragover",this),le(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ln.splice(Ln.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!ct){if(Be("hideClone",this),ne.eventCanceled)return;te(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),ct=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(ct){if(Be("showClone",this),ne.eventCanceled)return;be.contains(J)&&!this.options.group.revertClone?be.insertBefore(Se,J):_t?be.insertBefore(Se,_t):be.appendChild(Se),this.options.group.revertClone&&this.animate(J,Se),te(Se,"display",""),ct=!1}}};function pu(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Nr(e,r,n,t,o,i,a,f){var c,h=e[Re],u=h.options.onMove,l;return window.CustomEvent&&!ot&&!Ht?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||Oe(r),c.willInsertAfter=f,c.originalEvent=a,e.dispatchEvent(c),u&&(l=u.call(h,c,a)),l}function Pr(e){e.draggable=!1}function vu(){Cr=!1}function mu(e,r,n){var t=Oe(_r(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function yu(e,r,n,t,o,i,a,f){var c=t?e.clientY:e.clientX,h=t?n.height:n.width,u=t?n.top:n.left,l=t?n.bottom:n.right,s=!1;if(!a){if(f&&Rn<h*o){if(!Jt&&(Xt===1?c>u+h*i/2:c<l-h*i/2)&&(Jt=!0),Jt)s=!0;else if(Xt===1?c<u+Rn:c>l-Rn)return-Xt}else if(c>u+h*(1-o)/2&&c<l-h*(1-o)/2)return gu(r)}return s=s||a,s&&(c<u+h*i/2||c>l-h*i/2)?c>u+h/2?1:-1:0}function gu(e){return Ee(J)<Ee(e)?1:-1}function bu(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function _u(e){$n.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&$n.push(t)}}function jn(e){return setTimeout(e,0)}function kr(e){return clearTimeout(e)}Mn&&ce(document,"touchmove",function(e){(ne.active||Ct)&&e.cancelable&&e.preventDefault()}),ne.utils={on:ce,off:le,css:te,find:go,is:function(r,n){return!!Ye(r,n,r,!1)},extend:ou,throttle:Oo,closest:Ye,toggleClass:ge,clone:Er,index:Ee,nextTick:jn,cancelNextTick:kr,detectDirection:Co,getChild:Nn},ne.get=function(e){return e[Re]},ne.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(ne.utils=ut({},ne.utils,t.utils)),Gt.mount(t)})},ne.create=function(e,r){return new ne(e,r)},ne.version=tu;var Ae=[],Zt,Ir,Lr=!1,Dr,Rr,Bn,Qt;function Ou(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?ce(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ce(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ce(document,"touchmove",this._handleFallbackAutoScroll):ce(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?le(document,"dragover",this._handleAutoScroll):(le(document,"pointermove",this._handleFallbackAutoScroll),le(document,"touchmove",this._handleFallbackAutoScroll),le(document,"mousemove",this._handleFallbackAutoScroll)),Io(),qn(),au()},nulling:function(){Bn=Ir=Zt=Lr=Qt=Dr=Rr=null,Ae.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,f=document.elementFromPoint(i,a);if(Bn=n,t||Ht||ot||br){$r(n,this.options,f,t);var c=ft(f,!0);Lr&&(!Qt||i!==Dr||a!==Rr)&&(Qt&&Io(),Qt=setInterval(function(){var h=ft(document.elementFromPoint(i,a),!0);h!==c&&(c=h,qn()),$r(n,o.options,h,t)},10),Dr=i,Rr=a)}else{if(!this.options.bubbleScroll||ft(f,!0)===et()){qn();return}$r(n,this.options,ft(f,!1),!1)}}},Ge(e,{pluginName:"scroll",initializeByDefault:!0})}function qn(){Ae.forEach(function(e){clearInterval(e.pid)}),Ae=[]}function Io(){clearInterval(Qt)}var $r=Oo(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=r.scrollSensitivity,f=r.scrollSpeed,c=et(),h=!1,u;Ir!==n&&(Ir=n,qn(),Zt=r.scroll,u=r.scrollFn,Zt===!0&&(Zt=ft(n,!0)));var l=0,s=Zt;do{var d=s,v=Oe(d),p=v.top,b=v.bottom,m=v.left,g=v.right,_=v.width,y=v.height,O=void 0,N=void 0,T=d.scrollWidth,A=d.scrollHeight,I=te(d),w=d.scrollLeft,E=d.scrollTop;d===c?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var x=O&&(Math.abs(g-o)<=a&&w+_<T)-(Math.abs(m-o)<=a&&!!w),P=N&&(Math.abs(b-i)<=a&&E+y<A)-(Math.abs(p-i)<=a&&!!E);if(!Ae[l])for(var D=0;D<=l;D++)Ae[D]||(Ae[D]={});(Ae[l].vx!=x||Ae[l].vy!=P||Ae[l].el!==d)&&(Ae[l].el=d,Ae[l].vx=x,Ae[l].vy=P,clearInterval(Ae[l].pid),(x!=0||P!=0)&&(h=!0,Ae[l].pid=setInterval(function(){t&&this.layer===0&&ne.active._onTouchMove(Bn);var R=Ae[this.layer].vy?Ae[this.layer].vy*f:0,B=Ae[this.layer].vx?Ae[this.layer].vx*f:0;typeof u=="function"&&u.call(ne.dragged.parentNode[Re],B,R,e,Bn,Ae[this.layer].el)!=="continue"||Eo(Ae[this.layer].el,B,R)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&s!==c&&(s=ft(s,!1)));Lr=h}},30),Lo=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,a=r.dispatchSortableEvent,f=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var h=t||i;f();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(u.clientX,u.clientY);c(),h&&!h.el.contains(l)&&(a("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function Mr(){}Mr.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=Nn(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Lo},Ge(Mr,{pluginName:"revertOnSpill"});function Fr(){}Fr.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Lo},Ge(Fr,{pluginName:"removeOnSpill"});var Ve;function Eu(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;Ve=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,a=n.activeSortable,f=n.changed,c=n.cancel;if(!!a.options.swap){var h=this.sortable.el,u=this.options;if(o&&o!==h){var l=Ve;i(o)!==!1?(ge(o,u.swapClass,!0),Ve=o):Ve=null,l&&l!==Ve&&ge(l,u.swapClass,!1)}f(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,a=o||this.sortable,f=this.options;Ve&&ge(Ve,f.swapClass,!1),Ve&&(f.swap||o&&o.options.swap)&&i!==Ve&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),Su(i,Ve),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){Ve=null}},Ge(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ve}}})}function Su(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=Ee(e),i=Ee(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var ie=[],He=[],en,Je,tn=!1,ze=!1,Pt=!1,me,nn,Un;function wu(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?ce(document,"pointerup",this._deselectMultiDrag):(ce(document,"mouseup",this._deselectMultiDrag),ce(document,"touchend",this._deselectMultiDrag)),ce(document,"keydown",this._checkKeyDown),ce(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var a="";ie.length&&Je===r?ie.forEach(function(f,c){a+=(c?", ":"")+f.textContent}):a=i.textContent,o.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;me=t},delayEnded:function(){this.isMultiDrag=~ie.indexOf(me)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<ie.length;i++)He.push(Er(ie[i])),He[i].sortableIndex=ie[i].sortableIndex,He[i].draggable=!1,He[i].style["will-change"]="",ge(He[i],this.options.selectedClass,!1),ie[i]===me&&ge(He[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,a=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||ie.length&&Je===t&&(Do(!0,o),i("clone"),a())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(Do(!1,o),He.forEach(function(a){te(a,"display","")}),t(),Un=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(He.forEach(function(a){te(a,"display","none"),t.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),o(),Un=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Je&&Je.multiDrag._deselectMultiDrag(),ie.forEach(function(t){t.sortableIndex=Ee(t)}),ie=ie.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),Pt=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){ie.forEach(function(a){a!==me&&te(a,"position","absolute")});var i=Oe(me,!1,!0,!0);ie.forEach(function(a){a!==me&&So(a,i)}),ze=!0,tn=!0}o.animateAll(function(){ze=!1,tn=!1,t.options.animation&&ie.forEach(function(a){Sr(a)}),t.options.sort&&Hn()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;ze&&~ie.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,a=n.dragRect;ie.length>1&&(ie.forEach(function(f){i.addAnimationState({target:f,rect:ze?Oe(f):a}),Sr(f),f.fromRect=a,t.removeAnimationState(f)}),ze=!1,xu(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,a=n.activeSortable,f=n.parentEl,c=n.putSortable,h=this.options;if(i){if(o&&a._hideClone(),tn=!1,h.animation&&ie.length>1&&(ze||!o&&!a.options.sort&&!c)){var u=Oe(me,!1,!0,!0);ie.forEach(function(s){s!==me&&(So(s,u),f.appendChild(s))}),ze=!0}if(!o)if(ze||Hn(),ie.length>1){var l=Un;a._showClone(t),a.options.animation&&!Un&&l&&He.forEach(function(s){a.addAnimationState({target:s,rect:nn}),s.fromRect=nn,s.thisAnimationDuration=null})}else a._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(ie.forEach(function(f){f.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){nn=Ge({},t);var a=bt(me,!0);nn.top-=a.f,nn.left-=a.e}},dragOverAnimationComplete:function(){ze&&(ze=!1,Hn())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,a=n.sortable,f=n.dispatchSortableEvent,c=n.oldIndex,h=n.putSortable,u=h||this.sortable;if(!!t){var l=this.options,s=i.children;if(!Pt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ge(me,l.selectedClass,!~ie.indexOf(me)),~ie.indexOf(me))ie.splice(ie.indexOf(me),1),en=null,Vt({sortable:a,rootEl:o,name:"deselect",targetEl:me,originalEvt:t});else{if(ie.push(me),Vt({sortable:a,rootEl:o,name:"select",targetEl:me,originalEvt:t}),t.shiftKey&&en&&a.el.contains(en)){var d=Ee(en),v=Ee(me);if(~d&&~v&&d!==v){var p,b;for(v>d?(b=d,p=v):(b=v,p=d+1);b<p;b++)~ie.indexOf(s[b])||(ge(s[b],l.selectedClass,!0),ie.push(s[b]),Vt({sortable:a,rootEl:o,name:"select",targetEl:s[b],originalEvt:t}))}}else en=me;Je=u}if(Pt&&this.isMultiDrag){if((i[Re].options.sort||i!==o)&&ie.length>1){var m=Oe(me),g=Ee(me,":not(."+this.options.selectedClass+")");if(!tn&&l.animation&&(me.thisAnimationDuration=null),u.captureAnimationState(),!tn&&(l.animation&&(me.fromRect=m,ie.forEach(function(y){if(y.thisAnimationDuration=null,y!==me){var O=ze?Oe(y):m;y.fromRect=O,u.addAnimationState({target:y,rect:O})}})),Hn(),ie.forEach(function(y){s[g]?i.insertBefore(y,s[g]):i.appendChild(y),g++}),c===Ee(me))){var _=!1;ie.forEach(function(y){if(y.sortableIndex!==Ee(y)){_=!0;return}}),_&&f("update")}ie.forEach(function(y){Sr(y)}),u.animateAll()}Je=u}(o===i||h&&h.lastPutMode!=="clone")&&He.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=Pt=!1,He.length=0},destroyGlobal:function(){this._deselectMultiDrag(),le(document,"pointerup",this._deselectMultiDrag),le(document,"mouseup",this._deselectMultiDrag),le(document,"touchend",this._deselectMultiDrag),le(document,"keydown",this._checkKeyDown),le(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Pt!="undefined"&&Pt)&&Je===this.sortable&&!(n&&Ye(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ie.length;){var t=ie[0];ge(t,this.options.selectedClass,!1),ie.shift(),Vt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ge(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[Re];!t||!t.options.multiDrag||~ie.indexOf(n)||(Je&&Je!==t&&(Je.multiDrag._deselectMultiDrag(),Je=t),ge(n,t.options.selectedClass,!0),ie.push(n))},deselect:function(n){var t=n.parentNode[Re],o=ie.indexOf(n);!t||!t.options.multiDrag||!~o||(ge(n,t.options.selectedClass,!1),ie.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return ie.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var a;ze&&i!==me?a=-1:ze?a=Ee(i,":not(."+n.options.selectedClass+")"):a=Ee(i),o.push({multiDragElement:i,index:a})}),{items:Js(ie),clones:[].concat(He),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function xu(e,r){ie.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Do(e,r){He.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Hn(){ie.forEach(function(e){e!==me&&e.parentNode&&e.parentNode.removeChild(e)})}ne.mount(new Ou),ne.mount(Fr,Mr);var Au=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ne,MultiDrag:wu,Sortable:ne,Swap:Eu}),Tu=Zi(Au);(function(e,r){(function(t,o){e.exports=o(Tu)})(typeof self!="undefined"?self:Ut,function(n){return function(t){var o={};function i(a){if(o[a])return o[a].exports;var f=o[a]={i:a,l:!1,exports:{}};return t[a].call(f.exports,f,f.exports,i),f.l=!0,f.exports}return i.m=t,i.c=o,i.d=function(a,f,c){i.o(a,f)||Object.defineProperty(a,f,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,f){if(f&1&&(a=i(a)),f&8||f&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),f&2&&typeof a!="string")for(var h in a)i.d(c,h,function(u){return a[u]}.bind(null,h));return c},i.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(f,"a",f),f},i.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var a=i("2d00"),f=i("5ca1"),c=i("2aba"),h=i("32e9"),u=i("84f2"),l=i("41a0"),s=i("7f20"),d=i("38fd"),v=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",g="values",_=function(){return this};t.exports=function(y,O,N,T,A,I,w){l(N,O,T);var E=function(k){if(!p&&k in R)return R[k];switch(k){case m:return function(){return new N(this,k)};case g:return function(){return new N(this,k)}}return function(){return new N(this,k)}},x=O+" Iterator",P=A==g,D=!1,R=y.prototype,B=R[v]||R[b]||A&&R[A],U=B||E(A),V=A?P?E("entries"):U:void 0,q=O=="Array"&&R.entries||B,$,S,C;if(q&&(C=d(q.call(new y)),C!==Object.prototype&&C.next&&(s(C,x,!0),!a&&typeof C[v]!="function"&&h(C,v,_))),P&&B&&B.name!==g&&(D=!0,U=function(){return B.call(this)}),(!a||w)&&(p||D||!R[v])&&h(R,v,U),u[O]=U,u[x]=_,A)if($={values:P?U:E(g),keys:I?U:E(m),entries:V},w)for(S in $)S in R||c(R,S,$[S]);else f(f.P+f.F*(p||D),O,$);return $}},"02f4":function(t,o,i){var a=i("4588"),f=i("be13");t.exports=function(c){return function(h,u){var l=String(f(h)),s=a(u),d=l.length,v,p;return s<0||s>=d?c?"":void 0:(v=l.charCodeAt(s),v<55296||v>56319||s+1===d||(p=l.charCodeAt(s+1))<56320||p>57343?c?l.charAt(s):v:c?l.slice(s,s+2):(v-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var a=i("02f4")(!0);t.exports=function(f,c,h){return c+(h?a(f,c).length:1)}},"0bfb":function(t,o,i){var a=i("cb7c");t.exports=function(){var f=a(this),c="";return f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),f.unicode&&(c+="u"),f.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var a=i("ce10"),f=i("e11e");t.exports=Object.keys||function(h){return a(h,f)}},"1495":function(t,o,i){var a=i("86cc"),f=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(u,l){f(u);for(var s=c(l),d=s.length,v=0,p;d>v;)a.f(u,p=s[v++],l[p]);return u}},"214f":function(t,o,i){i("b0c5");var a=i("2aba"),f=i("32e9"),c=i("79e5"),h=i("be13"),u=i("2b4c"),l=i("520a"),s=u("species"),d=!c(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),v=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var m="ab".split(p);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(p,b,m){var g=u(p),_=!c(function(){var I={};return I[g]=function(){return 7},""[p](I)!=7}),y=_?!c(function(){var I=!1,w=/a/;return w.exec=function(){return I=!0,null},p==="split"&&(w.constructor={},w.constructor[s]=function(){return w}),w[g](""),!I}):void 0;if(!_||!y||p==="replace"&&!d||p==="split"&&!v){var O=/./[g],N=m(h,g,""[p],function(w,E,x,P,D){return E.exec===l?_&&!D?{done:!0,value:O.call(E,x,P)}:{done:!0,value:w.call(x,E,P)}:{done:!1}}),T=N[0],A=N[1];a(String.prototype,p,T),f(RegExp.prototype,g,b==2?function(I,w){return A.call(I,this,w)}:function(I){return A.call(I,this)})}}},"230e":function(t,o,i){var a=i("d3f4"),f=i("7726").document,c=a(f)&&a(f.createElement);t.exports=function(h){return c?f.createElement(h):{}}},"23c6":function(t,o,i){var a=i("2d95"),f=i("2b4c")("toStringTag"),c=a(function(){return arguments}())=="Arguments",h=function(u,l){try{return u[l]}catch{}};t.exports=function(u){var l,s,d;return u===void 0?"Undefined":u===null?"Null":typeof(s=h(l=Object(u),f))=="string"?s:c?a(l):(d=a(l))=="Object"&&typeof l.callee=="function"?"Arguments":d}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var a=i("7726"),f=i("32e9"),c=i("69a8"),h=i("ca5a")("src"),u=i("fa5b"),l="toString",s=(""+u).split(l);i("8378").inspectSource=function(d){return u.call(d)},(t.exports=function(d,v,p,b){var m=typeof p=="function";m&&(c(p,"name")||f(p,"name",v)),d[v]!==p&&(m&&(c(p,h)||f(p,h,d[v]?""+d[v]:s.join(String(v)))),d===a?d[v]=p:b?d[v]?d[v]=p:f(d,v,p):(delete d[v],f(d,v,p)))})(Function.prototype,l,function(){return typeof this=="function"&&this[h]||u.call(this)})},"2aeb":function(t,o,i){var a=i("cb7c"),f=i("1495"),c=i("e11e"),h=i("613b")("IE_PROTO"),u=function(){},l="prototype",s=function(){var d=i("230e")("iframe"),v=c.length,p="<",b=">",m;for(d.style.display="none",i("fab2").appendChild(d),d.src="javascript:",m=d.contentWindow.document,m.open(),m.write(p+"script"+b+"document.F=Object"+p+"/script"+b),m.close(),s=m.F;v--;)delete s[l][c[v]];return s()};t.exports=Object.create||function(v,p){var b;return v!==null?(u[l]=a(v),b=new u,u[l]=null,b[h]=v):b=s(),p===void 0?b:f(b,p)}},"2b4c":function(t,o,i){var a=i("5537")("wks"),f=i("ca5a"),c=i("7726").Symbol,h=typeof c=="function",u=t.exports=function(l){return a[l]||(a[l]=h&&c[l]||(h?c:f)("Symbol."+l))};u.store=a},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(a){return i.call(a).slice(8,-1)}},"2fdb":function(t,o,i){var a=i("5ca1"),f=i("d2c8"),c="includes";a(a.P+a.F*i("5147")(c),"String",{includes:function(u){return!!~f(this,u,c).indexOf(u,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var a=i("86cc"),f=i("4630");t.exports=i("9e1e")?function(c,h,u){return a.f(c,h,f(1,u))}:function(c,h,u){return c[h]=u,c}},"38fd":function(t,o,i){var a=i("69a8"),f=i("4bf8"),c=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(u){return u=f(u),a(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?h:null}},"41a0":function(t,o,i){var a=i("2aeb"),f=i("4630"),c=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(u,l,s){u.prototype=a(h,{next:f(1,s)}),c(u,l+" Iterator")}},"456d":function(t,o,i){var a=i("4bf8"),f=i("0d58");i("5eda")("keys",function(){return function(h){return f(a(h))}})},"4588":function(t,o){var i=Math.ceil,a=Math.floor;t.exports=function(f){return isNaN(f=+f)?0:(f>0?a:i)(f)}},"4630":function(t,o){t.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"4bf8":function(t,o,i){var a=i("be13");t.exports=function(f){return Object(a(f))}},"5147":function(t,o,i){var a=i("2b4c")("match");t.exports=function(f){var c=/./;try{"/./"[f](c)}catch{try{return c[a]=!1,!"/./"[f](c)}catch{}}return!0}},"520a":function(t,o,i){var a=i("0bfb"),f=RegExp.prototype.exec,c=String.prototype.replace,h=f,u="lastIndex",l=function(){var v=/a/,p=/b*/g;return f.call(v,"a"),f.call(p,"a"),v[u]!==0||p[u]!==0}(),s=/()??/.exec("")[1]!==void 0,d=l||s;d&&(h=function(p){var b=this,m,g,_,y;return s&&(g=new RegExp("^"+b.source+"$(?!\\s)",a.call(b))),l&&(m=b[u]),_=f.call(b,p),l&&_&&(b[u]=b.global?_.index+_[0].length:m),s&&_&&_.length>1&&c.call(_[0],g,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(_[y]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var a=i("8378"),f=i("7726"),c="__core-js_shared__",h=f[c]||(f[c]={});(t.exports=function(u,l){return h[u]||(h[u]=l!==void 0?l:{})})("versions",[]).push({version:a.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var a=i("7726"),f=i("8378"),c=i("32e9"),h=i("2aba"),u=i("9b43"),l="prototype",s=function(d,v,p){var b=d&s.F,m=d&s.G,g=d&s.S,_=d&s.P,y=d&s.B,O=m?a:g?a[v]||(a[v]={}):(a[v]||{})[l],N=m?f:f[v]||(f[v]={}),T=N[l]||(N[l]={}),A,I,w,E;m&&(p=v);for(A in p)I=!b&&O&&O[A]!==void 0,w=(I?O:p)[A],E=y&&I?u(w,a):_&&typeof w=="function"?u(Function.call,w):w,O&&h(O,A,w,d&s.U),N[A]!=w&&c(N,A,E),_&&T[A]!=w&&(T[A]=w)};a.core=f,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,o,i){var a=i("5ca1"),f=i("8378"),c=i("79e5");t.exports=function(h,u){var l=(f.Object||{})[h]||Object[h],s={};s[h]=u(l),a(a.S+a.F*c(function(){l(1)}),"Object",s)}},"5f1b":function(t,o,i){var a=i("23c6"),f=RegExp.prototype.exec;t.exports=function(c,h){var u=c.exec;if(typeof u=="function"){var l=u.call(c,h);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(a(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return f.call(c,h)}},"613b":function(t,o,i){var a=i("5537")("keys"),f=i("ca5a");t.exports=function(c){return a[c]||(a[c]=f(c))}},"626a":function(t,o,i){var a=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return a(f)=="String"?f.split(""):Object(f)}},"6762":function(t,o,i){var a=i("5ca1"),f=i("c366")(!0);a(a.P,"Array",{includes:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var a=i("626a"),f=i("be13");t.exports=function(c){return a(f(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(a,f){return i.call(a,f)}},"6a99":function(t,o,i){var a=i("d3f4");t.exports=function(f,c){if(!a(f))return f;var h,u;if(c&&typeof(h=f.toString)=="function"&&!a(u=h.call(f))||typeof(h=f.valueOf)=="function"&&!a(u=h.call(f))||!c&&typeof(h=f.toString)=="function"&&!a(u=h.call(f)))return u;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var a=i("0d58"),f=i("2621"),c=i("52a7"),h=i("4bf8"),u=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var s={},d={},v=Symbol(),p="abcdefghijklmnopqrst";return s[v]=7,p.split("").forEach(function(b){d[b]=b}),l({},s)[v]!=7||Object.keys(l({},d)).join("")!=p})?function(d,v){for(var p=h(d),b=arguments.length,m=1,g=f.f,_=c.f;b>m;)for(var y=u(arguments[m++]),O=g?a(y).concat(g(y)):a(y),N=O.length,T=0,A;N>T;)_.call(y,A=O[T++])&&(p[A]=y[A]);return p}:l},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var a=i("4588"),f=Math.max,c=Math.min;t.exports=function(h,u){return h=a(h),h<0?f(h+u,0):c(h,u)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var a=i("86cc").f,f=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(h,u,l){h&&!f(h=l?h:h.prototype,c)&&a(h,c,{configurable:!0,value:u})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var a=i("cb7c"),f=i("c69a"),c=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,s,d){if(a(l),s=c(s,!0),a(d),f)try{return h(l,s,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(l[s]=d.value),l}},"9b43":function(t,o,i){var a=i("d8e8");t.exports=function(f,c,h){if(a(f),c===void 0)return f;switch(h){case 1:return function(u){return f.call(c,u)};case 2:return function(u,l){return f.call(c,u,l)};case 3:return function(u,l,s){return f.call(c,u,l,s)}}return function(){return f.apply(c,arguments)}}},"9c6c":function(t,o,i){var a=i("2b4c")("unscopables"),f=Array.prototype;f[a]==null&&i("32e9")(f,a,{}),t.exports=function(c){f[a][c]=!0}},"9def":function(t,o,i){var a=i("4588"),f=Math.min;t.exports=function(c){return c>0?f(a(c),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var a=i("cb7c"),f=i("4bf8"),c=i("9def"),h=i("4588"),u=i("0390"),l=i("5f1b"),s=Math.max,d=Math.min,v=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,y,O){return[function(A,I){var w=g(this),E=A==null?void 0:A[_];return E!==void 0?E.call(A,w,I):y.call(String(w),A,I)},function(T,A){var I=O(y,T,this,A);if(I.done)return I.value;var w=a(T),E=String(this),x=typeof A=="function";x||(A=String(A));var P=w.global;if(P){var D=w.unicode;w.lastIndex=0}for(var R=[];;){var B=l(w,E);if(B===null||(R.push(B),!P))break;var U=String(B[0]);U===""&&(w.lastIndex=u(E,c(w.lastIndex),D))}for(var V="",q=0,$=0;$<R.length;$++){B=R[$];for(var S=String(B[0]),C=s(d(h(B.index),E.length),0),k=[],F=1;F<B.length;F++)k.push(m(B[F]));var j=B.groups;if(x){var L=[S].concat(k,C,E);j!==void 0&&L.push(j);var M=String(A.apply(void 0,L))}else M=N(S,E,C,k,j,A);C>=q&&(V+=E.slice(q,C)+M,q=C+S.length)}return V+E.slice(q)}];function N(T,A,I,w,E,x){var P=I+T.length,D=w.length,R=b;return E!==void 0&&(E=f(E),R=p),y.call(x,R,function(B,U){var V;switch(U.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,I);case"'":return A.slice(P);case"<":V=E[U.slice(1,-1)];break;default:var q=+U;if(q===0)return B;if(q>D){var $=v(q/10);return $===0?B:$<=D?w[$-1]===void 0?U.charAt(1):w[$-1]+U.charAt(1):B}V=w[q-1]}return V===void 0?"":V})}})},aae3:function(t,o,i){var a=i("d3f4"),f=i("2d95"),c=i("2b4c")("match");t.exports=function(h){var u;return a(h)&&((u=h[c])!==void 0?!!u:f(h)=="RegExp")}},ac6a:function(t,o,i){for(var a=i("cadf"),f=i("0d58"),c=i("2aba"),h=i("7726"),u=i("32e9"),l=i("84f2"),s=i("2b4c"),d=s("iterator"),v=s("toStringTag"),p=l.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=f(b),g=0;g<m.length;g++){var _=m[g],y=b[_],O=h[_],N=O&&O.prototype,T;if(N&&(N[d]||u(N,d,p),N[v]||u(N,v,_),l[_]=p,y))for(T in a)N[T]||c(N,T,a[T],!0)}},b0c5:function(t,o,i){var a=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var a=i("6821"),f=i("9def"),c=i("77f1");t.exports=function(h){return function(u,l,s){var d=a(u),v=f(d.length),p=c(s,v),b;if(h&&l!=l){for(;v>p;)if(b=d[p++],b!=b)return!0}else for(;v>p;p++)if((h||p in d)&&d[p]===l)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(a){i.d(o,"c",function(){return d}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return s}),i("a481");function f(){return typeof window!="undefined"?window.console:a.console}var c=f();function h(v){var p=Object.create(null);return function(m){var g=p[m];return g||(p[m]=v(m))}}var u=/-(\w)/g,l=h(function(v){return v.replace(u,function(p,b){return b?b.toUpperCase():""})});function s(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function d(v,p,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(p,m)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,a=Math.random();t.exports=function(f){return"Symbol(".concat(f===void 0?"":f,")_",(++i+a).toString(36))}},cadf:function(t,o,i){var a=i("9c6c"),f=i("d53b"),c=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(u,l){this._t=h(u),this._i=0,this._k=l},function(){var u=this._t,l=this._k,s=this._i++;return!u||s>=u.length?(this._t=void 0,f(1)):l=="keys"?f(0,s):l=="values"?f(0,u[s]):f(0,[s,u[s]])},"values"),c.Arguments=c.Array,a("keys"),a("values"),a("entries")},cb7c:function(t,o,i){var a=i("d3f4");t.exports=function(f){if(!a(f))throw TypeError(f+" is not an object!");return f}},ce10:function(t,o,i){var a=i("69a8"),f=i("6821"),c=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(u,l){var s=f(u),d=0,v=[],p;for(p in s)p!=h&&a(s,p)&&v.push(p);for(;l.length>d;)a(s,p=l[d++])&&(~c(v,p)||v.push(p));return v}},d2c8:function(t,o,i){var a=i("aae3"),f=i("be13");t.exports=function(c,h,u){if(a(h))throw TypeError("String#"+u+" doesn't accept regex!");return String(f(c))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,a){return{value:a,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var a=i("5ca1"),f=i("9def"),c=i("d2c8"),h="startsWith",u=""[h];a(a.P+a.F*i("5147")(h),"String",{startsWith:function(s){var d=c(this,s,h),v=f(Math.min(arguments.length>1?arguments[1]:void 0,d.length)),p=String(s);return u?u.call(d,p,v):d.slice(v,v+p.length)===p}})},f6fd:function(t,o){(function(i){var a="currentScript",f=i.getElementsByTagName("script");a in i||Object.defineProperty(i,a,{get:function(){try{throw new Error}catch(u){var c,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(u.stack)||[!1])[1];for(c in f)if(f[c].src==h||f[c].readyState=="interactive")return f[c];return null}}})})(document)},f751:function(t,o,i){var a=i("5ca1");a(a.S+a.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var a=i("7726").document;t.exports=a&&a.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var a;(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=a[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function f(S){if(Array.isArray(S))return S}function c(S,C){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var k=[],F=!0,j=!1,L=void 0;try{for(var M=S[Symbol.iterator](),H;!(F=(H=M.next()).done)&&(k.push(H.value),!(C&&k.length===C));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&M.return!=null&&M.return()}finally{if(j)throw L}}return k}}function h(S,C){(C==null||C>S.length)&&(C=S.length);for(var k=0,F=new Array(C);k<C;k++)F[k]=S[k];return F}function u(S,C){if(!!S){if(typeof S=="string")return h(S,C);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return h(S,C)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
23
+ */function Tn(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Tn=function(r){return typeof r}:Tn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Tn(e)}function Ks(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Ge(){return Ge=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},Ge.apply(this,arguments)}function ut(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{},t=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),t.forEach(function(o){Ks(e,o,n[o])})}return e}function Ys(e,r){if(e==null)return{};var n={},t=Object.keys(e),o,i;for(i=0;i<t.length;i++)o=t[i],!(r.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Xs(e,r){if(e==null)return{};var n=Ys(e,r),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)t=i[o],!(r.indexOf(t)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,t)||(n[t]=e[t]))}return n}function Js(e){return Zs(e)||Qs(e)||eu()}function Zs(e){if(Array.isArray(e)){for(var r=0,n=new Array(e.length);r<e.length;r++)n[r]=e[r];return n}}function Qs(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function eu(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var tu="1.10.2";function it(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var ot=it(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ht=it(/Edge/i),po=it(/firefox/i),br=it(/safari/i)&&!it(/chrome/i)&&!it(/android/i),vo=it(/iP(ad|od|hone)/i),nu=it(/chrome/i)&&it(/android/i),mo={capture:!1,passive:!1};function ce(e,r,n){e.addEventListener(r,n,!ot&&mo)}function le(e,r,n){e.removeEventListener(r,n,!ot&&mo)}function Cn(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function ru(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ye(e,r,n,t){if(e){n=n||document;do{if(r!=null&&(r[0]===">"?e.parentNode===n&&Cn(e,r):Cn(e,r))||t&&e===n)return e;if(e===n)break}while(e=ru(e))}return null}var yo=/\s+/g;function ge(e,r,n){if(e&&r)if(e.classList)e.classList[n?"add":"remove"](r);else{var t=(" "+e.className+" ").replace(yo," ").replace(" "+r+" "," ");e.className=(t+(n?" "+r:"")).replace(yo," ")}}function te(e,r,n){var t=e&&e.style;if(t){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),r===void 0?n:n[r];!(r in t)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),t[r]=n+(typeof n=="string"?"":"px")}}function bt(e,r){var n="";if(typeof e=="string")n=e;else do{var t=te(e,"transform");t&&t!=="none"&&(n=t+" "+n)}while(!r&&(e=e.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function go(e,r,n){if(e){var t=e.getElementsByTagName(r),o=0,i=t.length;if(n)for(;o<i;o++)n(t[o],o);return t}return[]}function et(){var e=document.scrollingElement;return e||document.documentElement}function Oe(e,r,n,t,o){if(!(!e.getBoundingClientRect&&e!==window)){var i,a,f,c,h,u,l;if(e!==window&&e!==et()?(i=e.getBoundingClientRect(),a=i.top,f=i.left,c=i.bottom,h=i.right,u=i.height,l=i.width):(a=0,f=0,c=window.innerHeight,h=window.innerWidth,u=window.innerHeight,l=window.innerWidth),(r||n)&&e!==window&&(o=o||e.parentNode,!ot))do if(o&&o.getBoundingClientRect&&(te(o,"transform")!=="none"||n&&te(o,"position")!=="static")){var s=o.getBoundingClientRect();a-=s.top+parseInt(te(o,"border-top-width")),f-=s.left+parseInt(te(o,"border-left-width")),c=a+i.height,h=f+i.width;break}while(o=o.parentNode);if(t&&e!==window){var d=bt(o||e),v=d&&d.a,p=d&&d.d;d&&(a/=p,f/=v,l/=v,u/=p,c=a+u,h=f+l)}return{top:a,left:f,bottom:c,right:h,width:l,height:u}}}function bo(e,r,n){for(var t=ft(e,!0),o=Oe(e)[r];t;){var i=Oe(t)[n],a=void 0;if(n==="top"||n==="left"?a=o>=i:a=o<=i,!a)return t;if(t===et())break;t=ft(t,!1)}return!1}function Nn(e,r,n){for(var t=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==ne.ghost&&i[o]!==ne.dragged&&Ye(i[o],n.draggable,e,!1)){if(t===r)return i[o];t++}o++}return null}function _r(e,r){for(var n=e.lastElementChild;n&&(n===ne.ghost||te(n,"display")==="none"||r&&!Cn(n,r));)n=n.previousElementSibling;return n||null}function Ee(e,r){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==ne.clone&&(!r||Cn(e,r))&&n++;return n}function _o(e){var r=0,n=0,t=et();if(e)do{var o=bt(e),i=o.a,a=o.d;r+=e.scrollLeft*i,n+=e.scrollTop*a}while(e!==t&&(e=e.parentNode));return[r,n]}function iu(e,r){for(var n in e)if(!!e.hasOwnProperty(n)){for(var t in r)if(r.hasOwnProperty(t)&&r[t]===e[n][t])return Number(n)}return-1}function ft(e,r){if(!e||!e.getBoundingClientRect)return et();var n=e,t=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=te(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return et();if(t||r)return n;t=!0}}while(n=n.parentNode);return et()}function ou(e,r){if(e&&r)for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n]);return e}function Or(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var zt;function Oo(e,r){return function(){if(!zt){var n=arguments,t=this;n.length===1?e.call(t,n[0]):e.apply(t,n),zt=setTimeout(function(){zt=void 0},r)}}}function au(){clearTimeout(zt),zt=void 0}function Eo(e,r,n){e.scrollLeft+=r,e.scrollTop+=n}function Er(e){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function So(e,r){te(e,"position","absolute"),te(e,"top",r.top),te(e,"left",r.left),te(e,"width",r.width),te(e,"height",r.height)}function Sr(e){te(e,"position",""),te(e,"top",""),te(e,"left",""),te(e,"width",""),te(e,"height","")}var De="Sortable"+new Date().getTime();function lu(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(te(o,"display")==="none"||o===ne.ghost)){e.push({target:o,rect:Oe(o)});var i=ut({},e[e.length-1].rect);if(o.thisAnimationDuration){var a=bt(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(iu(e,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(r),typeof t=="function"&&t();return}var i=!1,a=0;e.forEach(function(f){var c=0,h=f.target,u=h.fromRect,l=Oe(h),s=h.prevFromRect,d=h.prevToRect,v=f.rect,p=bt(h,!0);p&&(l.top-=p.f,l.left-=p.e),h.toRect=l,h.thisAnimationDuration&&Or(s,l)&&!Or(u,l)&&(v.top-l.top)/(v.left-l.left)==(u.top-l.top)/(u.left-l.left)&&(c=uu(v,s,d,o.options)),Or(l,u)||(h.prevFromRect=u,h.prevToRect=l,c||(c=o.options.animation),o.animate(h,v,l,c)),c&&(i=!0,a=Math.max(a,c),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},c),h.thisAnimationDuration=c)}),clearTimeout(r),i?r=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),e=[]},animate:function(t,o,i,a){if(a){te(t,"transition",""),te(t,"transform","");var f=bt(this.el),c=f&&f.a,h=f&&f.d,u=(o.left-i.left)/(c||1),l=(o.top-i.top)/(h||1);t.animatingX=!!u,t.animatingY=!!l,te(t,"transform","translate3d("+u+"px,"+l+"px,0)"),su(t),te(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),te(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){te(t,"transition",""),te(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function su(e){return e.offsetWidth}function uu(e,r,n,t){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*t.animation}var Wt=[],wr={initializeByDefault:!0},Gt={mount:function(r){for(var n in wr)wr.hasOwnProperty(n)&&!(n in r)&&(r[n]=wr[n]);Wt.push(r)},pluginEvent:function(r,n,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=r+"Global";Wt.forEach(function(a){!n[a.pluginName]||(n[a.pluginName][i]&&n[a.pluginName][i](ut({sortable:n},t)),n.options[a.pluginName]&&n[a.pluginName][r]&&n[a.pluginName][r](ut({sortable:n},t)))})},initializePlugins:function(r,n,t,o){Wt.forEach(function(f){var c=f.pluginName;if(!(!r.options[c]&&!f.initializeByDefault)){var h=new f(r,n,r.options);h.sortable=r,h.options=r.options,r[c]=h,Ge(t,h.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var a=this.modifyOption(r,i,r.options[i]);typeof a!="undefined"&&(r.options[i]=a)}},getEventProperties:function(r,n){var t={};return Wt.forEach(function(o){typeof o.eventProperties=="function"&&Ge(t,o.eventProperties.call(n[o.pluginName],r))}),t},modifyOption:function(r,n,t){var o;return Wt.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[n]=="function"&&(o=i.optionListeners[n].call(r[i.pluginName],t))}),o}};function Vt(e){var r=e.sortable,n=e.rootEl,t=e.name,o=e.targetEl,i=e.cloneEl,a=e.toEl,f=e.fromEl,c=e.oldIndex,h=e.newIndex,u=e.oldDraggableIndex,l=e.newDraggableIndex,s=e.originalEvent,d=e.putSortable,v=e.extraEventProperties;if(r=r||n&&n[De],!!r){var p,b=r.options,m="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ot&&!Ht?p=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(t,!0,!0)),p.to=a||n,p.from=f||n,p.item=o||n,p.clone=i,p.oldIndex=c,p.newIndex=h,p.oldDraggableIndex=u,p.newDraggableIndex=l,p.originalEvent=s,p.pullMode=d?d.lastPutMode:void 0;var g=ut({},v,Gt.getEventProperties(t,r));for(var _ in g)p[_]=g[_];n&&n.dispatchEvent(p),b[m]&&b[m].call(r,p)}}var Be=function(r,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Xs(t,["evt"]);Gt.pluginEvent.bind(ne)(r,n,ut({dragEl:J,parentEl:xe,ghostEl:oe,rootEl:be,nextEl:_t,lastDownEl:Pn,cloneEl:Se,cloneHidden:ct,dragStarted:Yt,putSortable:Ie,activeSortable:ne.active,originalEvent:o,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt,hideGhostForTarget:Po,unhideGhostForTarget:ko,cloneNowHidden:function(){ct=!0},cloneNowShown:function(){ct=!1},dispatchSortableEvent:function(f){Fe({sortable:n,name:f,originalEvent:o})}},i))};function Fe(e){Vt(ut({putSortable:Ie,cloneEl:Se,targetEl:J,rootEl:be,oldIndex:Tt,oldDraggableIndex:Kt,newIndex:Ue,newDraggableIndex:dt},e))}var J,xe,oe,be,_t,Pn,Se,ct,Tt,Ue,Kt,dt,kn,Ie,Ct=!1,In=!1,Ln=[],Ot,Xe,xr,Ar,wo,xo,Yt,Nt,Xt,Jt=!1,Rn=!1,Dn,$e,Tr=[],Cr=!1,$n=[],Mn=typeof document!="undefined",Fn=vo,Ao=Ht||ot?"cssFloat":"float",fu=Mn&&!nu&&!vo&&"draggable"in document.createElement("div"),To=function(){if(!!Mn){if(ot)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Co=function(r,n){var t=te(r),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Nn(r,0,n),a=Nn(r,1,n),f=i&&te(i),c=a&&te(a),h=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+Oe(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Oe(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&f.float&&f.float!=="none"){var l=f.float==="left"?"left":"right";return a&&(c.clear==="both"||c.clear===l)?"vertical":"horizontal"}return i&&(f.display==="block"||f.display==="flex"||f.display==="table"||f.display==="grid"||h>=o&&t[Ao]==="none"||a&&t[Ao]==="none"&&h+u>o)?"vertical":"horizontal"},cu=function(r,n,t){var o=t?r.left:r.top,i=t?r.right:r.bottom,a=t?r.width:r.height,f=t?n.left:n.top,c=t?n.right:n.bottom,h=t?n.width:n.height;return o===f||i===c||o+a/2===f+h/2},du=function(r,n){var t;return Ln.some(function(o){if(!_r(o)){var i=Oe(o),a=o[De].options.emptyInsertThreshold,f=r>=i.left-a&&r<=i.right+a,c=n>=i.top-a&&n<=i.bottom+a;if(a&&f&&c)return t=o}}),t},No=function(r){function n(i,a){return function(f,c,h,u){var l=f.options.group.name&&c.options.group.name&&f.options.group.name===c.options.group.name;if(i==null&&(a||l))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return n(i(f,c,h,u),a)(f,c,h,u);var s=(a?f:c).options.group.name;return i===!0||typeof i=="string"&&i===s||i.join&&i.indexOf(s)>-1}}var t={},o=r.group;(!o||Tn(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=n(o.pull,!0),t.checkPut=n(o.put),t.revertClone=o.revertClone,r.group=t},Po=function(){!To&&oe&&te(oe,"display","none")},ko=function(){!To&&oe&&te(oe,"display","")};Mn&&document.addEventListener("click",function(e){if(In)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),In=!1,!1},!0);var Et=function(r){if(J){r=r.touches?r.touches[0]:r;var n=du(r.clientX,r.clientY);if(n){var t={};for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o]);t.target=t.rootEl=n,t.preventDefault=void 0,t.stopPropagation=void 0,n[De]._onDragOver(t)}}},hu=function(r){J&&J.parentNode[De]._isOutsideThisEl(r.target)};function ne(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Ge({},r),e[De]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Co(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,f){a.setData("Text",f.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ne.supportPointer!==!1&&"PointerEvent"in window,emptyInsertThreshold:5};Gt.initializePlugins(this,e,n);for(var t in n)!(t in r)&&(r[t]=n[t]);No(r);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=r.forceFallback?!1:fu,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ce(e,"pointerdown",this._onTapStart):(ce(e,"mousedown",this._onTapStart),ce(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ce(e,"dragover",this),ce(e,"dragenter",this)),Ln.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ge(this,lu())}ne.prototype={constructor:ne,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Nt=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,J):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var n=this,t=this.el,o=this.options,i=o.preventOnFilter,a=r.type,f=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,c=(f||r).target,h=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||c,u=o.filter;if(_u(t),!J&&!(/mousedown|pointerdown/.test(a)&&r.button!==0||o.disabled)&&!h.isContentEditable&&(c=Ye(c,o.draggable,t,!1),!(c&&c.animated)&&Pn!==c)){if(Tt=Ee(c),Kt=Ee(c,o.draggable),typeof u=="function"){if(u.call(this,r,c,this)){Fe({sortable:n,rootEl:h,name:"filter",targetEl:c,toEl:t,fromEl:t}),Be("filter",n,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(u&&(u=u.split(",").some(function(l){if(l=Ye(h,l.trim(),t,!1),l)return Fe({sortable:n,rootEl:l,name:"filter",targetEl:c,fromEl:t,toEl:t}),Be("filter",n,{evt:r}),!0}),u)){i&&r.cancelable&&r.preventDefault();return}o.handle&&!Ye(h,o.handle,t,!1)||this._prepareDragStart(r,f,c)}}},_prepareDragStart:function(r,n,t){var o=this,i=o.el,a=o.options,f=i.ownerDocument,c;if(t&&!J&&t.parentNode===i){var h=Oe(t);if(be=i,J=t,xe=J.parentNode,_t=J.nextSibling,Pn=t,kn=a.group,ne.dragged=J,Ot={target:J,clientX:(n||r).clientX,clientY:(n||r).clientY},wo=Ot.clientX-h.left,xo=Ot.clientY-h.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,J.style["will-change"]="all",c=function(){if(Be("delayEnded",o,{evt:r}),ne.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!po&&o.nativeDraggable&&(J.draggable=!0),o._triggerDragStart(r,n),Fe({sortable:o,name:"choose",originalEvent:r}),ge(J,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){go(J,u.trim(),Pr)}),ce(f,"dragover",Et),ce(f,"mousemove",Et),ce(f,"touchmove",Et),ce(f,"mouseup",o._onDrop),ce(f,"touchend",o._onDrop),ce(f,"touchcancel",o._onDrop),po&&this.nativeDraggable&&(this.options.touchStartThreshold=4,J.draggable=!0),Be("delayStart",this,{evt:r}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ht||ot))){if(ne.eventCanceled){this._onDrop();return}ce(f,"mouseup",o._disableDelayedDrag),ce(f,"touchend",o._disableDelayedDrag),ce(f,"touchcancel",o._disableDelayedDrag),ce(f,"mousemove",o._delayedDragTouchMoveHandler),ce(f,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&ce(f,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(c,a.delay)}else c()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){J&&Pr(J),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._disableDelayedDrag),le(r,"touchend",this._disableDelayedDrag),le(r,"touchcancel",this._disableDelayedDrag),le(r,"mousemove",this._delayedDragTouchMoveHandler),le(r,"touchmove",this._delayedDragTouchMoveHandler),le(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?ce(document,"pointermove",this._onTouchMove):n?ce(document,"touchmove",this._onTouchMove):ce(document,"mousemove",this._onTouchMove):(ce(J,"dragend",this),ce(be,"dragstart",this._onDragStart));try{document.selection?jn(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(Ct=!1,be&&J){Be("dragStarted",this,{evt:n}),this.nativeDraggable&&ce(document,"dragover",hu);var t=this.options;!r&&ge(J,t.dragClass,!1),ge(J,t.ghostClass,!0),ne.active=this,r&&this._appendGhost(),Fe({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Xe){this._lastX=Xe.clientX,this._lastY=Xe.clientY,Po();for(var r=document.elementFromPoint(Xe.clientX,Xe.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Xe.clientX,Xe.clientY),r!==n);)n=r;if(J.parentNode[De]._isOutsideThisEl(r),n)do{if(n[De]){var t=void 0;if(t=n[De]._onDragOver({clientX:Xe.clientX,clientY:Xe.clientY,target:r,rootEl:n}),t&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);ko()}},_onTouchMove:function(r){if(Ot){var n=this.options,t=n.fallbackTolerance,o=n.fallbackOffset,i=r.touches?r.touches[0]:r,a=oe&&bt(oe,!0),f=oe&&a&&a.a,c=oe&&a&&a.d,h=Fn&&$e&&_o($e),u=(i.clientX-Ot.clientX+o.x)/(f||1)+(h?h[0]-Tr[0]:0)/(f||1),l=(i.clientY-Ot.clientY+o.y)/(c||1)+(h?h[1]-Tr[1]:0)/(c||1);if(!ne.active&&!Ct){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(r,!0)}if(oe){a?(a.e+=u-(xr||0),a.f+=l-(Ar||0)):a={a:1,b:0,c:0,d:1,e:u,f:l};var s="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");te(oe,"webkitTransform",s),te(oe,"mozTransform",s),te(oe,"msTransform",s),te(oe,"transform",s),xr=u,Ar=l,Xe=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!oe){var r=this.options.fallbackOnBody?document.body:be,n=Oe(J,!0,Fn,!0,r),t=this.options;if(Fn){for($e=r;te($e,"position")==="static"&&te($e,"transform")==="none"&&$e!==document;)$e=$e.parentNode;$e!==document.body&&$e!==document.documentElement?($e===document&&($e=et()),n.top+=$e.scrollTop,n.left+=$e.scrollLeft):$e=et(),Tr=_o($e)}oe=J.cloneNode(!0),ge(oe,t.ghostClass,!1),ge(oe,t.fallbackClass,!0),ge(oe,t.dragClass,!0),te(oe,"transition",""),te(oe,"transform",""),te(oe,"box-sizing","border-box"),te(oe,"margin",0),te(oe,"top",n.top),te(oe,"left",n.left),te(oe,"width",n.width),te(oe,"height",n.height),te(oe,"opacity","0.8"),te(oe,"position",Fn?"absolute":"fixed"),te(oe,"zIndex","100000"),te(oe,"pointerEvents","none"),ne.ghost=oe,r.appendChild(oe),te(oe,"transform-origin",wo/parseInt(oe.style.width)*100+"% "+xo/parseInt(oe.style.height)*100+"%")}},_onDragStart:function(r,n){var t=this,o=r.dataTransfer,i=t.options;if(Be("dragStart",this,{evt:r}),ne.eventCanceled){this._onDrop();return}Be("setupClone",this),ne.eventCanceled||(Se=Er(J),Se.draggable=!1,Se.style["will-change"]="",this._hideClone(),ge(Se,this.options.chosenClass,!1),ne.clone=Se),t.cloneId=jn(function(){Be("clone",t),!ne.eventCanceled&&(t.options.removeCloneOnHide||be.insertBefore(Se,J),t._hideClone(),Fe({sortable:t,name:"clone"}))}),!n&&ge(J,i.dragClass,!0),n?(In=!0,t._loopId=setInterval(t._emulateDragOver,50)):(le(document,"mouseup",t._onDrop),le(document,"touchend",t._onDrop),le(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,J)),ce(document,"drop",t),te(J,"transform","translateZ(0)")),Ct=!0,t._dragStartId=jn(t._dragStarted.bind(t,n,r)),ce(document,"selectstart",t),Yt=!0,br&&te(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,t=r.target,o,i,a,f=this.options,c=f.group,h=ne.active,u=kn===c,l=f.sort,s=Ie||h,d,v=this,p=!1;if(Cr)return;function b(U,V){Be(U,v,ut({evt:r,isOwner:u,axis:d?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:l,fromSortable:s,target:t,completed:g,onMove:function($,S){return Nr(be,n,J,o,$,Oe($),r,S)},changed:_},V))}function m(){b("dragOverAnimationCapture"),v.captureAnimationState(),v!==s&&s.captureAnimationState()}function g(U){return b("dragOverCompleted",{insertion:U}),U&&(u?h._hideClone():h._showClone(v),v!==s&&(ge(J,Ie?Ie.options.ghostClass:h.options.ghostClass,!1),ge(J,f.ghostClass,!0)),Ie!==v&&v!==ne.active?Ie=v:v===ne.active&&Ie&&(Ie=null),s===v&&(v._ignoreWhileAnimating=t),v.animateAll(function(){b("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==s&&(s.animateAll(),s._ignoreWhileAnimating=null)),(t===J&&!J.animated||t===n&&!t.animated)&&(Nt=null),!f.dragoverBubble&&!r.rootEl&&t!==document&&(J.parentNode[De]._isOutsideThisEl(r.target),!U&&Et(r)),!f.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function _(){Ue=Ee(J),dt=Ee(J,f.draggable),Fe({sortable:v,name:"change",toEl:n,newIndex:Ue,newDraggableIndex:dt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),t=Ye(t,f.draggable,n,!0),b("dragOver"),ne.eventCanceled)return p;if(J.contains(r.target)||t.animated&&t.animatingX&&t.animatingY||v._ignoreWhileAnimating===t)return g(!1);if(In=!1,h&&!f.disabled&&(u?l||(a=!be.contains(J)):Ie===this||(this.lastPutMode=kn.checkPull(this,h,J,r))&&c.checkPut(this,h,J,r))){if(d=this._getDirection(r,t)==="vertical",o=Oe(J),b("dragOverValid"),ne.eventCanceled)return p;if(a)return xe=be,m(),this._hideClone(),b("revert"),ne.eventCanceled||(_t?be.insertBefore(J,_t):be.appendChild(J)),g(!0);var y=_r(n,f.draggable);if(!y||mu(r,d,this)&&!y.animated){if(y===J)return g(!1);if(y&&n===r.target&&(t=y),t&&(i=Oe(t)),Nr(be,n,J,o,t,i,r,!!t)!==!1)return m(),n.appendChild(J),xe=n,_(),g(!0)}else if(t.parentNode===n){i=Oe(t);var O=0,N,T=J.parentNode!==n,A=!cu(J.animated&&J.toRect||o,t.animated&&t.toRect||i,d),I=d?"top":"left",w=bo(t,"top","top")||bo(J,"top","top"),E=w?w.scrollTop:void 0;Nt!==t&&(N=i[I],Jt=!1,Rn=!A&&f.invertSwap||T),O=yu(r,t,i,d,A?1:f.swapThreshold,f.invertedSwapThreshold==null?f.swapThreshold:f.invertedSwapThreshold,Rn,Nt===t);var x;if(O!==0){var P=Ee(J);do P-=O,x=xe.children[P];while(x&&(te(x,"display")==="none"||x===oe))}if(O===0||x===t)return g(!1);Nt=t,Xt=O;var R=t.nextElementSibling,D=!1;D=O===1;var B=Nr(be,n,J,o,t,i,r,D);if(B!==!1)return(B===1||B===-1)&&(D=B===1),Cr=!0,setTimeout(vu,30),m(),D&&!R?n.appendChild(J):t.parentNode.insertBefore(J,D?R:t),w&&Eo(w,0,E-w.scrollTop),xe=J.parentNode,N!==void 0&&!Rn&&(Dn=Math.abs(N-Oe(t)[I])),_(),g(!0)}if(n.contains(J))return g(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){le(document,"mousemove",this._onTouchMove),le(document,"touchmove",this._onTouchMove),le(document,"pointermove",this._onTouchMove),le(document,"dragover",Et),le(document,"mousemove",Et),le(document,"touchmove",Et)},_offUpEvents:function(){var r=this.el.ownerDocument;le(r,"mouseup",this._onDrop),le(r,"touchend",this._onDrop),le(r,"pointerup",this._onDrop),le(r,"touchcancel",this._onDrop),le(document,"selectstart",this)},_onDrop:function(r){var n=this.el,t=this.options;if(Ue=Ee(J),dt=Ee(J,t.draggable),Be("drop",this,{evt:r}),xe=J&&J.parentNode,Ue=Ee(J),dt=Ee(J,t.draggable),ne.eventCanceled){this._nulling();return}Ct=!1,Rn=!1,Jt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kr(this.cloneId),kr(this._dragStartId),this.nativeDraggable&&(le(document,"drop",this),le(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),br&&te(document.body,"user-select",""),te(J,"transform",""),r&&(Yt&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),(be===xe||Ie&&Ie.lastPutMode!=="clone")&&Se&&Se.parentNode&&Se.parentNode.removeChild(Se),J&&(this.nativeDraggable&&le(J,"dragend",this),Pr(J),J.style["will-change"]="",Yt&&!Ct&&ge(J,Ie?Ie.options.ghostClass:this.options.ghostClass,!1),ge(J,this.options.chosenClass,!1),Fe({sortable:this,name:"unchoose",toEl:xe,newIndex:null,newDraggableIndex:null,originalEvent:r}),be!==xe?(Ue>=0&&(Fe({rootEl:xe,name:"add",toEl:xe,fromEl:be,originalEvent:r}),Fe({sortable:this,name:"remove",toEl:xe,originalEvent:r}),Fe({rootEl:xe,name:"sort",toEl:xe,fromEl:be,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),Ie&&Ie.save()):Ue!==Tt&&Ue>=0&&(Fe({sortable:this,name:"update",toEl:xe,originalEvent:r}),Fe({sortable:this,name:"sort",toEl:xe,originalEvent:r})),ne.active&&((Ue==null||Ue===-1)&&(Ue=Tt,dt=Kt),Fe({sortable:this,name:"end",toEl:xe,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Be("nulling",this),be=J=xe=oe=_t=Se=Pn=ct=Ot=Xe=Yt=Ue=dt=Tt=Kt=Nt=Xt=Ie=kn=ne.dragged=ne.ghost=ne.clone=ne.active=null,$n.forEach(function(r){r.checked=!0}),$n.length=xr=Ar=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":J&&(this._onDragOver(r),pu(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,t=this.el.children,o=0,i=t.length,a=this.options;o<i;o++)n=t[o],Ye(n,a.draggable,this.el,!1)&&r.push(n.getAttribute(a.dataIdAttr)||bu(n));return r},sort:function(r){var n={},t=this.el;this.toArray().forEach(function(o,i){var a=t.children[i];Ye(a,this.options.draggable,t,!1)&&(n[o]=a)},this),r.forEach(function(o){n[o]&&(t.removeChild(n[o]),t.appendChild(n[o]))})},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return Ye(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var t=this.options;if(n===void 0)return t[r];var o=Gt.modifyOption(this,r,n);typeof o!="undefined"?t[r]=o:t[r]=n,r==="group"&&No(t)},destroy:function(){Be("destroy",this);var r=this.el;r[De]=null,le(r,"mousedown",this._onTapStart),le(r,"touchstart",this._onTapStart),le(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(le(r,"dragover",this),le(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ln.splice(Ln.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!ct){if(Be("hideClone",this),ne.eventCanceled)return;te(Se,"display","none"),this.options.removeCloneOnHide&&Se.parentNode&&Se.parentNode.removeChild(Se),ct=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(ct){if(Be("showClone",this),ne.eventCanceled)return;be.contains(J)&&!this.options.group.revertClone?be.insertBefore(Se,J):_t?be.insertBefore(Se,_t):be.appendChild(Se),this.options.group.revertClone&&this.animate(J,Se),te(Se,"display",""),ct=!1}}};function pu(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Nr(e,r,n,t,o,i,a,f){var c,h=e[De],u=h.options.onMove,l;return window.CustomEvent&&!ot&&!Ht?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=r,c.from=e,c.dragged=n,c.draggedRect=t,c.related=o||r,c.relatedRect=i||Oe(r),c.willInsertAfter=f,c.originalEvent=a,e.dispatchEvent(c),u&&(l=u.call(h,c,a)),l}function Pr(e){e.draggable=!1}function vu(){Cr=!1}function mu(e,r,n){var t=Oe(_r(n.el,n.options.draggable)),o=10;return r?e.clientX>t.right+o||e.clientX<=t.right&&e.clientY>t.bottom&&e.clientX>=t.left:e.clientX>t.right&&e.clientY>t.top||e.clientX<=t.right&&e.clientY>t.bottom+o}function yu(e,r,n,t,o,i,a,f){var c=t?e.clientY:e.clientX,h=t?n.height:n.width,u=t?n.top:n.left,l=t?n.bottom:n.right,s=!1;if(!a){if(f&&Dn<h*o){if(!Jt&&(Xt===1?c>u+h*i/2:c<l-h*i/2)&&(Jt=!0),Jt)s=!0;else if(Xt===1?c<u+Dn:c>l-Dn)return-Xt}else if(c>u+h*(1-o)/2&&c<l-h*(1-o)/2)return gu(r)}return s=s||a,s&&(c<u+h*i/2||c>l-h*i/2)?c>u+h/2?1:-1:0}function gu(e){return Ee(J)<Ee(e)?1:-1}function bu(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,n=r.length,t=0;n--;)t+=r.charCodeAt(n);return t.toString(36)}function _u(e){$n.length=0;for(var r=e.getElementsByTagName("input"),n=r.length;n--;){var t=r[n];t.checked&&$n.push(t)}}function jn(e){return setTimeout(e,0)}function kr(e){return clearTimeout(e)}Mn&&ce(document,"touchmove",function(e){(ne.active||Ct)&&e.cancelable&&e.preventDefault()}),ne.utils={on:ce,off:le,css:te,find:go,is:function(r,n){return!!Ye(r,n,r,!1)},extend:ou,throttle:Oo,closest:Ye,toggleClass:ge,clone:Er,index:Ee,nextTick:jn,cancelNextTick:kr,detectDirection:Co,getChild:Nn},ne.get=function(e){return e[De]},ne.mount=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(ne.utils=ut({},ne.utils,t.utils)),Gt.mount(t)})},ne.create=function(e,r){return new ne(e,r)},ne.version=tu;var Ae=[],Zt,Ir,Lr=!1,Rr,Dr,Bn,Qt;function Ou(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(n){var t=n.originalEvent;this.sortable.nativeDraggable?ce(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ce(document,"pointermove",this._handleFallbackAutoScroll):t.touches?ce(document,"touchmove",this._handleFallbackAutoScroll):ce(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var t=n.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?le(document,"dragover",this._handleAutoScroll):(le(document,"pointermove",this._handleFallbackAutoScroll),le(document,"touchmove",this._handleFallbackAutoScroll),le(document,"mousemove",this._handleFallbackAutoScroll)),Io(),qn(),au()},nulling:function(){Bn=Ir=Zt=Lr=Qt=Rr=Dr=null,Ae.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,t){var o=this,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,f=document.elementFromPoint(i,a);if(Bn=n,t||Ht||ot||br){$r(n,this.options,f,t);var c=ft(f,!0);Lr&&(!Qt||i!==Rr||a!==Dr)&&(Qt&&Io(),Qt=setInterval(function(){var h=ft(document.elementFromPoint(i,a),!0);h!==c&&(c=h,qn()),$r(n,o.options,h,t)},10),Rr=i,Dr=a)}else{if(!this.options.bubbleScroll||ft(f,!0)===et()){qn();return}$r(n,this.options,ft(f,!1),!1)}}},Ge(e,{pluginName:"scroll",initializeByDefault:!0})}function qn(){Ae.forEach(function(e){clearInterval(e.pid)}),Ae=[]}function Io(){clearInterval(Qt)}var $r=Oo(function(e,r,n,t){if(!!r.scroll){var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=r.scrollSensitivity,f=r.scrollSpeed,c=et(),h=!1,u;Ir!==n&&(Ir=n,qn(),Zt=r.scroll,u=r.scrollFn,Zt===!0&&(Zt=ft(n,!0)));var l=0,s=Zt;do{var d=s,v=Oe(d),p=v.top,b=v.bottom,m=v.left,g=v.right,_=v.width,y=v.height,O=void 0,N=void 0,T=d.scrollWidth,A=d.scrollHeight,I=te(d),w=d.scrollLeft,E=d.scrollTop;d===c?(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"||I.overflowX==="visible"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"||I.overflowY==="visible")):(O=_<T&&(I.overflowX==="auto"||I.overflowX==="scroll"),N=y<A&&(I.overflowY==="auto"||I.overflowY==="scroll"));var x=O&&(Math.abs(g-o)<=a&&w+_<T)-(Math.abs(m-o)<=a&&!!w),P=N&&(Math.abs(b-i)<=a&&E+y<A)-(Math.abs(p-i)<=a&&!!E);if(!Ae[l])for(var R=0;R<=l;R++)Ae[R]||(Ae[R]={});(Ae[l].vx!=x||Ae[l].vy!=P||Ae[l].el!==d)&&(Ae[l].el=d,Ae[l].vx=x,Ae[l].vy=P,clearInterval(Ae[l].pid),(x!=0||P!=0)&&(h=!0,Ae[l].pid=setInterval(function(){t&&this.layer===0&&ne.active._onTouchMove(Bn);var D=Ae[this.layer].vy?Ae[this.layer].vy*f:0,B=Ae[this.layer].vx?Ae[this.layer].vx*f:0;typeof u=="function"&&u.call(ne.dragged.parentNode[De],B,D,e,Bn,Ae[this.layer].el)!=="continue"||Eo(Ae[this.layer].el,B,D)}.bind({layer:l}),24))),l++}while(r.bubbleScroll&&s!==c&&(s=ft(s,!1)));Lr=h}},30),Lo=function(r){var n=r.originalEvent,t=r.putSortable,o=r.dragEl,i=r.activeSortable,a=r.dispatchSortableEvent,f=r.hideGhostForTarget,c=r.unhideGhostForTarget;if(!!n){var h=t||i;f();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,l=document.elementFromPoint(u.clientX,u.clientY);c(),h&&!h.el.contains(l)&&(a("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function Mr(){}Mr.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=Nn(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(n,o):this.sortable.el.appendChild(n),this.sortable.animateAll(),t&&t.animateAll()},drop:Lo},Ge(Mr,{pluginName:"revertOnSpill"});function Fr(){}Fr.prototype={onSpill:function(r){var n=r.dragEl,t=r.putSortable,o=t||this.sortable;o.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),o.animateAll()},drop:Lo},Ge(Fr,{pluginName:"removeOnSpill"});var Ve;function Eu(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var t=n.dragEl;Ve=t},dragOverValid:function(n){var t=n.completed,o=n.target,i=n.onMove,a=n.activeSortable,f=n.changed,c=n.cancel;if(!!a.options.swap){var h=this.sortable.el,u=this.options;if(o&&o!==h){var l=Ve;i(o)!==!1?(ge(o,u.swapClass,!0),Ve=o):Ve=null,l&&l!==Ve&&ge(l,u.swapClass,!1)}f(),t(!0),c()}},drop:function(n){var t=n.activeSortable,o=n.putSortable,i=n.dragEl,a=o||this.sortable,f=this.options;Ve&&ge(Ve,f.swapClass,!1),Ve&&(f.swap||o&&o.options.swap)&&i!==Ve&&(a.captureAnimationState(),a!==t&&t.captureAnimationState(),Su(i,Ve),a.animateAll(),a!==t&&t.animateAll())},nulling:function(){Ve=null}},Ge(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Ve}}})}function Su(e,r){var n=e.parentNode,t=r.parentNode,o,i;!n||!t||n.isEqualNode(r)||t.isEqualNode(e)||(o=Ee(e),i=Ee(r),n.isEqualNode(t)&&o<i&&i++,n.insertBefore(r,n.children[o]),t.insertBefore(e,t.children[i]))}var ie=[],He=[],en,Je,tn=!1,ze=!1,Pt=!1,me,nn,Un;function wu(){function e(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?ce(document,"pointerup",this._deselectMultiDrag):(ce(document,"mouseup",this._deselectMultiDrag),ce(document,"touchend",this._deselectMultiDrag)),ce(document,"keydown",this._checkKeyDown),ce(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(o,i){var a="";ie.length&&Je===r?ie.forEach(function(f,c){a+=(c?", ":"")+f.textContent}):a=i.textContent,o.setData("Text",a)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var t=n.dragEl;me=t},delayEnded:function(){this.isMultiDrag=~ie.indexOf(me)},setupClone:function(n){var t=n.sortable,o=n.cancel;if(!!this.isMultiDrag){for(var i=0;i<ie.length;i++)He.push(Er(ie[i])),He[i].sortableIndex=ie[i].sortableIndex,He[i].draggable=!1,He[i].style["will-change"]="",ge(He[i],this.options.selectedClass,!1),ie[i]===me&&ge(He[i],this.options.chosenClass,!1);t._hideClone(),o()}},clone:function(n){var t=n.sortable,o=n.rootEl,i=n.dispatchSortableEvent,a=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||ie.length&&Je===t&&(Ro(!0,o),i("clone"),a())},showClone:function(n){var t=n.cloneNowShown,o=n.rootEl,i=n.cancel;!this.isMultiDrag||(Ro(!1,o),He.forEach(function(a){te(a,"display","")}),t(),Un=!1,i())},hideClone:function(n){var t=this;n.sortable;var o=n.cloneNowHidden,i=n.cancel;!this.isMultiDrag||(He.forEach(function(a){te(a,"display","none"),t.options.removeCloneOnHide&&a.parentNode&&a.parentNode.removeChild(a)}),o(),Un=!0,i())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Je&&Je.multiDrag._deselectMultiDrag(),ie.forEach(function(t){t.sortableIndex=Ee(t)}),ie=ie.sort(function(t,o){return t.sortableIndex-o.sortableIndex}),Pt=!0},dragStarted:function(n){var t=this,o=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(o.captureAnimationState(),this.options.animation)){ie.forEach(function(a){a!==me&&te(a,"position","absolute")});var i=Oe(me,!1,!0,!0);ie.forEach(function(a){a!==me&&So(a,i)}),ze=!0,tn=!0}o.animateAll(function(){ze=!1,tn=!1,t.options.animation&&ie.forEach(function(a){Sr(a)}),t.options.sort&&Hn()})}},dragOver:function(n){var t=n.target,o=n.completed,i=n.cancel;ze&&~ie.indexOf(t)&&(o(!1),i())},revert:function(n){var t=n.fromSortable,o=n.rootEl,i=n.sortable,a=n.dragRect;ie.length>1&&(ie.forEach(function(f){i.addAnimationState({target:f,rect:ze?Oe(f):a}),Sr(f),f.fromRect=a,t.removeAnimationState(f)}),ze=!1,xu(!this.options.removeCloneOnHide,o))},dragOverCompleted:function(n){var t=n.sortable,o=n.isOwner,i=n.insertion,a=n.activeSortable,f=n.parentEl,c=n.putSortable,h=this.options;if(i){if(o&&a._hideClone(),tn=!1,h.animation&&ie.length>1&&(ze||!o&&!a.options.sort&&!c)){var u=Oe(me,!1,!0,!0);ie.forEach(function(s){s!==me&&(So(s,u),f.appendChild(s))}),ze=!0}if(!o)if(ze||Hn(),ie.length>1){var l=Un;a._showClone(t),a.options.animation&&!Un&&l&&He.forEach(function(s){a.addAnimationState({target:s,rect:nn}),s.fromRect=nn,s.thisAnimationDuration=null})}else a._showClone(t)}},dragOverAnimationCapture:function(n){var t=n.dragRect,o=n.isOwner,i=n.activeSortable;if(ie.forEach(function(f){f.thisAnimationDuration=null}),i.options.animation&&!o&&i.multiDrag.isMultiDrag){nn=Ge({},t);var a=bt(me,!0);nn.top-=a.f,nn.left-=a.e}},dragOverAnimationComplete:function(){ze&&(ze=!1,Hn())},drop:function(n){var t=n.originalEvent,o=n.rootEl,i=n.parentEl,a=n.sortable,f=n.dispatchSortableEvent,c=n.oldIndex,h=n.putSortable,u=h||this.sortable;if(!!t){var l=this.options,s=i.children;if(!Pt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),ge(me,l.selectedClass,!~ie.indexOf(me)),~ie.indexOf(me))ie.splice(ie.indexOf(me),1),en=null,Vt({sortable:a,rootEl:o,name:"deselect",targetEl:me,originalEvt:t});else{if(ie.push(me),Vt({sortable:a,rootEl:o,name:"select",targetEl:me,originalEvt:t}),t.shiftKey&&en&&a.el.contains(en)){var d=Ee(en),v=Ee(me);if(~d&&~v&&d!==v){var p,b;for(v>d?(b=d,p=v):(b=v,p=d+1);b<p;b++)~ie.indexOf(s[b])||(ge(s[b],l.selectedClass,!0),ie.push(s[b]),Vt({sortable:a,rootEl:o,name:"select",targetEl:s[b],originalEvt:t}))}}else en=me;Je=u}if(Pt&&this.isMultiDrag){if((i[De].options.sort||i!==o)&&ie.length>1){var m=Oe(me),g=Ee(me,":not(."+this.options.selectedClass+")");if(!tn&&l.animation&&(me.thisAnimationDuration=null),u.captureAnimationState(),!tn&&(l.animation&&(me.fromRect=m,ie.forEach(function(y){if(y.thisAnimationDuration=null,y!==me){var O=ze?Oe(y):m;y.fromRect=O,u.addAnimationState({target:y,rect:O})}})),Hn(),ie.forEach(function(y){s[g]?i.insertBefore(y,s[g]):i.appendChild(y),g++}),c===Ee(me))){var _=!1;ie.forEach(function(y){if(y.sortableIndex!==Ee(y)){_=!0;return}}),_&&f("update")}ie.forEach(function(y){Sr(y)}),u.animateAll()}Je=u}(o===i||h&&h.lastPutMode!=="clone")&&He.forEach(function(y){y.parentNode&&y.parentNode.removeChild(y)})}},nullingGlobal:function(){this.isMultiDrag=Pt=!1,He.length=0},destroyGlobal:function(){this._deselectMultiDrag(),le(document,"pointerup",this._deselectMultiDrag),le(document,"mouseup",this._deselectMultiDrag),le(document,"touchend",this._deselectMultiDrag),le(document,"keydown",this._checkKeyDown),le(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Pt!="undefined"&&Pt)&&Je===this.sortable&&!(n&&Ye(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;ie.length;){var t=ie[0];ge(t,this.options.selectedClass,!1),ie.shift(),Vt({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Ge(e,{pluginName:"multiDrag",utils:{select:function(n){var t=n.parentNode[De];!t||!t.options.multiDrag||~ie.indexOf(n)||(Je&&Je!==t&&(Je.multiDrag._deselectMultiDrag(),Je=t),ge(n,t.options.selectedClass,!0),ie.push(n))},deselect:function(n){var t=n.parentNode[De],o=ie.indexOf(n);!t||!t.options.multiDrag||!~o||(ge(n,t.options.selectedClass,!1),ie.splice(o,1))}},eventProperties:function(){var n=this,t=[],o=[];return ie.forEach(function(i){t.push({multiDragElement:i,index:i.sortableIndex});var a;ze&&i!==me?a=-1:ze?a=Ee(i,":not(."+n.options.selectedClass+")"):a=Ee(i),o.push({multiDragElement:i,index:a})}),{items:Js(ie),clones:[].concat(He),oldIndicies:t,newIndicies:o}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function xu(e,r){ie.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Ro(e,r){He.forEach(function(n,t){var o=r.children[n.sortableIndex+(e?Number(t):0)];o?r.insertBefore(n,o):r.appendChild(n)})}function Hn(){ie.forEach(function(e){e!==me&&e.parentNode&&e.parentNode.removeChild(e)})}ne.mount(new Ou),ne.mount(Fr,Mr);var Au=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:ne,MultiDrag:wu,Sortable:ne,Swap:Eu}),Tu=Zi(Au);(function(e,r){(function(t,o){e.exports=o(Tu)})(typeof self!="undefined"?self:Ut,function(n){return function(t){var o={};function i(a){if(o[a])return o[a].exports;var f=o[a]={i:a,l:!1,exports:{}};return t[a].call(f.exports,f,f.exports,i),f.l=!0,f.exports}return i.m=t,i.c=o,i.d=function(a,f,c){i.o(a,f)||Object.defineProperty(a,f,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,f){if(f&1&&(a=i(a)),f&8||f&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),f&2&&typeof a!="string")for(var h in a)i.d(c,h,function(u){return a[u]}.bind(null,h));return c},i.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(f,"a",f),f},i.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},i.p="",i(i.s="fb15")}({"01f9":function(t,o,i){var a=i("2d00"),f=i("5ca1"),c=i("2aba"),h=i("32e9"),u=i("84f2"),l=i("41a0"),s=i("7f20"),d=i("38fd"),v=i("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),b="@@iterator",m="keys",g="values",_=function(){return this};t.exports=function(y,O,N,T,A,I,w){l(N,O,T);var E=function(k){if(!p&&k in D)return D[k];switch(k){case m:return function(){return new N(this,k)};case g:return function(){return new N(this,k)}}return function(){return new N(this,k)}},x=O+" Iterator",P=A==g,R=!1,D=y.prototype,B=D[v]||D[b]||A&&D[A],U=B||E(A),V=A?P?E("entries"):U:void 0,q=O=="Array"&&D.entries||B,$,S,C;if(q&&(C=d(q.call(new y)),C!==Object.prototype&&C.next&&(s(C,x,!0),!a&&typeof C[v]!="function"&&h(C,v,_))),P&&B&&B.name!==g&&(R=!0,U=function(){return B.call(this)}),(!a||w)&&(p||R||!D[v])&&h(D,v,U),u[O]=U,u[x]=_,A)if($={values:P?U:E(g),keys:I?U:E(m),entries:V},w)for(S in $)S in D||c(D,S,$[S]);else f(f.P+f.F*(p||R),O,$);return $}},"02f4":function(t,o,i){var a=i("4588"),f=i("be13");t.exports=function(c){return function(h,u){var l=String(f(h)),s=a(u),d=l.length,v,p;return s<0||s>=d?c?"":void 0:(v=l.charCodeAt(s),v<55296||v>56319||s+1===d||(p=l.charCodeAt(s+1))<56320||p>57343?c?l.charAt(s):v:c?l.slice(s,s+2):(v-55296<<10)+(p-56320)+65536)}}},"0390":function(t,o,i){var a=i("02f4")(!0);t.exports=function(f,c,h){return c+(h?a(f,c).length:1)}},"0bfb":function(t,o,i){var a=i("cb7c");t.exports=function(){var f=a(this),c="";return f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),f.unicode&&(c+="u"),f.sticky&&(c+="y"),c}},"0d58":function(t,o,i){var a=i("ce10"),f=i("e11e");t.exports=Object.keys||function(h){return a(h,f)}},"1495":function(t,o,i){var a=i("86cc"),f=i("cb7c"),c=i("0d58");t.exports=i("9e1e")?Object.defineProperties:function(u,l){f(u);for(var s=c(l),d=s.length,v=0,p;d>v;)a.f(u,p=s[v++],l[p]);return u}},"214f":function(t,o,i){i("b0c5");var a=i("2aba"),f=i("32e9"),c=i("79e5"),h=i("be13"),u=i("2b4c"),l=i("520a"),s=u("species"),d=!c(function(){var p=/./;return p.exec=function(){var b=[];return b.groups={a:"7"},b},"".replace(p,"$<a>")!=="7"}),v=function(){var p=/(?:)/,b=p.exec;p.exec=function(){return b.apply(this,arguments)};var m="ab".split(p);return m.length===2&&m[0]==="a"&&m[1]==="b"}();t.exports=function(p,b,m){var g=u(p),_=!c(function(){var I={};return I[g]=function(){return 7},""[p](I)!=7}),y=_?!c(function(){var I=!1,w=/a/;return w.exec=function(){return I=!0,null},p==="split"&&(w.constructor={},w.constructor[s]=function(){return w}),w[g](""),!I}):void 0;if(!_||!y||p==="replace"&&!d||p==="split"&&!v){var O=/./[g],N=m(h,g,""[p],function(w,E,x,P,R){return E.exec===l?_&&!R?{done:!0,value:O.call(E,x,P)}:{done:!0,value:w.call(x,E,P)}:{done:!1}}),T=N[0],A=N[1];a(String.prototype,p,T),f(RegExp.prototype,g,b==2?function(I,w){return A.call(I,this,w)}:function(I){return A.call(I,this)})}}},"230e":function(t,o,i){var a=i("d3f4"),f=i("7726").document,c=a(f)&&a(f.createElement);t.exports=function(h){return c?f.createElement(h):{}}},"23c6":function(t,o,i){var a=i("2d95"),f=i("2b4c")("toStringTag"),c=a(function(){return arguments}())=="Arguments",h=function(u,l){try{return u[l]}catch{}};t.exports=function(u){var l,s,d;return u===void 0?"Undefined":u===null?"Null":typeof(s=h(l=Object(u),f))=="string"?s:c?a(l):(d=a(l))=="Object"&&typeof l.callee=="function"?"Arguments":d}},"2621":function(t,o){o.f=Object.getOwnPropertySymbols},"2aba":function(t,o,i){var a=i("7726"),f=i("32e9"),c=i("69a8"),h=i("ca5a")("src"),u=i("fa5b"),l="toString",s=(""+u).split(l);i("8378").inspectSource=function(d){return u.call(d)},(t.exports=function(d,v,p,b){var m=typeof p=="function";m&&(c(p,"name")||f(p,"name",v)),d[v]!==p&&(m&&(c(p,h)||f(p,h,d[v]?""+d[v]:s.join(String(v)))),d===a?d[v]=p:b?d[v]?d[v]=p:f(d,v,p):(delete d[v],f(d,v,p)))})(Function.prototype,l,function(){return typeof this=="function"&&this[h]||u.call(this)})},"2aeb":function(t,o,i){var a=i("cb7c"),f=i("1495"),c=i("e11e"),h=i("613b")("IE_PROTO"),u=function(){},l="prototype",s=function(){var d=i("230e")("iframe"),v=c.length,p="<",b=">",m;for(d.style.display="none",i("fab2").appendChild(d),d.src="javascript:",m=d.contentWindow.document,m.open(),m.write(p+"script"+b+"document.F=Object"+p+"/script"+b),m.close(),s=m.F;v--;)delete s[l][c[v]];return s()};t.exports=Object.create||function(v,p){var b;return v!==null?(u[l]=a(v),b=new u,u[l]=null,b[h]=v):b=s(),p===void 0?b:f(b,p)}},"2b4c":function(t,o,i){var a=i("5537")("wks"),f=i("ca5a"),c=i("7726").Symbol,h=typeof c=="function",u=t.exports=function(l){return a[l]||(a[l]=h&&c[l]||(h?c:f)("Symbol."+l))};u.store=a},"2d00":function(t,o){t.exports=!1},"2d95":function(t,o){var i={}.toString;t.exports=function(a){return i.call(a).slice(8,-1)}},"2fdb":function(t,o,i){var a=i("5ca1"),f=i("d2c8"),c="includes";a(a.P+a.F*i("5147")(c),"String",{includes:function(u){return!!~f(this,u,c).indexOf(u,arguments.length>1?arguments[1]:void 0)}})},"32e9":function(t,o,i){var a=i("86cc"),f=i("4630");t.exports=i("9e1e")?function(c,h,u){return a.f(c,h,f(1,u))}:function(c,h,u){return c[h]=u,c}},"38fd":function(t,o,i){var a=i("69a8"),f=i("4bf8"),c=i("613b")("IE_PROTO"),h=Object.prototype;t.exports=Object.getPrototypeOf||function(u){return u=f(u),a(u,c)?u[c]:typeof u.constructor=="function"&&u instanceof u.constructor?u.constructor.prototype:u instanceof Object?h:null}},"41a0":function(t,o,i){var a=i("2aeb"),f=i("4630"),c=i("7f20"),h={};i("32e9")(h,i("2b4c")("iterator"),function(){return this}),t.exports=function(u,l,s){u.prototype=a(h,{next:f(1,s)}),c(u,l+" Iterator")}},"456d":function(t,o,i){var a=i("4bf8"),f=i("0d58");i("5eda")("keys",function(){return function(h){return f(a(h))}})},"4588":function(t,o){var i=Math.ceil,a=Math.floor;t.exports=function(f){return isNaN(f=+f)?0:(f>0?a:i)(f)}},"4630":function(t,o){t.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"4bf8":function(t,o,i){var a=i("be13");t.exports=function(f){return Object(a(f))}},"5147":function(t,o,i){var a=i("2b4c")("match");t.exports=function(f){var c=/./;try{"/./"[f](c)}catch{try{return c[a]=!1,!"/./"[f](c)}catch{}}return!0}},"520a":function(t,o,i){var a=i("0bfb"),f=RegExp.prototype.exec,c=String.prototype.replace,h=f,u="lastIndex",l=function(){var v=/a/,p=/b*/g;return f.call(v,"a"),f.call(p,"a"),v[u]!==0||p[u]!==0}(),s=/()??/.exec("")[1]!==void 0,d=l||s;d&&(h=function(p){var b=this,m,g,_,y;return s&&(g=new RegExp("^"+b.source+"$(?!\\s)",a.call(b))),l&&(m=b[u]),_=f.call(b,p),l&&_&&(b[u]=b.global?_.index+_[0].length:m),s&&_&&_.length>1&&c.call(_[0],g,function(){for(y=1;y<arguments.length-2;y++)arguments[y]===void 0&&(_[y]=void 0)}),_}),t.exports=h},"52a7":function(t,o){o.f={}.propertyIsEnumerable},"5537":function(t,o,i){var a=i("8378"),f=i("7726"),c="__core-js_shared__",h=f[c]||(f[c]={});(t.exports=function(u,l){return h[u]||(h[u]=l!==void 0?l:{})})("versions",[]).push({version:a.version,mode:i("2d00")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,o,i){var a=i("7726"),f=i("8378"),c=i("32e9"),h=i("2aba"),u=i("9b43"),l="prototype",s=function(d,v,p){var b=d&s.F,m=d&s.G,g=d&s.S,_=d&s.P,y=d&s.B,O=m?a:g?a[v]||(a[v]={}):(a[v]||{})[l],N=m?f:f[v]||(f[v]={}),T=N[l]||(N[l]={}),A,I,w,E;m&&(p=v);for(A in p)I=!b&&O&&O[A]!==void 0,w=(I?O:p)[A],E=y&&I?u(w,a):_&&typeof w=="function"?u(Function.call,w):w,O&&h(O,A,w,d&s.U),N[A]!=w&&c(N,A,E),_&&T[A]!=w&&(T[A]=w)};a.core=f,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5eda":function(t,o,i){var a=i("5ca1"),f=i("8378"),c=i("79e5");t.exports=function(h,u){var l=(f.Object||{})[h]||Object[h],s={};s[h]=u(l),a(a.S+a.F*c(function(){l(1)}),"Object",s)}},"5f1b":function(t,o,i){var a=i("23c6"),f=RegExp.prototype.exec;t.exports=function(c,h){var u=c.exec;if(typeof u=="function"){var l=u.call(c,h);if(typeof l!="object")throw new TypeError("RegExp exec method returned something other than an Object or null");return l}if(a(c)!=="RegExp")throw new TypeError("RegExp#exec called on incompatible receiver");return f.call(c,h)}},"613b":function(t,o,i){var a=i("5537")("keys"),f=i("ca5a");t.exports=function(c){return a[c]||(a[c]=f(c))}},"626a":function(t,o,i){var a=i("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(f){return a(f)=="String"?f.split(""):Object(f)}},"6762":function(t,o,i){var a=i("5ca1"),f=i("c366")(!0);a(a.P,"Array",{includes:function(h){return f(this,h,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")("includes")},"6821":function(t,o,i){var a=i("626a"),f=i("be13");t.exports=function(c){return a(f(c))}},"69a8":function(t,o){var i={}.hasOwnProperty;t.exports=function(a,f){return i.call(a,f)}},"6a99":function(t,o,i){var a=i("d3f4");t.exports=function(f,c){if(!a(f))return f;var h,u;if(c&&typeof(h=f.toString)=="function"&&!a(u=h.call(f))||typeof(h=f.valueOf)=="function"&&!a(u=h.call(f))||!c&&typeof(h=f.toString)=="function"&&!a(u=h.call(f)))return u;throw TypeError("Can't convert object to primitive value")}},"7333":function(t,o,i){var a=i("0d58"),f=i("2621"),c=i("52a7"),h=i("4bf8"),u=i("626a"),l=Object.assign;t.exports=!l||i("79e5")(function(){var s={},d={},v=Symbol(),p="abcdefghijklmnopqrst";return s[v]=7,p.split("").forEach(function(b){d[b]=b}),l({},s)[v]!=7||Object.keys(l({},d)).join("")!=p})?function(d,v){for(var p=h(d),b=arguments.length,m=1,g=f.f,_=c.f;b>m;)for(var y=u(arguments[m++]),O=g?a(y).concat(g(y)):a(y),N=O.length,T=0,A;N>T;)_.call(y,A=O[T++])&&(p[A]=y[A]);return p}:l},"7726":function(t,o){var i=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=i)},"77f1":function(t,o,i){var a=i("4588"),f=Math.max,c=Math.min;t.exports=function(h,u){return h=a(h),h<0?f(h+u,0):c(h,u)}},"79e5":function(t,o){t.exports=function(i){try{return!!i()}catch{return!0}}},"7f20":function(t,o,i){var a=i("86cc").f,f=i("69a8"),c=i("2b4c")("toStringTag");t.exports=function(h,u,l){h&&!f(h=l?h:h.prototype,c)&&a(h,c,{configurable:!0,value:u})}},"8378":function(t,o){var i=t.exports={version:"2.6.5"};typeof __e=="number"&&(__e=i)},"84f2":function(t,o){t.exports={}},"86cc":function(t,o,i){var a=i("cb7c"),f=i("c69a"),c=i("6a99"),h=Object.defineProperty;o.f=i("9e1e")?Object.defineProperty:function(l,s,d){if(a(l),s=c(s,!0),a(d),f)try{return h(l,s,d)}catch{}if("get"in d||"set"in d)throw TypeError("Accessors not supported!");return"value"in d&&(l[s]=d.value),l}},"9b43":function(t,o,i){var a=i("d8e8");t.exports=function(f,c,h){if(a(f),c===void 0)return f;switch(h){case 1:return function(u){return f.call(c,u)};case 2:return function(u,l){return f.call(c,u,l)};case 3:return function(u,l,s){return f.call(c,u,l,s)}}return function(){return f.apply(c,arguments)}}},"9c6c":function(t,o,i){var a=i("2b4c")("unscopables"),f=Array.prototype;f[a]==null&&i("32e9")(f,a,{}),t.exports=function(c){f[a][c]=!0}},"9def":function(t,o,i){var a=i("4588"),f=Math.min;t.exports=function(c){return c>0?f(a(c),9007199254740991):0}},"9e1e":function(t,o,i){t.exports=!i("79e5")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},a352:function(t,o){t.exports=n},a481:function(t,o,i){var a=i("cb7c"),f=i("4bf8"),c=i("9def"),h=i("4588"),u=i("0390"),l=i("5f1b"),s=Math.max,d=Math.min,v=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,b=/\$([$&`']|\d\d?)/g,m=function(g){return g===void 0?g:String(g)};i("214f")("replace",2,function(g,_,y,O){return[function(A,I){var w=g(this),E=A==null?void 0:A[_];return E!==void 0?E.call(A,w,I):y.call(String(w),A,I)},function(T,A){var I=O(y,T,this,A);if(I.done)return I.value;var w=a(T),E=String(this),x=typeof A=="function";x||(A=String(A));var P=w.global;if(P){var R=w.unicode;w.lastIndex=0}for(var D=[];;){var B=l(w,E);if(B===null||(D.push(B),!P))break;var U=String(B[0]);U===""&&(w.lastIndex=u(E,c(w.lastIndex),R))}for(var V="",q=0,$=0;$<D.length;$++){B=D[$];for(var S=String(B[0]),C=s(d(h(B.index),E.length),0),k=[],F=1;F<B.length;F++)k.push(m(B[F]));var j=B.groups;if(x){var L=[S].concat(k,C,E);j!==void 0&&L.push(j);var M=String(A.apply(void 0,L))}else M=N(S,E,C,k,j,A);C>=q&&(V+=E.slice(q,C)+M,q=C+S.length)}return V+E.slice(q)}];function N(T,A,I,w,E,x){var P=I+T.length,R=w.length,D=b;return E!==void 0&&(E=f(E),D=p),y.call(x,D,function(B,U){var V;switch(U.charAt(0)){case"$":return"$";case"&":return T;case"`":return A.slice(0,I);case"'":return A.slice(P);case"<":V=E[U.slice(1,-1)];break;default:var q=+U;if(q===0)return B;if(q>R){var $=v(q/10);return $===0?B:$<=R?w[$-1]===void 0?U.charAt(1):w[$-1]+U.charAt(1):B}V=w[q-1]}return V===void 0?"":V})}})},aae3:function(t,o,i){var a=i("d3f4"),f=i("2d95"),c=i("2b4c")("match");t.exports=function(h){var u;return a(h)&&((u=h[c])!==void 0?!!u:f(h)=="RegExp")}},ac6a:function(t,o,i){for(var a=i("cadf"),f=i("0d58"),c=i("2aba"),h=i("7726"),u=i("32e9"),l=i("84f2"),s=i("2b4c"),d=s("iterator"),v=s("toStringTag"),p=l.Array,b={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},m=f(b),g=0;g<m.length;g++){var _=m[g],y=b[_],O=h[_],N=O&&O.prototype,T;if(N&&(N[d]||u(N,d,p),N[v]||u(N,v,_),l[_]=p,y))for(T in a)N[T]||c(N,T,a[T],!0)}},b0c5:function(t,o,i){var a=i("520a");i("5ca1")({target:"RegExp",proto:!0,forced:a!==/./.exec},{exec:a})},be13:function(t,o){t.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},c366:function(t,o,i){var a=i("6821"),f=i("9def"),c=i("77f1");t.exports=function(h){return function(u,l,s){var d=a(u),v=f(d.length),p=c(s,v),b;if(h&&l!=l){for(;v>p;)if(b=d[p++],b!=b)return!0}else for(;v>p;p++)if((h||p in d)&&d[p]===l)return h||p||0;return!h&&-1}}},c649:function(t,o,i){(function(a){i.d(o,"c",function(){return d}),i.d(o,"a",function(){return l}),i.d(o,"b",function(){return c}),i.d(o,"d",function(){return s}),i("a481");function f(){return typeof window!="undefined"?window.console:a.console}var c=f();function h(v){var p=Object.create(null);return function(m){var g=p[m];return g||(p[m]=v(m))}}var u=/-(\w)/g,l=h(function(v){return v.replace(u,function(p,b){return b?b.toUpperCase():""})});function s(v){v.parentElement!==null&&v.parentElement.removeChild(v)}function d(v,p,b){var m=b===0?v.children[0]:v.children[b-1].nextSibling;v.insertBefore(p,m)}}).call(this,i("c8ba"))},c69a:function(t,o,i){t.exports=!i("9e1e")&&!i("79e5")(function(){return Object.defineProperty(i("230e")("div"),"a",{get:function(){return 7}}).a!=7})},c8ba:function(t,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}t.exports=i},ca5a:function(t,o){var i=0,a=Math.random();t.exports=function(f){return"Symbol(".concat(f===void 0?"":f,")_",(++i+a).toString(36))}},cadf:function(t,o,i){var a=i("9c6c"),f=i("d53b"),c=i("84f2"),h=i("6821");t.exports=i("01f9")(Array,"Array",function(u,l){this._t=h(u),this._i=0,this._k=l},function(){var u=this._t,l=this._k,s=this._i++;return!u||s>=u.length?(this._t=void 0,f(1)):l=="keys"?f(0,s):l=="values"?f(0,u[s]):f(0,[s,u[s]])},"values"),c.Arguments=c.Array,a("keys"),a("values"),a("entries")},cb7c:function(t,o,i){var a=i("d3f4");t.exports=function(f){if(!a(f))throw TypeError(f+" is not an object!");return f}},ce10:function(t,o,i){var a=i("69a8"),f=i("6821"),c=i("c366")(!1),h=i("613b")("IE_PROTO");t.exports=function(u,l){var s=f(u),d=0,v=[],p;for(p in s)p!=h&&a(s,p)&&v.push(p);for(;l.length>d;)a(s,p=l[d++])&&(~c(v,p)||v.push(p));return v}},d2c8:function(t,o,i){var a=i("aae3"),f=i("be13");t.exports=function(c,h,u){if(a(h))throw TypeError("String#"+u+" doesn't accept regex!");return String(f(c))}},d3f4:function(t,o){t.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},d53b:function(t,o){t.exports=function(i,a){return{value:a,done:!!i}}},d8e8:function(t,o){t.exports=function(i){if(typeof i!="function")throw TypeError(i+" is not a function!");return i}},e11e:function(t,o){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f559:function(t,o,i){var a=i("5ca1"),f=i("9def"),c=i("d2c8"),h="startsWith",u=""[h];a(a.P+a.F*i("5147")(h),"String",{startsWith:function(s){var d=c(this,s,h),v=f(Math.min(arguments.length>1?arguments[1]:void 0,d.length)),p=String(s);return u?u.call(d,p,v):d.slice(v,v+p.length)===p}})},f6fd:function(t,o){(function(i){var a="currentScript",f=i.getElementsByTagName("script");a in i||Object.defineProperty(i,a,{get:function(){try{throw new Error}catch(u){var c,h=(/.*at [^\(]*\((.*):.+:.+\)$/ig.exec(u.stack)||[!1])[1];for(c in f)if(f[c].src==h||f[c].readyState=="interactive")return f[c];return null}}})})(document)},f751:function(t,o,i){var a=i("5ca1");a(a.S+a.F,"Object",{assign:i("7333")})},fa5b:function(t,o,i){t.exports=i("5537")("native-function-to-string",Function.toString)},fab2:function(t,o,i){var a=i("7726").document;t.exports=a&&a.documentElement},fb15:function(t,o,i){if(i.r(o),typeof window!="undefined"){i("f6fd");var a;(a=window.document.currentScript)&&(a=a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(i.p=a[1])}i("f751"),i("f559"),i("ac6a"),i("cadf"),i("456d");function f(S){if(Array.isArray(S))return S}function c(S,C){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(S)))){var k=[],F=!0,j=!1,L=void 0;try{for(var M=S[Symbol.iterator](),H;!(F=(H=M.next()).done)&&(k.push(H.value),!(C&&k.length===C));F=!0);}catch(z){j=!0,L=z}finally{try{!F&&M.return!=null&&M.return()}finally{if(j)throw L}}return k}}function h(S,C){(C==null||C>S.length)&&(C=S.length);for(var k=0,F=new Array(C);k<C;k++)F[k]=S[k];return F}function u(S,C){if(!!S){if(typeof S=="string")return h(S,C);var k=Object.prototype.toString.call(S).slice(8,-1);if(k==="Object"&&S.constructor&&(k=S.constructor.name),k==="Map"||k==="Set")return Array.from(S);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return h(S,C)}}function l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24
24
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(S,C){return f(S)||c(S,C)||u(S,C)||l()}i("6762"),i("2fdb");function d(S){if(Array.isArray(S))return h(S)}function v(S){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(S))return Array.from(S)}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(S){return d(S)||v(S)||u(S)||p()}var m=i("a352"),g=i.n(m),_=i("c649");function y(S,C,k){return k===void 0||(S=S||{},S[C]=k),S}function O(S,C){return S.map(function(k){return k.elm}).indexOf(C)}function N(S,C,k,F){if(!S)return[];var j=S.map(function(H){return H.elm}),L=C.length-F,M=b(C).map(function(H,z){return z>=L?j.length:j.indexOf(H)});return k?M.filter(function(H){return H!==-1}):M}function T(S,C){var k=this;this.$nextTick(function(){return k.$emit(S.toLowerCase(),C)})}function A(S){var C=this;return function(k){C.realList!==null&&C["onDrag"+S](k),T.call(C,S,k)}}function I(S){return["transition-group","TransitionGroup"].includes(S)}function w(S){if(!S||S.length!==1)return!1;var C=s(S,1),k=C[0].componentOptions;return k?I(k.tag):!1}function E(S,C,k){return S[k]||(C[k]?C[k]():void 0)}function x(S,C,k){var F=0,j=0,L=E(C,k,"header");L&&(F=L.length,S=S?[].concat(b(L),b(S)):b(L));var M=E(C,k,"footer");return M&&(j=M.length,S=S?[].concat(b(S),b(M)):b(M)),{children:S,headerOffset:F,footerOffset:j}}function P(S,C){var k=null,F=function(Y,ee){k=y(k,Y,ee)},j=Object.keys(S).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,Y){return z[Y]=S[Y],z},{});if(F("attrs",j),!C)return k;var L=C.on,M=C.props,H=C.attrs;return F("on",L),F("props",M),Object.assign(k.attrs,H),k}var D=["Start","Add","Remove","Update","End"],R=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(D,R).map(function(S){return"on"+S}),U=null,V={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(C){return C}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:V,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(C){var k=this.$slots.default;this.transitionMode=w(k);var F=x(k,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,M=F.footerOffset;this.headerOffset=L,this.footerOffset=M;var H=P(this.$attrs,this.componentData);return C(this.getTag(),H,j)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var C=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var k={};D.forEach(function(L){k["on"+L]=A.call(C,L)}),R.forEach(function(L){k["on"+L]=T.bind(C,L)});var F=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=C.$attrs[M],L},{}),j=Object.assign({},this.options,F,k,{onMove:function(M,H){return C.onDragMove(M,H)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new g.a(this.rootContainer,j),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(C){this.updateOptions(C)},deep:!0},$attrs:{handler:function(C){this.updateOptions(C)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var C=this._vnode.fnOptions;return C&&C.functional},getTag:function(){return this.tag||this.element},updateOptions:function(C){for(var k in C){var F=Object(_.a)(k);B.indexOf(F)===-1&&this._sortable.option(F,C[k])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var C=this.$slots.default;return this.transitionMode?C[0].child.$slots.default:C},computeIndexes:function(){var C=this;this.$nextTick(function(){C.visibleIndexes=N(C.getChildrenNodes(),C.rootContainer.children,C.transitionMode,C.footerOffset)})},getUnderlyingVm:function(C){var k=O(this.getChildrenNodes()||[],C);if(k===-1)return null;var F=this.realList[k];return{index:k,element:F}},getUnderlyingPotencialDraggableComponent:function(C){var k=C.__vue__;return!k||!k.$options||!I(k.$options._componentTag)?!("realList"in k)&&k.$children.length===1&&"realList"in k.$children[0]?k.$children[0]:k:k.$parent},emitChanges:function(C){var k=this;this.$nextTick(function(){k.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var k=b(this.value);C(k),this.$emit("input",k)},spliceList:function(){var C=arguments,k=function(j){return j.splice.apply(j,b(C))};this.alterList(k)},updatePosition:function(C,k){var F=function(L){return L.splice(k,0,L.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var k=C.to,F=C.related,j=this.getUnderlyingPotencialDraggableComponent(k);if(!j)return{component:j};var L=j.realList,M={list:L,component:j};if(k!==F&&L&&j.getUnderlyingVm){var H=j.getUnderlyingVm(F);if(H)return Object.assign(H,M)}return M},getVmIndex:function(C){var k=this.visibleIndexes,F=k.length;return C>F-1?F:k[C]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(C){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var k=this.getChildrenNodes();k[C].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),U=C.item},onDragAdd:function(C){var k=C.item._underlying_vm_;if(k!==void 0){Object(_.d)(C.item);var F=this.getVmIndex(C.newIndex);this.spliceList(F,0,k),this.computeIndexes();var j={element:k,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(C){if(Object(_.c)(this.rootContainer,C.item,C.oldIndex),C.pullMode==="clone"){Object(_.d)(C.clone);return}var k=this.context.index;this.spliceList(k,1);var F={element:this.context.element,oldIndex:k};this.resetTransitionData(k),this.emitChanges({removed:F})},onDragUpdate:function(C){Object(_.d)(C.item),Object(_.c)(C.from,C.item,C.oldIndex);var k=this.context.index,F=this.getVmIndex(C.newIndex);this.updatePosition(k,F);var j={element:this.context.element,oldIndex:k,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(C,k){C.hasOwnProperty(k)&&(C[k]+=this.headerOffset)},computeFutureIndex:function(C,k){if(!C.element)return 0;var F=b(k.to.children).filter(function(H){return H.style.display!=="none"}),j=F.indexOf(k.related),L=C.component.getVmIndex(j),M=F.indexOf(U)!==-1;return M||!k.willInsertAfter?L:L+1},onDragMove:function(C,k){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(C),L=this.context,M=this.computeFutureIndex(j,C);Object.assign(L,{futureIndex:M});var H=Object.assign({},C,{relatedContext:j,draggedContext:L});return F(H,k)},onDragEnd:function(){this.computeIndexes(),U=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var $=q;o.default=$}}).default})})(ho);var Ro=Ji(ho.exports),Cu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t)}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",{staticClass:"ui-desc__title"},[n("span",[e._v(e._s(t.title))])]):n("div",{staticClass:"ui-desc__title"},e._l(t.labels,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[n("div",{staticClass:"ui-desc__title"},e._l(t,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],1)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},Nu=[],nh="";const Pu={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},async mounted(){setTimeout(async()=>{let e=await this.$parent.getConfigCache(`SaveRecord_${this.configKey}`);const r=Object.entries(e).length?e:{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},500)},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r){this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);if(o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,a)=>({label:o.valueLabel[a],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value;try{if(o.prependValue&&t.$slots.prepend){const i=t.$options.propsData.type&&["input","password"].includes(t.$options.propsData.type)?t.$children[0]:t.$children[0].$children[0];i.$options._componentTag=="com-form-item"?i.$emit("changes",o.prependValue):i.$emit("input",o.prependValue)}}catch(i){console.log(i)}}else t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")});const n=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...n),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(n[0])},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,a)=>i.label.localeCompare(a.label)),o=JSON.parse(JSON.stringify(e)).sort((i,a)=>i.label.localeCompare(a.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},$o={};var ku=Ce(Pu,Cu,Nu,!1,Iu,"47b46940",null,null);function Iu(e){for(let r in $o)this[r]=$o[r]}var Lu=function(){return ku.exports}();const Du={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let Ru,$u;const Mo={};var Mu=Ce(Du,Ru,$u,!1,Fu,null,null,null);function Fu(e){for(let r in Mo)this[r]=Mo[r]}var ju=function(){return Mu.exports}();function Bu(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,a=t.noLeading,f=a===void 0?!1:a,c=t.debounceMode,h=c===void 0?void 0:c,u,l=!1,s=0;function d(){u&&clearTimeout(u)}function v(b){var m=b||{},g=m.upcomingOnly,_=g===void 0?!1:g;d(),l=!_}function p(){for(var b=arguments.length,m=new Array(b),g=0;g<b;g++)m[g]=arguments[g];var _=this,y=Date.now()-s;if(l)return;function O(){s=Date.now(),r.apply(_,m)}function N(){u=void 0}!f&&h&&!u&&O(),d(),h===void 0&&y>e?f?(s=Date.now(),i||(u=setTimeout(h?N:O,e))):O():i!==!0&&(u=setTimeout(h?N:O,h===void 0?e-y:e))}return p.cancel=v,p}function zn(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return Bu(e,r,{debounceMode:i!==!1})}function Fo(e=0,r=!0,n=null){var f;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),u=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(u==null?void 0:u.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(s=>!!s))}let i=e+o.reduce((c,h)=>c+h,0),a=navigator.userAgent;for(let c=0;c<t.length;c++){let h=t[c];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let u,l,s=(f=document==null?void 0:document.defaultView)==null?void 0:f.getComputedStyle(h);if(a.indexOf("Firefox")>-1)l=parseInt(s["margin-top"])+parseInt(s["margin-bottom"]);else if(a.indexOf("compatible")>-1&&a.indexOf("MSIE")>-1&&!(a.indexOf("Opera")>-1)){let d=h.currentStyle;l=parseInt(d.marginTop)+parseInt(d.marginBottom)}else if(u=s.margin.split(" "),u.length==1)l=parseInt(u[0])*2;else{const[d,v,p,b]=u;l=parseInt(p)?parseInt(d)+parseInt(p):parseInt(d)}i=l+i}return i=window.innerHeight-i,i}function qu(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var Uu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search",style:{overflow:e.collspase?"hidden":"unset"}},[e.loadingConfig?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-search--mask",attrs:{"element-loading-text":"\u52A0\u8F7D\u914D\u7F6E\u4E2D","element-loading-background":"rgba(255, 255, 255, 1)"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main",class:{loaddone:e.loadingConfig==!1}},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleResetField}},[e._v("\u91CD\u7F6E")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},Hu=[],rh="";const zu={name:"ComSearch",components:{draggable:Ro,Record:Lu,DefaultItem:ju},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],defaultChildItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1,localConfig:null,loadingConfig:null}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return ye(ye({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var a,f;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=[...i.selectOption,...i.staticOptions].find(d=>d.value==l))==null?void 0:s.label)||l}):c=((a=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:a.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=i.staticOptions.find(d=>d.value==l))==null?void 0:s.label)||l}):c=((f=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:f.label)||i.modelForm;let h,u;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;h=l.value||l.model,l.options&&(u=l.options[h])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:h,prependLabel:u}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(ye({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const a=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(a)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:a}=i.getBoundingClientRect();a>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((a,f)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return a.$options.propsData.label==c.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},handleResetField(){this.loadingConfig=!0,this.checkItems=JSON.parse(JSON.stringify(this.defaultChildItems)),this.sortItems=JSON.parse(JSON.stringify(this.defaultChildItems));const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e),this.showConfig=!1,this.$nextTick(()=>{this.handleRenderConfig(),setTimeout(()=>{this.loadingConfig=!1},200)})},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e);const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)},async setConfigCache(e,r){if(!this.$UICONFIG||!this.$UICONFIG.setCacheApi){localStorage.setItem(e,JSON.stringify(r));return}this.localConfig[e]=JSON.stringify(r),await this.$http.post(this.$UICONFIG.setCacheApi,{code:this.configKey,datas:this.localConfig})},async getConfigCache(e){if(!this.$UICONFIG||!this.$UICONFIG.getCacheApi)return this.loadingConfig=!1,JSON.parse(localStorage.getItem(e)||"{}");if(!this.localConfig){this.loadingConfig=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getCacheApi,{code:this.configKey});setTimeout(()=>{this.loadingConfig=!1},200),this.localConfig=Object.entries(r.data).length?r.data:{}}return JSON.parse(this.localConfig[e]||"{}")}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.defaultChildItems=JSON.parse(JSON.stringify(this.checkItems)),this.handleLayoutItem();const e=await this.getConfigCache(`SearchCfg__${this.configKey}`);if(e.checkItems){await this.$nextTick();const r=this.sortItems.findIndex(n=>!e.sortItems.includes(n));if(r>-1){const n=this.sortItems[r];e.checkItems.push(n),e.sortItems.splice(r,0,n)}this.checkItems=e.checkItems.filter(n=>this.sortItems.includes(n)),this.sortItems=e.sortItems.filter(n=>this.sortItems.includes(n)),this.handleRenderConfig()}}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=zn(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await qu(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},jo={};var Wu=Ce(zu,Uu,Hu,!1,Gu,"49c17388",null,null);function Gu(e){for(let r in jo)this[r]=jo[r]}var Wn=function(){return Wu.exports}();Wn.install=e=>{e.component(Wn.name,Wn)};const Bo=Wn;var Vu=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(r,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},qo=typeof Symbol!="undefined"&&Symbol,Ku=Vu,Yu=function(){return typeof qo!="function"||typeof Symbol!="function"||typeof qo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ku()},Xu="Function.prototype.bind called on incompatible ",jr=Array.prototype.slice,Ju=Object.prototype.toString,Zu="[object Function]",Qu=function(r){var n=this;if(typeof n!="function"||Ju.call(n)!==Zu)throw new TypeError(Xu+n);for(var t=jr.call(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,t.concat(jr.call(arguments)));return Object(u)===u?u:this}else return n.apply(r,t.concat(jr.call(arguments)))},a=Math.max(0,n.length-t.length),f=[],c=0;c<a;c++)f.push("$"+c);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},ef=Qu,Br=Function.prototype.bind||ef,tf=Br,nf=tf.call(Function.call,Object.prototype.hasOwnProperty),pe,rn=SyntaxError,Uo=Function,kt=TypeError,qr=function(e){try{return Uo('"use strict"; return ('+e+").constructor;")()}catch{}},St=Object.getOwnPropertyDescriptor;if(St)try{St({},"")}catch{St=null}var Ur=function(){throw new kt},rf=St?function(){try{return arguments.callee,Ur}catch{try{return St(arguments,"callee").get}catch{return Ur}}}():Ur,It=Yu(),ht=Object.getPrototypeOf||function(e){return e.__proto__},Lt={},of=typeof Uint8Array=="undefined"?pe:ht(Uint8Array),Dt={"%AggregateError%":typeof AggregateError=="undefined"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":It?ht([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Lt,"%AsyncGenerator%":Lt,"%AsyncGeneratorFunction%":Lt,"%AsyncIteratorPrototype%":Lt,"%Atomics%":typeof Atomics=="undefined"?pe:Atomics,"%BigInt%":typeof BigInt=="undefined"?pe:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?pe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?pe:FinalizationRegistry,"%Function%":Uo,"%GeneratorFunction%":Lt,"%Int8Array%":typeof Int8Array=="undefined"?pe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?pe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":It?ht(ht([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map=="undefined"?pe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!It?pe:ht(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?pe:Promise,"%Proxy%":typeof Proxy=="undefined"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?pe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!It?pe:ht(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":It?ht(""[Symbol.iterator]()):pe,"%Symbol%":It?Symbol:pe,"%SyntaxError%":rn,"%ThrowTypeError%":rf,"%TypedArray%":of,"%TypeError%":kt,"%Uint8Array%":typeof Uint8Array=="undefined"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?pe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?pe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?pe:WeakSet},af=function e(r){var n;if(r==="%AsyncFunction%")n=qr("async function () {}");else if(r==="%GeneratorFunction%")n=qr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=qr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=ht(o.prototype))}return Dt[r]=n,n},Ho={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Gn=Br,Vn=nf,lf=Gn.call(Function.call,Array.prototype.concat),sf=Gn.call(Function.apply,Array.prototype.splice),zo=Gn.call(Function.call,String.prototype.replace),Kn=Gn.call(Function.call,String.prototype.slice),uf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ff=/\\(\\)?/g,cf=function(r){var n=Kn(r,0,1),t=Kn(r,-1);if(n==="%"&&t!=="%")throw new rn("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new rn("invalid intrinsic syntax, expected opening `%`");var o=[];return zo(r,uf,function(i,a,f,c){o[o.length]=f?zo(c,ff,"$1"):a||i}),o},df=function(r,n){var t=r,o;if(Vn(Ho,t)&&(o=Ho[t],t="%"+o[0]+"%"),Vn(Dt,t)){var i=Dt[t];if(i===Lt&&(i=af(t)),typeof i=="undefined"&&!n)throw new kt("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new rn("intrinsic "+r+" does not exist!")},Hr=function(r,n){if(typeof r!="string"||r.length===0)throw new kt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kt('"allowMissing" argument must be a boolean');var t=cf(r),o=t.length>0?t[0]:"",i=df("%"+o+"%",n),a=i.name,f=i.value,c=!1,h=i.alias;h&&(o=h[0],sf(t,lf([0,1],h)));for(var u=1,l=!0;u<t.length;u+=1){var s=t[u],d=Kn(s,0,1),v=Kn(s,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new rn("property names with quotes must have matching quotes");if((s==="constructor"||!l)&&(c=!0),o+="."+s,a="%"+o+"%",Vn(Dt,a))f=Dt[a];else if(f!=null){if(!(s in f)){if(!n)throw new kt("base intrinsic for "+r+" exists, but the property is not available.");return}if(St&&u+1>=t.length){var p=St(f,s);l=!!p,l&&"get"in p&&!("originalValue"in p.get)?f=p.get:f=f[s]}else l=Vn(f,s),f=f[s];l&&!c&&(Dt[a]=f)}}return f},Wo={exports:{}};(function(e){var r=Br,n=Hr,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),a=n("%Object.getOwnPropertyDescriptor%",!0),f=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}e.exports=function(l){var s=i(r,o,arguments);if(a&&f){var d=a(s,"length");d.configurable&&f(s,"length",{value:1+c(0,l.length-(arguments.length-1))})}return s};var h=function(){return i(r,t,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h})(Wo);var Go=Hr,Vo=Wo.exports,hf=Vo(Go("String.prototype.indexOf")),pf=function(r,n){var t=Go(r,!!n);return typeof t=="function"&&hf(r,".prototype.")>-1?Vo(t):t},vf={},mf=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vf}),yf=Zi(mf),zr=typeof Map=="function"&&Map.prototype,Wr=Object.getOwnPropertyDescriptor&&zr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yn=zr&&Wr&&typeof Wr.get=="function"?Wr.get:null,gf=zr&&Map.prototype.forEach,Gr=typeof Set=="function"&&Set.prototype,Vr=Object.getOwnPropertyDescriptor&&Gr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xn=Gr&&Vr&&typeof Vr.get=="function"?Vr.get:null,bf=Gr&&Set.prototype.forEach,_f=typeof WeakMap=="function"&&WeakMap.prototype,on=_f?WeakMap.prototype.has:null,Of=typeof WeakSet=="function"&&WeakSet.prototype,an=Of?WeakSet.prototype.has:null,Ef=typeof WeakRef=="function"&&WeakRef.prototype,Ko=Ef?WeakRef.prototype.deref:null,Sf=Boolean.prototype.valueOf,wf=Object.prototype.toString,xf=Function.prototype.toString,Af=String.prototype.match,Kr=String.prototype.slice,pt=String.prototype.replace,Tf=String.prototype.toUpperCase,Yo=String.prototype.toLowerCase,Xo=RegExp.prototype.test,Jo=Array.prototype.concat,tt=Array.prototype.join,Cf=Array.prototype.slice,Zo=Math.floor,Yr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xr=Object.getOwnPropertySymbols,Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Rt?"object":"symbol")?Symbol.toStringTag:null,Qo=Object.prototype.propertyIsEnumerable,ea=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ta(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Xo.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Zo(-e):Zo(e);if(t!==e){var o=String(t),i=Kr.call(r,o.length+1);return pt.call(o,n,"$&_")+"."+pt.call(pt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return pt.call(r,n,"$&_")}var Zr=yf,na=Zr.custom,ra=aa(na)?na:null,Nf=function e(r,n,t,o){var i=n||{};if(vt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=vt(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return sa(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return f?ta(r,c):c}if(typeof r=="bigint"){var h=String(r)+"n";return f?ta(r,h):h}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=u&&u>0&&typeof r=="object")return Qr(r)?"[Array]":"[Object]";var l=Vf(i,t);if(typeof o=="undefined")o=[];else if(la(o,r)>=0)return"[Circular]";function s(P,D,R){if(D&&(o=Cf.call(o),o.push(D)),R){var B={depth:i.depth};return vt(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(P,B,t+1,o)}return e(P,i,t+1,o)}if(typeof r=="function"&&!oa(r)){var d=Ff(r),v=Jn(r,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+tt.call(v,", ")+" }":"")}if(aa(r)){var p=Rt?pt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jr.call(r);return typeof r=="object"&&!Rt?ln(p):p}if(zf(r)){for(var b="<"+Yo.call(String(r.nodeName)),m=r.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+ia(Pf(m[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Yo.call(String(r.nodeName))+">",b}if(Qr(r)){if(r.length===0)return"[]";var _=Jn(r,s);return l&&!Gf(_)?"["+ti(_,l)+"]":"[ "+tt.call(_,", ")+" ]"}if(If(r)){var y=Jn(r,s);return!("cause"in Error.prototype)&&"cause"in r&&!Qo.call(r,"cause")?"{ ["+String(r)+"] "+tt.call(Jo.call("[cause]: "+s(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+tt.call(y,", ")+" }"}if(typeof r=="object"&&a){if(ra&&typeof r[ra]=="function"&&Zr)return Zr(r,{depth:u-t});if(a!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(jf(r)){var O=[];return gf.call(r,function(P,D){O.push(s(D,r,!0)+" => "+s(P,r))}),ua("Map",Yn.call(r),O,l)}if(Uf(r)){var N=[];return bf.call(r,function(P){N.push(s(P,r))}),ua("Set",Xn.call(r),N,l)}if(Bf(r))return ei("WeakMap");if(Hf(r))return ei("WeakSet");if(qf(r))return ei("WeakRef");if(Df(r))return ln(s(Number(r)));if($f(r))return ln(s(Yr.call(r)));if(Rf(r))return ln(Sf.call(r));if(Lf(r))return ln(s(String(r)));if(!kf(r)&&!oa(r)){var T=Jn(r,s),A=ea?ea(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",w=!A&&Me&&Object(r)===r&&Me in r?Kr.call(mt(r),8,-1):I?"Object":"",E=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",x=E+(w||I?"["+tt.call(Jo.call([],w||[],I||[]),": ")+"] ":"");return T.length===0?x+"{}":l?x+"{"+ti(T,l)+"}":x+"{ "+tt.call(T,", ")+" }"}return String(r)};function ia(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function Pf(e){return pt.call(String(e),/"/g,"&quot;")}function Qr(e){return mt(e)==="[object Array]"&&(!Me||!(typeof e=="object"&&Me in e))}function kf(e){return mt(e)==="[object Date]"&&(!Me||!(typeof e=="object"&&Me in e))}function oa(e){return mt(e)==="[object RegExp]"&&(!Me||!(typeof e=="object"&&Me in e))}function If(e){return mt(e)==="[object Error]"&&(!Me||!(typeof e=="object"&&Me in e))}function Lf(e){return mt(e)==="[object String]"&&(!Me||!(typeof e=="object"&&Me in e))}function Df(e){return mt(e)==="[object Number]"&&(!Me||!(typeof e=="object"&&Me in e))}function Rf(e){return mt(e)==="[object Boolean]"&&(!Me||!(typeof e=="object"&&Me in e))}function aa(e){if(Rt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Jr)return!1;try{return Jr.call(e),!0}catch{}return!1}function $f(e){if(!e||typeof e!="object"||!Yr)return!1;try{return Yr.call(e),!0}catch{}return!1}var Mf=Object.prototype.hasOwnProperty||function(e){return e in this};function vt(e,r){return Mf.call(e,r)}function mt(e){return wf.call(e)}function Ff(e){if(e.name)return e.name;var r=Af.call(xf.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function la(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function jf(e){if(!Yn||!e||typeof e!="object")return!1;try{Yn.call(e);try{Xn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Bf(e){if(!on||!e||typeof e!="object")return!1;try{on.call(e,on);try{an.call(e,an)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function qf(e){if(!Ko||!e||typeof e!="object")return!1;try{return Ko.call(e),!0}catch{}return!1}function Uf(e){if(!Xn||!e||typeof e!="object")return!1;try{Xn.call(e);try{Yn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Hf(e){if(!an||!e||typeof e!="object")return!1;try{an.call(e,an);try{on.call(e,on)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function zf(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function sa(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return sa(Kr.call(e,0,r.maxStringLength),r)+t}var o=pt.call(pt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wf);return ia(o,"single",r)}function Wf(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+Tf.call(r.toString(16))}function ln(e){return"Object("+e+")"}function ei(e){return e+" { ? }"}function ua(e,r,n,t){var o=t?ti(n,t):tt.call(n,", ");return e+" ("+r+") {"+o+"}"}function Gf(e){for(var r=0;r<e.length;r++)if(la(e[r],`
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(S){return d(S)||v(S)||u(S)||p()}var m=i("a352"),g=i.n(m),_=i("c649");function y(S,C,k){return k===void 0||(S=S||{},S[C]=k),S}function O(S,C){return S.map(function(k){return k.elm}).indexOf(C)}function N(S,C,k,F){if(!S)return[];var j=S.map(function(H){return H.elm}),L=C.length-F,M=b(C).map(function(H,z){return z>=L?j.length:j.indexOf(H)});return k?M.filter(function(H){return H!==-1}):M}function T(S,C){var k=this;this.$nextTick(function(){return k.$emit(S.toLowerCase(),C)})}function A(S){var C=this;return function(k){C.realList!==null&&C["onDrag"+S](k),T.call(C,S,k)}}function I(S){return["transition-group","TransitionGroup"].includes(S)}function w(S){if(!S||S.length!==1)return!1;var C=s(S,1),k=C[0].componentOptions;return k?I(k.tag):!1}function E(S,C,k){return S[k]||(C[k]?C[k]():void 0)}function x(S,C,k){var F=0,j=0,L=E(C,k,"header");L&&(F=L.length,S=S?[].concat(b(L),b(S)):b(L));var M=E(C,k,"footer");return M&&(j=M.length,S=S?[].concat(b(S),b(M)):b(M)),{children:S,headerOffset:F,footerOffset:j}}function P(S,C){var k=null,F=function(Y,ee){k=y(k,Y,ee)},j=Object.keys(S).filter(function(z){return z==="id"||z.startsWith("data-")}).reduce(function(z,Y){return z[Y]=S[Y],z},{});if(F("attrs",j),!C)return k;var L=C.on,M=C.props,H=C.attrs;return F("on",L),F("props",M),Object.assign(k.attrs,H),k}var R=["Start","Add","Remove","Update","End"],D=["Choose","Unchoose","Sort","Filter","Clone"],B=["Move"].concat(R,D).map(function(S){return"on"+S}),U=null,V={options:Object,list:{type:Array,required:!1,default:null},value:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:function(C){return C}},element:{type:String,default:"div"},tag:{type:String,default:null},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},q={name:"draggable",inheritAttrs:!1,props:V,data:function(){return{transitionMode:!1,noneFunctionalComponentMode:!1}},render:function(C){var k=this.$slots.default;this.transitionMode=w(k);var F=x(k,this.$slots,this.$scopedSlots),j=F.children,L=F.headerOffset,M=F.footerOffset;this.headerOffset=L,this.footerOffset=M;var H=P(this.$attrs,this.componentData);return C(this.getTag(),H,j)},created:function(){this.list!==null&&this.value!==null&&_.b.error("Value and list props are mutually exclusive! Please set one or another."),this.element!=="div"&&_.b.warn("Element props is deprecated please use tag props instead. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#element-props"),this.options!==void 0&&_.b.warn("Options props is deprecated, add sortable options directly as vue.draggable item, or use v-bind. See https://github.com/SortableJS/Vue.Draggable/blob/master/documentation/migrate.md#options-props")},mounted:function(){var C=this;if(this.noneFunctionalComponentMode=this.getTag().toLowerCase()!==this.$el.nodeName.toLowerCase()&&!this.getIsFunctional(),this.noneFunctionalComponentMode&&this.transitionMode)throw new Error("Transition-group inside component is not supported. Please alter tag value or remove transition-group. Current tag value: ".concat(this.getTag()));var k={};R.forEach(function(L){k["on"+L]=A.call(C,L)}),D.forEach(function(L){k["on"+L]=T.bind(C,L)});var F=Object.keys(this.$attrs).reduce(function(L,M){return L[Object(_.a)(M)]=C.$attrs[M],L},{}),j=Object.assign({},this.options,F,k,{onMove:function(M,H){return C.onDragMove(M,H)}});!("draggable"in j)&&(j.draggable=">*"),this._sortable=new g.a(this.rootContainer,j),this.computeIndexes()},beforeDestroy:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{rootContainer:function(){return this.transitionMode?this.$el.children[0]:this.$el},realList:function(){return this.list?this.list:this.value}},watch:{options:{handler:function(C){this.updateOptions(C)},deep:!0},$attrs:{handler:function(C){this.updateOptions(C)},deep:!0},realList:function(){this.computeIndexes()}},methods:{getIsFunctional:function(){var C=this._vnode.fnOptions;return C&&C.functional},getTag:function(){return this.tag||this.element},updateOptions:function(C){for(var k in C){var F=Object(_.a)(k);B.indexOf(F)===-1&&this._sortable.option(F,C[k])}},getChildrenNodes:function(){if(this.noneFunctionalComponentMode)return this.$children[0].$slots.default;var C=this.$slots.default;return this.transitionMode?C[0].child.$slots.default:C},computeIndexes:function(){var C=this;this.$nextTick(function(){C.visibleIndexes=N(C.getChildrenNodes(),C.rootContainer.children,C.transitionMode,C.footerOffset)})},getUnderlyingVm:function(C){var k=O(this.getChildrenNodes()||[],C);if(k===-1)return null;var F=this.realList[k];return{index:k,element:F}},getUnderlyingPotencialDraggableComponent:function(C){var k=C.__vue__;return!k||!k.$options||!I(k.$options._componentTag)?!("realList"in k)&&k.$children.length===1&&"realList"in k.$children[0]?k.$children[0]:k:k.$parent},emitChanges:function(C){var k=this;this.$nextTick(function(){k.$emit("change",C)})},alterList:function(C){if(this.list){C(this.list);return}var k=b(this.value);C(k),this.$emit("input",k)},spliceList:function(){var C=arguments,k=function(j){return j.splice.apply(j,b(C))};this.alterList(k)},updatePosition:function(C,k){var F=function(L){return L.splice(k,0,L.splice(C,1)[0])};this.alterList(F)},getRelatedContextFromMoveEvent:function(C){var k=C.to,F=C.related,j=this.getUnderlyingPotencialDraggableComponent(k);if(!j)return{component:j};var L=j.realList,M={list:L,component:j};if(k!==F&&L&&j.getUnderlyingVm){var H=j.getUnderlyingVm(F);if(H)return Object.assign(H,M)}return M},getVmIndex:function(C){var k=this.visibleIndexes,F=k.length;return C>F-1?F:k[C]},getComponent:function(){return this.$slots.default[0].componentInstance},resetTransitionData:function(C){if(!(!this.noTransitionOnDrag||!this.transitionMode)){var k=this.getChildrenNodes();k[C].data=null;var F=this.getComponent();F.children=[],F.kept=void 0}},onDragStart:function(C){this.context=this.getUnderlyingVm(C.item),C.item._underlying_vm_=this.clone(this.context.element),U=C.item},onDragAdd:function(C){var k=C.item._underlying_vm_;if(k!==void 0){Object(_.d)(C.item);var F=this.getVmIndex(C.newIndex);this.spliceList(F,0,k),this.computeIndexes();var j={element:k,newIndex:F};this.emitChanges({added:j})}},onDragRemove:function(C){if(Object(_.c)(this.rootContainer,C.item,C.oldIndex),C.pullMode==="clone"){Object(_.d)(C.clone);return}var k=this.context.index;this.spliceList(k,1);var F={element:this.context.element,oldIndex:k};this.resetTransitionData(k),this.emitChanges({removed:F})},onDragUpdate:function(C){Object(_.d)(C.item),Object(_.c)(C.from,C.item,C.oldIndex);var k=this.context.index,F=this.getVmIndex(C.newIndex);this.updatePosition(k,F);var j={element:this.context.element,oldIndex:k,newIndex:F};this.emitChanges({moved:j})},updateProperty:function(C,k){C.hasOwnProperty(k)&&(C[k]+=this.headerOffset)},computeFutureIndex:function(C,k){if(!C.element)return 0;var F=b(k.to.children).filter(function(H){return H.style.display!=="none"}),j=F.indexOf(k.related),L=C.component.getVmIndex(j),M=F.indexOf(U)!==-1;return M||!k.willInsertAfter?L:L+1},onDragMove:function(C,k){var F=this.move;if(!F||!this.realList)return!0;var j=this.getRelatedContextFromMoveEvent(C),L=this.context,M=this.computeFutureIndex(j,C);Object.assign(L,{futureIndex:M});var H=Object.assign({},C,{relatedContext:j,draggedContext:L});return F(H,k)},onDragEnd:function(){this.computeIndexes(),U=null}}};typeof window!="undefined"&&"Vue"in window&&window.Vue.component("draggable",q);var $=q;o.default=$}}).default})})(ho);var Do=Ji(ho.exports),Cu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-record"},[n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",width:"600",offset:-172},model:{value:e.showPropover,callback:function(t){e.showPropover=t},expression:"showPropover"}},[n("div",{staticClass:"ui-record__list"},[n("div",{staticClass:"ui-record__saves"},e._l(e.recordData.saves,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.labels.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t)}}},[n("div",{staticStyle:{position:"absolute","z-index":"-1"}},[e.$refs["EditLabelTitle_"+o]&&e.$refs["EditLabelTitle_"+o][0]?n("el-popover",{ref:"EditLabelTitlePopover_"+o,refInFor:!0,attrs:{reference:e.$refs["EditLabelTitle_"+o][0],placement:"top",width:"160"}},[n("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{size:"mini",placeholder:"\u8BF7\u8F93\u5165\u7B5B\u9009\u6807\u9898"},model:{value:e.changeLabelTitleVal,callback:function(i){e.changeLabelTitleVal=i},expression:"changeLabelTitleVal"}}),n("div",{staticStyle:{"text-align":"right",margin:"0"}},[n("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(i){e.$refs["EditLabelTitlePopover_"+o][0].doClose()}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfirmChangeLabelTitle(o)}}},[e._v("\u786E\u5B9A")])],1)],1):e._e()],1),n("div",[t.title?n("div",{staticClass:"ui-desc__title"},[n("span",[e._v(e._s(t.title))])]):n("div",{staticClass:"ui-desc__title"},e._l(t.labels,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0)]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u4FEE\u6539\u7B5B\u9009\u6807\u9898",placement:"top-start"}},[n("i",{ref:"EditLabelTitle_"+o,refInFor:!0,staticClass:"el-icon-edit ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleShowChangeLabelTitle(t)}}})]),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u79FB\u9664\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-remove ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"saves")}}})])],1)}),0),n("div",{staticClass:"ui-record__temps"},e._l(e.recordData.temps,function(t,o){return n("div",{key:o,staticClass:"ui-record__item",attrs:{title:t.map(function(i){return(i.prependLabel||i.label)+"\uFF1A"+(i.valueLabel||i.value)}).join("\uFF1B")},on:{click:function(i){return e.handleShortcut(t,o)}}},[n("div",{staticClass:"ui-desc__title"},e._l(t,function(i,a){return n("span",{key:a},[e._v(e._s(i.prependLabel||i.label)+"\uFF1A"+e._s(i.valueLabel||i.value))])}),0),n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"\u6DFB\u52A0\u5230\u5E38\u7528\u7B5B\u9009",placement:"top-start"}},[n("i",{staticClass:"el-icon-circle-plus ui-flag--icon",on:{click:function(i){return i.stopPropagation(),e.handleOperation(o,"temps")}}})])],1)}),0)]),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u7B5B\u9009\u5386\u53F2 "),n("i",{staticClass:"el-icon-caret-right"})])],1)],1)},Nu=[],nh="";const Pu={props:{configKey:{type:String,default:""},current:{type:Array,default(){return[]}}},data(){return{showPropover:!1,recordData:{saves:[],temps:[]},changeLabelTitleShow:!1,changeLabelTitleVal:"",changeLabelTitleItem:{}}},async mounted(){setTimeout(async()=>{let e=await this.$parent.getConfigCache(`SaveRecord_${this.configKey}`);const r=Object.entries(e).length?e:{saves:[],temps:[]};r.saves[0]&&Array.isArray(r.saves[0])&&(r.saves=r.saves.map(n=>({labels:n,title:""}))),this.recordData=r},500)},methods:{handleOperation(e,r){if(r=="temps"){const n=this.recordData.temps[e];this.recordData.saves.unshift({labels:n,title:""}),this.$nextTick().then(()=>{this.$forceUpdate()})}else this.recordData.saves.splice(e,1);this.handelSaveRecord()},async handleShortcut(e,r){this.$parent.$children.forEach(t=>{const o=(e.labels||e).find(i=>i.label==t.label);if(o){Array.isArray(o.value)?t.staticOptions.splice(0,t.staticOptions.length,...o.value.map((i,a)=>({label:o.valueLabel[a],value:i}))):t.staticOptions.splice(0,t.staticOptions.length,{label:o.valueLabel,value:o.value}),t.modelForm=o.value;try{if(o.prependValue&&t.$slots.prepend){const i=t.$options.propsData.type&&["input","password"].includes(t.$options.propsData.type)?t.$children[0]:t.$children[0].$children[0];i.$options._componentTag=="com-form-item"?i.$emit("changes",o.prependValue):i.$emit("input",o.prependValue)}}catch(i){console.log(i)}}else t.label&&t.$el.style.display!=="none"&&(Array.isArray(t.modelForm)?t.modelForm=[]:typeof t.modelForm=="number"?t.modelForm=void 0:t.modelForm="")});const n=this.recordData.temps.splice(r,1);this.recordData.temps.unshift(...n),this.handelSaveRecord(),this.showPropover=!1,await this.$nextTick(),this.$parent.handleQuery(n[0])},handelSaveRecord(){this.recordData.temps.length>10&&this.recordData.temps.splice(10),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)},handleShowChangeLabelTitle(e){this.changeLabelTitleShow=!0,this.changeLabelTitleItem=e},handleConfirmChangeLabelTitle(e){this.changeLabelTitleItem.title=this.changeLabelTitleVal,this.changeLabelTitleVal="",this.$refs[`EditLabelTitlePopover_${e}`][0].doClose(),this.$parent.setConfigCache(`SaveRecord_${this.configKey}`,this.recordData)}},watch:{current:{handler(e){e.length&&this.recordData.temps.findIndex(n=>{const t=JSON.parse(JSON.stringify(n)).sort((i,a)=>i.label.localeCompare(a.label)),o=JSON.parse(JSON.stringify(e)).sort((i,a)=>i.label.localeCompare(a.label));return JSON.stringify(t)==JSON.stringify(o)})<0&&(this.recordData.temps.unshift(e),this.handelSaveRecord())},deep:!0}}},$o={};var ku=Ce(Pu,Cu,Nu,!1,Iu,"47b46940",null,null);function Iu(e){for(let r in $o)this[r]=$o[r]}var Lu=function(){return ku.exports}();const Ru={props:{vnode:{type:[Object,Function],default:()=>{}}},data(){return{}},render(e){const r=this._props.vnode,n=r.$slots.prepend,t=r.$slots.append,o=r.$slots.label;return e(this._props.vnode.constructor,{on:r.$listeners,props:r.$options.propsData,attrs:r.$attrs,staticStyle:r.staticStyle,ref:r.ref},[n?[e("div",{slot:"prepend"},n)]:[],t?[e("div",{slot:"append"},t)]:[],o?[e("div",{slot:"label",class:"ui-item__label"},o)]:[]])}};let Du,$u;const Mo={};var Mu=Ce(Ru,Du,$u,!1,Fu,null,null,null);function Fu(e){for(let r in Mo)this[r]=Mo[r]}var ju=function(){return Mu.exports}();function Bu(e,r,n){var t=n||{},o=t.noTrailing,i=o===void 0?!1:o,a=t.noLeading,f=a===void 0?!1:a,c=t.debounceMode,h=c===void 0?void 0:c,u,l=!1,s=0;function d(){u&&clearTimeout(u)}function v(b){var m=b||{},g=m.upcomingOnly,_=g===void 0?!1:g;d(),l=!_}function p(){for(var b=arguments.length,m=new Array(b),g=0;g<b;g++)m[g]=arguments[g];var _=this,y=Date.now()-s;if(l)return;function O(){s=Date.now(),r.apply(_,m)}function N(){u=void 0}!f&&h&&!u&&O(),d(),h===void 0&&y>e?f?(s=Date.now(),i||(u=setTimeout(h?N:O,e))):O():i!==!0&&(u=setTimeout(h?N:O,h===void 0?e-y:e))}return p.cancel=v,p}function zn(e,r,n){var t=n||{},o=t.atBegin,i=o===void 0?!1:o;return Bu(e,r,{debounceMode:i!==!1})}function Fo(e=0,r=!0,n=null){var f;const t=n?n.map(c=>document.querySelector(c)):document.querySelectorAll(".ui-page__main:not(.v-leave) > div"),o=[];if(r){const c=document.querySelector(".ui-pagination"),h=document.querySelector(".ui-container__header"),u=(h==null?void 0:h.querySelector(".ui-tabs"))?null:document.querySelector(".ui-tabs"),l=document.querySelector(".ui-table__tab");o.push(...[(c==null?void 0:c.offsetHeight)||0,(h==null?void 0:h.offsetHeight)||0,(u==null?void 0:u.offsetHeight)||0,(l==null?void 0:l.offsetHeight)||0].filter(s=>!!s))}let i=e+o.reduce((c,h)=>c+h,0),a=navigator.userAgent;for(let c=0;c<t.length;c++){let h=t[c];if(!h||h.className.indexOf("ui-table")>-1)continue;i+=h.offsetHeight;let u,l,s=(f=document==null?void 0:document.defaultView)==null?void 0:f.getComputedStyle(h);if(a.indexOf("Firefox")>-1)l=parseInt(s["margin-top"])+parseInt(s["margin-bottom"]);else if(a.indexOf("compatible")>-1&&a.indexOf("MSIE")>-1&&!(a.indexOf("Opera")>-1)){let d=h.currentStyle;l=parseInt(d.marginTop)+parseInt(d.marginBottom)}else if(u=s.margin.split(" "),u.length==1)l=parseInt(u[0])*2;else{const[d,v,p,b]=u;l=parseInt(p)?parseInt(d)+parseInt(p):parseInt(d)}i=l+i}return i=window.innerHeight-i,i}function qu(e=300){return new Promise(r=>{setTimeout(()=>{r(300)},e)})}var Uu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loadSearch,expression:"loadSearch"}],ref:"Search",staticClass:"ui-search",style:{overflow:e.collspase?"hidden":"unset"}},[e.loadingConfig?n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-search--mask",attrs:{"element-loading-text":"\u52A0\u8F7D\u914D\u7F6E\u4E2D","element-loading-background":"rgba(255, 255, 255, 1)"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__main",class:{loaddone:e.loadingConfig==!1}},[e.useConfig?n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2):e._t("default"),!e.loadSearch&&e.useConfig?e._l(e.childItems,function(t,o){return n("DefaultItem",{key:o,ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})}):e._e()],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.collspase,expression:"collspase"}],staticClass:"ui-search__footer"},[n("el-button",{attrs:{size:"small",icon:"el-icon-refresh"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")]),n("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",icon:"el-icon-search",type:"primary"},on:{click:function(t){return e.handleQuery()}}},[e._v("\u67E5\u8BE2")]),n("div",{staticStyle:{"align-self":"flex-end"}},[e.showMore?n("el-popover",{attrs:{placement:"bottom-start",trigger:"click","popper-class":"ui-search__popover",offset:-172,width:e.containerWidth}},[n("div",{staticClass:"ui-more__select"},[n("el-row",e._l(e.hideItems,function(t,o){return n("el-col",e._b({key:o},"el-col",Object.assign({},{span:4},t.$attrs,t.$options.propsData),!1),[!e.loadSearch&&e.useConfig?[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]:e.loadSearch?e._e():[n("DefaultItem",{ref:"Config_"+(t.ref||t.$options.propsData.label||o),refInFor:!0,attrs:{vnode:t}})]],2)}),1)],1),n("el-button",{staticClass:"ui-search__button--more",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\u66F4\u591A\u7B5B\u9009 "),n("i",{staticClass:"el-icon-caret-right"})])],1):e._e()],1),e.useConfig?n("el-button",{staticClass:"ui-search__button--more",attrs:{type:"text"},on:{click:e.handleShowConfig}},[e._v("\u7B5B\u9009\u914D\u7F6E "),n("i",{staticClass:"el-icon-setting"})]):e._e(),n("Record",{attrs:{"config-key":e.configKey,current:e.searchLoc}}),e._t("footer"),n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache",attrs:{title:e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")}},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)],2),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.collspase,expression:"!collspase"}],staticClass:"ui-collspase--cache"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark","popper-class":"ui-search__cache__popper",placement:"bottom-start"},scopedSlots:e._u([{key:"content",fn:function(){return[n("p",{staticStyle:{"line-height":"18px"}},[e._v(e._s(e.searchLoc.map(function(t){return(t.prependLabel||t.label)+"\uFF1A"+(t.valueLabel||t.value)}).join("\uFF1B")))])]},proxy:!0}])},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.searchLoc.length,expression:"searchLoc.length"}],staticClass:"ui-search__cache"},e._l(e.searchLoc,function(t,o){return n("span",{key:o},[e._v(e._s(t.prependLabel||t.label)+"\uFF1A"+e._s(t.valueLabel||t.value))])}),0)])],1),n("div",{staticClass:"ui-collspase",class:{"ui-collspase--open":e.collspase},on:{click:function(t){e.collspase=!e.collspase}}},[n("span",{class:e.collspase?"el-icon-caret-top":"el-icon-caret-bottom"})]),n("el-drawer",{attrs:{title:"\u7B5B\u9009\u914D\u7F6E",direction:"btt",size:"100%",withHeader:!1,modal:!1,"modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content"},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t,o){return n("el-checkbox",{key:o,attrs:{border:"",label:t}})}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleResetField}},[e._v("\u91CD\u7F6E")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")])],1)])])],1)},Hu=[],rh="";const zu={name:"ComSearch",components:{draggable:Do,Record:Lu,DefaultItem:ju},props:{searchCfg:{type:Array,default(){return[]}},flagId:{type:String,default:""},useConfig:{type:Boolean,default:!0}},data(){return{containerWidth:"200px",hideItems:[],defaultVNode:[],defaultItems:[],showConfig:!1,checkItems:[],sortItems:[],loadSearch:!1,searchLoc:[],childItems:[],defaultChildItems:[],initLoad:!1,configKey:this.flagId||this.$route.path,handleWindowResize:null,waitTimeout:"",searchHeight:"",listenerSearchTimes:"",collspase:!0,showTip:!1,localConfig:null,loadingConfig:null}},computed:{showMore(){return!!this.hideItems.length},ConfigRefs(){return Object.entries(this.$refs).reduce((e,[r,n])=>{if(r.indexOf("Config_")>-1){const t=r.replace("Config_",""),o=n[0].$refs[t];return ye(ye({},e),o?{[t]:o.$refs[o.type]}:{})}},{})}},methods:{handleQuery(e){const r=(o,i)=>o?o instanceof Date?!1:Array.isArray(o)&&i=="inputrange"?!o[0]&&!o[1]:o instanceof Object?!Object.entries(o).length:!1:typeof o!="boolean";this.searchLoc=Array.isArray(e)?e:this.$children.reduce((o,i)=>{var a,f;if(i.label&&!r(i.modelForm,i.type)){let c;i.options&&Object.entries(i.options).length>0?Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=[...i.selectOption,...i.staticOptions].find(d=>d.value==l))==null?void 0:s.label)||l}):c=((a=[...i.selectOption,...i.staticOptions].find(l=>l.value==i.modelForm))==null?void 0:a.label)||i.modelForm:Array.isArray(i.modelForm)?c=i.modelForm.map(l=>{var s;return((s=i.staticOptions.find(d=>d.value==l))==null?void 0:s.label)||l}):c=((f=i.staticOptions.find(l=>l.value==i.modelForm))==null?void 0:f.label)||i.modelForm;let h,u;if(i.$slots.prepend){const l=i.$slots.prepend[0].componentOptions.propsData;h=l.value||l.model,l.options&&(u=l.options[h])}return[...o,{label:i.label,value:i.modelForm,valueLabel:c,prependValue:h,prependLabel:u}]}else return o},[]);const n=this.$parent.handleQuery,t=this.$UICONFIG?this.$UICONFIG.searchConfig||{}:{};n?n(ye({},t.defaultParams||{})):this.$emit("query")},handleReset(){const e=this.$parent.handleReset;e?e():this.$emit("reset")},waitRenderItem(){return new Promise(e=>{clearTimeout(this.waitTimeout);const r=this.$refs.Search.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");for(let n=0;n<r.length;n++)if(r[n].getBoundingClientRect().right>0)return e(!0);this.waitTimeout=setTimeout(async()=>{e(await this.waitRenderItem())},100)})},async handleLayoutItem(e=!1){await this.waitRenderItem();const r=this.$refs.Search,n=r.parentElement.querySelectorAll(".ui-search .ui-search__main > .ui-form__item:not([class*=prepend] .ui-form__item)");n.forEach(i=>i.className=i.className.replace("ui-form__item--hide",""));const{right:t}=r.getBoundingClientRect();this.containerWidth=r.offsetWidth-80,this.useConfig&&n.forEach(i=>{try{const a=i.__vue__.label||i.__vue__.$children[0].label;this.checkItems.includes(a)?i.style.display="block":i.style.display="none"}catch{console.log(i.__vue__,i)}});const o=[];n.forEach(i=>{const{right:a}=i.getBoundingClientRect();a>t&&(i.className=`${i.className} ui-form__item--hide`,o.push(i))}),e!==!0&&(this.useConfig?this.hideItems=o.map(i=>this.childItems.find((a,f)=>{const c=i.__vue__.vnode?i.__vue__.vnode.$options:i.__vue__.$options;return a.$options.propsData.label==c.propsData.label})).filter(i=>!!i):this.hideItems=this.$children.filter(i=>i.$el.className.indexOf("ui-form__item--hide")>-1),this.loadSearch=!1)},changeOptions(e){this.$parent.changeOptions(e)},handleShowConfig(){this.showConfig=!0},handleResetField(){this.loadingConfig=!0,this.checkItems=JSON.parse(JSON.stringify(this.defaultChildItems)),this.sortItems=JSON.parse(JSON.stringify(this.defaultChildItems));const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e),this.showConfig=!1,this.$nextTick(()=>{this.handleRenderConfig(),setTimeout(()=>{this.loadingConfig=!1},200)})},async handleRenderConfig(){const e={checkItems:this.checkItems,sortItems:this.sortItems};this.setConfigCache(`SearchCfg__${this.configKey}`,e);const r=this.sortItems.map(n=>this.childItems.find(o=>o.$options.propsData.label==n));this.childItems=r,await this.$nextTick(),this.showConfig=!1,this.handleLayoutItem()},listenerSearchHeight(){this.searchHeight=this.$refs.Search.offsetHeight,this.listenerSearchTimes=setInterval(()=>{if(this.searchHeight!=this.$refs.Search.offsetHeight){this.searchHeight=this.$refs.Search.offsetHeight;const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}},200)},async setConfigCache(e,r){if(!this.$UICONFIG||!this.$UICONFIG.setCacheApi){localStorage.setItem(e,JSON.stringify(r));return}this.localConfig[e]=JSON.stringify(r),await this.$http.post(this.$UICONFIG.setCacheApi,{code:this.configKey,datas:this.localConfig})},async getConfigCache(e){if(!this.$UICONFIG||!this.$UICONFIG.getCacheApi)return this.loadingConfig=!1,JSON.parse(localStorage.getItem(e)||"{}");if(!this.localConfig){this.loadingConfig=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getCacheApi,{code:this.configKey});setTimeout(()=>{this.loadingConfig=!1},200),this.localConfig=Object.entries(r.data).length?r.data:{}}return JSON.parse(this.localConfig[e]||"{}")}},async mounted(){if(this.childItems=this.$slots.default.map(e=>({componentOptions:e.componentOptions,$attrs:e.componentInstance.$attrs,constructor:e.componentInstance.constructor,$listeners:e.componentInstance.$listeners,$options:e.componentInstance.$options,$scopedSlots:e.componentInstance.$scopedSlots,$slots:e.componentInstance.$slots,staticStyle:e.data.staticStyle,ref:e.data.ref})),this.initLoad=!0,await this.$nextTick(),this.useConfig){this.checkItems=this.childItems.map(r=>r.$options.propsData.label),this.sortItems=this.childItems.map(r=>r.$options.propsData.label),this.defaultChildItems=JSON.parse(JSON.stringify(this.checkItems)),this.handleLayoutItem();const e=await this.getConfigCache(`SearchCfg__${this.configKey}`);if(e.checkItems){await this.$nextTick();const r=this.sortItems.findIndex(n=>!e.sortItems.includes(n));if(r>-1){const n=this.sortItems[r];e.checkItems.push(n),e.sortItems.splice(r,0,n)}this.checkItems=e.checkItems.filter(n=>this.sortItems.includes(n)),this.sortItems=e.sortItems.filter(n=>this.sortItems.includes(n)),this.handleRenderConfig()}}else this.loadSearch=!1,this.handleLayoutItem();this.handleWindowResize=zn(100,this.handleLayoutItem),window.addEventListener("resize",this.handleWindowResize),await qu(300),this.listenerSearchHeight()},activated(){this.handleLayoutItem()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),clearInterval(this.listenerSearchTimes)},watch:{childItems(){this.loadSearch=!0,this.$nextTick().then(()=>{this.loadSearch=!1})},hideItems(e,r){r.length==e.length&&r.length==0||(this.loadSearch=!0,this.$nextTick().then(async()=>{this.loadSearch=!1,await this.$nextTick(),this.handleLayoutItem(!0)}))},collspase(){const e=this.$parent.$children.find(r=>r.$options._componentTag=="com-table");e&&e.handleRefreshHeight()}}},jo={};var Wu=Ce(zu,Uu,Hu,!1,Gu,"49c17388",null,null);function Gu(e){for(let r in jo)this[r]=jo[r]}var Wn=function(){return Wu.exports}();Wn.install=e=>{e.component(Wn.name,Wn)};const Bo=Wn;var Vu=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),t=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(t)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(n in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(r,n);if(a.value!==o||a.enumerable!==!0)return!1}return!0},qo=typeof Symbol!="undefined"&&Symbol,Ku=Vu,Yu=function(){return typeof qo!="function"||typeof Symbol!="function"||typeof qo("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Ku()},Xu="Function.prototype.bind called on incompatible ",jr=Array.prototype.slice,Ju=Object.prototype.toString,Zu="[object Function]",Qu=function(r){var n=this;if(typeof n!="function"||Ju.call(n)!==Zu)throw new TypeError(Xu+n);for(var t=jr.call(arguments,1),o,i=function(){if(this instanceof o){var u=n.apply(this,t.concat(jr.call(arguments)));return Object(u)===u?u:this}else return n.apply(r,t.concat(jr.call(arguments)))},a=Math.max(0,n.length-t.length),f=[],c=0;c<a;c++)f.push("$"+c);if(o=Function("binder","return function ("+f.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var h=function(){};h.prototype=n.prototype,o.prototype=new h,h.prototype=null}return o},ef=Qu,Br=Function.prototype.bind||ef,tf=Br,nf=tf.call(Function.call,Object.prototype.hasOwnProperty),pe,rn=SyntaxError,Uo=Function,kt=TypeError,qr=function(e){try{return Uo('"use strict"; return ('+e+").constructor;")()}catch{}},St=Object.getOwnPropertyDescriptor;if(St)try{St({},"")}catch{St=null}var Ur=function(){throw new kt},rf=St?function(){try{return arguments.callee,Ur}catch{try{return St(arguments,"callee").get}catch{return Ur}}}():Ur,It=Yu(),ht=Object.getPrototypeOf||function(e){return e.__proto__},Lt={},of=typeof Uint8Array=="undefined"?pe:ht(Uint8Array),Rt={"%AggregateError%":typeof AggregateError=="undefined"?pe:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?pe:ArrayBuffer,"%ArrayIteratorPrototype%":It?ht([][Symbol.iterator]()):pe,"%AsyncFromSyncIteratorPrototype%":pe,"%AsyncFunction%":Lt,"%AsyncGenerator%":Lt,"%AsyncGeneratorFunction%":Lt,"%AsyncIteratorPrototype%":Lt,"%Atomics%":typeof Atomics=="undefined"?pe:Atomics,"%BigInt%":typeof BigInt=="undefined"?pe:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?pe:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?pe:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?pe:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?pe:FinalizationRegistry,"%Function%":Uo,"%GeneratorFunction%":Lt,"%Int8Array%":typeof Int8Array=="undefined"?pe:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?pe:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?pe:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":It?ht(ht([][Symbol.iterator]())):pe,"%JSON%":typeof JSON=="object"?JSON:pe,"%Map%":typeof Map=="undefined"?pe:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!It?pe:ht(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?pe:Promise,"%Proxy%":typeof Proxy=="undefined"?pe:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?pe:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?pe:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!It?pe:ht(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?pe:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":It?ht(""[Symbol.iterator]()):pe,"%Symbol%":It?Symbol:pe,"%SyntaxError%":rn,"%ThrowTypeError%":rf,"%TypedArray%":of,"%TypeError%":kt,"%Uint8Array%":typeof Uint8Array=="undefined"?pe:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?pe:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?pe:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?pe:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?pe:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?pe:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?pe:WeakSet},af=function e(r){var n;if(r==="%AsyncFunction%")n=qr("async function () {}");else if(r==="%GeneratorFunction%")n=qr("function* () {}");else if(r==="%AsyncGeneratorFunction%")n=qr("async function* () {}");else if(r==="%AsyncGenerator%"){var t=e("%AsyncGeneratorFunction%");t&&(n=t.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(n=ht(o.prototype))}return Rt[r]=n,n},Ho={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Gn=Br,Vn=nf,lf=Gn.call(Function.call,Array.prototype.concat),sf=Gn.call(Function.apply,Array.prototype.splice),zo=Gn.call(Function.call,String.prototype.replace),Kn=Gn.call(Function.call,String.prototype.slice),uf=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ff=/\\(\\)?/g,cf=function(r){var n=Kn(r,0,1),t=Kn(r,-1);if(n==="%"&&t!=="%")throw new rn("invalid intrinsic syntax, expected closing `%`");if(t==="%"&&n!=="%")throw new rn("invalid intrinsic syntax, expected opening `%`");var o=[];return zo(r,uf,function(i,a,f,c){o[o.length]=f?zo(c,ff,"$1"):a||i}),o},df=function(r,n){var t=r,o;if(Vn(Ho,t)&&(o=Ho[t],t="%"+o[0]+"%"),Vn(Rt,t)){var i=Rt[t];if(i===Lt&&(i=af(t)),typeof i=="undefined"&&!n)throw new kt("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:t,value:i}}throw new rn("intrinsic "+r+" does not exist!")},Hr=function(r,n){if(typeof r!="string"||r.length===0)throw new kt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kt('"allowMissing" argument must be a boolean');var t=cf(r),o=t.length>0?t[0]:"",i=df("%"+o+"%",n),a=i.name,f=i.value,c=!1,h=i.alias;h&&(o=h[0],sf(t,lf([0,1],h)));for(var u=1,l=!0;u<t.length;u+=1){var s=t[u],d=Kn(s,0,1),v=Kn(s,-1);if((d==='"'||d==="'"||d==="`"||v==='"'||v==="'"||v==="`")&&d!==v)throw new rn("property names with quotes must have matching quotes");if((s==="constructor"||!l)&&(c=!0),o+="."+s,a="%"+o+"%",Vn(Rt,a))f=Rt[a];else if(f!=null){if(!(s in f)){if(!n)throw new kt("base intrinsic for "+r+" exists, but the property is not available.");return}if(St&&u+1>=t.length){var p=St(f,s);l=!!p,l&&"get"in p&&!("originalValue"in p.get)?f=p.get:f=f[s]}else l=Vn(f,s),f=f[s];l&&!c&&(Rt[a]=f)}}return f},Wo={exports:{}};(function(e){var r=Br,n=Hr,t=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||r.call(o,t),a=n("%Object.getOwnPropertyDescriptor%",!0),f=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(f)try{f({},"a",{value:1})}catch{f=null}e.exports=function(l){var s=i(r,o,arguments);if(a&&f){var d=a(s,"length");d.configurable&&f(s,"length",{value:1+c(0,l.length-(arguments.length-1))})}return s};var h=function(){return i(r,t,arguments)};f?f(e.exports,"apply",{value:h}):e.exports.apply=h})(Wo);var Go=Hr,Vo=Wo.exports,hf=Vo(Go("String.prototype.indexOf")),pf=function(r,n){var t=Go(r,!!n);return typeof t=="function"&&hf(r,".prototype.")>-1?Vo(t):t},vf={},mf=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:vf}),yf=Zi(mf),zr=typeof Map=="function"&&Map.prototype,Wr=Object.getOwnPropertyDescriptor&&zr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Yn=zr&&Wr&&typeof Wr.get=="function"?Wr.get:null,gf=zr&&Map.prototype.forEach,Gr=typeof Set=="function"&&Set.prototype,Vr=Object.getOwnPropertyDescriptor&&Gr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Xn=Gr&&Vr&&typeof Vr.get=="function"?Vr.get:null,bf=Gr&&Set.prototype.forEach,_f=typeof WeakMap=="function"&&WeakMap.prototype,on=_f?WeakMap.prototype.has:null,Of=typeof WeakSet=="function"&&WeakSet.prototype,an=Of?WeakSet.prototype.has:null,Ef=typeof WeakRef=="function"&&WeakRef.prototype,Ko=Ef?WeakRef.prototype.deref:null,Sf=Boolean.prototype.valueOf,wf=Object.prototype.toString,xf=Function.prototype.toString,Af=String.prototype.match,Kr=String.prototype.slice,pt=String.prototype.replace,Tf=String.prototype.toUpperCase,Yo=String.prototype.toLowerCase,Xo=RegExp.prototype.test,Jo=Array.prototype.concat,tt=Array.prototype.join,Cf=Array.prototype.slice,Zo=Math.floor,Yr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xr=Object.getOwnPropertySymbols,Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Me=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dt?"object":"symbol")?Symbol.toStringTag:null,Qo=Object.prototype.propertyIsEnumerable,ea=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ta(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Xo.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var t=e<0?-Zo(-e):Zo(e);if(t!==e){var o=String(t),i=Kr.call(r,o.length+1);return pt.call(o,n,"$&_")+"."+pt.call(pt.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return pt.call(r,n,"$&_")}var Zr=yf,na=Zr.custom,ra=aa(na)?na:null,Nf=function e(r,n,t,o){var i=n||{};if(vt(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vt(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var a=vt(i,"customInspect")?i.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vt(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vt(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return sa(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var c=String(r);return f?ta(r,c):c}if(typeof r=="bigint"){var h=String(r)+"n";return f?ta(r,h):h}var u=typeof i.depth=="undefined"?5:i.depth;if(typeof t=="undefined"&&(t=0),t>=u&&u>0&&typeof r=="object")return Qr(r)?"[Array]":"[Object]";var l=Vf(i,t);if(typeof o=="undefined")o=[];else if(la(o,r)>=0)return"[Circular]";function s(P,R,D){if(R&&(o=Cf.call(o),o.push(R)),D){var B={depth:i.depth};return vt(i,"quoteStyle")&&(B.quoteStyle=i.quoteStyle),e(P,B,t+1,o)}return e(P,i,t+1,o)}if(typeof r=="function"&&!oa(r)){var d=Ff(r),v=Jn(r,s);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(v.length>0?" { "+tt.call(v,", ")+" }":"")}if(aa(r)){var p=Dt?pt.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Jr.call(r);return typeof r=="object"&&!Dt?ln(p):p}if(zf(r)){for(var b="<"+Yo.call(String(r.nodeName)),m=r.attributes||[],g=0;g<m.length;g++)b+=" "+m[g].name+"="+ia(Pf(m[g].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Yo.call(String(r.nodeName))+">",b}if(Qr(r)){if(r.length===0)return"[]";var _=Jn(r,s);return l&&!Gf(_)?"["+ti(_,l)+"]":"[ "+tt.call(_,", ")+" ]"}if(If(r)){var y=Jn(r,s);return!("cause"in Error.prototype)&&"cause"in r&&!Qo.call(r,"cause")?"{ ["+String(r)+"] "+tt.call(Jo.call("[cause]: "+s(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+tt.call(y,", ")+" }"}if(typeof r=="object"&&a){if(ra&&typeof r[ra]=="function"&&Zr)return Zr(r,{depth:u-t});if(a!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(jf(r)){var O=[];return gf.call(r,function(P,R){O.push(s(R,r,!0)+" => "+s(P,r))}),ua("Map",Yn.call(r),O,l)}if(Uf(r)){var N=[];return bf.call(r,function(P){N.push(s(P,r))}),ua("Set",Xn.call(r),N,l)}if(Bf(r))return ei("WeakMap");if(Hf(r))return ei("WeakSet");if(qf(r))return ei("WeakRef");if(Rf(r))return ln(s(Number(r)));if($f(r))return ln(s(Yr.call(r)));if(Df(r))return ln(Sf.call(r));if(Lf(r))return ln(s(String(r)));if(!kf(r)&&!oa(r)){var T=Jn(r,s),A=ea?ea(r)===Object.prototype:r instanceof Object||r.constructor===Object,I=r instanceof Object?"":"null prototype",w=!A&&Me&&Object(r)===r&&Me in r?Kr.call(mt(r),8,-1):I?"Object":"",E=A||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",x=E+(w||I?"["+tt.call(Jo.call([],w||[],I||[]),": ")+"] ":"");return T.length===0?x+"{}":l?x+"{"+ti(T,l)+"}":x+"{ "+tt.call(T,", ")+" }"}return String(r)};function ia(e,r,n){var t=(n.quoteStyle||r)==="double"?'"':"'";return t+e+t}function Pf(e){return pt.call(String(e),/"/g,"&quot;")}function Qr(e){return mt(e)==="[object Array]"&&(!Me||!(typeof e=="object"&&Me in e))}function kf(e){return mt(e)==="[object Date]"&&(!Me||!(typeof e=="object"&&Me in e))}function oa(e){return mt(e)==="[object RegExp]"&&(!Me||!(typeof e=="object"&&Me in e))}function If(e){return mt(e)==="[object Error]"&&(!Me||!(typeof e=="object"&&Me in e))}function Lf(e){return mt(e)==="[object String]"&&(!Me||!(typeof e=="object"&&Me in e))}function Rf(e){return mt(e)==="[object Number]"&&(!Me||!(typeof e=="object"&&Me in e))}function Df(e){return mt(e)==="[object Boolean]"&&(!Me||!(typeof e=="object"&&Me in e))}function aa(e){if(Dt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Jr)return!1;try{return Jr.call(e),!0}catch{}return!1}function $f(e){if(!e||typeof e!="object"||!Yr)return!1;try{return Yr.call(e),!0}catch{}return!1}var Mf=Object.prototype.hasOwnProperty||function(e){return e in this};function vt(e,r){return Mf.call(e,r)}function mt(e){return wf.call(e)}function Ff(e){if(e.name)return e.name;var r=Af.call(xf.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function la(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,t=e.length;n<t;n++)if(e[n]===r)return n;return-1}function jf(e){if(!Yn||!e||typeof e!="object")return!1;try{Yn.call(e);try{Xn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Bf(e){if(!on||!e||typeof e!="object")return!1;try{on.call(e,on);try{an.call(e,an)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function qf(e){if(!Ko||!e||typeof e!="object")return!1;try{return Ko.call(e),!0}catch{}return!1}function Uf(e){if(!Xn||!e||typeof e!="object")return!1;try{Xn.call(e);try{Yn.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Hf(e){if(!an||!e||typeof e!="object")return!1;try{an.call(e,an);try{on.call(e,on)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function zf(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function sa(e,r){if(e.length>r.maxStringLength){var n=e.length-r.maxStringLength,t="... "+n+" more character"+(n>1?"s":"");return sa(Kr.call(e,0,r.maxStringLength),r)+t}var o=pt.call(pt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Wf);return ia(o,"single",r)}function Wf(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+Tf.call(r.toString(16))}function ln(e){return"Object("+e+")"}function ei(e){return e+" { ? }"}function ua(e,r,n,t){var o=t?ti(n,t):tt.call(n,", ");return e+" ("+r+") {"+o+"}"}function Gf(e){for(var r=0;r<e.length;r++)if(la(e[r],`
26
26
  `)>=0)return!1;return!0}function Vf(e,r){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=tt.call(Array(e.indent+1)," ");else return null;return{base:n,prev:tt.call(Array(r+1),n)}}function ti(e,r){if(e.length===0)return"";var n=`
27
27
  `+r.prev+r.base;return n+tt.call(e,","+n)+`
28
- `+r.prev}function Jn(e,r){var n=Qr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=vt(e,o)?r(e[o],e):""}var i=typeof Xr=="function"?Xr(e):[],a;if(Rt){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=i[f]}for(var c in e)!vt(e,c)||n&&String(Number(c))===c&&c<e.length||Rt&&a["$"+c]instanceof Symbol||(Xo.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof Xr=="function")for(var h=0;h<i.length;h++)Qo.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var ni=Hr,$t=pf,Kf=Nf,Yf=ni("%TypeError%"),Zn=ni("%WeakMap%",!0),Qn=ni("%Map%",!0),Xf=$t("WeakMap.prototype.get",!0),Jf=$t("WeakMap.prototype.set",!0),Zf=$t("WeakMap.prototype.has",!0),Qf=$t("Map.prototype.get",!0),ec=$t("Map.prototype.set",!0),tc=$t("Map.prototype.has",!0),ri=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},nc=function(e,r){var n=ri(e,r);return n&&n.value},rc=function(e,r,n){var t=ri(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},ic=function(e,r){return!!ri(e,r)},oc=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new Yf("Side channel does not contain "+Kf(i))},get:function(i){if(Zn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Xf(r,i)}else if(Qn){if(n)return Qf(n,i)}else if(t)return nc(t,i)},has:function(i){if(Zn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Zf(r,i)}else if(Qn){if(n)return tc(n,i)}else if(t)return ic(t,i);return!1},set:function(i,a){Zn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Zn),Jf(r,i,a)):Qn?(n||(n=new Qn),ec(n,i,a)):(t||(t={key:{},next:null}),rc(t,i,a))}};return o},ac=String.prototype.replace,lc=/%20/g,ii={RFC1738:"RFC1738",RFC3986:"RFC3986"},oi={default:ii.RFC3986,formatters:{RFC1738:function(e){return ac.call(e,lc,"+")},RFC3986:function(e){return String(e)}},RFC1738:ii.RFC1738,RFC3986:ii.RFC3986},sc=oi,ai=Object.prototype.hasOwnProperty,wt=Array.isArray,nt=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),uc=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(wt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},fa=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},fc=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(wt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!ai.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return wt(r)&&!wt(n)&&(o=fa(r,t)),wt(r)&&wt(n)?(n.forEach(function(i,a){if(ai.call(r,a)){var f=r[a];f&&typeof f=="object"&&i&&typeof i=="object"?r[a]=e(f,i,t):r.push(i)}else r[a]=i}),r):Object.keys(n).reduce(function(i,a){var f=n[a];return ai.call(i,a)?i[a]=e(i[a],f,t):i[a]=f,i},o)},cc=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},dc=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},hc=function(r,n,t,o,i){if(r.length===0)return r;var a=r;if(typeof r=="symbol"?a=Symbol.prototype.toString.call(r):typeof r!="string"&&(a=String(r)),t==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var f="",c=0;c<a.length;++c){var h=a.charCodeAt(c);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===sc.RFC1738&&(h===40||h===41)){f+=a.charAt(c);continue}if(h<128){f=f+nt[h];continue}if(h<2048){f=f+(nt[192|h>>6]+nt[128|h&63]);continue}if(h<55296||h>=57344){f=f+(nt[224|h>>12]+nt[128|h>>6&63]+nt[128|h&63]);continue}c+=1,h=65536+((h&1023)<<10|a.charCodeAt(c)&1023),f+=nt[240|h>>18]+nt[128|h>>12&63]+nt[128|h>>6&63]+nt[128|h&63]}return f},pc=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],f=Object.keys(a),c=0;c<f.length;++c){var h=f[c],u=a[h];typeof u=="object"&&u!==null&&t.indexOf(u)===-1&&(n.push({obj:a,prop:h}),t.push(u))}return uc(n),r},vc=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},mc=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},yc=function(r,n){return[].concat(r,n)},gc=function(r,n){if(wt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},ca={arrayToObject:fa,assign:cc,combine:yc,compact:pc,decode:dc,encode:hc,isBuffer:mc,isRegExp:vc,maybeMap:gc,merge:fc},da=oc,li=ca,sn=oi,bc=Object.prototype.hasOwnProperty,ha={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},at=Array.isArray,_c=String.prototype.split,Oc=Array.prototype.push,pa=function(e,r){Oc.apply(e,at(r)?r:[r])},Ec=Date.prototype.toISOString,va=sn.default,Le={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:li.encode,encodeValuesOnly:!1,format:va,formatter:sn.formatters[va],indices:!1,serializeDate:function(r){return Ec.call(r)},skipNulls:!1,strictNullHandling:!1},Sc=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},si={},wc=function e(r,n,t,o,i,a,f,c,h,u,l,s,d,v,p,b){for(var m=r,g=b,_=0,y=!1;(g=g.get(si))!==void 0&&!y;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");y=!0}typeof g.get(si)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&at(m)&&(m=li.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return f&&!v?f(n,Le.encoder,p,"key",s):n;m=""}if(Sc(m)||li.isBuffer(m)){if(f){var N=v?n:f(n,Le.encoder,p,"key",s);if(t==="comma"&&v){for(var T=_c.call(String(m),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+d(f(T[I],Le.encoder,p,"value",s));return[d(N)+(o&&at(m)&&T.length===1?"[]":"")+"="+A]}return[d(N)+"="+d(f(m,Le.encoder,p,"value",s))]}return[d(n)+"="+d(String(m))]}var w=[];if(typeof m=="undefined")return w;var E;if(t==="comma"&&at(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(at(c))E=c;else{var x=Object.keys(m);E=h?x.sort(h):x}for(var P=o&&at(m)&&m.length===1?n+"[]":n,D=0;D<E.length;++D){var R=E[D],B=typeof R=="object"&&typeof R.value!="undefined"?R.value:m[R];if(!(a&&B===null)){var U=at(m)?typeof t=="function"?t(P,R):P:P+(u?"."+R:"["+R+"]");b.set(r,_);var V=da();V.set(si,b),pa(w,e(B,U,t,o,i,a,f,c,h,u,l,s,d,v,p,V))}}return w},xc=function(r){if(!r)return Le;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Le.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=sn.default;if(typeof r.format!="undefined"){if(!bc.call(sn.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=sn.formatters[t],i=Le.filter;return(typeof r.filter=="function"||at(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Le.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Le.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Le.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Le.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Le.encode,encoder:typeof r.encoder=="function"?r.encoder:Le.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Le.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Le.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Le.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Le.strictNullHandling}},Ac=function(e,r){var n=e,t=xc(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):at(t.filter)&&(i=t.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var f;r&&r.arrayFormat in ha?f=r.arrayFormat:r&&"indices"in r?f=r.indices?"indices":"repeat":f="indices";var c=ha[f];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var u=da(),l=0;l<o.length;++l){var s=o[l];t.skipNulls&&n[s]===null||pa(a,wc(n[s],s,c,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,u))}var d=a.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),d.length>0?v+d:""},Mt=ca,ui=Object.prototype.hasOwnProperty,Tc=Array.isArray,ke={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Mt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Cc=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},ma=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},Nc="utf8=%26%2310003%3B",Pc="utf8=%E2%9C%93",kc=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),f=-1,c,h=n.charset;if(n.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Pc?h="utf-8":a[c]===Nc&&(h="iso-8859-1"),f=c,c=a.length);for(c=0;c<a.length;++c)if(c!==f){var u=a[c],l=u.indexOf("]="),s=l===-1?u.indexOf("="):l+1,d,v;s===-1?(d=n.decoder(u,ke.decoder,h,"key"),v=n.strictNullHandling?null:""):(d=n.decoder(u.slice(0,s),ke.decoder,h,"key"),v=Mt.maybeMap(ma(u.slice(s+1),n),function(p){return n.decoder(p,ke.decoder,h,"value")})),v&&n.interpretNumericEntities&&h==="iso-8859-1"&&(v=Cc(v)),u.indexOf("[]=")>-1&&(v=Tc(v)?[v]:v),ui.call(t,d)?t[d]=Mt.combine(t[d],v):t[d]=v}return t},Ic=function(e,r,n,t){for(var o=t?r:ma(r,n),i=e.length-1;i>=0;--i){var a,f=e[i];if(f==="[]"&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,h=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(h)&&f!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(a=[],a[h]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},Lc=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,a=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,c=t.depth>0&&a.exec(i),h=c?i.slice(0,c.index):i,u=[];if(h){if(!t.plainObjects&&ui.call(Object.prototype,h)&&!t.allowPrototypes)return;u.push(h)}for(var l=0;t.depth>0&&(c=f.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&ui.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),Ic(u,n,t,o)}},Dc=function(r){if(!r)return ke;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?ke.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?ke.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:ke.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:ke.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:ke.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:ke.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:ke.comma,decoder:typeof r.decoder=="function"?r.decoder:ke.decoder,delimiter:typeof r.delimiter=="string"||Mt.isRegExp(r.delimiter)?r.delimiter:ke.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:ke.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:ke.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:ke.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:ke.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:ke.strictNullHandling}},Rc=function(e,r){var n=Dc(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?kc(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),a=0;a<i.length;++a){var f=i[a],c=Lc(f,t[f],n,typeof e=="string");o=Mt.merge(o,c,n)}return n.allowSparse===!0?o:Mt.compact(o)},$c=Ac,Mc=Rc,Fc=oi,jc={formats:Fc,parse:Mc,stringify:$c};const ya=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},Bc=(e,r)=>{if(!ya(e,r))return{};const n=e.split(r),[t,o]=n,[i,a]=o.split("?");let f=a?jc.parse(a):{};return{field:t,type:i,params:f}},qc={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:a}=t.parent.$UICONFIG,{separator:f,presetPropMap:c}=a,{field:h,type:u,params:l}=Bc(o,f);return c[u](i,{field:h,params:l,h:e})})(r))}};var Uc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},Hc=[],ih="";const zc={components:{draggable:Ro},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>ye(ye({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,this.handelSaveConfig(),localStorage.setItem(this.configKey)},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)},handelSaveConfig(){this.$parent.setConfigCache(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},ga={};var Wc=Ce(zc,Uc,Hc,!1,Gc,"448fe6fb",null,null);function Gc(e){for(let r in ga)this[r]=ga[r]}var Vc=function(){return Wc.exports}(),Kc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:999}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),n("el-pagination",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPageTotal,expression:"loadingPageTotal"}],ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e()],1)},Yc=[],oh="";const Xc={name:"ComTable",components:{ColumnConfig:Vc,TablePresetProp:qc},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array}},data(){return{isPresetProp:ya,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null,loadingPageTotal:!1,isInit:!1}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""}},methods:{changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${Fo()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;this.showSelect&&o.firstChild.querySelector(".is-disabled")||t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):this.$refs.myTable.toggleRowSelection(e))},bindTotalChangeEvent(){this.$UICONFIG.getPageTotalApi&&this.$toChildren.$on("changePageTotal",async e=>{try{this.loadingPageTotal=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getPageTotalApi,{id:e});this.pageData.total=r.data.total,this.loadingPageTotal=!1,this.$refs.pageRef.internalCurrentPage=Number(this.pageData.offset||0)}catch{this.loadingPageTotal=!1}})}},created(){var e;this.$UICONFIG||(this.$UICONFIG={tablePreset:{separator:"@",presetPropMap:{}},getPageTotalApi:""}),this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap)),this.bindTotalChangeEvent()},async mounted(){if(await this.$nextTick(),setTimeout(()=>{this.isInit=!0},1e3),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=zn(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),this.$toChildren.$off("changePageTotal")},deactivated(){console.log("off"),this.$toChildren.$off("changePageTotal")},async activated(){this.handleRefreshHeight(),this.isInit&&this.bindTotalChangeEvent()}},ba={};var Jc=Ce(Xc,Kc,Yc,!1,Zc,"bb11806e",null,null);function Zc(e){for(let r in ba)this[r]=ba[r]}var er=function(){return Jc.exports}();er.install=e=>{e.component(er.name,er)};const _a=er;var Qc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},ed=[],ah="";const td={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},Oa={};var nd=Ce(td,Qc,ed,!1,rd,"52e1ecf6",null,null);function rd(e){for(let r in Oa)this[r]=Oa[r]}var tr=function(){return nd.exports}();tr.install=e=>{e.component(tr.name,tr)};const Ea=tr;var id=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},od=[],lh="";const ad={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${Fo(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:zn(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},Sa={};var ld=Ce(ad,id,od,!1,sd,"c2fac2c4",null,null);function sd(e){for(let r in Sa)this[r]=Sa[r]}var nr=function(){return ld.exports}();nr.install=e=>{e.component(nr.name,nr)};const wa=nr;var xa={exports:{}};/*!
28
+ `+r.prev}function Jn(e,r){var n=Qr(e),t=[];if(n){t.length=e.length;for(var o=0;o<e.length;o++)t[o]=vt(e,o)?r(e[o],e):""}var i=typeof Xr=="function"?Xr(e):[],a;if(Dt){a={};for(var f=0;f<i.length;f++)a["$"+i[f]]=i[f]}for(var c in e)!vt(e,c)||n&&String(Number(c))===c&&c<e.length||Dt&&a["$"+c]instanceof Symbol||(Xo.call(/[^\w$]/,c)?t.push(r(c,e)+": "+r(e[c],e)):t.push(c+": "+r(e[c],e)));if(typeof Xr=="function")for(var h=0;h<i.length;h++)Qo.call(e,i[h])&&t.push("["+r(i[h])+"]: "+r(e[i[h]],e));return t}var ni=Hr,$t=pf,Kf=Nf,Yf=ni("%TypeError%"),Zn=ni("%WeakMap%",!0),Qn=ni("%Map%",!0),Xf=$t("WeakMap.prototype.get",!0),Jf=$t("WeakMap.prototype.set",!0),Zf=$t("WeakMap.prototype.has",!0),Qf=$t("Map.prototype.get",!0),ec=$t("Map.prototype.set",!0),tc=$t("Map.prototype.has",!0),ri=function(e,r){for(var n=e,t;(t=n.next)!==null;n=t)if(t.key===r)return n.next=t.next,t.next=e.next,e.next=t,t},nc=function(e,r){var n=ri(e,r);return n&&n.value},rc=function(e,r,n){var t=ri(e,r);t?t.value=n:e.next={key:r,next:e.next,value:n}},ic=function(e,r){return!!ri(e,r)},oc=function(){var r,n,t,o={assert:function(i){if(!o.has(i))throw new Yf("Side channel does not contain "+Kf(i))},get:function(i){if(Zn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Xf(r,i)}else if(Qn){if(n)return Qf(n,i)}else if(t)return nc(t,i)},has:function(i){if(Zn&&i&&(typeof i=="object"||typeof i=="function")){if(r)return Zf(r,i)}else if(Qn){if(n)return tc(n,i)}else if(t)return ic(t,i);return!1},set:function(i,a){Zn&&i&&(typeof i=="object"||typeof i=="function")?(r||(r=new Zn),Jf(r,i,a)):Qn?(n||(n=new Qn),ec(n,i,a)):(t||(t={key:{},next:null}),rc(t,i,a))}};return o},ac=String.prototype.replace,lc=/%20/g,ii={RFC1738:"RFC1738",RFC3986:"RFC3986"},oi={default:ii.RFC3986,formatters:{RFC1738:function(e){return ac.call(e,lc,"+")},RFC3986:function(e){return String(e)}},RFC1738:ii.RFC1738,RFC3986:ii.RFC3986},sc=oi,ai=Object.prototype.hasOwnProperty,wt=Array.isArray,nt=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),uc=function(r){for(;r.length>1;){var n=r.pop(),t=n.obj[n.prop];if(wt(t)){for(var o=[],i=0;i<t.length;++i)typeof t[i]!="undefined"&&o.push(t[i]);n.obj[n.prop]=o}}},fa=function(r,n){for(var t=n&&n.plainObjects?Object.create(null):{},o=0;o<r.length;++o)typeof r[o]!="undefined"&&(t[o]=r[o]);return t},fc=function e(r,n,t){if(!n)return r;if(typeof n!="object"){if(wt(r))r.push(n);else if(r&&typeof r=="object")(t&&(t.plainObjects||t.allowPrototypes)||!ai.call(Object.prototype,n))&&(r[n]=!0);else return[r,n];return r}if(!r||typeof r!="object")return[r].concat(n);var o=r;return wt(r)&&!wt(n)&&(o=fa(r,t)),wt(r)&&wt(n)?(n.forEach(function(i,a){if(ai.call(r,a)){var f=r[a];f&&typeof f=="object"&&i&&typeof i=="object"?r[a]=e(f,i,t):r.push(i)}else r[a]=i}),r):Object.keys(n).reduce(function(i,a){var f=n[a];return ai.call(i,a)?i[a]=e(i[a],f,t):i[a]=f,i},o)},cc=function(r,n){return Object.keys(n).reduce(function(t,o){return t[o]=n[o],t},r)},dc=function(e,r,n){var t=e.replace(/\+/g," ");if(n==="iso-8859-1")return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch{return t}},hc=function(r,n,t,o,i){if(r.length===0)return r;var a=r;if(typeof r=="symbol"?a=Symbol.prototype.toString.call(r):typeof r!="string"&&(a=String(r)),t==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var f="",c=0;c<a.length;++c){var h=a.charCodeAt(c);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===sc.RFC1738&&(h===40||h===41)){f+=a.charAt(c);continue}if(h<128){f=f+nt[h];continue}if(h<2048){f=f+(nt[192|h>>6]+nt[128|h&63]);continue}if(h<55296||h>=57344){f=f+(nt[224|h>>12]+nt[128|h>>6&63]+nt[128|h&63]);continue}c+=1,h=65536+((h&1023)<<10|a.charCodeAt(c)&1023),f+=nt[240|h>>18]+nt[128|h>>12&63]+nt[128|h>>6&63]+nt[128|h&63]}return f},pc=function(r){for(var n=[{obj:{o:r},prop:"o"}],t=[],o=0;o<n.length;++o)for(var i=n[o],a=i.obj[i.prop],f=Object.keys(a),c=0;c<f.length;++c){var h=f[c],u=a[h];typeof u=="object"&&u!==null&&t.indexOf(u)===-1&&(n.push({obj:a,prop:h}),t.push(u))}return uc(n),r},vc=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},mc=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},yc=function(r,n){return[].concat(r,n)},gc=function(r,n){if(wt(r)){for(var t=[],o=0;o<r.length;o+=1)t.push(n(r[o]));return t}return n(r)},ca={arrayToObject:fa,assign:cc,combine:yc,compact:pc,decode:dc,encode:hc,isBuffer:mc,isRegExp:vc,maybeMap:gc,merge:fc},da=oc,li=ca,sn=oi,bc=Object.prototype.hasOwnProperty,ha={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,n){return r+"["+n+"]"},repeat:function(r){return r}},at=Array.isArray,_c=String.prototype.split,Oc=Array.prototype.push,pa=function(e,r){Oc.apply(e,at(r)?r:[r])},Ec=Date.prototype.toISOString,va=sn.default,Le={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:li.encode,encodeValuesOnly:!1,format:va,formatter:sn.formatters[va],indices:!1,serializeDate:function(r){return Ec.call(r)},skipNulls:!1,strictNullHandling:!1},Sc=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},si={},wc=function e(r,n,t,o,i,a,f,c,h,u,l,s,d,v,p,b){for(var m=r,g=b,_=0,y=!1;(g=g.get(si))!==void 0&&!y;){var O=g.get(r);if(_+=1,typeof O!="undefined"){if(O===_)throw new RangeError("Cyclic object value");y=!0}typeof g.get(si)=="undefined"&&(_=0)}if(typeof c=="function"?m=c(n,m):m instanceof Date?m=l(m):t==="comma"&&at(m)&&(m=li.maybeMap(m,function(q){return q instanceof Date?l(q):q})),m===null){if(i)return f&&!v?f(n,Le.encoder,p,"key",s):n;m=""}if(Sc(m)||li.isBuffer(m)){if(f){var N=v?n:f(n,Le.encoder,p,"key",s);if(t==="comma"&&v){for(var T=_c.call(String(m),","),A="",I=0;I<T.length;++I)A+=(I===0?"":",")+d(f(T[I],Le.encoder,p,"value",s));return[d(N)+(o&&at(m)&&T.length===1?"[]":"")+"="+A]}return[d(N)+"="+d(f(m,Le.encoder,p,"value",s))]}return[d(n)+"="+d(String(m))]}var w=[];if(typeof m=="undefined")return w;var E;if(t==="comma"&&at(m))E=[{value:m.length>0?m.join(",")||null:void 0}];else if(at(c))E=c;else{var x=Object.keys(m);E=h?x.sort(h):x}for(var P=o&&at(m)&&m.length===1?n+"[]":n,R=0;R<E.length;++R){var D=E[R],B=typeof D=="object"&&typeof D.value!="undefined"?D.value:m[D];if(!(a&&B===null)){var U=at(m)?typeof t=="function"?t(P,D):P:P+(u?"."+D:"["+D+"]");b.set(r,_);var V=da();V.set(si,b),pa(w,e(B,U,t,o,i,a,f,c,h,u,l,s,d,v,p,V))}}return w},xc=function(r){if(!r)return Le;if(r.encoder!==null&&typeof r.encoder!="undefined"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=r.charset||Le.charset;if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=sn.default;if(typeof r.format!="undefined"){if(!bc.call(sn.formatters,r.format))throw new TypeError("Unknown format option provided.");t=r.format}var o=sn.formatters[t],i=Le.filter;return(typeof r.filter=="function"||at(r.filter))&&(i=r.filter),{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:Le.addQueryPrefix,allowDots:typeof r.allowDots=="undefined"?Le.allowDots:!!r.allowDots,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Le.charsetSentinel,delimiter:typeof r.delimiter=="undefined"?Le.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:Le.encode,encoder:typeof r.encoder=="function"?r.encoder:Le.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:Le.encodeValuesOnly,filter:i,format:t,formatter:o,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:Le.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:Le.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Le.strictNullHandling}},Ac=function(e,r){var n=e,t=xc(r),o,i;typeof t.filter=="function"?(i=t.filter,n=i("",n)):at(t.filter)&&(i=t.filter,o=i);var a=[];if(typeof n!="object"||n===null)return"";var f;r&&r.arrayFormat in ha?f=r.arrayFormat:r&&"indices"in r?f=r.indices?"indices":"repeat":f="indices";var c=ha[f];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=c==="comma"&&r&&r.commaRoundTrip;o||(o=Object.keys(n)),t.sort&&o.sort(t.sort);for(var u=da(),l=0;l<o.length;++l){var s=o[l];t.skipNulls&&n[s]===null||pa(a,wc(n[s],s,c,h,t.strictNullHandling,t.skipNulls,t.encode?t.encoder:null,t.filter,t.sort,t.allowDots,t.serializeDate,t.format,t.formatter,t.encodeValuesOnly,t.charset,u))}var d=a.join(t.delimiter),v=t.addQueryPrefix===!0?"?":"";return t.charsetSentinel&&(t.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),d.length>0?v+d:""},Mt=ca,ui=Object.prototype.hasOwnProperty,Tc=Array.isArray,ke={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Mt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Cc=function(e){return e.replace(/&#(\d+);/g,function(r,n){return String.fromCharCode(parseInt(n,10))})},ma=function(e,r){return e&&typeof e=="string"&&r.comma&&e.indexOf(",")>-1?e.split(","):e},Nc="utf8=%26%2310003%3B",Pc="utf8=%E2%9C%93",kc=function(r,n){var t={},o=n.ignoreQueryPrefix?r.replace(/^\?/,""):r,i=n.parameterLimit===1/0?void 0:n.parameterLimit,a=o.split(n.delimiter,i),f=-1,c,h=n.charset;if(n.charsetSentinel)for(c=0;c<a.length;++c)a[c].indexOf("utf8=")===0&&(a[c]===Pc?h="utf-8":a[c]===Nc&&(h="iso-8859-1"),f=c,c=a.length);for(c=0;c<a.length;++c)if(c!==f){var u=a[c],l=u.indexOf("]="),s=l===-1?u.indexOf("="):l+1,d,v;s===-1?(d=n.decoder(u,ke.decoder,h,"key"),v=n.strictNullHandling?null:""):(d=n.decoder(u.slice(0,s),ke.decoder,h,"key"),v=Mt.maybeMap(ma(u.slice(s+1),n),function(p){return n.decoder(p,ke.decoder,h,"value")})),v&&n.interpretNumericEntities&&h==="iso-8859-1"&&(v=Cc(v)),u.indexOf("[]=")>-1&&(v=Tc(v)?[v]:v),ui.call(t,d)?t[d]=Mt.combine(t[d],v):t[d]=v}return t},Ic=function(e,r,n,t){for(var o=t?r:ma(r,n),i=e.length-1;i>=0;--i){var a,f=e[i];if(f==="[]"&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var c=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,h=parseInt(c,10);!n.parseArrays&&c===""?a={0:o}:!isNaN(h)&&f!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(a=[],a[h]=o):c!=="__proto__"&&(a[c]=o)}o=a}return o},Lc=function(r,n,t,o){if(!!r){var i=t.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,a=/(\[[^[\]]*])/,f=/(\[[^[\]]*])/g,c=t.depth>0&&a.exec(i),h=c?i.slice(0,c.index):i,u=[];if(h){if(!t.plainObjects&&ui.call(Object.prototype,h)&&!t.allowPrototypes)return;u.push(h)}for(var l=0;t.depth>0&&(c=f.exec(i))!==null&&l<t.depth;){if(l+=1,!t.plainObjects&&ui.call(Object.prototype,c[1].slice(1,-1))&&!t.allowPrototypes)return;u.push(c[1])}return c&&u.push("["+i.slice(c.index)+"]"),Ic(u,n,t,o)}},Rc=function(r){if(!r)return ke;if(r.decoder!==null&&r.decoder!==void 0&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset!="undefined"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof r.charset=="undefined"?ke.charset:r.charset;return{allowDots:typeof r.allowDots=="undefined"?ke.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:ke.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:ke.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:ke.arrayLimit,charset:n,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:ke.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:ke.comma,decoder:typeof r.decoder=="function"?r.decoder:ke.decoder,delimiter:typeof r.delimiter=="string"||Mt.isRegExp(r.delimiter)?r.delimiter:ke.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:ke.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:ke.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:ke.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:ke.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:ke.strictNullHandling}},Dc=function(e,r){var n=Rc(r);if(e===""||e===null||typeof e=="undefined")return n.plainObjects?Object.create(null):{};for(var t=typeof e=="string"?kc(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(t),a=0;a<i.length;++a){var f=i[a],c=Lc(f,t[f],n,typeof e=="string");o=Mt.merge(o,c,n)}return n.allowSparse===!0?o:Mt.compact(o)},$c=Ac,Mc=Dc,Fc=oi,jc={formats:Fc,parse:Mc,stringify:$c};const ya=(e,r)=>{if(!r)return!1;let n=e==null?void 0:e.split(r);return(n==null?void 0:n.length)>1},Bc=(e,r)=>{if(!ya(e,r))return{};const n=e.split(r),[t,o]=n,[i,a]=o.split("?");let f=a?jc.parse(a):{};return{field:t,type:i,params:f}},qc={functional:!0,props:{tableProp:{},row:{}},render:function(e,r){return e(...(t=>{const{tableProp:o,row:i}=t.props,{tablePreset:a}=t.parent.$UICONFIG,{separator:f,presetPropMap:c}=a,{field:h,type:u,params:l}=Bc(o,f);return c[u](i,{field:h,params:l,h:e})})(r))}};var Uc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table_config"},[n("span",{staticClass:"el-icon-s-operation",on:{click:e.handleShowConfig}}),n("el-drawer",{attrs:{title:"\u5217\u8868\u914D\u7F6E",direction:"rtl",size:"188px","modal-append-to-body":!1,visible:e.showConfig},on:{"update:visible":function(t){e.showConfig=t}}},[n("div",{staticClass:"ui-search--sort"},[n("div",{staticClass:"ui-sort__content",style:{maxHeight:e.height}},[n("el-checkbox-group",{attrs:{size:"mini"},model:{value:e.checkItems,callback:function(t){e.checkItems=t},expression:"checkItems"}},[n("draggable",{staticClass:"ui-draggable",attrs:{animation:"100",chosenClass:"ui-dragmove"},model:{value:e.sortItems,callback:function(t){e.sortItems=t},expression:"sortItems"}},e._l(e.sortItems,function(t){return n("el-checkbox",{key:t.value,attrs:{border:"",label:t.value}},[e._v(e._s(t.label))])}),1)],1)],1),n("div",{staticClass:"ui-sort__footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleRenderConfig}},[e._v("\u786E\u8BA4")]),n("el-button",{attrs:{size:"mini"},on:{click:function(t){e.showConfig=!e.showConfig}}},[e._v("\u53D6\u6D88")]),n("el-button",{attrs:{size:"mini"},on:{click:e.handleReset}},[e._v("\u91CD\u7F6E")])],1)])])],1)},Hc=[],ih="";const zc={components:{draggable:Do},props:{tableName:{type:String,default:""},options:{type:Object,default(){return{}}}},data(){return{showConfig:!1,checkItems:[],sortItems:[],defaultOptions:{}}},computed:{configKey(){const e=document.querySelectorAll(".el-table");return`TableConfig_${this.tableName||this.$route.path}${e.length>1?"_child":""}`},height(){return`${parseInt(this.$parent.tableHeight)-30}px`},handleOptions(){const e=JSON.parse(JSON.stringify(this.options));return e.index&&delete e.index,e.rowLabelInx&&delete e.rowLabelInx,e}},methods:{handleInit(e=!0){let r=localStorage.getItem(this.configKey);r=r?JSON.parse(r):null,r?(this.sortItems=r.sortItems,this.checkItems=r.checkItems,e&&this.handleRenderConfig()):(this.sortItems=Object.entries(this.handleOptions).map(([n,t])=>({label:t,value:n})),this.checkItems=Object.keys(this.handleOptions))},handleShowConfig(){this.handleInit(!1),this.showConfig=!0},handleRenderConfig(){const e=this.sortItems.reduce((r,n)=>ye(ye({},r),this.checkItems.includes(n.value)?{[n.value]:n.label}:{}),{});this.$emit("change",e),this.showConfig=!1,this.handelSaveConfig(),localStorage.setItem(this.configKey)},handleReset(){this.sortItems=Object.entries(this.defaultOptions).map(([e,r])=>({label:r,value:e})),this.checkItems=Object.keys(this.defaultOptions)},handelSaveConfig(){this.$parent.setConfigCache(this.configKey,JSON.stringify({sortItems:this.sortItems,checkItems:this.checkItems}))}},created(){this.defaultOptions=JSON.parse(JSON.stringify(this.handleOptions)),this.handleInit()}},ga={};var Wc=Ce(zc,Uc,Hc,!1,Gc,"448fe6fb",null,null);function Gc(e){for(let r in ga)this[r]=ga[r]}var Vc=function(){return Wc.exports}(),Kc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-table",class:{"remove-hover-css":!e.hoverStyle}},[n("div",{staticClass:"ui-table__tab",style:{height:e.showTab?"32px":"unset"}},[e._t("default",[e.tabList.length?n("el-tabs",{attrs:{type:"card",size:"mini"},on:{"tab-click":function(t){return e.$emit("tabChange",t)}},model:{value:e.checkTab,callback:function(t){e.checkTab=t},expression:"checkTab"}},e._l(e.tabList,function(t){return n("el-tab-pane",{key:t.value,attrs:{name:t.value},scopedSlots:e._u([{key:"label",fn:function(){return[n("el-badge",{attrs:{value:t.num,max:999}},[n("span",[e._v(e._s(t.label))])])]},proxy:!0}],null,!0)})}),1):e._e(),e.showTab&&!e.tabList.length?n("div",{staticClass:"ui-tab--loading"},[n("i",{staticClass:"el-icon-loading"}),n("span",[e._v("\u52A0\u8F7D\u4E2D...")])]):e._e()]),n("div",{staticClass:"ui-top-right"},[e._t("top-right")],2),e.showConfig?n("ColumnConfig",{attrs:{tableName:e.tableName,options:e.useMaps},on:{change:e.handleMapChange}}):e._e()],2),n("el-table",e._g(e._b(e._b({directives:[{name:"loading",rawName:"v-loading",value:e.renderLoading,expression:"renderLoading"}],ref:"myTable",attrs:{data:e.tableData,"span-method":e.spanMethod,"row-class-name":e.rowClassName},on:{select:e.manualSelectchange,"row-click":e.handleRowClick},scopedSlots:e._u([{key:"empty",fn:function(){return[e.autoHeight?e._e():n("div",[n("el-empty",{directives:[{name:"show",rawName:"v-show",value:!e.tableData.length,expression:"!tableData.length"}],attrs:{description:"\u6682\u65E0\u6570\u636E"}})],1)]},proxy:!0}])},"el-table",e._d({},[e.isBindHeight,e.tableHeight,e.isBindMaxHeight,e.maxHeight])),"el-table",Object.assign({},{highlightRow:!0,border:!0,stripe:!0},e.$attrs),!1),e.polyfillListeners(e.$listeners)),[e.showSelect?n("el-table-column",{attrs:{type:"selection",width:"35",selectable:e.selectable}}):e._e(),e._t("column"),e._l(e.tableTitle,function(t,o){return n("el-table-column",{key:e.tableProps[o],attrs:{minWidth:e.tableColsMinWidth[o]||"60px",label:t,fixed:e.fixedMap[e.tableProps[o]],"render-header":typeof t=="function"?t:null,"show-overflow-tooltip":e.tooltips.includes(e.tableProps[o]),prop:e.tableProps[o],width:e.tableProps[o]==="index"?"60px":e.tableColsWidth[o]||"",sortable:e.getSortable(e.tableProps[o])},scopedSlots:e._u([{key:"header",fn:function(i){return[e._t(e.tableProps[o]+"Title",[n("span",[e._v(e._s(t))])],{row:t,$index:i.$index})]}},e.multiHeaderKey.includes(e.tableProps[o])?null:{key:"default",fn:function(i){return[e.isPresetProp(e.tableProps[o],e.$UICONFIG.tablePreset&&e.$UICONFIG.tablePreset.separator)?[n("table-preset-prop",{attrs:{tableProp:e.tableProps[o],row:i.row}})]:e._t(e.tableProps[o],[n("span",{class:{"text--number":e.tableProps[o]!="index"&&Number.isFinite(Number(i.row[e.tableProps[o]]))}},[e._v(e._s(e.tableProps[o]==="index"?e.changeTableInx(i.$index):i.row[e.tableProps[o]]))])],{row:i.row,$index:i.$index})]}}],null,!0)},[e.multiHeaderKey.includes(e.tableProps[o])?[e._t(e.tableProps[o])]:e._e()],2)})],2),e.showPage?n("div",{staticClass:"ui-pagination"},[n("div",{staticClass:"ui-summary--data"},[e._t("right_top"),e._t("summarydata")],2),n("el-pagination",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingPageTotal,expression:"loadingPageTotal"}],ref:"pageRef",attrs:{layout:"total, sizes, prev, pager, next, jumper","current-page":Number(e.pageData.offset),"page-sizes":e.defaultPageSizes,"page-size":Number(e.pageData.limit),total:Number(e.pageData.total)},on:{"size-change":function(t){return e.handlePageChange("limit",t)},"current-change":function(t){return e.handlePageChange("offset",t)}}})],1):e._e()],1)},Yc=[],oh="";const Xc={name:"ComTable",components:{ColumnConfig:Vc,TablePresetProp:qc},props:{tableName:String,showSelect:{type:Boolean,default:!1},selectable:{type:Function,default(){return()=>{}}},isSingleSelection:{type:Boolean,default:!1},spanMethod:{type:Function},tableData:{type:Array,default(){return[]}},tableMap:{type:Object,default(){return{index:"\u5E8F\u53F7"}}},colsWidth:{type:[Array,Object],default(){return[]}},colsMinWidth:{type:[Array,Object],default(){return[]}},pageData:{type:Object,default(){return{}}},showPage:{type:Boolean,default:!0},height:{type:String,default:""},autoHeight:{type:Boolean,default:!1},maxHeight:{type:String,default:""},heightStatic:{type:Number,default:0},tabList:{type:Array,default(){return[]}},defaultTab:{type:[String,Number],default:""},showTab:{type:Boolean,default:!1},rowClassName:{type:Function,default({row:e}){}},tooltips:{type:Array,default(){return[]}},multiHeaderKey:{type:Array,default(){return[]}},showConfig:{type:Boolean,default:!0},sortables:{type:[Array,Object],default(){return[]}},fixedMap:{type:Object,default(){return{}}},hoverStyle:{type:Boolean,default:!0},pageSizes:{type:Array}},data(){return{isPresetProp:ya,defaultPageSizes:[20,50,100,200,500,1e3],tableHeight:"",checkTab:"",useMaps:{},renderLoading:!1,handleWindowResize:null,loadingPageTotal:!1,isInit:!1}},computed:{tableTitle(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.values(this.useMaps)},tableProps(){return JSON.stringify(this.useMaps)=="{}"?[]:Object.keys(this.useMaps)},tableColsWidth(){return Array.isArray(this.colsWidth)?this.colsWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsWidth[e]?`${parseInt(this.colsWidth[e])}px`:"")},tableColsMinWidth(){return Array.isArray(this.colsMinWidth)?this.colsMinWidth.map(e=>`${parseInt(e)}px`):this.tableProps.map(e=>this.colsMinWidth[e]?`${parseInt(this.colsMinWidth[e])}px`:"")},isBindHeight(){return this.tableHeight?"height":""},isBindMaxHeight(){return this.maxHeight?"max-height":""}},methods:{changeTableInx(e){let r=parseInt(e)+1+"";return"0".repeat(4-r.length)+r},handleRefreshHeight(){!this.autoHeight&&!this.height?this.$nextTick().then(()=>{this.tableHeight=`${Fo()-this.heightStatic}px`,this.$refs.myTable&&this.$refs.myTable.doLayout()}):this.height&&(this.tableHeight=this.height,this.$refs.myTable&&this.$refs.myTable.doLayout())},handlePageChange(e="offset",r){if(e==="offset"){if(this.tempSize>this.pageData.total&&this.pageData.offset>1)return;this.$emit("pageChange",e,r)}else this.tempSize=r,this.$emit("pageChange",e,r)},polyfillListeners(e){const r={selectionChange:"selection-change"};return Object.entries(e).reduce((n,[t,o])=>{const i=r[t];return n[i||t]=o,n},{})},manualSelectchange(e,r){if(!this.isSingleSelection)return;const n=this.$refs.myTable;n.clearSelection(),this.$nextTick(()=>{n.toggleRowSelection(r,!0)})},handleMapChange(e){this.useMaps={},this.renderLoading=!0,this.$nextTick().then(()=>{this.useMaps=e,this.handleRefreshHeight(),setTimeout(()=>{this.renderLoading=!1},500)})},getSortable(e){const r=this.sortables;return Array.isArray(r)?r.includes(e):r[e]},handleRowClick(e,r,n){const t=n.target,o=t.parentElement.nodeName=="TR"?t.parentElement:t.parentElement.parentElement;this.showSelect&&o.firstChild.querySelector(".is-disabled")||t.className.indexOf("cell")>-1&&(this.isSingleSelection?this.manualSelectchange(null,e):e.id?this.tableData.filter(i=>i.id==e.id).forEach(i=>{this.$refs.myTable.toggleRowSelection(i)}):this.$refs.myTable.toggleRowSelection(e))},bindTotalChangeEvent(){this.$UICONFIG.getPageTotalApi&&this.$toChildren.$on("changePageTotal",async e=>{try{this.loadingPageTotal=!0;const{data:r}=await this.$http.post(this.$UICONFIG.getPageTotalApi,{id:e});this.pageData.total=r.data.total,this.loadingPageTotal=!1,this.$refs.pageRef.internalCurrentPage=Number(this.pageData.offset||0)}catch{this.loadingPageTotal=!1}})}},created(){var e;this.$UICONFIG||(this.$UICONFIG={tablePreset:{separator:"@",presetPropMap:{}},getPageTotalApi:""}),this.checkTab=this.defaultTab,this.defaultPageSizes=this.pageSizes||((e=this.$UICONFIG)==null?void 0:e.pageSizes)||[20,50,100,200,500,1e3],this.useMaps=JSON.parse(JSON.stringify(this.tableMap)),this.bindTotalChangeEvent()},async mounted(){if(await this.$nextTick(),setTimeout(()=>{this.isInit=!0},1e3),this.handleRefreshHeight(),this.isSingleSelection){const e=this.$refs.myTable.$el.querySelector(".el-table__header-wrapper .el-checkbox");e.style="display:none"}this.handleWindowResize=zn(100,this.handleRefreshHeight),window.addEventListener("resize",this.handleWindowResize)},watch:{async useMaps(){await this.$nextTick(),this.handleRefreshHeight()},tableMap(e){this.useMaps=JSON.parse(JSON.stringify(e))},tableData(){this.handleRefreshHeight()}},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize),this.$toChildren.$off("changePageTotal")},deactivated(){console.log("off"),this.$toChildren.$off("changePageTotal")},async activated(){this.handleRefreshHeight(),this.isInit&&this.bindTotalChangeEvent()}},ba={};var Jc=Ce(Xc,Kc,Yc,!1,Zc,"bb11806e",null,null);function Zc(e){for(let r in ba)this[r]=ba[r]}var er=function(){return Jc.exports}();er.install=e=>{e.component(er.name,er)};const _a=er;var Qc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return e.show?n("el-image",{ref:"imageRef",style:{width:e.sizeMain,height:e.sizeMain},attrs:{"scroll-container":".el-table__body-wrapper",fit:e.fit,src:e.srcMain,"preview-src-list":e.previewList,lazy:e.lazy},scopedSlots:e._u([{key:"placeholder",fn:function(){return[n("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"ui-image--loading",style:{width:e.sizeMain,height:e.height}})]},proxy:!0},{key:"error",fn:function(){return[n("div",{staticClass:"ui-image--error",style:{width:e.sizeMain,height:e.height,lineHeight:e.height,fontSize:e.fontSize}},[n("i",{staticClass:"el-icon-picture-outline"})])]},proxy:!0}],null,!1,4245906892)}):e._e()},ed=[],ah="";const td={name:"ComImage",props:{fit:{type:String,default:"contain"},size:{type:String,default:""},src:{type:[String,Array],default(){return""}},previewSrcList:{type:Array,default(){return[]}},lazy:{type:Boolean,default:!1}},data(){return{height:"",show:!1}},computed:{previewList(){return this.previewSrcList.length?this.previewSrcList:Array.isArray(this.src)?this.src:[]},srcMain(){return Array.isArray(this.src)?this.src[0]:this.src},fontSize(){return`${parseInt(this.height)-30}px`},sizeMain(){return this.size?Number(this.size)?`${this.size}px`:this.size:"100%"}},async mounted(){setTimeout(async()=>{this.show=!0,await this.$nextTick(),this.height=`${this.$refs.imageRef.$el.offsetWidth}px`},300)}},Oa={};var nd=Ce(td,Qc,ed,!1,rd,"52e1ecf6",null,null);function rd(e){for(let r in Oa)this[r]=Oa[r]}var tr=function(){return nd.exports}();tr.install=e=>{e.component(tr.name,tr)};const Ea=tr;var id=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-scrollbar",{staticClass:"ui-scrollbar",style:{height:e.setHeight,width:"100%"}},[e._t("default")],2)},od=[],lh="";const ad={name:"ComContainer",props:{staticClass:{type:Array,default(){return[]}},staticNum:{type:Number,default:0},height:{type:String,default:""}},data(){return{setHeight:"unset"}},methods:{handleRefreshHeight(){this.$nextTick().then(()=>{this.setHeight=this.height||`${Fo(this.staticNum,!1,this.staticClass)}px`})},handleWindowResize:zn(100,function(){this.handleRefreshHeight()})},mounted(){this.handleRefreshHeight(),window.addEventListener("resize",this.handleWindowResize)}},Sa={};var ld=Ce(ad,id,od,!1,sd,"c2fac2c4",null,null);function sd(e){for(let r in Sa)this[r]=Sa[r]}var nr=function(){return ld.exports}();nr.install=e=>{e.component(nr.name,nr)};const wa=nr;var xa={exports:{}};/*!
29
29
  * Quill Editor v1.3.7
30
30
  * https://quilljs.com/
31
31
  * Copyright (c) 2014, Jason Chen
32
32
  * Copyright (c) 2013, salesforce.com
33
33
  */(function(e,r){(function(t,o){e.exports=o()})(typeof self!="undefined"?self:Ut,function(){return function(n){var t={};function o(i){if(t[i])return t[i].exports;var a=t[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=t,o.d=function(i,a,f){o.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:f})},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=109)}([function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(17),a=o(18),f=o(19),c=o(45),h=o(46),u=o(47),l=o(48),s=o(49),d=o(12),v=o(32),p=o(33),b=o(31),m=o(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:a.default,Leaf:f.default,Embed:l.default,Scroll:c.default,Block:u.default,Inline:h.default,Text:s.default,Attributor:{Attribute:d.default,Class:v.default,Style:p.default,Store:b.default}};t.default=g},function(n,t,o){var i=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,g){m.__proto__=g}||function(m,g){for(var _ in g)g.hasOwnProperty(_)&&(m[_]=g[_])};return function(m,g){b(m,g);function _(){this.constructor=m}m.prototype=g===null?Object.create(g):(_.prototype=g.prototype,new _)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=function(b){i(m,b);function m(g){var _=this;return g="[Parchment] "+g,_=b.call(this,g)||this,_.message=g,_.name=_.constructor.name,_}return m}(Error);t.ParchmentError=a;var f={},c={},h={},u={};t.DATA_KEY="__blot";var l;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(l=t.Scope||(t.Scope={}));function s(b,m){var g=v(b);if(g==null)throw new a("Unable to create "+b+" blot");var _=g,y=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:_.create(m);return new _(y,m)}t.create=s;function d(b,m){return m===void 0&&(m=!1),b==null?null:b[t.DATA_KEY]!=null?b[t.DATA_KEY].blot:m?d(b.parentNode,m):null}t.find=d;function v(b,m){m===void 0&&(m=l.ANY);var g;if(typeof b=="string")g=u[b]||f[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)g=u.text;else if(typeof b=="number")b&l.LEVEL&l.BLOCK?g=u.block:b&l.LEVEL&l.INLINE&&(g=u.inline);else if(b instanceof HTMLElement){var _=(b.getAttribute("class")||"").split(/\s+/);for(var y in _)if(g=c[_[y]],g)break;g=g||h[b.tagName]}return g==null?null:m&l.LEVEL&g.scope&&m&l.TYPE&g.scope?g:null}t.query=v;function p(){for(var b=[],m=0;m<arguments.length;m++)b[m]=arguments[m];if(b.length>1)return b.map(function(y){return p(y)});var g=b[0];if(typeof g.blotName!="string"&&typeof g.attrName!="string")throw new a("Invalid definition");if(g.blotName==="abstract")throw new a("Cannot register abstract class");if(u[g.blotName||g.attrName]=g,typeof g.keyName=="string")f[g.keyName]=g;else if(g.className!=null&&(c[g.className]=g),g.tagName!=null){Array.isArray(g.tagName)?g.tagName=g.tagName.map(function(y){return y.toUpperCase()}):g.tagName=g.tagName.toUpperCase();var _=Array.isArray(g.tagName)?g.tagName:[g.tagName];_.forEach(function(y){(h[y]==null||g.className==null)&&(h[y]=g)})}return g}t.register=p},function(n,t,o){var i=o(51),a=o(11),f=o(3),c=o(20),h=String.fromCharCode(0),u=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};u.prototype.insert=function(l,s){var d={};return l.length===0?this:(d.insert=l,s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(d.attributes=s),this.push(d))},u.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},u.prototype.retain=function(l,s){if(l<=0)return this;var d={retain:l};return s!=null&&typeof s=="object"&&Object.keys(s).length>0&&(d.attributes=s),this.push(d)},u.prototype.push=function(l){var s=this.ops.length,d=this.ops[s-1];if(l=f(!0,{},l),typeof d=="object"){if(typeof l.delete=="number"&&typeof d.delete=="number")return this.ops[s-1]={delete:d.delete+l.delete},this;if(typeof d.delete=="number"&&l.insert!=null&&(s-=1,d=this.ops[s-1],typeof d!="object"))return this.ops.unshift(l),this;if(a(l.attributes,d.attributes)){if(typeof l.insert=="string"&&typeof d.insert=="string")return this.ops[s-1]={insert:d.insert+l.insert},typeof l.attributes=="object"&&(this.ops[s-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof d.retain=="number")return this.ops[s-1]={retain:d.retain+l.retain},typeof l.attributes=="object"&&(this.ops[s-1].attributes=l.attributes),this}}return s===this.ops.length?this.ops.push(l):this.ops.splice(s,0,l),this},u.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},u.prototype.filter=function(l){return this.ops.filter(l)},u.prototype.forEach=function(l){this.ops.forEach(l)},u.prototype.map=function(l){return this.ops.map(l)},u.prototype.partition=function(l){var s=[],d=[];return this.forEach(function(v){var p=l(v)?s:d;p.push(v)}),[s,d]},u.prototype.reduce=function(l,s){return this.ops.reduce(l,s)},u.prototype.changeLength=function(){return this.reduce(function(l,s){return s.insert?l+c.length(s):s.delete?l-s.delete:l},0)},u.prototype.length=function(){return this.reduce(function(l,s){return l+c.length(s)},0)},u.prototype.slice=function(l,s){l=l||0,typeof s!="number"&&(s=1/0);for(var d=[],v=c.iterator(this.ops),p=0;p<s&&v.hasNext();){var b;p<l?b=v.next(l-p):(b=v.next(s-p),d.push(b)),p+=c.length(b)}return new u(d)},u.prototype.compose=function(l){var s=c.iterator(this.ops),d=c.iterator(l.ops),v=[],p=d.peek();if(p!=null&&typeof p.retain=="number"&&p.attributes==null){for(var b=p.retain;s.peekType()==="insert"&&s.peekLength()<=b;)b-=s.peekLength(),v.push(s.next());p.retain-b>0&&d.next(p.retain-b)}for(var m=new u(v);s.hasNext()||d.hasNext();)if(d.peekType()==="insert")m.push(d.next());else if(s.peekType()==="delete")m.push(s.next());else{var g=Math.min(s.peekLength(),d.peekLength()),_=s.next(g),y=d.next(g);if(typeof y.retain=="number"){var O={};typeof _.retain=="number"?O.retain=g:O.insert=_.insert;var N=c.attributes.compose(_.attributes,y.attributes,typeof _.retain=="number");if(N&&(O.attributes=N),m.push(O),!d.hasNext()&&a(m.ops[m.ops.length-1],O)){var T=new u(s.rest());return m.concat(T).chop()}}else typeof y.delete=="number"&&typeof _.retain=="number"&&m.push(y)}return m.chop()},u.prototype.concat=function(l){var s=new u(this.ops.slice());return l.ops.length>0&&(s.push(l.ops[0]),s.ops=s.ops.concat(l.ops.slice(1))),s},u.prototype.diff=function(l,s){if(this.ops===l.ops)return new u;var d=[this,l].map(function(g){return g.map(function(_){if(_.insert!=null)return typeof _.insert=="string"?_.insert:h;var y=g===l?"on":"with";throw new Error("diff() called "+y+" non-document")}).join("")}),v=new u,p=i(d[0],d[1],s),b=c.iterator(this.ops),m=c.iterator(l.ops);return p.forEach(function(g){for(var _=g[1].length;_>0;){var y=0;switch(g[0]){case i.INSERT:y=Math.min(m.peekLength(),_),v.push(m.next(y));break;case i.DELETE:y=Math.min(_,b.peekLength()),b.next(y),v.delete(y);break;case i.EQUAL:y=Math.min(b.peekLength(),m.peekLength(),_);var O=b.next(y),N=m.next(y);a(O.insert,N.insert)?v.retain(y,c.attributes.diff(O.attributes,N.attributes)):v.push(N).delete(y);break}_-=y}}),v.chop()},u.prototype.eachLine=function(l,s){s=s||`
34
- `;for(var d=c.iterator(this.ops),v=new u,p=0;d.hasNext();){if(d.peekType()!=="insert")return;var b=d.peek(),m=c.length(b)-d.peekLength(),g=typeof b.insert=="string"?b.insert.indexOf(s,m)-m:-1;if(g<0)v.push(d.next());else if(g>0)v.push(d.next(g));else{if(l(v,d.next(1).attributes||{},p)===!1)return;p+=1,v=new u}}v.length()>0&&l(v,{},p)},u.prototype.transform=function(l,s){if(s=!!s,typeof l=="number")return this.transformPosition(l,s);for(var d=c.iterator(this.ops),v=c.iterator(l.ops),p=new u;d.hasNext()||v.hasNext();)if(d.peekType()==="insert"&&(s||v.peekType()!=="insert"))p.retain(c.length(d.next()));else if(v.peekType()==="insert")p.push(v.next());else{var b=Math.min(d.peekLength(),v.peekLength()),m=d.next(b),g=v.next(b);if(m.delete)continue;g.delete?p.push(g):p.retain(b,c.attributes.transform(m.attributes,g.attributes,s))}return p.chop()},u.prototype.transformPosition=function(l,s){s=!!s;for(var d=c.iterator(this.ops),v=0;d.hasNext()&&v<=l;){var p=d.peekLength(),b=d.peekType();if(d.next(),b==="delete"){l-=Math.min(p,l-v);continue}else b==="insert"&&(v<l||!s)&&(l+=p);v+=p}return l},n.exports=u},function(n,t){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=function(d){return typeof Array.isArray=="function"?Array.isArray(d):i.call(d)==="[object Array]"},h=function(d){if(!d||i.call(d)!=="[object Object]")return!1;var v=o.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&o.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!v&&!p)return!1;var b;for(b in d);return typeof b=="undefined"||o.call(d,b)},u=function(d,v){a&&v.name==="__proto__"?a(d,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):d[v.name]=v.newValue},l=function(d,v){if(v==="__proto__")if(o.call(d,v)){if(f)return f(d,v).value}else return;return d[v]};n.exports=function s(){var d,v,p,b,m,g,_=arguments[0],y=1,O=arguments.length,N=!1;for(typeof _=="boolean"&&(N=_,_=arguments[1]||{},y=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});y<O;++y)if(d=arguments[y],d!=null)for(v in d)p=l(_,v),b=l(d,v),_!==b&&(N&&b&&(h(b)||(m=c(b)))?(m?(m=!1,g=p&&c(p)?p:[]):g=p&&h(p)?p:{},u(_,{name:v,newValue:s(N,g,b)})):typeof b!="undefined"&&u(_,{name:v,newValue:b}));return _}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function E(x,P){for(var D=0;D<P.length;D++){var R=P[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,P,D){return P&&E(x.prototype,P),D&&E(x,D),x}}(),a=function E(x,P,D){x===null&&(x=Function.prototype);var R=Object.getOwnPropertyDescriptor(x,P);if(R===void 0){var B=Object.getPrototypeOf(x);return B===null?void 0:E(B,P,D)}else{if("value"in R)return R.value;var U=R.get;return U===void 0?void 0:U.call(D)}},f=o(3),c=_(f),h=o(2),u=_(h),l=o(0),s=_(l),d=o(16),v=_(d),p=o(6),b=_(p),m=o(7),g=_(m);function _(E){return E&&E.__esModule?E:{default:E}}function y(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function O(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function N(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var T=1,A=function(E){N(x,E);function x(){return y(this,x),O(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return i(x,[{key:"attach",value:function(){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(D,R){var B=s.default.query(D,s.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,R)}},{key:"formatAt",value:function(D,R,B,U){this.format(B,U)}},{key:"insertAt",value:function(D,R,B){if(typeof R=="string"&&R.endsWith(`
35
- `)){var U=s.default.create(I.blotName);this.parent.insertBefore(U,D===0?this:this.next),U.insertAt(0,R.slice(0,-1))}else a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,D,R,B)}}]),x}(s.default.Embed);A.scope=s.default.Scope.BLOCK_BLOT;var I=function(E){N(x,E);function x(P){y(this,x);var D=O(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P));return D.cache={},D}return i(x,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(D,R){return R.length()===0?D:D.insert(R.value(),w(R))},new u.default).insert(`
36
- `,w(this))),this.cache.delta}},{key:"deleteAt",value:function(D,R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,D,R),this.cache={}}},{key:"formatAt",value:function(D,R,B,U){R<=0||(s.default.query(B,s.default.Scope.BLOCK)?D+R===this.length()&&this.format(B,U):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,D,Math.min(R,this.length()-D-1),B,U),this.cache={})}},{key:"insertAt",value:function(D,R,B){if(B!=null)return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,D,R,B);if(R.length!==0){var U=R.split(`
37
- `),V=U.shift();V.length>0&&(D<this.length()-1||this.children.tail==null?a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,Math.min(D,this.length()-1),V):this.children.tail.insertAt(this.children.tail.length(),V),this.cache={});var q=this;U.reduce(function($,S){return q=q.split($,!0),q.insertAt(0,S),S.length},D+V.length)}}},{key:"insertBefore",value:function(D,R){var B=this.children.head;a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,D,R),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(D,R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"moveChildren",this).call(this,D,R),this.cache={}}},{key:"optimize",value:function(D){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,D),this.cache={}}},{key:"path",value:function(D){return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,D,!0)}},{key:"removeChild",value:function(D){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"removeChild",this).call(this,D),this.cache={}}},{key:"split",value:function(D){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R&&(D===0||D>=this.length()-T)){var B=this.clone();return D===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var U=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"split",this).call(this,D,R);return this.cache={},U}}}]),x}(s.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[b.default,s.default.Embed,g.default];function w(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(x=(0,c.default)(x,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?x:w(E.parent,x)}t.bubbleFormats=w,t.BlockEmbed=A,t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}();o(50);var c=o(2),h=w(c),u=o(14),l=w(u),s=o(8),d=w(s),v=o(9),p=w(v),b=o(0),m=w(b),g=o(15),_=w(g),y=o(3),O=w(y),N=o(10),T=w(N),A=o(34),I=w(A);function w(q){return q&&q.__esModule?q:{default:q}}function E(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,q}function x(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var P=(0,T.default)("quill"),D=function(){f(q,null,[{key:"debug",value:function(S){S===!0&&(S="log"),T.default.level(S)}},{key:"find",value:function(S){return S.__quill||m.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&P.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var j=S.attrName||S.blotName;typeof j=="string"?this.register("formats/"+j,S,C):Object.keys(S).forEach(function(L){k.register(L,S[L],C)})}else this.imports[S]!=null&&!F&&P.warn("Overwriting "+S+" with",C),this.imports[S]=C,(S.startsWith("blots/")||S.startsWith("formats/"))&&C.blotName!=="abstract"?m.default.register(C):S.startsWith("modules")&&typeof C.register=="function"&&C.register()}}]);function q($){var S=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(x(this,q),this.options=R($,C),this.container=this.options.container,this.container==null)return P.error("Invalid Quill container",$);this.options.debug&&q.debug(this.options.debug);var k=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 d.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.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(d.default.events.EDITOR_CHANGE,function(j){j===d.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(d.default.events.SCROLL_UPDATE,function(j,L){var M=S.selection.lastRange,H=M&&M.length===0?M.index:void 0;B.call(S,function(){return S.editor.update(null,L,H)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+k+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return f(q,[{key:"addContainer",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var k=S;S=document.createElement("div"),S.classList.add(k)}return this.container.insertBefore(S,C),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.deleteText(S,C)},k,S,-1*C)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;return B.call(this,function(){var j=k.getSelection(!0),L=new h.default;if(j==null)return L;if(m.default.query(S,m.default.Scope.BLOCK))L=k.editor.formatLine(j.index,j.length,E({},S,C));else{if(j.length===0)return k.selection.format(S,C),L;L=k.editor.formatText(j.index,j.length,E({},S,C))}return k.setSelection(j,d.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(S,C,M)},j,S,0)}},{key:"formatText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(S,C,M)},j,S,0)}},{key:"getBounds",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=void 0;typeof S=="number"?k=this.selection.getBounds(S,C):k=this.selection.getBounds(S.index,S.length);var F=this.container.getBoundingClientRect();return{bottom:k.bottom-F.top,height:k.height,left:k.left-F.left,right:k.right-F.left,top:k.top-F.top,width:k.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getContents(S,C)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,C):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,C)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getText(S,C)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,C,k){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(S,C,k)},j,S)}},{key:"insertText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,0,k,F,j),z=a(H,4);return S=z[0],M=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(S,C,M)},j,S,C.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(S,C,k){this.clipboard.dangerouslyPasteHTML(S,C,k)}},{key:"removeFormat",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.removeFormat(S,C)},k,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){S=new h.default(S);var F=C.getLength(),j=C.editor.deleteText(0,F),L=C.editor.applyDelta(S),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
38
- `&&(C.editor.deleteText(C.getLength()-1,1),L.delete(1));var H=j.compose(L);return H},k)}},{key:"setSelection",value:function(S,C,k){if(S==null)this.selection.setRange(null,C||q.sources.API);else{var F=U(S,C,k),j=a(F,4);S=j[0],C=j[1],k=j[3],this.selection.setRange(new g.Range(S,C),k),k!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,k=new h.default().insert(S);return this.setContents(k,C)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,C=this.scroll.update(S);return this.selection.update(S),C}},{key:"updateContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){return S=new h.default(S),C.editor.applyDelta(S,k)},k,!0)}}]),q}();D.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},D.events=d.default.events,D.sources=d.default.sources,D.version="1.3.7",D.imports={delta:h.default,parchment:m.default,"core/module":p.default,"core/theme":I.default};function R(q,$){if($=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},$),!$.theme||$.theme===D.DEFAULTS.theme)$.theme=I.default;else if($.theme=D.import("themes/"+$.theme),$.theme==null)throw new Error("Invalid theme "+$.theme+". Did you register it?");var S=(0,O.default)(!0,{},$.theme.DEFAULTS);[S,$].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var C=Object.keys(S.modules).concat(Object.keys($.modules)),k=C.reduce(function(F,j){var L=D.import("modules/"+j);return L==null?P.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,O.default)(!0,{},D.DEFAULTS,{modules:k},S,$),["bounds","container","scrollingContainer"].forEach(function(F){typeof $[F]=="string"&&($[F]=document.querySelector($[F]))}),$.modules=Object.keys($.modules).reduce(function(F,j){return $.modules[j]&&(F[j]=$.modules[j]),F},{}),$}function B(q,$,S,C){if(this.options.strict&&!this.isEnabled()&&$===d.default.sources.USER)return new h.default;var k=S==null?null:this.getSelection(),F=this.editor.delta,j=q();if(k!=null&&(S===!0&&(S=k.index),C==null?k=V(k,j,$):C!==0&&(k=V(k,S,C,$)),this.setSelection(k,d.default.sources.SILENT)),j.length()>0){var L,M=[d.default.events.TEXT_CHANGE,j,F,$];if((L=this.emitter).emit.apply(L,[d.default.events.EDITOR_CHANGE].concat(M)),$!==d.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,M)}}return j}function U(q,$,S,C,k){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof $!="number"?(k=C,C=S,S=$,$=q.length,q=q.index):($=q.length,q=q.index):typeof $!="number"&&(k=C,C=S,S=$,$=0),(typeof S=="undefined"?"undefined":i(S))==="object"?(F=S,k=C):typeof S=="string"&&(C!=null?F[S]=C:k=S),k=k||d.default.sources.API,[q,$,F,k]}function V(q,$,S,C){if(q==null)return null;var k=void 0,F=void 0;if($ instanceof h.default){var j=[q.index,q.index+q.length].map(function(z){return $.transformPosition(z,C!==d.default.sources.USER)}),L=a(j,2);k=L[0],F=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<$||z===$&&C===d.default.sources.USER?z:S>=0?z+S:Math.max($,z+S)}),H=a(M,2);k=H[0],F=H[1]}return new g.Range(k,F-k)}t.expandConfig=R,t.overload=U,t.default=D},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(7),c=l(f),h=o(0),u=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function d(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){v(m,b);function m(){return s(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,y,O,N){if(m.compare(this.statics.blotName,O)<0&&u.default.query(O,u.default.Scope.BLOT)){var T=this.isolate(_,y);N&&T.wrap(O,N)}else a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,y,O,N)}},{key:"optimize",value:function(_){if(a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(_,y){var O=m.order.indexOf(_),N=m.order.indexOf(y);return O>=0||N>=0?O-N:_===y?0:_<y?-1:1}}]),m}(u.default.Inline);p.allowedChildren=[p,u.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,y){for(var O=0;O<y.length;O++){var N=y[O];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,y,O){return y&&g(_.prototype,y),O&&g(_,O),_}}(),a=function g(_,y,O){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,y);if(N===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,y,O)}else{if("value"in N)return N.value;var A=N.get;return A===void 0?void 0:A.call(O)}},f=o(54),c=l(f),h=o(10),u=l(h);function l(g){return g&&g.__esModule?g:{default:g}}function s(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function d(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function v(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var p=(0,u.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,y=Array(_),O=0;O<_;O++)y[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(N){if(N.__quill&&N.__quill.emitter){var T;(T=N.__quill.emitter).handleDOM.apply(T,y)}})})});var m=function(g){v(_,g);function _(){s(this,_);var y=d(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return y.listeners={},y.on("error",p.error),y}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var N=arguments.length,T=Array(N>1?N-1:0),A=1;A<N;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var w=I.node,E=I.handler;(O.target===w||w.contains(O.target))&&E.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,N,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:N,handler:T})}}]),_}(c.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function f(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,f),this.quill=c,this.options=h};a.DEFAULTS={},t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";function f(h){if(i.indexOf(h)<=i.indexOf(a)){for(var u,l=arguments.length,s=Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];(u=console)[h].apply(u,s)}}function c(h){return i.reduce(function(u,l){return u[l]=f.bind(console,l,h),u},{})}f.level=c.level=function(h){a=h},t.default=c},function(n,t,o){var i=Array.prototype.slice,a=o(52),f=o(53),c=n.exports=function(s,d,v){return v||(v={}),s===d?!0:s instanceof Date&&d instanceof Date?s.getTime()===d.getTime():!s||!d||typeof s!="object"&&typeof d!="object"?v.strict?s===d:s==d:l(s,d,v)};function h(s){return s==null}function u(s){return!(!s||typeof s!="object"||typeof s.length!="number"||typeof s.copy!="function"||typeof s.slice!="function"||s.length>0&&typeof s[0]!="number")}function l(s,d,v){var p,b;if(h(s)||h(d)||s.prototype!==d.prototype)return!1;if(f(s))return f(d)?(s=i.call(s),d=i.call(d),c(s,d,v)):!1;if(u(s)){if(!u(d)||s.length!==d.length)return!1;for(p=0;p<s.length;p++)if(s[p]!==d[p])return!1;return!0}try{var m=a(s),g=a(d)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),p=m.length-1;p>=0;p--)if(m[p]!=g[p])return!1;for(p=m.length-1;p>=0;p--)if(b=m[p],!c(s[b],d[b],v))return!1;return typeof s==typeof d}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c,h,u){u===void 0&&(u={}),this.attrName=c,this.keyName=h;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return f.keys=function(c){return[].map.call(c.attributes,function(h){return h.name})},f.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},f.prototype.canAdd=function(c,h){var u=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},f.prototype.remove=function(c){c.removeAttribute(this.keyName)},f.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(I,w){var E=[],x=!0,P=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(x=(B=R.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,D=U}finally{try{!x&&R.return&&R.return()}finally{if(P)throw D}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=function A(I,w,E){I===null&&(I=Function.prototype);var x=Object.getOwnPropertyDescriptor(I,w);if(x===void 0){var P=Object.getPrototypeOf(I);return P===null?void 0:A(P,w,E)}else{if("value"in x)return x.value;var D=x.get;return D===void 0?void 0:D.call(E)}},c=o(2),h=g(c),u=o(0),l=g(u),s=o(4),d=g(s),v=o(6),p=g(v),b=o(7),m=g(b);function g(A){return A&&A.__esModule?A:{default:A}}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function y(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function O(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var N=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(p.default);N.blotName="code",N.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"delta",value:function(){var E=this,x=this.domNode.textContent;return x.endsWith(`
34
+ `;for(var d=c.iterator(this.ops),v=new u,p=0;d.hasNext();){if(d.peekType()!=="insert")return;var b=d.peek(),m=c.length(b)-d.peekLength(),g=typeof b.insert=="string"?b.insert.indexOf(s,m)-m:-1;if(g<0)v.push(d.next());else if(g>0)v.push(d.next(g));else{if(l(v,d.next(1).attributes||{},p)===!1)return;p+=1,v=new u}}v.length()>0&&l(v,{},p)},u.prototype.transform=function(l,s){if(s=!!s,typeof l=="number")return this.transformPosition(l,s);for(var d=c.iterator(this.ops),v=c.iterator(l.ops),p=new u;d.hasNext()||v.hasNext();)if(d.peekType()==="insert"&&(s||v.peekType()!=="insert"))p.retain(c.length(d.next()));else if(v.peekType()==="insert")p.push(v.next());else{var b=Math.min(d.peekLength(),v.peekLength()),m=d.next(b),g=v.next(b);if(m.delete)continue;g.delete?p.push(g):p.retain(b,c.attributes.transform(m.attributes,g.attributes,s))}return p.chop()},u.prototype.transformPosition=function(l,s){s=!!s;for(var d=c.iterator(this.ops),v=0;d.hasNext()&&v<=l;){var p=d.peekLength(),b=d.peekType();if(d.next(),b==="delete"){l-=Math.min(p,l-v);continue}else b==="insert"&&(v<l||!s)&&(l+=p);v+=p}return l},n.exports=u},function(n,t){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=function(d){return typeof Array.isArray=="function"?Array.isArray(d):i.call(d)==="[object Array]"},h=function(d){if(!d||i.call(d)!=="[object Object]")return!1;var v=o.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&o.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!v&&!p)return!1;var b;for(b in d);return typeof b=="undefined"||o.call(d,b)},u=function(d,v){a&&v.name==="__proto__"?a(d,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):d[v.name]=v.newValue},l=function(d,v){if(v==="__proto__")if(o.call(d,v)){if(f)return f(d,v).value}else return;return d[v]};n.exports=function s(){var d,v,p,b,m,g,_=arguments[0],y=1,O=arguments.length,N=!1;for(typeof _=="boolean"&&(N=_,_=arguments[1]||{},y=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});y<O;++y)if(d=arguments[y],d!=null)for(v in d)p=l(_,v),b=l(d,v),_!==b&&(N&&b&&(h(b)||(m=c(b)))?(m?(m=!1,g=p&&c(p)?p:[]):g=p&&h(p)?p:{},u(_,{name:v,newValue:s(N,g,b)})):typeof b!="undefined"&&u(_,{name:v,newValue:b}));return _}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var i=function(){function E(x,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,P,R){return P&&E(x.prototype,P),R&&E(x,R),x}}(),a=function E(x,P,R){x===null&&(x=Function.prototype);var D=Object.getOwnPropertyDescriptor(x,P);if(D===void 0){var B=Object.getPrototypeOf(x);return B===null?void 0:E(B,P,R)}else{if("value"in D)return D.value;var U=D.get;return U===void 0?void 0:U.call(R)}},f=o(3),c=_(f),h=o(2),u=_(h),l=o(0),s=_(l),d=o(16),v=_(d),p=o(6),b=_(p),m=o(7),g=_(m);function _(E){return E&&E.__esModule?E:{default:E}}function y(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function O(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function N(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var T=1,A=function(E){N(x,E);function x(){return y(this,x),O(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return i(x,[{key:"attach",value:function(){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new u.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(R,D){var B=s.default.query(R,s.default.Scope.BLOCK_ATTRIBUTE);B!=null&&this.attributes.attribute(B,D)}},{key:"formatAt",value:function(R,D,B,U){this.format(B,U)}},{key:"insertAt",value:function(R,D,B){if(typeof D=="string"&&D.endsWith(`
35
+ `)){var U=s.default.create(I.blotName);this.parent.insertBefore(U,R===0?this:this.next),U.insertAt(0,D.slice(0,-1))}else a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,R,D,B)}}]),x}(s.default.Embed);A.scope=s.default.Scope.BLOCK_BLOT;var I=function(E){N(x,E);function x(P){y(this,x);var R=O(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P));return R.cache={},R}return i(x,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(s.default.Leaf).reduce(function(R,D){return D.length()===0?R:R.insert(D.value(),w(D))},new u.default).insert(`
36
+ `,w(this))),this.cache.delta}},{key:"deleteAt",value:function(R,D){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"deleteAt",this).call(this,R,D),this.cache={}}},{key:"formatAt",value:function(R,D,B,U){D<=0||(s.default.query(B,s.default.Scope.BLOCK)?R+D===this.length()&&this.format(B,U):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"formatAt",this).call(this,R,Math.min(D,this.length()-R-1),B,U),this.cache={})}},{key:"insertAt",value:function(R,D,B){if(B!=null)return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,R,D,B);if(D.length!==0){var U=D.split(`
37
+ `),V=U.shift();V.length>0&&(R<this.length()-1||this.children.tail==null?a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertAt",this).call(this,Math.min(R,this.length()-1),V):this.children.tail.insertAt(this.children.tail.length(),V),this.cache={});var q=this;U.reduce(function($,S){return q=q.split($,!0),q.insertAt(0,S),S.length},R+V.length)}}},{key:"insertBefore",value:function(R,D){var B=this.children.head;a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,R,D),B instanceof v.default&&B.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"length",this).call(this)+T),this.cache.length}},{key:"moveChildren",value:function(R,D){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"moveChildren",this).call(this,R,D),this.cache={}}},{key:"optimize",value:function(R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,R),this.cache={}}},{key:"path",value:function(R){return a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"path",this).call(this,R,!0)}},{key:"removeChild",value:function(R){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"removeChild",this).call(this,R),this.cache={}}},{key:"split",value:function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(D&&(R===0||R>=this.length()-T)){var B=this.clone();return R===0?(this.parent.insertBefore(B,this),this):(this.parent.insertBefore(B,this.next),B)}else{var U=a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"split",this).call(this,R,D);return this.cache={},U}}}]),x}(s.default.Block);I.blotName="block",I.tagName="P",I.defaultChild="break",I.allowedChildren=[b.default,s.default.Embed,g.default];function w(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return E==null||(typeof E.formats=="function"&&(x=(0,c.default)(x,E.formats())),E.parent==null||E.parent.blotName=="scroll"||E.parent.statics.scope!==E.statics.scope)?x:w(E.parent,x)}t.bubbleFormats=w,t.BlockEmbed=A,t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}();o(50);var c=o(2),h=w(c),u=o(14),l=w(u),s=o(8),d=w(s),v=o(9),p=w(v),b=o(0),m=w(b),g=o(15),_=w(g),y=o(3),O=w(y),N=o(10),T=w(N),A=o(34),I=w(A);function w(q){return q&&q.__esModule?q:{default:q}}function E(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,q}function x(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var P=(0,T.default)("quill"),R=function(){f(q,null,[{key:"debug",value:function(S){S===!0&&(S="log"),T.default.level(S)}},{key:"find",value:function(S){return S.__quill||m.default.find(S)}},{key:"import",value:function(S){return this.imports[S]==null&&P.error("Cannot import "+S+". Are you sure it was registered?"),this.imports[S]}},{key:"register",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof S!="string"){var j=S.attrName||S.blotName;typeof j=="string"?this.register("formats/"+j,S,C):Object.keys(S).forEach(function(L){k.register(L,S[L],C)})}else this.imports[S]!=null&&!F&&P.warn("Overwriting "+S+" with",C),this.imports[S]=C,(S.startsWith("blots/")||S.startsWith("formats/"))&&C.blotName!=="abstract"?m.default.register(C):S.startsWith("modules")&&typeof C.register=="function"&&C.register()}}]);function q($){var S=this,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(x(this,q),this.options=D($,C),this.container=this.options.container,this.container==null)return P.error("Invalid Quill container",$);this.options.debug&&q.debug(this.options.debug);var k=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 d.default,this.scroll=m.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.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(d.default.events.EDITOR_CHANGE,function(j){j===d.default.events.TEXT_CHANGE&&S.root.classList.toggle("ql-blank",S.editor.isBlank())}),this.emitter.on(d.default.events.SCROLL_UPDATE,function(j,L){var M=S.selection.lastRange,H=M&&M.length===0?M.index:void 0;B.call(S,function(){return S.editor.update(null,L,H)},j)});var F=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+k+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return f(q,[{key:"addContainer",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof S=="string"){var k=S;S=document.createElement("div"),S.classList.add(k)}return this.container.insertBefore(S,C),S}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.deleteText(S,C)},k,S,-1*C)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(S),this.container.classList.toggle("ql-disabled",!S)}},{key:"focus",value:function(){var S=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=S,this.scrollIntoView()}},{key:"format",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.default.sources.API;return B.call(this,function(){var j=k.getSelection(!0),L=new h.default;if(j==null)return L;if(m.default.query(S,m.default.Scope.BLOCK))L=k.editor.formatLine(j.index,j.length,E({},S,C));else{if(j.length===0)return k.selection.format(S,C),L;L=k.editor.formatText(j.index,j.length,E({},S,C))}return k.setSelection(j,d.default.sources.SILENT),L},F)}},{key:"formatLine",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatLine(S,C,M)},j,S,0)}},{key:"formatText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,C,k,F,j),z=a(H,4);return S=z[0],C=z[1],M=z[2],j=z[3],B.call(this,function(){return L.editor.formatText(S,C,M)},j,S,0)}},{key:"getBounds",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=void 0;typeof S=="number"?k=this.selection.getBounds(S,C):k=this.selection.getBounds(S.index,S.length);var F=this.container.getBoundingClientRect();return{bottom:k.bottom-F.top,height:k.height,left:k.left-F.left,right:k.right-F.left,top:k.top-F.top,width:k.width}}},{key:"getContents",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getContents(S,C)}},{key:"getFormat",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof S=="number"?this.editor.getFormat(S,C):this.editor.getFormat(S.index,S.length)}},{key:"getIndex",value:function(S){return S.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(S){return this.scroll.leaf(S)}},{key:"getLine",value:function(S){return this.scroll.line(S)}},{key:"getLines",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof S!="number"?this.scroll.lines(S.index,S.length):this.scroll.lines(S,C)}},{key:"getModule",value:function(S){return this.theme.modules[S]}},{key:"getSelection",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return S&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-S,k=U(S,C),F=a(k,2);return S=F[0],C=F[1],this.editor.getText(S,C)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(S,C,k){var F=this,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:q.sources.API;return B.call(this,function(){return F.editor.insertEmbed(S,C,k)},j,S)}},{key:"insertText",value:function(S,C,k,F,j){var L=this,M=void 0,H=U(S,0,k,F,j),z=a(H,4);return S=z[0],M=z[2],j=z[3],B.call(this,function(){return L.editor.insertText(S,C,M)},j,S,C.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(S,C,k){this.clipboard.dangerouslyPasteHTML(S,C,k)}},{key:"removeFormat",value:function(S,C,k){var F=this,j=U(S,C,k),L=a(j,4);return S=L[0],C=L[1],k=L[3],B.call(this,function(){return F.editor.removeFormat(S,C)},k,S)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){S=new h.default(S);var F=C.getLength(),j=C.editor.deleteText(0,F),L=C.editor.applyDelta(S),M=L.ops[L.ops.length-1];M!=null&&typeof M.insert=="string"&&M.insert[M.insert.length-1]===`
38
+ `&&(C.editor.deleteText(C.getLength()-1,1),L.delete(1));var H=j.compose(L);return H},k)}},{key:"setSelection",value:function(S,C,k){if(S==null)this.selection.setRange(null,C||q.sources.API);else{var F=U(S,C,k),j=a(F,4);S=j[0],C=j[1],k=j[3],this.selection.setRange(new g.Range(S,C),k),k!==d.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API,k=new h.default().insert(S);return this.setContents(k,C)}},{key:"update",value:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:d.default.sources.USER,C=this.scroll.update(S);return this.selection.update(S),C}},{key:"updateContents",value:function(S){var C=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d.default.sources.API;return B.call(this,function(){return S=new h.default(S),C.editor.applyDelta(S,k)},k,!0)}}]),q}();R.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},R.events=d.default.events,R.sources=d.default.sources,R.version="1.3.7",R.imports={delta:h.default,parchment:m.default,"core/module":p.default,"core/theme":I.default};function D(q,$){if($=(0,O.default)(!0,{container:q,modules:{clipboard:!0,keyboard:!0,history:!0}},$),!$.theme||$.theme===R.DEFAULTS.theme)$.theme=I.default;else if($.theme=R.import("themes/"+$.theme),$.theme==null)throw new Error("Invalid theme "+$.theme+". Did you register it?");var S=(0,O.default)(!0,{},$.theme.DEFAULTS);[S,$].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(j){F.modules[j]===!0&&(F.modules[j]={})})});var C=Object.keys(S.modules).concat(Object.keys($.modules)),k=C.reduce(function(F,j){var L=R.import("modules/"+j);return L==null?P.error("Cannot load "+j+" module. Are you sure you registered it?"):F[j]=L.DEFAULTS||{},F},{});return $.modules!=null&&$.modules.toolbar&&$.modules.toolbar.constructor!==Object&&($.modules.toolbar={container:$.modules.toolbar}),$=(0,O.default)(!0,{},R.DEFAULTS,{modules:k},S,$),["bounds","container","scrollingContainer"].forEach(function(F){typeof $[F]=="string"&&($[F]=document.querySelector($[F]))}),$.modules=Object.keys($.modules).reduce(function(F,j){return $.modules[j]&&(F[j]=$.modules[j]),F},{}),$}function B(q,$,S,C){if(this.options.strict&&!this.isEnabled()&&$===d.default.sources.USER)return new h.default;var k=S==null?null:this.getSelection(),F=this.editor.delta,j=q();if(k!=null&&(S===!0&&(S=k.index),C==null?k=V(k,j,$):C!==0&&(k=V(k,S,C,$)),this.setSelection(k,d.default.sources.SILENT)),j.length()>0){var L,M=[d.default.events.TEXT_CHANGE,j,F,$];if((L=this.emitter).emit.apply(L,[d.default.events.EDITOR_CHANGE].concat(M)),$!==d.default.sources.SILENT){var H;(H=this.emitter).emit.apply(H,M)}}return j}function U(q,$,S,C,k){var F={};return typeof q.index=="number"&&typeof q.length=="number"?typeof $!="number"?(k=C,C=S,S=$,$=q.length,q=q.index):($=q.length,q=q.index):typeof $!="number"&&(k=C,C=S,S=$,$=0),(typeof S=="undefined"?"undefined":i(S))==="object"?(F=S,k=C):typeof S=="string"&&(C!=null?F[S]=C:k=S),k=k||d.default.sources.API,[q,$,F,k]}function V(q,$,S,C){if(q==null)return null;var k=void 0,F=void 0;if($ instanceof h.default){var j=[q.index,q.index+q.length].map(function(z){return $.transformPosition(z,C!==d.default.sources.USER)}),L=a(j,2);k=L[0],F=L[1]}else{var M=[q.index,q.index+q.length].map(function(z){return z<$||z===$&&C===d.default.sources.USER?z:S>=0?z+S:Math.max($,z+S)}),H=a(M,2);k=H[0],F=H[1]}return new g.Range(k,F-k)}t.expandConfig=D,t.overload=U,t.default=R},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(7),c=l(f),h=o(0),u=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function d(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function v(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var p=function(b){v(m,b);function m(){return s(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"formatAt",value:function(_,y,O,N){if(m.compare(this.statics.blotName,O)<0&&u.default.query(O,u.default.Scope.BLOT)){var T=this.isolate(_,y);N&&T.wrap(O,N)}else a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,_,y,O,N)}},{key:"optimize",value:function(_){if(a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,_),this.parent instanceof m&&m.compare(this.statics.blotName,this.parent.statics.blotName)>0){var y=this.parent.isolate(this.offset(),this.length());this.moveChildren(y),y.wrap(this)}}}],[{key:"compare",value:function(_,y){var O=m.order.indexOf(_),N=m.order.indexOf(y);return O>=0||N>=0?O-N:_===y?0:_<y?-1:1}}]),m}(u.default.Inline);p.allowedChildren=[p,u.default.Embed,c.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default.Text);t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function g(_,y){for(var O=0;O<y.length;O++){var N=y[O];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}return function(_,y,O){return y&&g(_.prototype,y),O&&g(_,O),_}}(),a=function g(_,y,O){_===null&&(_=Function.prototype);var N=Object.getOwnPropertyDescriptor(_,y);if(N===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:g(T,y,O)}else{if("value"in N)return N.value;var A=N.get;return A===void 0?void 0:A.call(O)}},f=o(54),c=l(f),h=o(10),u=l(h);function l(g){return g&&g.__esModule?g:{default:g}}function s(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function d(g,_){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:g}function v(g,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);g.prototype=Object.create(_&&_.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(g,_):g.__proto__=_)}var p=(0,u.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(g){document.addEventListener(g,function(){for(var _=arguments.length,y=Array(_),O=0;O<_;O++)y[O]=arguments[O];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(N){if(N.__quill&&N.__quill.emitter){var T;(T=N.__quill.emitter).handleDOM.apply(T,y)}})})});var m=function(g){v(_,g);function _(){s(this,_);var y=d(this,(_.__proto__||Object.getPrototypeOf(_)).call(this));return y.listeners={},y.on("error",p.error),y}return i(_,[{key:"emit",value:function(){p.log.apply(p,arguments),a(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(O){for(var N=arguments.length,T=Array(N>1?N-1:0),A=1;A<N;A++)T[A-1]=arguments[A];(this.listeners[O.type]||[]).forEach(function(I){var w=I.node,E=I.handler;(O.target===w||w.contains(O.target))&&E.apply(void 0,[O].concat(T))})}},{key:"listenDOM",value:function(O,N,T){this.listeners[O]||(this.listeners[O]=[]),this.listeners[O].push({node:N,handler:T})}}]),_}(c.default);m.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"},m.sources={API:"api",SILENT:"silent",USER:"user"},t.default=m},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});function i(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function f(c){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};i(this,f),this.quill=c,this.options=h};a.DEFAULTS={},t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=["error","warn","log","info"],a="warn";function f(h){if(i.indexOf(h)<=i.indexOf(a)){for(var u,l=arguments.length,s=Array(l>1?l-1:0),d=1;d<l;d++)s[d-1]=arguments[d];(u=console)[h].apply(u,s)}}function c(h){return i.reduce(function(u,l){return u[l]=f.bind(console,l,h),u},{})}f.level=c.level=function(h){a=h},t.default=c},function(n,t,o){var i=Array.prototype.slice,a=o(52),f=o(53),c=n.exports=function(s,d,v){return v||(v={}),s===d?!0:s instanceof Date&&d instanceof Date?s.getTime()===d.getTime():!s||!d||typeof s!="object"&&typeof d!="object"?v.strict?s===d:s==d:l(s,d,v)};function h(s){return s==null}function u(s){return!(!s||typeof s!="object"||typeof s.length!="number"||typeof s.copy!="function"||typeof s.slice!="function"||s.length>0&&typeof s[0]!="number")}function l(s,d,v){var p,b;if(h(s)||h(d)||s.prototype!==d.prototype)return!1;if(f(s))return f(d)?(s=i.call(s),d=i.call(d),c(s,d,v)):!1;if(u(s)){if(!u(d)||s.length!==d.length)return!1;for(p=0;p<s.length;p++)if(s[p]!==d[p])return!1;return!0}try{var m=a(s),g=a(d)}catch{return!1}if(m.length!=g.length)return!1;for(m.sort(),g.sort(),p=m.length-1;p>=0;p--)if(m[p]!=g[p])return!1;for(p=m.length-1;p>=0;p--)if(b=m[p],!c(s[b],d[b],v))return!1;return typeof s==typeof d}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c,h,u){u===void 0&&(u={}),this.attrName=c,this.keyName=h;var l=i.Scope.TYPE&i.Scope.ATTRIBUTE;u.scope!=null?this.scope=u.scope&i.Scope.LEVEL|l:this.scope=i.Scope.ATTRIBUTE,u.whitelist!=null&&(this.whitelist=u.whitelist)}return f.keys=function(c){return[].map.call(c.attributes,function(h){return h.name})},f.prototype.add=function(c,h){return this.canAdd(c,h)?(c.setAttribute(this.keyName,h),!0):!1},f.prototype.canAdd=function(c,h){var u=i.query(c,i.Scope.BLOT&(this.scope|i.Scope.TYPE));return u==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},f.prototype.remove=function(c){c.removeAttribute(this.keyName)},f.prototype.value=function(c){var h=c.getAttribute(this.keyName);return this.canAdd(c,h)&&h?h:""},f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var i=function(){function A(I,w){var E=[],x=!0,P=!1,R=void 0;try{for(var D=I[Symbol.iterator](),B;!(x=(B=D.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,R=U}finally{try{!x&&D.return&&D.return()}finally{if(P)throw R}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=function A(I,w,E){I===null&&(I=Function.prototype);var x=Object.getOwnPropertyDescriptor(I,w);if(x===void 0){var P=Object.getPrototypeOf(I);return P===null?void 0:A(P,w,E)}else{if("value"in x)return x.value;var R=x.get;return R===void 0?void 0:R.call(E)}},c=o(2),h=g(c),u=o(0),l=g(u),s=o(4),d=g(s),v=o(6),p=g(v),b=o(7),m=g(b);function g(A){return A&&A.__esModule?A:{default:A}}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}function y(A,I){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:A}function O(A,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);A.prototype=Object.create(I&&I.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(A,I):A.__proto__=I)}var N=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return I}(p.default);N.blotName="code",N.tagName="CODE";var T=function(A){O(I,A);function I(){return _(this,I),y(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return a(I,[{key:"delta",value:function(){var E=this,x=this.domNode.textContent;return x.endsWith(`
39
39
  `)&&(x=x.slice(0,-1)),x.split(`
40
- `).reduce(function(P,D){return P.insert(D).insert(`
41
- `,E.formats())},new h.default)}},{key:"format",value:function(E,x){if(!(E===this.statics.blotName&&x)){var P=this.descendant(m.default,this.length()-1),D=i(P,1),R=D[0];R!=null&&R.deleteAt(R.length()-1,1),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,E,x)}}},{key:"formatAt",value:function(E,x,P,D){if(x!==0&&!(l.default.query(P,l.default.Scope.BLOCK)==null||P===this.statics.blotName&&D===this.statics.formats(this.domNode))){var R=this.newlineIndex(E);if(!(R<0||R>=E+x)){var B=this.newlineIndex(E,!0)+1,U=R-B+1,V=this.isolate(B,U),q=V.next;V.format(P,D),q instanceof I&&q.formatAt(0,E-B+x-U,P,D)}}}},{key:"insertAt",value:function(E,x,P){if(P==null){var D=this.descendant(m.default,E),R=i(D,2),B=R[0],U=R[1];B.insertAt(U,x)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
40
+ `).reduce(function(P,R){return P.insert(R).insert(`
41
+ `,E.formats())},new h.default)}},{key:"format",value:function(E,x){if(!(E===this.statics.blotName&&x)){var P=this.descendant(m.default,this.length()-1),R=i(P,1),D=R[0];D!=null&&D.deleteAt(D.length()-1,1),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"format",this).call(this,E,x)}}},{key:"formatAt",value:function(E,x,P,R){if(x!==0&&!(l.default.query(P,l.default.Scope.BLOCK)==null||P===this.statics.blotName&&R===this.statics.formats(this.domNode))){var D=this.newlineIndex(E);if(!(D<0||D>=E+x)){var B=this.newlineIndex(E,!0)+1,U=D-B+1,V=this.isolate(B,U),q=V.next;V.format(P,R),q instanceof I&&q.formatAt(0,E-B+x-U,P,R)}}}},{key:"insertAt",value:function(E,x,P){if(P==null){var R=this.descendant(m.default,E),D=i(R,2),B=D[0],U=D[1];B.insertAt(U,x)}}},{key:"length",value:function(){var E=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
42
42
  `)?E:E+1}},{key:"newlineIndex",value:function(E){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(x)return this.domNode.textContent.slice(0,E).lastIndexOf(`
43
43
  `);var P=this.domNode.textContent.slice(E).indexOf(`
44
44
  `);return P>-1?E+P:-1}},{key:"optimize",value:function(E){this.domNode.textContent.endsWith(`
45
45
  `)||this.appendChild(l.default.create("text",`
46
- `)),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,E);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===x.statics.formats(x.domNode)&&(x.optimize(E),x.moveChildren(this),x.remove())}},{key:"replace",value:function(E){f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(x){var P=l.default.find(x);P==null?x.parentNode.removeChild(x):P instanceof l.default.Embed?P.remove():P.unwrap()})}}],[{key:"create",value:function(E){var x=f(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,E);return x.setAttribute("spellcheck",!1),x}},{key:"formats",value:function(){return!0}}]),I}(d.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=N,t.default=T},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}(),c=o(2),h=x(c),u=o(20),l=x(u),s=o(0),d=x(s),v=o(13),p=x(v),b=o(24),m=x(b),g=o(4),_=x(g),y=o(16),O=x(y),N=o(21),T=x(N),A=o(11),I=x(A),w=o(3),E=x(w);function x(q){return q&&q.__esModule?q:{default:q}}function P(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,q}function D(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var R=/^[ -~]*$/,B=function(){function q($){D(this,q),this.scroll=$,this.delta=this.getDelta()}return f(q,[{key:"applyDelta",value:function(S){var C=this,k=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),S=V(S),S.reduce(function(j,L){var M=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
46
+ `)),f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,E);var x=this.next;x!=null&&x.prev===this&&x.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===x.statics.formats(x.domNode)&&(x.optimize(E),x.moveChildren(this),x.remove())}},{key:"replace",value:function(E){f(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replace",this).call(this,E),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(x){var P=l.default.find(x);P==null?x.parentNode.removeChild(x):P instanceof l.default.Embed?P.remove():P.unwrap()})}}],[{key:"create",value:function(E){var x=f(I.__proto__||Object.getPrototypeOf(I),"create",this).call(this,E);return x.setAttribute("spellcheck",!1),x}},{key:"formats",value:function(){return!0}}]),I}(d.default);T.blotName="code-block",T.tagName="PRE",T.TAB=" ",t.Code=N,t.default=T},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a=function(){function q($,S){var C=[],k=!0,F=!1,j=void 0;try{for(var L=$[Symbol.iterator](),M;!(k=(M=L.next()).done)&&(C.push(M.value),!(S&&C.length===S));k=!0);}catch(H){F=!0,j=H}finally{try{!k&&L.return&&L.return()}finally{if(F)throw j}}return C}return function($,S){if(Array.isArray($))return $;if(Symbol.iterator in Object($))return q($,S);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function q($,S){for(var C=0;C<S.length;C++){var k=S[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty($,k.key,k)}}return function($,S,C){return S&&q($.prototype,S),C&&q($,C),$}}(),c=o(2),h=x(c),u=o(20),l=x(u),s=o(0),d=x(s),v=o(13),p=x(v),b=o(24),m=x(b),g=o(4),_=x(g),y=o(16),O=x(y),N=o(21),T=x(N),A=o(11),I=x(A),w=o(3),E=x(w);function x(q){return q&&q.__esModule?q:{default:q}}function P(q,$,S){return $ in q?Object.defineProperty(q,$,{value:S,enumerable:!0,configurable:!0,writable:!0}):q[$]=S,q}function R(q,$){if(!(q instanceof $))throw new TypeError("Cannot call a class as a function")}var D=/^[ -~]*$/,B=function(){function q($){R(this,q),this.scroll=$,this.delta=this.getDelta()}return f(q,[{key:"applyDelta",value:function(S){var C=this,k=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),S=V(S),S.reduce(function(j,L){var M=L.retain||L.delete||L.insert.length||1,H=L.attributes||{};if(L.insert!=null){if(typeof L.insert=="string"){var z=L.insert;z.endsWith(`
47
47
  `)&&k&&(k=!1,z=z.slice(0,-1)),j>=F&&!z.endsWith(`
48
48
  `)&&(k=!0),C.scroll.insertAt(j,z);var Y=C.scroll.line(j),ee=a(Y,2),re=ee[0],ae=ee[1],de=(0,E.default)({},(0,g.bubbleFormats)(re));if(re instanceof _.default){var ve=re.descendant(d.default.Leaf,ae),qe=a(ve,1),Ne=qe[0];de=(0,E.default)(de,(0,g.bubbleFormats)(Ne))}H=l.default.attributes.diff(de,H)||{}}else if(i(L.insert)==="object"){var W=Object.keys(L.insert)[0];if(W==null)return j;C.scroll.insertAt(j,W,L.insert[W])}F+=M}return Object.keys(H).forEach(function(K){C.scroll.formatAt(j,M,K,H[K])}),j+M},0),S.reduce(function(j,L){return typeof L.delete=="number"?(C.scroll.deleteAt(j,L.delete),j):j+(L.retain||L.insert.length||1)},0),this.scroll.batchEnd(),this.update(S)}},{key:"deleteText",value:function(S,C){return this.scroll.deleteAt(S,C),this.update(new h.default().retain(S).delete(C))}},{key:"formatLine",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(j){if(!(k.scroll.whitelist!=null&&!k.scroll.whitelist[j])){var L=k.scroll.lines(S,Math.max(C,1)),M=C;L.forEach(function(H){var z=H.length();if(!(H instanceof p.default))H.format(j,F[j]);else{var Y=S-H.offset(k.scroll),ee=H.newlineIndex(Y+M)-Y+1;H.formatAt(Y,ee,j,F[j])}M-=z})}}),this.scroll.optimize(),this.update(new h.default().retain(S).retain(C,(0,T.default)(F)))}},{key:"formatText",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(F).forEach(function(j){k.scroll.formatAt(S,C,j,F[j])}),this.update(new h.default().retain(S).retain(C,(0,T.default)(F)))}},{key:"getContents",value:function(S,C){return this.delta.slice(S,S+C)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(S,C){return S.concat(C.delta())},new h.default)}},{key:"getFormat",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,k=[],F=[];C===0?this.scroll.path(S).forEach(function(L){var M=a(L,1),H=M[0];H instanceof _.default?k.push(H):H instanceof d.default.Leaf&&F.push(H)}):(k=this.scroll.lines(S,C),F=this.scroll.descendants(d.default.Leaf,S,C));var j=[k,F].map(function(L){if(L.length===0)return{};for(var M=(0,g.bubbleFormats)(L.shift());Object.keys(M).length>0;){var H=L.shift();if(H==null)return M;M=U((0,g.bubbleFormats)(H),M)}return M});return E.default.apply(E.default,j)}},{key:"getText",value:function(S,C){return this.getContents(S,C).filter(function(k){return typeof k.insert=="string"}).map(function(k){return k.insert}).join("")}},{key:"insertEmbed",value:function(S,C,k){return this.scroll.insertAt(S,C,k),this.update(new h.default().retain(S).insert(P({},C,k)))}},{key:"insertText",value:function(S,C){var k=this,F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return C=C.replace(/\r\n/g,`
49
49
  `).replace(/\r/g,`
50
50
  `),this.scroll.insertAt(S,C),Object.keys(F).forEach(function(j){k.scroll.formatAt(S,C.length,j,F[j])}),this.update(new h.default().retain(S).insert(C,(0,T.default)(F)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var S=this.scroll.children.head;return S.statics.blotName!==_.default.blotName||S.children.length>1?!1:S.children.head instanceof O.default}},{key:"removeFormat",value:function(S,C){var k=this.getText(S,C),F=this.scroll.line(S+C),j=a(F,2),L=j[0],M=j[1],H=0,z=new h.default;L!=null&&(L instanceof p.default?H=L.newlineIndex(M)-M+1:H=L.length()-M,z=L.delta().slice(M,M+H-1).insert(`
51
- `));var Y=this.getContents(S,C+H),ee=Y.diff(new h.default().insert(k).concat(z)),re=new h.default().retain(S).concat(ee);return this.applyDelta(re)}},{key:"update",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(C.length===1&&C[0].type==="characterData"&&C[0].target.data.match(R)&&d.default.find(C[0].target)){var j=d.default.find(C[0].target),L=(0,g.bubbleFormats)(j),M=j.offset(this.scroll),H=C[0].oldValue.replace(m.default.CONTENTS,""),z=new h.default().insert(H),Y=new h.default().insert(j.value()),ee=new h.default().retain(M).concat(z.diff(Y,k));S=ee.reduce(function(re,ae){return ae.insert?re.insert(ae.insert,L):re.push(ae)},new h.default),this.delta=F.compose(S)}else this.delta=this.getDelta(),(!S||!(0,I.default)(F.compose(S),this.delta))&&(S=F.diff(this.delta,k));return S}}]),q}();function U(q,$){return Object.keys($).reduce(function(S,C){return q[C]==null||($[C]===q[C]?S[C]=$[C]:Array.isArray($[C])?$[C].indexOf(q[C])<0&&(S[C]=$[C].concat([q[C]])):S[C]=[$[C],q[C]]),S},{})}function V(q){return q.reduce(function($,S){if(S.insert===1){var C=(0,T.default)(S.attributes);return delete C.image,$.insert({image:S.attributes.image},C)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,T.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var k=S.insert.replace(/\r\n/g,`
51
+ `));var Y=this.getContents(S,C+H),ee=Y.diff(new h.default().insert(k).concat(z)),re=new h.default().retain(S).concat(ee);return this.applyDelta(re)}},{key:"update",value:function(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,F=this.delta;if(C.length===1&&C[0].type==="characterData"&&C[0].target.data.match(D)&&d.default.find(C[0].target)){var j=d.default.find(C[0].target),L=(0,g.bubbleFormats)(j),M=j.offset(this.scroll),H=C[0].oldValue.replace(m.default.CONTENTS,""),z=new h.default().insert(H),Y=new h.default().insert(j.value()),ee=new h.default().retain(M).concat(z.diff(Y,k));S=ee.reduce(function(re,ae){return ae.insert?re.insert(ae.insert,L):re.push(ae)},new h.default),this.delta=F.compose(S)}else this.delta=this.getDelta(),(!S||!(0,I.default)(F.compose(S),this.delta))&&(S=F.diff(this.delta,k));return S}}]),q}();function U(q,$){return Object.keys($).reduce(function(S,C){return q[C]==null||($[C]===q[C]?S[C]=$[C]:Array.isArray($[C])?$[C].indexOf(q[C])<0&&(S[C]=$[C].concat([q[C]])):S[C]=[$[C],q[C]]),S},{})}function V(q){return q.reduce(function($,S){if(S.insert===1){var C=(0,T.default)(S.attributes);return delete C.image,$.insert({image:S.attributes.image},C)}if(S.attributes!=null&&(S.attributes.list===!0||S.attributes.bullet===!0)&&(S=(0,T.default)(S),S.attributes.list?S.attributes.list="ordered":(S.attributes.list="bullet",delete S.attributes.bullet)),typeof S.insert=="string"){var k=S.insert.replace(/\r\n/g,`
52
52
  `).replace(/\r/g,`
53
- `);return $.insert(k,S.attributes)}return $.push(S)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(I,w){var E=[],x=!0,P=!1,D=void 0;try{for(var R=I[Symbol.iterator](),B;!(x=(B=R.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,D=U}finally{try{!x&&R.return&&R.return()}finally{if(P)throw D}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=o(0),c=m(f),h=o(21),u=m(h),l=o(11),s=m(l),d=o(8),v=m(d),p=o(10),b=m(p);function m(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var I=0,w=Array(A.length);I<A.length;I++)w[I]=A[I];return w}else return Array.from(A)}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var y=(0,b.default)("quill:selection"),O=function A(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=I,this.length=w},N=function(){function A(I,w){var E=this;_(this,A),this.emitter=w,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(x,P){x===v.default.events.TEXT_CHANGE&&P.length()>0&&E.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var x=E.getNativeRange();x!=null&&x.start.node!==E.cursor.textNode&&E.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(x.start.node,x.start.offset,x.end.node,x.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(x,P){if(P.range){var D=P.range,R=D.startNode,B=D.startOffset,U=D.endNode,V=D.endOffset;E.setNativeRange(R,B,U,V)}}),this.update(v.default.sources.SILENT)}return a(A,[{key:"handleComposition",value:function(){var w=this;this.root.addEventListener("compositionstart",function(){w.composing=!0}),this.root.addEventListener("compositionend",function(){if(w.composing=!1,w.cursor.parent){var E=w.cursor.restore();if(!E)return;setTimeout(function(){w.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var w=this;this.emitter.listenDOM("mousedown",document.body,function(){w.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){w.mouseDown=!1,w.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(w,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[w])){this.scroll.update();var x=this.getNativeRange();if(!(x==null||!x.native.collapsed||c.default.query(w,c.default.Scope.BLOCK))){if(x.start.node!==this.cursor.textNode){var P=c.default.find(x.start.node,!1);if(P==null)return;if(P instanceof c.default.Leaf){var D=P.split(x.start.offset);P.parent.insertBefore(this.cursor,D)}else P.insertBefore(this.cursor,x.start.node);this.cursor.attach()}this.cursor.format(w,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=this.scroll.length();w=Math.min(w,x-1),E=Math.min(w+E,x-1)-w;var P=void 0,D=this.scroll.leaf(w),R=i(D,2),B=R[0],U=R[1];if(B==null)return null;var V=B.position(U,!0),q=i(V,2);P=q[0],U=q[1];var $=document.createRange();if(E>0){$.setStart(P,U);var S=this.scroll.leaf(w+E),C=i(S,2);if(B=C[0],U=C[1],B==null)return null;var k=B.position(U,!0),F=i(k,2);return P=F[0],U=F[1],$.setEnd(P,U),$.getBoundingClientRect()}else{var j="left",L=void 0;return P instanceof Text?(U<P.data.length?($.setStart(P,U),$.setEnd(P,U+1)):($.setStart(P,U-1),$.setEnd(P,U),j="right"),L=$.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),U>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var w=document.getSelection();if(w==null||w.rangeCount<=0)return null;var E=w.getRangeAt(0);if(E==null)return null;var x=this.normalizeNative(E);return y.info("getNativeRange",x),x}},{key:"getRange",value:function(){var w=this.getNativeRange();if(w==null)return[null,null];var E=this.normalizedToRange(w);return[E,w]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(w){var E=this,x=[[w.start.node,w.start.offset]];w.native.collapsed||x.push([w.end.node,w.end.offset]);var P=x.map(function(B){var U=i(B,2),V=U[0],q=U[1],$=c.default.find(V,!0),S=$.offset(E.scroll);return q===0?S:$ instanceof c.default.Container?S+$.length():S+$.index(V,q)}),D=Math.min(Math.max.apply(Math,g(P)),this.scroll.length()-1),R=Math.min.apply(Math,[D].concat(g(P)));return new O(R,D-R)}},{key:"normalizeNative",value:function(w){if(!T(this.root,w.startContainer)||!w.collapsed&&!T(this.root,w.endContainer))return null;var E={start:{node:w.startContainer,offset:w.startOffset},end:{node:w.endContainer,offset:w.endOffset},native:w};return[E.start,E.end].forEach(function(x){for(var P=x.node,D=x.offset;!(P instanceof Text)&&P.childNodes.length>0;)if(P.childNodes.length>D)P=P.childNodes[D],D=0;else if(P.childNodes.length===D)P=P.lastChild,D=P instanceof Text?P.data.length:P.childNodes.length+1;else break;x.node=P,x.offset=D}),E}},{key:"rangeToNative",value:function(w){var E=this,x=w.collapsed?[w.index]:[w.index,w.index+w.length],P=[],D=this.scroll.length();return x.forEach(function(R,B){R=Math.min(D-1,R);var U=void 0,V=E.scroll.leaf(R),q=i(V,2),$=q[0],S=q[1],C=$.position(S,B!==0),k=i(C,2);U=k[0],S=k[1],P.push(U,S)}),P.length<2&&(P=P.concat(P)),P}},{key:"scrollIntoView",value:function(w){var E=this.lastRange;if(E!=null){var x=this.getBounds(E.index,E.length);if(x!=null){var P=this.scroll.length()-1,D=this.scroll.line(Math.min(E.index,P)),R=i(D,1),B=R[0],U=B;if(E.length>0){var V=this.scroll.line(Math.min(E.index+E.length,P)),q=i(V,1);U=q[0]}if(!(B==null||U==null)){var $=w.getBoundingClientRect();x.top<$.top?w.scrollTop-=$.top-x.top:x.bottom>$.bottom&&(w.scrollTop+=x.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(w,E){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,D=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",w,E,x,P),!(w!=null&&(this.root.parentNode==null||w.parentNode==null||x.parentNode==null))){var R=document.getSelection();if(R!=null)if(w!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||D||w!==B.startContainer||E!==B.startOffset||x!==B.endContainer||P!==B.endOffset){w.tagName=="BR"&&(E=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode),x.tagName=="BR"&&(P=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode);var U=document.createRange();U.setStart(w,E),U.setEnd(x,P),R.removeAllRanges(),R.addRange(U)}}else R.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof E=="string"&&(x=E,E=!1),y.info("setRange",w),w!=null){var P=this.rangeToNative(w);this.setNativeRange.apply(this,g(P).concat([E]))}else this.setNativeRange(null);this.update(x)}},{key:"update",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,E=this.lastRange,x=this.getRange(),P=i(x,2),D=P[0],R=P[1];if(this.lastRange=D,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,s.default)(E,this.lastRange)){var B;!this.composing&&R!=null&&R.native.collapsed&&R.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[v.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(E),w];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(U)),w!==v.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,U)}}}}]),A}();function T(A,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),A.contains(I)}t.Range=O,t.default=N},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(0),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(m,g){m.children.length===0?a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(44),f=o(30),c=o(1),h=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.build(),v}return s.prototype.appendChild=function(d){this.insertBefore(d)},s.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(d){d.attach()})},s.prototype.build=function(){var d=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var p=u(v);d.insertBefore(p,d.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},s.prototype.deleteAt=function(d,v){if(d===0&&v===this.length())return this.remove();this.children.forEachAt(d,v,function(p,b,m){p.deleteAt(b,m)})},s.prototype.descendant=function(d,v){var p=this.children.find(v),b=p[0],m=p[1];return d.blotName==null&&d(b)||d.blotName!=null&&b instanceof d?[b,m]:b instanceof s?b.descendant(d,m):[null,-1]},s.prototype.descendants=function(d,v,p){v===void 0&&(v=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],m=p;return this.children.forEachAt(v,p,function(g,_,y){(d.blotName==null&&d(g)||d.blotName!=null&&g instanceof d)&&b.push(g),g instanceof s&&(b=b.concat(g.descendants(d,_,m))),m-=y}),b},s.prototype.detach=function(){this.children.forEach(function(d){d.detach()}),l.prototype.detach.call(this)},s.prototype.formatAt=function(d,v,p,b){this.children.forEachAt(d,v,function(m,g,_){m.formatAt(g,_,p,b)})},s.prototype.insertAt=function(d,v,p){var b=this.children.find(d),m=b[0],g=b[1];if(m)m.insertAt(g,v,p);else{var _=p==null?c.create("text",v):c.create(v,p);this.appendChild(_)}},s.prototype.insertBefore=function(d,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return d instanceof p}))throw new c.ParchmentError("Cannot insert "+d.statics.blotName+" into "+this.statics.blotName);d.insertInto(this,v)},s.prototype.length=function(){return this.children.reduce(function(d,v){return d+v.length()},0)},s.prototype.moveChildren=function(d,v){this.children.forEach(function(p){d.insertBefore(p,v)})},s.prototype.optimize=function(d){if(l.prototype.optimize.call(this,d),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(d)}else this.remove()},s.prototype.path=function(d,v){v===void 0&&(v=!1);var p=this.children.find(d,v),b=p[0],m=p[1],g=[[this,d]];return b instanceof s?g.concat(b.path(m,v)):(b!=null&&g.push([b,m]),g)},s.prototype.removeChild=function(d){this.children.remove(d)},s.prototype.replace=function(d){d instanceof s&&d.moveChildren(this),l.prototype.replace.call(this,d)},s.prototype.split=function(d,v){if(v===void 0&&(v=!1),!v){if(d===0)return this;if(d===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(d,this.length(),function(b,m,g){b=b.split(m,v),p.appendChild(b)}),p},s.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},s.prototype.update=function(d,v){var p=this,b=[],m=[];d.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==p.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=c.find(g.nextSibling));var y=u(g);(y.next!=_||y.next==null)&&(y.parent!=null&&y.parent.removeChild(p),p.insertBefore(y,_||void 0))})},s}(f.default);function u(l){var s=c.find(l);if(s==null)try{s=c.create(l)}catch{s=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){s.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(s.domNode,l),s.attach()}return s}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12),f=o(31),c=o(17),h=o(1),u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.attributes=new f.default(v.domNode),v}return s.formats=function(d){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return d.tagName.toLowerCase()},s.prototype.format=function(d,v){var p=h.query(d);p instanceof a.default?this.attributes.attribute(p,v):v&&p!=null&&(d!==this.statics.blotName||this.formats()[d]!==v)&&this.replaceWith(d,v)},s.prototype.formats=function(){var d=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(d[this.statics.blotName]=v),d},s.prototype.replaceWith=function(d,v){var p=l.prototype.replaceWith.call(this,d,v);return this.attributes.copy(p),p},s.prototype.update=function(d,v){var p=this;l.prototype.update.call(this,d,v),d.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},s.prototype.wrap=function(d,v){var p=l.prototype.wrap.call(this,d,v);return p instanceof s&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},s}(c.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(30),f=o(1),c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.value=function(l){return!0},u.prototype.index=function(l,s){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(s,1):-1},u.prototype.position=function(l,s){var d=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(d+=1),[this.parent.domNode,d]},u.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=o(11),a=o(3),f={attributes:{compose:function(h,u,l){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var s=a(!0,{},u);l||(s=Object.keys(s).reduce(function(v,p){return s[p]!=null&&(v[p]=s[p]),v},{}));for(var d in h)h[d]!==void 0&&u[d]===void 0&&(s[d]=h[d]);return Object.keys(s).length>0?s:void 0},diff:function(h,u){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var l=Object.keys(h).concat(Object.keys(u)).reduce(function(s,d){return i(h[d],u[d])||(s[d]=u[d]===void 0?null:u[d]),s},{});return Object.keys(l).length>0?l:void 0},transform:function(h,u,l){if(typeof h!="object")return u;if(typeof u=="object"){if(!l)return u;var s=Object.keys(u).reduce(function(d,v){return h[v]===void 0&&(d[v]=u[v]),d},{});return Object.keys(s).length>0?s:void 0}}},iterator:function(h){return new c(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var u=this.ops[this.index];if(u){var l=this.offset,s=f.length(u);if(h>=s-l?(h=s-l,this.index+=1,this.offset=0):this.offset+=h,typeof u.delete=="number")return{delete:h};var d={};return u.attributes&&(d.attributes=u.attributes),typeof u.retain=="number"?d.retain=h:typeof u.insert=="string"?d.insert=u.insert.substr(l,h):d.insert=u.insert,d}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?f.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,u=this.index,l=this.next(),s=this.ops.slice(this.index);return this.offset=h,this.index=u,[l].concat(s)}else return[]},n.exports=f},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var a;try{a=Map}catch{a=function(){}}var f;try{f=Set}catch{f=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(p,b,m,g,_){typeof b=="object"&&(m=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var y=[],O=[],N=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var w,E;if(typeof A!="object")return A;if(i(A,a))w=new a;else if(i(A,f))w=new f;else if(i(A,c))w=new c(function($,S){A.then(function(C){$(T(C,I-1))},function(C){S(T(C,I-1))})});else if(h.__isArray(A))w=[];else if(h.__isRegExp(A))w=new RegExp(A.source,v(A)),A.lastIndex&&(w.lastIndex=A.lastIndex);else if(h.__isDate(A))w=new Date(A.getTime());else{if(N&&Buffer.isBuffer(A))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(A.length):w=new Buffer(A.length),A.copy(w),w;i(A,Error)?w=Object.create(A):typeof g=="undefined"?(E=Object.getPrototypeOf(A),w=Object.create(E)):(w=Object.create(g),E=g)}if(b){var x=y.indexOf(A);if(x!=-1)return O[x];y.push(A),O.push(w)}i(A,a)&&A.forEach(function($,S){var C=T(S,I-1),k=T($,I-1);w.set(C,k)}),i(A,f)&&A.forEach(function($){var S=T($,I-1);w.add(S)});for(var P in A){var D;E&&(D=Object.getOwnPropertyDescriptor(E,P)),!(D&&D.set==null)&&(w[P]=T(A[P],I-1))}if(Object.getOwnPropertySymbols)for(var R=Object.getOwnPropertySymbols(A),P=0;P<R.length;P++){var B=R[P],U=Object.getOwnPropertyDescriptor(A,B);U&&!U.enumerable&&!_||(w[B]=T(A[B],I-1),U.enumerable||Object.defineProperty(w,B,{enumerable:!1}))}if(_)for(var V=Object.getOwnPropertyNames(A),P=0;P<V.length;P++){var q=V[P],U=Object.getOwnPropertyDescriptor(A,q);U&&U.enumerable||(w[q]=T(A[q],I-1),Object.defineProperty(w,q,{enumerable:!1}))}return w}return T(p,m)}h.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function u(p){return Object.prototype.toString.call(p)}h.__objToStr=u;function l(p){return typeof p=="object"&&u(p)==="[object Date]"}h.__isDate=l;function s(p){return typeof p=="object"&&u(p)==="[object Array]"}h.__isArray=s;function d(p){return typeof p=="object"&&u(p)==="[object RegExp]"}h.__isRegExp=d;function v(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=v,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],D=!0,R=!1,B=void 0;try{for(var U=E[Symbol.iterator](),V;!(D=(V=U.next()).done)&&(P.push(V.value),!(x&&P.length===x));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if(R)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function w(E,x){for(var P=0;P<x.length;P++){var D=x[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),f=function w(E,x,P){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,x);if(D===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:w(R,x,P)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(P)}},c=o(0),h=y(c),u=o(8),l=y(u),s=o(4),d=y(s),v=o(16),p=y(v),b=o(13),m=y(b),g=o(25),_=y(g);function y(w){return w&&w.__esModule?w:{default:w}}function O(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function N(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function T(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}function A(w){return w instanceof d.default||w instanceof s.BlockEmbed}var I=function(w){T(E,w);function E(x,P){O(this,E);var D=N(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x));return D.emitter=P.emitter,Array.isArray(P.whitelist)&&(D.whitelist=P.whitelist.reduce(function(R,B){return R[B]=!0,R},{})),D.domNode.addEventListener("DOMNodeInserted",function(){}),D.optimize(),D.enable(),D}return a(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(P,D){var R=this.line(P),B=i(R,2),U=B[0],V=B[1],q=this.line(P+D),$=i(q,1),S=$[0];if(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,P,D),S!=null&&U!==S&&V>0){if(U instanceof s.BlockEmbed||S instanceof s.BlockEmbed){this.optimize();return}if(U instanceof m.default){var C=U.newlineIndex(U.length(),!0);if(C>-1&&(U=U.split(C+1),U===S)){this.optimize();return}}else if(S instanceof m.default){var k=S.newlineIndex(0);k>-1&&S.split(k+1)}var F=S.children.head instanceof p.default?null:S.children.head;U.moveChildren(S,F),U.remove()}this.optimize()}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",P)}},{key:"formatAt",value:function(P,D,R,B){this.whitelist!=null&&!this.whitelist[R]||(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,P,D,R,B),this.optimize())}},{key:"insertAt",value:function(P,D,R){if(!(R!=null&&this.whitelist!=null&&!this.whitelist[D])){if(P>=this.length())if(R==null||h.default.query(D,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),R==null&&D.endsWith(`
54
- `)&&(D=D.slice(0,-1)),B.insertAt(0,D,R)}else{var U=h.default.create(D,R);this.appendChild(U)}else f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,P,D,R);this.optimize()}}},{key:"insertBefore",value:function(P,D){if(P.statics.scope===h.default.Scope.INLINE_BLOT){var R=h.default.create(this.statics.defaultChild);R.appendChild(P),P=R}f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,P,D)}},{key:"leaf",value:function(P){return this.path(P).pop()||[null,-1]}},{key:"line",value:function(P){return P===this.length()?this.line(P-1):this.descendant(A,P)}},{key:"lines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,R=function B(U,V,q){var $=[],S=q;return U.children.forEachAt(V,q,function(C,k,F){A(C)?$.push(C):C instanceof h.default.Container&&($=$.concat(B(C,k,S))),S-=F}),$};return R(this,P,D)}},{key:"optimize",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,P,D),P.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,P,D))}},{key:"path",value:function(P){return f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,P).slice(1)}},{key:"update",value:function(P){if(this.batch!==!0){var D=l.default.sources.USER;typeof P=="string"&&(D=P),Array.isArray(P)||(P=this.observer.takeRecords()),P.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,D,P),f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,P.concat([])),P.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,D,P)}}}]),E}(h.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[d.default,s.BlockEmbed,_.default],t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},a=function(){function L(M,H){var z=[],Y=!0,ee=!1,re=void 0;try{for(var ae=M[Symbol.iterator](),de;!(Y=(de=ae.next()).done)&&(z.push(de.value),!(H&&z.length===H));Y=!0);}catch(ve){ee=!0,re=ve}finally{try{!Y&&ae.return&&ae.return()}finally{if(ee)throw re}}return z}return function(M,H){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function L(M,H){for(var z=0;z<H.length;z++){var Y=H[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,Y.key,Y)}}return function(M,H,z){return H&&L(M.prototype,H),z&&L(M,z),M}}(),c=o(21),h=w(c),u=o(11),l=w(u),s=o(3),d=w(s),v=o(2),p=w(v),b=o(20),m=w(b),g=o(0),_=w(g),y=o(5),O=w(y),N=o(10),T=w(N),A=o(9),I=w(A);function w(L){return L&&L.__esModule?L:{default:L}}function E(L,M,H){return M in L?Object.defineProperty(L,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[M]=H,L}function x(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function P(L,M){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:L}function D(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(L,M):L.__proto__=M)}var R=(0,T.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(L){D(M,L),f(M,null,[{key:"match",value:function(z,Y){return Y=j(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ee){return!!Y[ee]!==z[ee]&&Y[ee]!==null})?!1:Y.key===(z.which||z.keyCode)}}]);function M(H,z){x(this,M);var Y=P(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,z));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(ee){ee==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||Y.options.bindings[ee]&&Y.addBinding(Y.options.bindings[ee])}),Y.addBinding({key:M.keys.ENTER,shiftKey:null},C),Y.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0},$)):(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},S),Y.addBinding({key:M.keys.DELETE},{collapsed:!1},S),Y.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),Y.listen(),Y}return f(M,[{key:"addBinding",value:function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=j(z);if(re==null||re.key==null)return R.warn("Attempted to add invalid keyboard binding",re);typeof Y=="function"&&(Y={handler:Y}),typeof ee=="function"&&(ee={handler:ee}),re=(0,d.default)(re,Y,ee),this.bindings[re.key]=this.bindings[re.key]||[],this.bindings[re.key].push(re)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var ee=Y.which||Y.keyCode,re=(z.bindings[ee]||[]).filter(function(Te){return M.match(Y,Te)});if(re.length!==0){var ae=z.quill.getSelection();if(!(ae==null||!z.quill.hasFocus())){var de=z.quill.getLine(ae.index),ve=a(de,2),qe=ve[0],Ne=ve[1],W=z.quill.getLeaf(ae.index),K=a(W,2),Z=K[0],Q=K[1],X=ae.length===0?[Z,Q]:z.quill.getLeaf(ae.index+ae.length),se=a(X,2),ue=se[0],fe=se[1],Ke=Z instanceof _.default.Text?Z.value().slice(0,Q):"",lt=ue instanceof _.default.Text?ue.value().slice(fe):"",_e={collapsed:ae.length===0,empty:ae.length===0&&qe.length()<=1,format:z.quill.getFormat(ae),offset:Ne,prefix:Ke,suffix:lt},$d=re.some(function(Te){if(Te.collapsed!=null&&Te.collapsed!==_e.collapsed||Te.empty!=null&&Te.empty!==_e.empty||Te.offset!=null&&Te.offset!==_e.offset)return!1;if(Array.isArray(Te.format)){if(Te.format.every(function(yt){return _e.format[yt]==null}))return!1}else if(i(Te.format)==="object"&&!Object.keys(Te.format).every(function(yt){return Te.format[yt]===!0?_e.format[yt]!=null:Te.format[yt]===!1?_e.format[yt]==null:(0,l.default)(Te.format[yt],_e.format[yt])}))return!1;return Te.prefix!=null&&!Te.prefix.test(_e.prefix)||Te.suffix!=null&&!Te.suffix.test(_e.suffix)?!1:Te.handler.call(z,ae,_e)!==!0});$d&&Y.preventDefault()}}}})}}]),M}(I.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,H){H.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,O.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(M){this.quill.history.cutoff();var H=new p.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(H,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,O.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,H){this.quill.format("list",!1,O.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var H=this.quill.getLine(M.index),z=a(H,2),Y=z[0],ee=z[1],re=(0,d.default)({},Y.formats(),{list:"checked"}),ae=new p.default().retain(M.index).insert(`
53
+ `);return $.insert(k,S.attributes)}return $.push(S)},new h.default)}t.default=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var i=function(){function A(I,w){var E=[],x=!0,P=!1,R=void 0;try{for(var D=I[Symbol.iterator](),B;!(x=(B=D.next()).done)&&(E.push(B.value),!(w&&E.length===w));x=!0);}catch(U){P=!0,R=U}finally{try{!x&&D.return&&D.return()}finally{if(P)throw R}}return E}return function(I,w){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return A(I,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function A(I,w){for(var E=0;E<w.length;E++){var x=w[E];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(I,x.key,x)}}return function(I,w,E){return w&&A(I.prototype,w),E&&A(I,E),I}}(),f=o(0),c=m(f),h=o(21),u=m(h),l=o(11),s=m(l),d=o(8),v=m(d),p=o(10),b=m(p);function m(A){return A&&A.__esModule?A:{default:A}}function g(A){if(Array.isArray(A)){for(var I=0,w=Array(A.length);I<A.length;I++)w[I]=A[I];return w}else return Array.from(A)}function _(A,I){if(!(A instanceof I))throw new TypeError("Cannot call a class as a function")}var y=(0,b.default)("quill:selection"),O=function A(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;_(this,A),this.index=I,this.length=w},N=function(){function A(I,w){var E=this;_(this,A),this.emitter=w,this.scroll=I,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new O(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){E.mouseDown||setTimeout(E.update.bind(E,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(x,P){x===v.default.events.TEXT_CHANGE&&P.length()>0&&E.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(!!E.hasFocus()){var x=E.getNativeRange();x!=null&&x.start.node!==E.cursor.textNode&&E.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{E.setNativeRange(x.start.node,x.start.offset,x.end.node,x.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(x,P){if(P.range){var R=P.range,D=R.startNode,B=R.startOffset,U=R.endNode,V=R.endOffset;E.setNativeRange(D,B,U,V)}}),this.update(v.default.sources.SILENT)}return a(A,[{key:"handleComposition",value:function(){var w=this;this.root.addEventListener("compositionstart",function(){w.composing=!0}),this.root.addEventListener("compositionend",function(){if(w.composing=!1,w.cursor.parent){var E=w.cursor.restore();if(!E)return;setTimeout(function(){w.setNativeRange(E.startNode,E.startOffset,E.endNode,E.endOffset)},1)}})}},{key:"handleDragging",value:function(){var w=this;this.emitter.listenDOM("mousedown",document.body,function(){w.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){w.mouseDown=!1,w.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(w,E){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[w])){this.scroll.update();var x=this.getNativeRange();if(!(x==null||!x.native.collapsed||c.default.query(w,c.default.Scope.BLOCK))){if(x.start.node!==this.cursor.textNode){var P=c.default.find(x.start.node,!1);if(P==null)return;if(P instanceof c.default.Leaf){var R=P.split(x.start.offset);P.parent.insertBefore(this.cursor,R)}else P.insertBefore(this.cursor,x.start.node);this.cursor.attach()}this.cursor.format(w,E),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,x=this.scroll.length();w=Math.min(w,x-1),E=Math.min(w+E,x-1)-w;var P=void 0,R=this.scroll.leaf(w),D=i(R,2),B=D[0],U=D[1];if(B==null)return null;var V=B.position(U,!0),q=i(V,2);P=q[0],U=q[1];var $=document.createRange();if(E>0){$.setStart(P,U);var S=this.scroll.leaf(w+E),C=i(S,2);if(B=C[0],U=C[1],B==null)return null;var k=B.position(U,!0),F=i(k,2);return P=F[0],U=F[1],$.setEnd(P,U),$.getBoundingClientRect()}else{var j="left",L=void 0;return P instanceof Text?(U<P.data.length?($.setStart(P,U),$.setEnd(P,U+1)):($.setStart(P,U-1),$.setEnd(P,U),j="right"),L=$.getBoundingClientRect()):(L=B.domNode.getBoundingClientRect(),U>0&&(j="right")),{bottom:L.top+L.height,height:L.height,left:L[j],right:L[j],top:L.top,width:0}}}},{key:"getNativeRange",value:function(){var w=document.getSelection();if(w==null||w.rangeCount<=0)return null;var E=w.getRangeAt(0);if(E==null)return null;var x=this.normalizeNative(E);return y.info("getNativeRange",x),x}},{key:"getRange",value:function(){var w=this.getNativeRange();if(w==null)return[null,null];var E=this.normalizedToRange(w);return[E,w]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(w){var E=this,x=[[w.start.node,w.start.offset]];w.native.collapsed||x.push([w.end.node,w.end.offset]);var P=x.map(function(B){var U=i(B,2),V=U[0],q=U[1],$=c.default.find(V,!0),S=$.offset(E.scroll);return q===0?S:$ instanceof c.default.Container?S+$.length():S+$.index(V,q)}),R=Math.min(Math.max.apply(Math,g(P)),this.scroll.length()-1),D=Math.min.apply(Math,[R].concat(g(P)));return new O(D,R-D)}},{key:"normalizeNative",value:function(w){if(!T(this.root,w.startContainer)||!w.collapsed&&!T(this.root,w.endContainer))return null;var E={start:{node:w.startContainer,offset:w.startOffset},end:{node:w.endContainer,offset:w.endOffset},native:w};return[E.start,E.end].forEach(function(x){for(var P=x.node,R=x.offset;!(P instanceof Text)&&P.childNodes.length>0;)if(P.childNodes.length>R)P=P.childNodes[R],R=0;else if(P.childNodes.length===R)P=P.lastChild,R=P instanceof Text?P.data.length:P.childNodes.length+1;else break;x.node=P,x.offset=R}),E}},{key:"rangeToNative",value:function(w){var E=this,x=w.collapsed?[w.index]:[w.index,w.index+w.length],P=[],R=this.scroll.length();return x.forEach(function(D,B){D=Math.min(R-1,D);var U=void 0,V=E.scroll.leaf(D),q=i(V,2),$=q[0],S=q[1],C=$.position(S,B!==0),k=i(C,2);U=k[0],S=k[1],P.push(U,S)}),P.length<2&&(P=P.concat(P)),P}},{key:"scrollIntoView",value:function(w){var E=this.lastRange;if(E!=null){var x=this.getBounds(E.index,E.length);if(x!=null){var P=this.scroll.length()-1,R=this.scroll.line(Math.min(E.index,P)),D=i(R,1),B=D[0],U=B;if(E.length>0){var V=this.scroll.line(Math.min(E.index+E.length,P)),q=i(V,1);U=q[0]}if(!(B==null||U==null)){var $=w.getBoundingClientRect();x.top<$.top?w.scrollTop-=$.top-x.top:x.bottom>$.bottom&&(w.scrollTop+=x.bottom-$.bottom)}}}}},{key:"setNativeRange",value:function(w,E){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:E,R=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(y.info("setNativeRange",w,E,x,P),!(w!=null&&(this.root.parentNode==null||w.parentNode==null||x.parentNode==null))){var D=document.getSelection();if(D!=null)if(w!=null){this.hasFocus()||this.root.focus();var B=(this.getNativeRange()||{}).native;if(B==null||R||w!==B.startContainer||E!==B.startOffset||x!==B.endContainer||P!==B.endOffset){w.tagName=="BR"&&(E=[].indexOf.call(w.parentNode.childNodes,w),w=w.parentNode),x.tagName=="BR"&&(P=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode);var U=document.createRange();U.setStart(w,E),U.setEnd(x,P),D.removeAllRanges(),D.addRange(U)}}else D.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;if(typeof E=="string"&&(x=E,E=!1),y.info("setRange",w),w!=null){var P=this.rangeToNative(w);this.setNativeRange.apply(this,g(P).concat([E]))}else this.setNativeRange(null);this.update(x)}},{key:"update",value:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,E=this.lastRange,x=this.getRange(),P=i(x,2),R=P[0],D=P[1];if(this.lastRange=R,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,s.default)(E,this.lastRange)){var B;!this.composing&&D!=null&&D.native.collapsed&&D.start.node!==this.cursor.textNode&&this.cursor.restore();var U=[v.default.events.SELECTION_CHANGE,(0,u.default)(this.lastRange),(0,u.default)(E),w];if((B=this.emitter).emit.apply(B,[v.default.events.EDITOR_CHANGE].concat(U)),w!==v.default.sources.SILENT){var V;(V=this.emitter).emit.apply(V,U)}}}}]),A}();function T(A,I){try{I.parentNode}catch{return!1}return I instanceof Text&&(I=I.parentNode),A.contains(I)}t.Range=O,t.default=N},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(0),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"insertInto",value:function(m,g){m.children.length===0?a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"insertInto",this).call(this,m,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),p}(c.default.Embed);d.blotName="break",d.tagName="BR",t.default=d},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(44),f=o(30),c=o(1),h=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.build(),v}return s.prototype.appendChild=function(d){this.insertBefore(d)},s.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(d){d.attach()})},s.prototype.build=function(){var d=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var p=u(v);d.insertBefore(p,d.children.head||void 0)}catch(b){if(b instanceof c.ParchmentError)return;throw b}})},s.prototype.deleteAt=function(d,v){if(d===0&&v===this.length())return this.remove();this.children.forEachAt(d,v,function(p,b,m){p.deleteAt(b,m)})},s.prototype.descendant=function(d,v){var p=this.children.find(v),b=p[0],m=p[1];return d.blotName==null&&d(b)||d.blotName!=null&&b instanceof d?[b,m]:b instanceof s?b.descendant(d,m):[null,-1]},s.prototype.descendants=function(d,v,p){v===void 0&&(v=0),p===void 0&&(p=Number.MAX_VALUE);var b=[],m=p;return this.children.forEachAt(v,p,function(g,_,y){(d.blotName==null&&d(g)||d.blotName!=null&&g instanceof d)&&b.push(g),g instanceof s&&(b=b.concat(g.descendants(d,_,m))),m-=y}),b},s.prototype.detach=function(){this.children.forEach(function(d){d.detach()}),l.prototype.detach.call(this)},s.prototype.formatAt=function(d,v,p,b){this.children.forEachAt(d,v,function(m,g,_){m.formatAt(g,_,p,b)})},s.prototype.insertAt=function(d,v,p){var b=this.children.find(d),m=b[0],g=b[1];if(m)m.insertAt(g,v,p);else{var _=p==null?c.create("text",v):c.create(v,p);this.appendChild(_)}},s.prototype.insertBefore=function(d,v){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(p){return d instanceof p}))throw new c.ParchmentError("Cannot insert "+d.statics.blotName+" into "+this.statics.blotName);d.insertInto(this,v)},s.prototype.length=function(){return this.children.reduce(function(d,v){return d+v.length()},0)},s.prototype.moveChildren=function(d,v){this.children.forEach(function(p){d.insertBefore(p,v)})},s.prototype.optimize=function(d){if(l.prototype.optimize.call(this,d),this.children.length===0)if(this.statics.defaultChild!=null){var v=c.create(this.statics.defaultChild);this.appendChild(v),v.optimize(d)}else this.remove()},s.prototype.path=function(d,v){v===void 0&&(v=!1);var p=this.children.find(d,v),b=p[0],m=p[1],g=[[this,d]];return b instanceof s?g.concat(b.path(m,v)):(b!=null&&g.push([b,m]),g)},s.prototype.removeChild=function(d){this.children.remove(d)},s.prototype.replace=function(d){d instanceof s&&d.moveChildren(this),l.prototype.replace.call(this,d)},s.prototype.split=function(d,v){if(v===void 0&&(v=!1),!v){if(d===0)return this;if(d===this.length())return this.next}var p=this.clone();return this.parent.insertBefore(p,this.next),this.children.forEachAt(d,this.length(),function(b,m,g){b=b.split(m,v),p.appendChild(b)}),p},s.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},s.prototype.update=function(d,v){var p=this,b=[],m=[];d.forEach(function(g){g.target===p.domNode&&g.type==="childList"&&(b.push.apply(b,g.addedNodes),m.push.apply(m,g.removedNodes))}),m.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var _=c.find(g);_!=null&&(_.domNode.parentNode==null||_.domNode.parentNode===p.domNode)&&_.detach()}}),b.filter(function(g){return g.parentNode==p.domNode}).sort(function(g,_){return g===_?0:g.compareDocumentPosition(_)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var _=null;g.nextSibling!=null&&(_=c.find(g.nextSibling));var y=u(g);(y.next!=_||y.next==null)&&(y.parent!=null&&y.parent.removeChild(p),p.insertBefore(y,_||void 0))})},s}(f.default);function u(l){var s=c.find(l);if(s==null)try{s=c.create(l)}catch{s=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(v){s.domNode.appendChild(v)}),l.parentNode&&l.parentNode.replaceChild(s.domNode,l),s.attach()}return s}t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12),f=o(31),c=o(17),h=o(1),u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.attributes=new f.default(v.domNode),v}return s.formats=function(d){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return d.tagName.toLowerCase()},s.prototype.format=function(d,v){var p=h.query(d);p instanceof a.default?this.attributes.attribute(p,v):v&&p!=null&&(d!==this.statics.blotName||this.formats()[d]!==v)&&this.replaceWith(d,v)},s.prototype.formats=function(){var d=this.attributes.values(),v=this.statics.formats(this.domNode);return v!=null&&(d[this.statics.blotName]=v),d},s.prototype.replaceWith=function(d,v){var p=l.prototype.replaceWith.call(this,d,v);return this.attributes.copy(p),p},s.prototype.update=function(d,v){var p=this;l.prototype.update.call(this,d,v),d.some(function(b){return b.target===p.domNode&&b.type==="attributes"})&&this.attributes.build()},s.prototype.wrap=function(d,v){var p=l.prototype.wrap.call(this,d,v);return p instanceof s&&p.statics.scope===this.statics.scope&&this.attributes.move(p),p},s}(c.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(30),f=o(1),c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.value=function(l){return!0},u.prototype.index=function(l,s){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(s,1):-1},u.prototype.position=function(l,s){var d=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(d+=1),[this.parent.domNode,d]},u.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=o(11),a=o(3),f={attributes:{compose:function(h,u,l){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var s=a(!0,{},u);l||(s=Object.keys(s).reduce(function(v,p){return s[p]!=null&&(v[p]=s[p]),v},{}));for(var d in h)h[d]!==void 0&&u[d]===void 0&&(s[d]=h[d]);return Object.keys(s).length>0?s:void 0},diff:function(h,u){typeof h!="object"&&(h={}),typeof u!="object"&&(u={});var l=Object.keys(h).concat(Object.keys(u)).reduce(function(s,d){return i(h[d],u[d])||(s[d]=u[d]===void 0?null:u[d]),s},{});return Object.keys(l).length>0?l:void 0},transform:function(h,u,l){if(typeof h!="object")return u;if(typeof u=="object"){if(!l)return u;var s=Object.keys(u).reduce(function(d,v){return h[v]===void 0&&(d[v]=u[v]),d},{});return Object.keys(s).length>0?s:void 0}}},iterator:function(h){return new c(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function c(h){this.ops=h,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(h){h||(h=1/0);var u=this.ops[this.index];if(u){var l=this.offset,s=f.length(u);if(h>=s-l?(h=s-l,this.index+=1,this.offset=0):this.offset+=h,typeof u.delete=="number")return{delete:h};var d={};return u.attributes&&(d.attributes=u.attributes),typeof u.retain=="number"?d.retain=h:typeof u.insert=="string"?d.insert=u.insert.substr(l,h):d.insert=u.insert,d}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?f.length(this.ops[this.index])-this.offset:1/0},c.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"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,u=this.index,l=this.next(),s=this.ops.slice(this.index);return this.offset=h,this.index=u,[l].concat(s)}else return[]},n.exports=f},function(n,t){var o=function(){function i(p,b){return b!=null&&p instanceof b}var a;try{a=Map}catch{a=function(){}}var f;try{f=Set}catch{f=function(){}}var c;try{c=Promise}catch{c=function(){}}function h(p,b,m,g,_){typeof b=="object"&&(m=b.depth,g=b.prototype,_=b.includeNonEnumerable,b=b.circular);var y=[],O=[],N=typeof Buffer!="undefined";typeof b=="undefined"&&(b=!0),typeof m=="undefined"&&(m=1/0);function T(A,I){if(A===null)return null;if(I===0)return A;var w,E;if(typeof A!="object")return A;if(i(A,a))w=new a;else if(i(A,f))w=new f;else if(i(A,c))w=new c(function($,S){A.then(function(C){$(T(C,I-1))},function(C){S(T(C,I-1))})});else if(h.__isArray(A))w=[];else if(h.__isRegExp(A))w=new RegExp(A.source,v(A)),A.lastIndex&&(w.lastIndex=A.lastIndex);else if(h.__isDate(A))w=new Date(A.getTime());else{if(N&&Buffer.isBuffer(A))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(A.length):w=new Buffer(A.length),A.copy(w),w;i(A,Error)?w=Object.create(A):typeof g=="undefined"?(E=Object.getPrototypeOf(A),w=Object.create(E)):(w=Object.create(g),E=g)}if(b){var x=y.indexOf(A);if(x!=-1)return O[x];y.push(A),O.push(w)}i(A,a)&&A.forEach(function($,S){var C=T(S,I-1),k=T($,I-1);w.set(C,k)}),i(A,f)&&A.forEach(function($){var S=T($,I-1);w.add(S)});for(var P in A){var R;E&&(R=Object.getOwnPropertyDescriptor(E,P)),!(R&&R.set==null)&&(w[P]=T(A[P],I-1))}if(Object.getOwnPropertySymbols)for(var D=Object.getOwnPropertySymbols(A),P=0;P<D.length;P++){var B=D[P],U=Object.getOwnPropertyDescriptor(A,B);U&&!U.enumerable&&!_||(w[B]=T(A[B],I-1),U.enumerable||Object.defineProperty(w,B,{enumerable:!1}))}if(_)for(var V=Object.getOwnPropertyNames(A),P=0;P<V.length;P++){var q=V[P],U=Object.getOwnPropertyDescriptor(A,q);U&&U.enumerable||(w[q]=T(A[q],I-1),Object.defineProperty(w,q,{enumerable:!1}))}return w}return T(p,m)}h.clonePrototype=function(b){if(b===null)return null;var m=function(){};return m.prototype=b,new m};function u(p){return Object.prototype.toString.call(p)}h.__objToStr=u;function l(p){return typeof p=="object"&&u(p)==="[object Date]"}h.__isDate=l;function s(p){return typeof p=="object"&&u(p)==="[object Array]"}h.__isArray=s;function d(p){return typeof p=="object"&&u(p)==="[object RegExp]"}h.__isRegExp=d;function v(p){var b="";return p.global&&(b+="g"),p.ignoreCase&&(b+="i"),p.multiline&&(b+="m"),b}return h.__getRegExpFlags=v,h}();typeof n=="object"&&n.exports&&(n.exports=o)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],R=!0,D=!1,B=void 0;try{for(var U=E[Symbol.iterator](),V;!(R=(V=U.next()).done)&&(P.push(V.value),!(x&&P.length===x));R=!0);}catch(q){D=!0,B=q}finally{try{!R&&U.return&&U.return()}finally{if(D)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function w(E,x){for(var P=0;P<x.length;P++){var R=x[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(E,R.key,R)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),f=function w(E,x,P){E===null&&(E=Function.prototype);var R=Object.getOwnPropertyDescriptor(E,x);if(R===void 0){var D=Object.getPrototypeOf(E);return D===null?void 0:w(D,x,P)}else{if("value"in R)return R.value;var B=R.get;return B===void 0?void 0:B.call(P)}},c=o(0),h=y(c),u=o(8),l=y(u),s=o(4),d=y(s),v=o(16),p=y(v),b=o(13),m=y(b),g=o(25),_=y(g);function y(w){return w&&w.__esModule?w:{default:w}}function O(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function N(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function T(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}function A(w){return w instanceof d.default||w instanceof s.BlockEmbed}var I=function(w){T(E,w);function E(x,P){O(this,E);var R=N(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x));return R.emitter=P.emitter,Array.isArray(P.whitelist)&&(R.whitelist=P.whitelist.reduce(function(D,B){return D[B]=!0,D},{})),R.domNode.addEventListener("DOMNodeInserted",function(){}),R.optimize(),R.enable(),R}return a(E,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(P,R){var D=this.line(P),B=i(D,2),U=B[0],V=B[1],q=this.line(P+R),$=i(q,1),S=$[0];if(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"deleteAt",this).call(this,P,R),S!=null&&U!==S&&V>0){if(U instanceof s.BlockEmbed||S instanceof s.BlockEmbed){this.optimize();return}if(U instanceof m.default){var C=U.newlineIndex(U.length(),!0);if(C>-1&&(U=U.split(C+1),U===S)){this.optimize();return}}else if(S instanceof m.default){var k=S.newlineIndex(0);k>-1&&S.split(k+1)}var F=S.children.head instanceof p.default?null:S.children.head;U.moveChildren(S,F),U.remove()}this.optimize()}},{key:"enable",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",P)}},{key:"formatAt",value:function(P,R,D,B){this.whitelist!=null&&!this.whitelist[D]||(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"formatAt",this).call(this,P,R,D,B),this.optimize())}},{key:"insertAt",value:function(P,R,D){if(!(D!=null&&this.whitelist!=null&&!this.whitelist[R])){if(P>=this.length())if(D==null||h.default.query(R,h.default.Scope.BLOCK)==null){var B=h.default.create(this.statics.defaultChild);this.appendChild(B),D==null&&R.endsWith(`
54
+ `)&&(R=R.slice(0,-1)),B.insertAt(0,R,D)}else{var U=h.default.create(R,D);this.appendChild(U)}else f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertAt",this).call(this,P,R,D);this.optimize()}}},{key:"insertBefore",value:function(P,R){if(P.statics.scope===h.default.Scope.INLINE_BLOT){var D=h.default.create(this.statics.defaultChild);D.appendChild(P),P=D}f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,P,R)}},{key:"leaf",value:function(P){return this.path(P).pop()||[null,-1]}},{key:"line",value:function(P){return P===this.length()?this.line(P-1):this.descendant(A,P)}},{key:"lines",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,D=function B(U,V,q){var $=[],S=q;return U.children.forEachAt(V,q,function(C,k,F){A(C)?$.push(C):C instanceof h.default.Container&&($=$.concat(B(C,k,S))),S-=F}),$};return D(this,P,R)}},{key:"optimize",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,P,R),P.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,P,R))}},{key:"path",value:function(P){return f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"path",this).call(this,P).slice(1)}},{key:"update",value:function(P){if(this.batch!==!0){var R=l.default.sources.USER;typeof P=="string"&&(R=P),Array.isArray(P)||(P=this.observer.takeRecords()),P.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,R,P),f(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"update",this).call(this,P.concat([])),P.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,R,P)}}}]),E}(h.default.Scroll);I.blotName="scroll",I.className="ql-editor",I.tagName="DIV",I.defaultChild="block",I.allowedChildren=[d.default,s.BlockEmbed,_.default],t.default=I},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},a=function(){function L(M,H){var z=[],Y=!0,ee=!1,re=void 0;try{for(var ae=M[Symbol.iterator](),de;!(Y=(de=ae.next()).done)&&(z.push(de.value),!(H&&z.length===H));Y=!0);}catch(ve){ee=!0,re=ve}finally{try{!Y&&ae.return&&ae.return()}finally{if(ee)throw re}}return z}return function(M,H){if(Array.isArray(M))return M;if(Symbol.iterator in Object(M))return L(M,H);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function L(M,H){for(var z=0;z<H.length;z++){var Y=H[z];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(M,Y.key,Y)}}return function(M,H,z){return H&&L(M.prototype,H),z&&L(M,z),M}}(),c=o(21),h=w(c),u=o(11),l=w(u),s=o(3),d=w(s),v=o(2),p=w(v),b=o(20),m=w(b),g=o(0),_=w(g),y=o(5),O=w(y),N=o(10),T=w(N),A=o(9),I=w(A);function w(L){return L&&L.__esModule?L:{default:L}}function E(L,M,H){return M in L?Object.defineProperty(L,M,{value:H,enumerable:!0,configurable:!0,writable:!0}):L[M]=H,L}function x(L,M){if(!(L instanceof M))throw new TypeError("Cannot call a class as a function")}function P(L,M){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:L}function R(L,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);L.prototype=Object.create(M&&M.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(L,M):L.__proto__=M)}var D=(0,T.default)("quill:keyboard"),B=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",U=function(L){R(M,L),f(M,null,[{key:"match",value:function(z,Y){return Y=j(Y),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ee){return!!Y[ee]!==z[ee]&&Y[ee]!==null})?!1:Y.key===(z.which||z.keyCode)}}]);function M(H,z){x(this,M);var Y=P(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,H,z));return Y.bindings={},Object.keys(Y.options.bindings).forEach(function(ee){ee==="list autofill"&&H.scroll.whitelist!=null&&!H.scroll.whitelist.list||Y.options.bindings[ee]&&Y.addBinding(Y.options.bindings[ee])}),Y.addBinding({key:M.keys.ENTER,shiftKey:null},C),Y.addBinding({key:M.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0},$)):(Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},q),Y.addBinding({key:M.keys.DELETE},{collapsed:!0,suffix:/^.?$/},$)),Y.addBinding({key:M.keys.BACKSPACE},{collapsed:!1},S),Y.addBinding({key:M.keys.DELETE},{collapsed:!1},S),Y.addBinding({key:M.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},q),Y.listen(),Y}return f(M,[{key:"addBinding",value:function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},re=j(z);if(re==null||re.key==null)return D.warn("Attempted to add invalid keyboard binding",re);typeof Y=="function"&&(Y={handler:Y}),typeof ee=="function"&&(ee={handler:ee}),re=(0,d.default)(re,Y,ee),this.bindings[re.key]=this.bindings[re.key]||[],this.bindings[re.key].push(re)}},{key:"listen",value:function(){var z=this;this.quill.root.addEventListener("keydown",function(Y){if(!Y.defaultPrevented){var ee=Y.which||Y.keyCode,re=(z.bindings[ee]||[]).filter(function(Te){return M.match(Y,Te)});if(re.length!==0){var ae=z.quill.getSelection();if(!(ae==null||!z.quill.hasFocus())){var de=z.quill.getLine(ae.index),ve=a(de,2),qe=ve[0],Ne=ve[1],W=z.quill.getLeaf(ae.index),K=a(W,2),Z=K[0],Q=K[1],X=ae.length===0?[Z,Q]:z.quill.getLeaf(ae.index+ae.length),se=a(X,2),ue=se[0],fe=se[1],Ke=Z instanceof _.default.Text?Z.value().slice(0,Q):"",lt=ue instanceof _.default.Text?ue.value().slice(fe):"",_e={collapsed:ae.length===0,empty:ae.length===0&&qe.length()<=1,format:z.quill.getFormat(ae),offset:Ne,prefix:Ke,suffix:lt},$d=re.some(function(Te){if(Te.collapsed!=null&&Te.collapsed!==_e.collapsed||Te.empty!=null&&Te.empty!==_e.empty||Te.offset!=null&&Te.offset!==_e.offset)return!1;if(Array.isArray(Te.format)){if(Te.format.every(function(yt){return _e.format[yt]==null}))return!1}else if(i(Te.format)==="object"&&!Object.keys(Te.format).every(function(yt){return Te.format[yt]===!0?_e.format[yt]!=null:Te.format[yt]===!1?_e.format[yt]==null:(0,l.default)(Te.format[yt],_e.format[yt])}))return!1;return Te.prefix!=null&&!Te.prefix.test(_e.prefix)||Te.suffix!=null&&!Te.suffix.test(_e.suffix)?!1:Te.handler.call(z,ae,_e)!==!0});$d&&Y.preventDefault()}}}})}}]),M}(I.default);U.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},U.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:U.keys.TAB,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","+1",O.default.sources.USER)}},outdent:{key:U.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(M,H){if(H.collapsed&&H.offset!==0)return!0;this.quill.format("indent","-1",O.default.sources.USER)}},"outdent backspace":{key:U.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(M,H){H.format.indent!=null?this.quill.format("indent","-1",O.default.sources.USER):H.format.list!=null&&this.quill.format("list",!1,O.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:U.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(M){this.quill.deleteText(M.index-1,1,O.default.sources.USER)}},tab:{key:U.keys.TAB,handler:function(M){this.quill.history.cutoff();var H=new p.default().retain(M.index).delete(M.length).insert(" ");this.quill.updateContents(H,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index+1,O.default.sources.SILENT)}},"list empty enter":{key:U.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(M,H){this.quill.format("list",!1,O.default.sources.USER),H.format.indent&&this.quill.format("indent",!1,O.default.sources.USER)}},"checklist enter":{key:U.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(M){var H=this.quill.getLine(M.index),z=a(H,2),Y=z[0],ee=z[1],re=(0,d.default)({},Y.formats(),{list:"checked"}),ae=new p.default().retain(M.index).insert(`
55
55
  `,re).retain(Y.length()-ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(ae,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:U.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(M,H){var z=this.quill.getLine(M.index),Y=a(z,2),ee=Y[0],re=Y[1],ae=new p.default().retain(M.index).insert(`
56
56
  `,H.format).retain(ee.length()-re-1).retain(1,{header:null});this.quill.updateContents(ae,O.default.sources.USER),this.quill.setSelection(M.index+1,O.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(M,H){var z=H.prefix.length,Y=this.quill.getLine(M.index),ee=a(Y,2),re=ee[0],ae=ee[1];if(ae>z)return!0;var de=void 0;switch(H.prefix.trim()){case"[]":case"[ ]":de="unchecked";break;case"[x]":de="checked";break;case"-":case"*":de="bullet";break;default:de="ordered"}this.quill.insertText(M.index," ",O.default.sources.USER),this.quill.history.cutoff();var ve=new p.default().retain(M.index-ae).delete(z+1).retain(re.length()-2-ae).retain(1,{list:de});this.quill.updateContents(ve,O.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(M.index-z,O.default.sources.SILENT)}},"code exit":{key:U.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(M){var H=this.quill.getLine(M.index),z=a(H,2),Y=z[0],ee=z[1],re=new p.default().retain(M.index+Y.length()-ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(re,O.default.sources.USER)}},"embed left":V(U.keys.LEFT,!1),"embed left shift":V(U.keys.LEFT,!0),"embed right":V(U.keys.RIGHT,!1),"embed right shift":V(U.keys.RIGHT,!0)}};function V(L,M){var H,z=L===U.keys.LEFT?"prefix":"suffix";return H={key:L,shiftKey:M,altKey:null},E(H,z,/^$/),E(H,"handler",function(ee){var re=ee.index;L===U.keys.RIGHT&&(re+=ee.length+1);var ae=this.quill.getLeaf(re),de=a(ae,1),ve=de[0];return ve instanceof _.default.Embed?(L===U.keys.LEFT?M?this.quill.setSelection(ee.index-1,ee.length+1,O.default.sources.USER):this.quill.setSelection(ee.index-1,O.default.sources.USER):M?this.quill.setSelection(ee.index,ee.length+1,O.default.sources.USER):this.quill.setSelection(ee.index+ee.length+1,O.default.sources.USER),!1):!0}),H}function q(L,M){if(!(L.index===0||this.quill.getLength()<=1)){var H=this.quill.getLine(L.index),z=a(H,1),Y=z[0],ee={};if(M.offset===0){var re=this.quill.getLine(L.index-1),ae=a(re,1),de=ae[0];if(de!=null&&de.length()>1){var ve=Y.formats(),qe=this.quill.getFormat(L.index-1,1);ee=m.default.attributes.diff(ve,qe)||{}}}var Ne=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(M.prefix)?2:1;this.quill.deleteText(L.index-Ne,Ne,O.default.sources.USER),Object.keys(ee).length>0&&this.quill.formatLine(L.index-Ne,Ne,ee,O.default.sources.USER),this.quill.focus()}}function $(L,M){var H=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(M.suffix)?2:1;if(!(L.index>=this.quill.getLength()-H)){var z={},Y=0,ee=this.quill.getLine(L.index),re=a(ee,1),ae=re[0];if(M.offset>=ae.length()-1){var de=this.quill.getLine(L.index+1),ve=a(de,1),qe=ve[0];if(qe){var Ne=ae.formats(),W=this.quill.getFormat(L.index,1);z=m.default.attributes.diff(Ne,W)||{},Y=qe.length()}}this.quill.deleteText(L.index,H,O.default.sources.USER),Object.keys(z).length>0&&this.quill.formatLine(L.index+Y-1,H,z,O.default.sources.USER)}}function S(L){var M=this.quill.getLines(L),H={};if(M.length>1){var z=M[0].formats(),Y=M[M.length-1].formats();H=m.default.attributes.diff(Y,z)||{}}this.quill.deleteText(L,O.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(L.index,1,H,O.default.sources.USER),this.quill.setSelection(L.index,O.default.sources.SILENT),this.quill.focus()}function C(L,M){var H=this;L.length>0&&this.quill.scroll.deleteAt(L.index,L.length);var z=Object.keys(M.format).reduce(function(Y,ee){return _.default.query(ee,_.default.Scope.BLOCK)&&!Array.isArray(M.format[ee])&&(Y[ee]=M.format[ee]),Y},{});this.quill.insertText(L.index,`
57
57
  `,z,O.default.sources.USER),this.quill.setSelection(L.index+1,O.default.sources.SILENT),this.quill.focus(),Object.keys(M.format).forEach(function(Y){z[Y]==null&&(Array.isArray(M.format[Y])||Y!=="link"&&H.quill.format(Y,M.format[Y],O.default.sources.USER))})}function k(L){return{key:U.keys.TAB,shiftKey:!L,format:{"code-block":!0},handler:function(H){var z=_.default.query("code-block"),Y=H.index,ee=H.length,re=this.quill.scroll.descendant(z,Y),ae=a(re,2),de=ae[0],ve=ae[1];if(de!=null){var qe=this.quill.getIndex(de),Ne=de.newlineIndex(ve,!0)+1,W=de.newlineIndex(qe+ve+ee),K=de.domNode.textContent.slice(Ne,W).split(`
58
- `);ve=0,K.forEach(function(Z,Q){L?(de.insertAt(Ne+ve,z.TAB),ve+=z.TAB.length,Q===0?Y+=z.TAB.length:ee+=z.TAB.length):Z.startsWith(z.TAB)&&(de.deleteAt(Ne+ve,z.TAB.length),ve-=z.TAB.length,Q===0?Y-=z.TAB.length:ee-=z.TAB.length),ve+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(Y,ee,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,h.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}t.default=U,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){var y=[],O=!0,N=!1,T=void 0;try{for(var A=g[Symbol.iterator](),I;!(O=(I=A.next()).done)&&(y.push(I.value),!(_&&y.length===_));O=!0);}catch(w){N=!0,T=w}finally{try{!O&&A.return&&A.return()}finally{if(N)throw T}}return y}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),c=o(0),h=s(c),u=o(7),l=s(u);function s(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b=function(m){p(g,m),f(g,null,[{key:"value",value:function(){}}]);function g(_,y){d(this,g);var O=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=y,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return f(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,O){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,O);for(var N=this,T=0;N!=null&&N.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=N.offset(N.parent),N=N.parent;N!=null&&(this._length=g.CONTENTS.length,N.optimize(),N.formatAt(T,g.CONTENTS.length,y,O),this._length=0)}},{key:"index",value:function(y,O){return y===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,O=this.selection.getNativeRange(),N=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===y&&O.end.node===y){var I=[y,O.start.offset,O.end.offset];N=I[0],T=I[1],A=I[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var w=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(N=this.next.domNode,this.next.insertAt(0,w),this.textNode.data=g.CONTENTS):(this.textNode.data=w,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var E=[T,A].map(function(P){return Math.max(0,Math.min(N.data.length,P-1))}),x=i(E,2);return T=x[0],A=x[1],{startNode:N,startOffset:T,endNode:N,endOffset:A}}}}},{key:"update",value:function(y,O){var N=this;if(y.some(function(A){return A.type==="characterData"&&A.target===N.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),g}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=h(i),f=o(4),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(a.default.Container);d.allowedChildren=[c.default,f.BlockEmbed,d],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=h(f);function h(b){return b&&b.__esModule?b:{default:b}}function u(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function s(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var d=function(b){s(m,b);function m(){return u(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var y=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):y}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new d("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=d,t.ColorClass=v,t.ColorStyle=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),a=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(6),c=h(f);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function s(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var d=function(p){s(b,p);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(g,_){if(g!==this.statics.blotName||!_)return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,g,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(g){var _=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,g);return g=this.sanitize(g),_.setAttribute("href",g),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(c.default);d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(p,b){var m=document.createElement("a");m.href=p;var g=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(g)>-1}t.default=d,t.sanitize=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},a=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),f=o(23),c=l(f),h=o(107),u=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var d=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var p=function(){function b(m){var g=this;s(this,b),this.select=m,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(){g.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){_.selectItem(y,!0)}),y.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(y,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=u.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(y){var O=g.buildItem(y);_.appendChild(O),y.selected===!0&&g.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(_){g.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.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(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(g!==y&&(y!=null&&y.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":i(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=R(i),f=o(5),c=R(f),h=o(4),u=R(h),l=o(16),s=R(l),d=o(25),v=R(d),p=o(24),b=R(p),m=o(35),g=R(m),_=o(6),y=R(_),O=o(22),N=R(O),T=o(7),A=R(T),I=o(55),w=R(I),E=o(42),x=R(E),P=o(23),D=R(P);function R(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":u.default,"blots/block/embed":h.BlockEmbed,"blots/break":s.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":N.default,"blots/text":A.default,"modules/clipboard":w.default,"modules/history":x.default,"modules/keyboard":D.default}),a.default.register(u.default,s.default,b.default,y.default,N.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(f.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),f.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},f.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},f.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},f.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},f.prototype.deleteAt=function(c,h){var u=this.isolate(c,h);u.remove()},f.prototype.formatAt=function(c,h,u,l){var s=this.isolate(c,h);if(i.query(u,i.Scope.BLOT)!=null&&l)s.wrap(u,l);else if(i.query(u,i.Scope.ATTRIBUTE)!=null){var d=i.create(this.statics.scope);s.wrap(d),d.format(u,l)}},f.prototype.insertAt=function(c,h,u){var l=u==null?i.create("text",h):i.create(h,u),s=this.split(c);this.parent.insertBefore(l,s)},f.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var u=null;c.children.insertBefore(this,h),h!=null&&(u=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=u)&&c.domNode.insertBefore(this.domNode,u),this.parent=c,this.attach()},f.prototype.isolate=function(c,h){var u=this.split(c);return u.split(h),u},f.prototype.length=function(){return 1},f.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},f.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},f.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},f.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},f.prototype.replaceWith=function(c,h){var u=typeof c=="string"?i.create(c,h):c;return u.replace(this),u},f.prototype.split=function(c,h){return c===0?this:this.next},f.prototype.update=function(c,h){},f.prototype.wrap=function(c,h){var u=typeof c=="string"?i.create(c,h):c;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},f.blotName="abstract",f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),a=o(32),f=o(33),c=o(1),h=function(){function u(l){this.attributes={},this.domNode=l,this.build()}return u.prototype.attribute=function(l,s){s?l.add(this.domNode,s)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},u.prototype.build=function(){var l=this;this.attributes={};var s=i.default.keys(this.domNode),d=a.default.keys(this.domNode),v=f.default.keys(this.domNode);s.concat(d).concat(v).forEach(function(p){var b=c.query(p,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},u.prototype.copy=function(l){var s=this;Object.keys(this.attributes).forEach(function(d){var v=s.attributes[d].value(s.domNode);l.format(d,v)})},u.prototype.move=function(l){var s=this;this.copy(l),Object.keys(this.attributes).forEach(function(d){s.attributes[d].remove(s.domNode)}),this.attributes={}},u.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(s,d){return s[d]=l.attributes[d].value(l.domNode),s},{})},u}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(h,u){var l=h.getAttribute("class")||"";return l.split(/\s+/).filter(function(s){return s.indexOf(u+"-")===0})}var c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(s){return s.split("-").slice(0,-1).join("-")})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(this.remove(l),l.classList.add(this.keyName+"-"+s),!0):!1},u.prototype.remove=function(l){var s=f(l,this.keyName);s.forEach(function(d){l.classList.remove(d)}),l.classList.length===0&&l.removeAttribute("class")},u.prototype.value=function(l){var s=f(l,this.keyName)[0]||"",d=s.slice(this.keyName.length+1);return this.canAdd(l,d)?d:""},u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(h){var u=h.split("-"),l=u.slice(1).map(function(s){return s[0].toUpperCase()+s.slice(1)}).join("");return u[0]+l}var c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(s){var d=s.split(":");return d[0].trim()})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(l.style[f(this.keyName)]=s,!0):!1},u.prototype.remove=function(l){l.style[f(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},u.prototype.value=function(l){var s=l.style[f(this.keyName)];return this.canAdd(l,s)?s:""},u}(a.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(h,s.key,s)}}return function(h,u,l){return u&&c(h.prototype,u),l&&c(h,l),h}}();function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(h,u){a(this,c),this.quill=h,this.options=u,this.modules={}}return i(c,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(l){u.modules[l]==null&&u.addModule(l)})}},{key:"addModule",value:function(u){var l=this.quill.constructor.import("modules/"+u);return this.modules[u]=new l(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),c}();f.DEFAULTS={modules:{}},f.themes={default:f},t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=l(f),h=o(7),u=l(h);function l(m){return m&&m.__esModule?m:{default:m}}function s(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p="\uFEFF",b=function(m){v(g,m);function g(_){s(this,g);var y=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(O){y.contentNode.appendChild(O)}),y.leftGuard=document.createTextNode(p),y.rightGuard=document.createTextNode(p),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return i(g,[{key:"index",value:function(y,O){return y===this.leftGuard?0:y===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"restore",value:function(y){var O=void 0,N=void 0,T=y.data.split(p).join("");if(y===this.leftGuard)if(this.prev instanceof u.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this),O={startNode:N,startOffset:T.length};else y===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this.next),O={startNode:N,startOffset:T.length}));return y.data=p,O}},{key:"update",value:function(y,O){var N=this;y.forEach(function(T){if(T.type==="characterData"&&(T.target===N.leftGuard||T.target===N.rightGuard)){var A=N.restore(T.target);A&&(O.range=A)}})}}]),g}(c.default.Embed);t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new a.default.Attributor.Attribute("align","align",c),u=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=u,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),a=c(i),f=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var h=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),u=new f.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},h=new a.default.Attributor.Attribute("direction","dir",c),u=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=u,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=h(f);function h(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function s(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var d={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",d),p=function(m){s(g,m);function g(){return u(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(y){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g}(c.default.Attributor.Style),b=new p("font","font-family",d);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),a=f(i);function f(u){return u&&u.__esModule?u:{default:u}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=h},function(n,t,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{"1":o(92),"2":o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=o(0),f=s(a),c=o(5),h=s(c),u=o(9),l=s(u);function s(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function p(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var b=function(_){p(y,_);function y(O,N){d(this,y);var T=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,O,N));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,I,w,E){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||E===h.default.sources.USER?T.record(I,w):T.transform(I))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return i(y,[{key:"change",value:function(N,T){if(this.stack[N].length!==0){var A=this.stack[N].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[N],h.default.sources.USER),this.ignoreChange=!1;var I=g(A[N]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(N,T){if(N.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(T),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var w=this.stack.undo.pop();A=A.compose(w.undo),N=w.redo.compose(N)}else this.lastRecorded=I;this.stack.undo.push({redo:N,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(N){this.stack.undo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var y=_.ops[_.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
59
- `):y.attributes!=null?Object.keys(y.attributes).some(function(O){return f.default.query(O,f.default.Scope.BLOCK)!=null}):!1}function g(_){var y=_.reduce(function(N,T){return N+=T.delete||0,N},0),O=_.length()-y;return m(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function C(k,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}return function(k,F,j){return F&&C(k.prototype,F),j&&C(k,j),k}}(),a=function C(k,F,j){k===null&&(k=Function.prototype);var L=Object.getOwnPropertyDescriptor(k,F);if(L===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:C(M,F,j)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(j)}},f=o(3),c=I(f),h=o(2),u=I(h),l=o(8),s=I(l),d=o(23),v=I(d),p=o(34),b=I(p),m=o(59),g=I(m),_=o(60),y=I(_),O=o(28),N=I(O),T=o(61),A=I(T);function I(C){return C&&C.__esModule?C:{default:C}}function w(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}function E(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:C}function x(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}var P=[!1,"center","right","justify"],D=["#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"],R=[!1,"serif","monospace"],B=["1","2","3",!1],U=["small",!1,"large","huge"],V=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j)),M=function H(z){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(Y){Y.container.contains(z.target)||Y.close()})};return F.emitter.listenDOM("click",document.body,M),L}return i(k,[{key:"addModule",value:function(j){var L=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(M){var H=M.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")M.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")M.innerHTML=L[z];else{var Y=M.value||"";Y!=null&&L[z][Y]&&(M.innerHTML=L[z][Y])}})})}},{key:"buildPickers",value:function(j,L){var M=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&S(z,P),new y.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var Y=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&S(z,D,Y==="background"?"#ffffff":"#000000"),new g.default(z,L[Y])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?S(z,R):z.classList.contains("ql-header")?S(z,B):z.classList.contains("ql-size")&&S(z,U)),new N.default(z)});var H=function(){M.pickers.forEach(function(Y){Y.update()})};this.quill.on(s.default.events.EDITOR_CHANGE,H)}}]),k}(b.default);V.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var k=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var M=k.quill.getSelection(!0);k.quill.updateContents(new u.default().retain(M.index).delete(M.length).insert({image:L.target.result}),s.default.sources.USER),k.quill.setSelection(M.index+1,s.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(k,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",j,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,s.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=$(j);case"formula":{if(!j)break;var M=this.quill.getSelection(!0);if(M!=null){var H=M.index+M.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),j,s.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",s.default.sources.USER),this.quill.setSelection(H+2,s.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),k}(A.default);function $(C){var k=C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return k?(k[1]||"https")+"://www.youtube.com/embed/"+k[2]+"?showinfo=0":(k=C.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(k[1]||"https")+"://player.vimeo.com/video/"+k[2]+"/":C}function S(C,k){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),C.appendChild(L)})}t.BaseTooltip=q,t.default=V},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];this.insertBefore(f[0],null),f.length>1&&this.append.apply(this,f.slice(1))},a.prototype.contains=function(f){for(var c,h=this.iterator();c=h();)if(c===f)return!0;return!1},a.prototype.insertBefore=function(f,c){!f||(f.next=c,c!=null?(f.prev=c.prev,c.prev!=null&&(c.prev.next=f),c.prev=f,c===this.head&&(this.head=f)):this.tail!=null?(this.tail.next=f,f.prev=this.tail,this.tail=f):(f.prev=null,this.head=this.tail=f),this.length+=1)},a.prototype.offset=function(f){for(var c=0,h=this.head;h!=null;){if(h===f)return c;c+=h.length(),h=h.next}return-1},a.prototype.remove=function(f){!this.contains(f)||(f.prev!=null&&(f.prev.next=f.next),f.next!=null&&(f.next.prev=f.prev),f===this.head&&(this.head=f.next),f===this.tail&&(this.tail=f.prev),this.length-=1)},a.prototype.iterator=function(f){return f===void 0&&(f=this.head),function(){var c=f;return f!=null&&(f=f.next),c}},a.prototype.find=function(f,c){c===void 0&&(c=!1);for(var h,u=this.iterator();h=u();){var l=h.length();if(f<l||c&&f===l&&(h.next==null||h.next.length()!==0))return[h,f];f-=l}return[null,0]},a.prototype.forEach=function(f){for(var c,h=this.iterator();c=h();)f(c)},a.prototype.forEachAt=function(f,c,h){if(!(c<=0))for(var u=this.find(f),l=u[0],s=u[1],d,v=f-s,p=this.iterator(l);(d=p())&&v<f+c;){var b=d.length();f>v?h(d,f-v,Math.min(c,v+b-f)):h(d,0,Math.min(b,f+c-v)),v+=b}},a.prototype.map=function(f){return this.reduce(function(c,h){return c.push(f(h)),c},[])},a.prototype.reduce=function(f,c){for(var h,u=this.iterator();h=u();)c=f(c,h);return c},a}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),f=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.scroll=v,v.observer=new MutationObserver(function(p){v.update(p)}),v.observer.observe(v.domNode,c),v.attach(),v}return s.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},s.prototype.deleteAt=function(d,v){this.update(),d===0&&v===this.length()?this.children.forEach(function(p){p.remove()}):l.prototype.deleteAt.call(this,d,v)},s.prototype.formatAt=function(d,v,p,b){this.update(),l.prototype.formatAt.call(this,d,v,p,b)},s.prototype.insertAt=function(d,v,p){this.update(),l.prototype.insertAt.call(this,d,v,p)},s.prototype.optimize=function(d,v){var p=this;d===void 0&&(d=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)d.push(b.pop());for(var m=function(O,N){N===void 0&&(N=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[f.DATA_KEY].mutations==null&&(O.domNode[f.DATA_KEY].mutations=[]),N&&m(O.parent))},g=function(O){O.domNode[f.DATA_KEY]==null||O.domNode[f.DATA_KEY].mutations==null||(O instanceof a.default&&O.children.forEach(g),O.optimize(v))},_=d,y=0;_.length>0;y+=1){if(y>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var N=f.find(O.target,!0);N!=null&&(N.domNode===O.target&&(O.type==="childList"?(m(f.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=f.find(T,!1);m(A,!1),A instanceof a.default&&A.children.forEach(function(I){m(I,!1)})})):O.type==="attributes"&&m(N.prev)),m(N))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)d.push(b.pop())}},s.prototype.update=function(d,v){var p=this;v===void 0&&(v={}),d=d||this.observer.takeRecords(),d.map(function(b){var m=f.find(b.target,!0);return m==null?null:m.domNode[f.DATA_KEY].mutations==null?(m.domNode[f.DATA_KEY].mutations=[b],m):(m.domNode[f.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[f.DATA_KEY]==null||b.update(b.domNode[f.DATA_KEY].mutations||[],v)}),this.domNode[f.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[f.DATA_KEY].mutations,v),this.optimize(d,v)},s.blotName="scroll",s.defaultChild="block",s.scope=f.Scope.BLOCK_BLOT,s.tagName="DIV",s}(a.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,s){l.__proto__=s}||function(l,s){for(var d in s)s.hasOwnProperty(d)&&(l[d]=s[d])};return function(l,s){u(l,s);function d(){this.constructor=l}l.prototype=s===null?Object.create(s):(d.prototype=s.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1);function c(u,l){if(Object.keys(u).length!==Object.keys(l).length)return!1;for(var s in u)if(u[s]!==l[s])return!1;return!0}var h=function(u){i(l,u);function l(){return u!==null&&u.apply(this,arguments)||this}return l.formats=function(s){if(s.tagName!==l.tagName)return u.formats.call(this,s)},l.prototype.format=function(s,d){var v=this;s===this.statics.blotName&&!d?(this.children.forEach(function(p){p instanceof a.default||(p=p.wrap(l.blotName,!0)),v.attributes.copy(p)}),this.unwrap()):u.prototype.format.call(this,s,d)},l.prototype.formatAt=function(s,d,v,p){if(this.formats()[v]!=null||f.query(v,f.Scope.ATTRIBUTE)){var b=this.isolate(s,d);b.format(v,p)}else u.prototype.formatAt.call(this,s,d,v,p)},l.prototype.optimize=function(s){u.prototype.optimize.call(this,s);var d=this.formats();if(Object.keys(d).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(d,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=f.Scope.INLINE_BLOT,l.tagName="SPAN",l}(a.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1),c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.formats=function(l){var s=f.query(u.blotName).tagName;if(l.tagName!==s)return h.formats.call(this,l)},u.prototype.format=function(l,s){f.query(l,f.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!s?this.replaceWith(u.blotName):h.prototype.format.call(this,l,s))},u.prototype.formatAt=function(l,s,d,v){f.query(d,f.Scope.BLOCK)!=null?this.format(d,v):h.prototype.formatAt.call(this,l,s,d,v)},u.prototype.insertAt=function(l,s,d){if(d==null||f.query(s,f.Scope.INLINE)!=null)h.prototype.insertAt.call(this,l,s,d);else{var v=this.split(l),p=f.create(s,d);v.parent.insertBefore(p,v)}},u.prototype.update=function(l,s){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,l,s)},u.blotName="block",u.scope=f.Scope.BLOCK_BLOT,u.tagName="P",u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var l in u)u.hasOwnProperty(l)&&(h[l]=u[l])};return function(h,u){c(h,u);function l(){this.constructor=h}h.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=function(c){i(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(u){},h.prototype.format=function(u,l){c.prototype.formatAt.call(this,0,this.length(),u,l)},h.prototype.formatAt=function(u,l,s,d){u===0&&l===this.length()?this.format(s,d):c.prototype.formatAt.call(this,u,l,s,d)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(a.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=o(1),c=function(h){i(u,h);function u(l){var s=h.call(this,l)||this;return s.text=s.statics.value(s.domNode),s}return u.create=function(l){return document.createTextNode(l)},u.value=function(l){var s=l.data;return s.normalize&&(s=s.normalize()),s},u.prototype.deleteAt=function(l,s){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+s)},u.prototype.index=function(l,s){return this.domNode===l?s:-1},u.prototype.insertAt=function(l,s,d){d==null?(this.text=this.text.slice(0,l)+s+this.text.slice(l),this.domNode.data=this.text):h.prototype.insertAt.call(this,l,s,d)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(l){h.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(l,s){return[this.domNode,l]},u.prototype.split=function(l,s){if(s===void 0&&(s=!1),!s){if(l===0)return this;if(l===this.length())return this.next}var d=f.create(this.domNode.splitText(l));return this.parent.insertBefore(d,this.next),this.text=this.statics.value(this.domNode),d},u.prototype.update=function(l,s){var d=this;l.some(function(v){return v.type==="characterData"&&v.target===d.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,c){return arguments.length>1&&!this.contains(f)==!c?c:a.call(this,f)}}String.prototype.startsWith||(String.prototype.startsWith=function(f,c){return c=c||0,this.substr(c,f.length)===f}),String.prototype.endsWith||(String.prototype.endsWith=function(f,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=f.length;var u=h.indexOf(f,c);return u!==-1&&u===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),u=h.length>>>0,l=arguments[1],s,d=0;d<u;d++)if(s=h[d],c.call(l,s,d,h))return s}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,a=0;function f(y,O,N){if(y==O)return y?[[a,y]]:[];(N<0||y.length<N)&&(N=null);var T=l(y,O),A=y.substring(0,T);y=y.substring(T),O=O.substring(T),T=s(y,O);var I=y.substring(y.length-T);y=y.substring(0,y.length-T),O=O.substring(0,O.length-T);var w=c(y,O);return A&&w.unshift([a,A]),I&&w.push([a,I]),v(w),N!=null&&(w=m(w,N)),w=g(w),w}function c(y,O){var N;if(!y)return[[i,O]];if(!O)return[[o,y]];var T=y.length>O.length?y:O,A=y.length>O.length?O:y,I=T.indexOf(A);if(I!=-1)return N=[[i,T.substring(0,I)],[a,A],[i,T.substring(I+A.length)]],y.length>O.length&&(N[0][0]=N[2][0]=o),N;if(A.length==1)return[[o,y],[i,O]];var w=d(y,O);if(w){var E=w[0],x=w[1],P=w[2],D=w[3],R=w[4],B=f(E,P),U=f(x,D);return B.concat([[a,R]],U)}return h(y,O)}function h(y,O){for(var N=y.length,T=O.length,A=Math.ceil((N+T)/2),I=A,w=2*A,E=new Array(w),x=new Array(w),P=0;P<w;P++)E[P]=-1,x[P]=-1;E[I+1]=0,x[I+1]=0;for(var D=N-T,R=D%2!=0,B=0,U=0,V=0,q=0,$=0;$<A;$++){for(var S=-$+B;S<=$-U;S+=2){var C=I+S,k;S==-$||S!=$&&E[C-1]<E[C+1]?k=E[C+1]:k=E[C-1]+1;for(var F=k-S;k<N&&F<T&&y.charAt(k)==O.charAt(F);)k++,F++;if(E[C]=k,k>N)U+=2;else if(F>T)B+=2;else if(R){var j=I+D-S;if(j>=0&&j<w&&x[j]!=-1){var L=N-x[j];if(k>=L)return u(y,O,k,F)}}}for(var M=-$+V;M<=$-q;M+=2){var j=I+M,L;M==-$||M!=$&&x[j-1]<x[j+1]?L=x[j+1]:L=x[j-1]+1;for(var H=L-M;L<N&&H<T&&y.charAt(N-L-1)==O.charAt(T-H-1);)L++,H++;if(x[j]=L,L>N)q+=2;else if(H>T)V+=2;else if(!R){var C=I+D-M;if(C>=0&&C<w&&E[C]!=-1){var k=E[C],F=I+k-C;if(L=N-L,k>=L)return u(y,O,k,F)}}}}return[[o,y],[i,O]]}function u(y,O,N,T){var A=y.substring(0,N),I=O.substring(0,T),w=y.substring(N),E=O.substring(T),x=f(A,I),P=f(w,E);return x.concat(P)}function l(y,O){if(!y||!O||y.charAt(0)!=O.charAt(0))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(I,A)==O.substring(I,A)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function s(y,O){if(!y||!O||y.charAt(y.length-1)!=O.charAt(O.length-1))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(y.length-A,y.length-I)==O.substring(O.length-A,O.length-I)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function d(y,O){var N=y.length>O.length?y:O,T=y.length>O.length?O:y;if(N.length<4||T.length*2<N.length)return null;function A(U,V,q){for(var $=U.substring(q,q+Math.floor(U.length/4)),S=-1,C="",k,F,j,L;(S=V.indexOf($,S+1))!=-1;){var M=l(U.substring(q),V.substring(S)),H=s(U.substring(0,q),V.substring(0,S));C.length<H+M&&(C=V.substring(S-H,S)+V.substring(S,S+M),k=U.substring(0,q-H),F=U.substring(q+M),j=V.substring(0,S-H),L=V.substring(S+M))}return C.length*2>=U.length?[k,F,j,L,C]:null}var I=A(N,T,Math.ceil(N.length/4)),w=A(N,T,Math.ceil(N.length/2)),E;if(!I&&!w)return null;w?I?E=I[4].length>w[4].length?I:w:E=w:E=I;var x,P,D,R;y.length>O.length?(x=E[0],P=E[1],D=E[2],R=E[3]):(D=E[0],R=E[1],x=E[2],P=E[3]);var B=E[4];return[x,P,D,R,B]}function v(y){y.push([a,""]);for(var O=0,N=0,T=0,A="",I="",w;O<y.length;)switch(y[O][0]){case i:T++,I+=y[O][1],O++;break;case o:N++,A+=y[O][1],O++;break;case a:N+T>1?(N!==0&&T!==0&&(w=l(I,A),w!==0&&(O-N-T>0&&y[O-N-T-1][0]==a?y[O-N-T-1][1]+=I.substring(0,w):(y.splice(0,0,[a,I.substring(0,w)]),O++),I=I.substring(w),A=A.substring(w)),w=s(I,A),w!==0&&(y[O][1]=I.substring(I.length-w)+y[O][1],I=I.substring(0,I.length-w),A=A.substring(0,A.length-w))),N===0?y.splice(O-T,N+T,[i,I]):T===0?y.splice(O-N,N+T,[o,A]):y.splice(O-N-T,N+T,[o,A],[i,I]),O=O-N-T+(N?1:0)+(T?1:0)+1):O!==0&&y[O-1][0]==a?(y[O-1][1]+=y[O][1],y.splice(O,1)):O++,T=0,N=0,A="",I="";break}y[y.length-1][1]===""&&y.pop();var E=!1;for(O=1;O<y.length-1;)y[O-1][0]==a&&y[O+1][0]==a&&(y[O][1].substring(y[O][1].length-y[O-1][1].length)==y[O-1][1]?(y[O][1]=y[O-1][1]+y[O][1].substring(0,y[O][1].length-y[O-1][1].length),y[O+1][1]=y[O-1][1]+y[O+1][1],y.splice(O-1,1),E=!0):y[O][1].substring(0,y[O+1][1].length)==y[O+1][1]&&(y[O-1][1]+=y[O+1][1],y[O][1]=y[O][1].substring(y[O+1][1].length)+y[O+1][1],y.splice(O+1,1),E=!0)),O++;E&&v(y)}var p=f;p.INSERT=i,p.DELETE=o,p.EQUAL=a,n.exports=p;function b(y,O){if(O===0)return[a,y];for(var N=0,T=0;T<y.length;T++){var A=y[T];if(A[0]===o||A[0]===a){var I=N+A[1].length;if(O===I)return[T+1,y];if(O<I){y=y.slice();var w=O-N,E=[A[0],A[1].slice(0,w)],x=[A[0],A[1].slice(w)];return y.splice(T,1,E,x),[T+1,y]}else N=I}}throw new Error("cursor_pos is out of bounds!")}function m(y,O){var N=b(y,O),T=N[1],A=N[0],I=T[A],w=T[A+1];if(I==null)return y;if(I[0]!==a)return y;if(w!=null&&I[1]+w[1]===w[1]+I[1])return T.splice(A,2,w,I),_(T,A,2);if(w!=null&&w[1].indexOf(I[1])===0){T.splice(A,2,[w[0],I[1]],[0,I[1]]);var E=w[1].slice(I[1].length);return E.length>0&&T.splice(A+2,0,[w[0],E]),_(T,A,3)}else return y}function g(y){for(var O=!1,N=function(w){return w.charCodeAt(0)>=56320&&w.charCodeAt(0)<=57343},T=function(w){return w.charCodeAt(w.length-1)>=55296&&w.charCodeAt(w.length-1)<=56319},A=2;A<y.length;A+=1)y[A-2][0]===a&&T(y[A-2][1])&&y[A-1][0]===o&&N(y[A-1][1])&&y[A][0]===i&&N(y[A][1])&&(O=!0,y[A-1][1]=y[A-2][1].slice(-1)+y[A-1][1],y[A][1]=y[A-2][1].slice(-1)+y[A][1],y[A-2][1]=y[A-2][1].slice(0,-1));if(!O)return y;for(var I=[],A=0;A<y.length;A+=1)y[A][1].length>0&&I.push(y[A]);return I}function _(y,O,N){for(var T=O+N-1;T>=0&&T>=O-1;T--)if(T+1<y.length){var A=y[T],I=y[T+1];A[0]===I[1]&&y.splice(T,2,[A[0],A[1]+I[1]])}return y}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var a=[];for(var f in i)a.push(f);return a}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:a,t.supported=i;function i(f){return Object.prototype.toString.call(f)=="[object Arguments]"}t.unsupported=a;function a(f){return f&&typeof f=="object"&&typeof f.length=="number"&&Object.prototype.hasOwnProperty.call(f,"callee")&&!Object.prototype.propertyIsEnumerable.call(f,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function f(h,u,l){this.fn=h,this.context=u,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],l,s;if(this._eventsCount===0)return u;for(s in l=this._events)o.call(l,s)&&u.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},c.prototype.listeners=function(u,l){var s=i?i+u:u,d=this._events[s];if(l)return!!d;if(!d)return[];if(d.fn)return[d.fn];for(var v=0,p=d.length,b=new Array(p);v<p;v++)b[v]=d[v].fn;return b},c.prototype.emit=function(u,l,s,d,v,p){var b=i?i+u:u;if(!this._events[b])return!1;var m=this._events[b],g=arguments.length,_,y;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,s),!0;case 4:return m.fn.call(m.context,l,s,d),!0;case 5:return m.fn.call(m.context,l,s,d,v),!0;case 6:return m.fn.call(m.context,l,s,d,v,p),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];m.fn.apply(m.context,_)}else{var O=m.length,N;for(y=0;y<O;y++)switch(m[y].once&&this.removeListener(u,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,s);break;case 4:m[y].fn.call(m[y].context,l,s,d);break;default:if(!_)for(N=1,_=new Array(g-1);N<g;N++)_[N-1]=arguments[N];m[y].fn.apply(m[y].context,_)}}return!0},c.prototype.on=function(u,l,s){var d=new f(l,s||this),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.once=function(u,l,s){var d=new f(l,s||this,!0),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.removeListener=function(u,l,s,d){var v=i?i+u:u;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new a:delete this._events[v],this;var p=this._events[v];if(p.fn)p.fn===l&&(!d||p.once)&&(!s||p.context===s)&&(--this._eventsCount==0?this._events=new a:delete this._events[v]);else{for(var b=0,m=[],g=p.length;b<g;b++)(p[b].fn!==l||d&&!p[b].once||s&&p[b].context!==s)&&m.push(p[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new a:delete this._events[v]}return this},c.prototype.removeAllListeners=function(u){var l;return u?(l=i?i+u:u,this._events[l]&&(--this._eventsCount==0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},a=function(){function W(K,Z){var Q=[],X=!0,se=!1,ue=void 0;try{for(var fe=K[Symbol.iterator](),Ke;!(X=(Ke=fe.next()).done)&&(Q.push(Ke.value),!(Z&&Q.length===Z));X=!0);}catch(lt){se=!0,ue=lt}finally{try{!X&&fe.return&&fe.return()}finally{if(se)throw ue}}return Q}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function W(K,Z){for(var Q=0;Q<Z.length;Q++){var X=Z[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(K,X.key,X)}}return function(K,Z,Q){return Z&&W(K.prototype,Z),Q&&W(K,Q),K}}(),c=o(3),h=x(c),u=o(2),l=x(u),s=o(0),d=x(s),v=o(5),p=x(v),b=o(10),m=x(b),g=o(9),_=x(g),y=o(36),O=o(37),N=o(13),T=x(N),A=o(26),I=o(38),w=o(39),E=o(40);function x(W){return W&&W.__esModule?W:{default:W}}function P(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function D(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function R(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var U=(0,m.default)("quill:clipboard"),V="__ql-matcher",q=[[Node.TEXT_NODE,Ne],[Node.TEXT_NODE,de],["br",ee],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,qe],["li",ae],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",re]],$=[y.AlignAttribute,I.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),S=[y.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,w.FontStyle,E.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),C=function(W){B(K,W);function K(Z,Q){D(this,K);var X=R(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,Q));return X.quill.root.addEventListener("paste",X.onPaste.bind(X)),X.container=X.quill.addContainer("ql-clipboard"),X.container.setAttribute("contenteditable",!0),X.container.setAttribute("tabindex",-1),X.matchers=[],q.concat(X.options.matchers).forEach(function(se){var ue=a(se,2),fe=ue[0],Ke=ue[1];!Q.matchVisual&&Ke===ve||X.addMatcher(fe,Ke)}),X}return f(K,[{key:"addMatcher",value:function(Q,X){this.matchers.push([Q,X])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var X=this.quill.getFormat(this.quill.selection.savedRange.index);if(X[T.default.blotName]){var se=this.container.innerText;return this.container.innerHTML="",new l.default().insert(se,P({},T.default.blotName,X[T.default.blotName]))}var ue=this.prepareMatching(),fe=a(ue,2),Ke=fe[0],lt=fe[1],_e=M(this.container,Ke,lt);return j(_e,`
58
+ `);ve=0,K.forEach(function(Z,Q){L?(de.insertAt(Ne+ve,z.TAB),ve+=z.TAB.length,Q===0?Y+=z.TAB.length:ee+=z.TAB.length):Z.startsWith(z.TAB)&&(de.deleteAt(Ne+ve,z.TAB.length),ve-=z.TAB.length,Q===0?Y-=z.TAB.length:ee-=z.TAB.length),ve+=Z.length+1}),this.quill.update(O.default.sources.USER),this.quill.setSelection(Y,ee,O.default.sources.SILENT)}}}}function F(L){return{key:L[0].toUpperCase(),shortKey:!0,handler:function(H,z){this.quill.format(L,!z.format[L],O.default.sources.USER)}}}function j(L){if(typeof L=="string"||typeof L=="number")return j({key:L});if((typeof L=="undefined"?"undefined":i(L))==="object"&&(L=(0,h.default)(L,!1)),typeof L.key=="string")if(U.keys[L.key.toUpperCase()]!=null)L.key=U.keys[L.key.toUpperCase()];else if(L.key.length===1)L.key=L.key.toUpperCase().charCodeAt(0);else return null;return L.shortKey&&(L[B]=L.shortKey,delete L.shortKey),L}t.default=U,t.SHORTKEY=B},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){var y=[],O=!0,N=!1,T=void 0;try{for(var A=g[Symbol.iterator](),I;!(O=(I=A.next()).done)&&(y.push(I.value),!(_&&y.length===_));O=!0);}catch(w){N=!0,T=w}finally{try{!O&&A.return&&A.return()}finally{if(N)throw T}}return y}return function(g,_){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return m(g,_);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),c=o(0),h=s(c),u=o(7),l=s(u);function s(m){return m&&m.__esModule?m:{default:m}}function d(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function v(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function p(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var b=function(m){p(g,m),f(g,null,[{key:"value",value:function(){}}]);function g(_,y){d(this,g);var O=v(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return O.selection=y,O.textNode=document.createTextNode(g.CONTENTS),O.domNode.appendChild(O.textNode),O._length=0,O}return f(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(y,O){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,y,O);for(var N=this,T=0;N!=null&&N.statics.scope!==h.default.Scope.BLOCK_BLOT;)T+=N.offset(N.parent),N=N.parent;N!=null&&(this._length=g.CONTENTS.length,N.optimize(),N.formatAt(T,g.CONTENTS.length,y,O),this._length=0)}},{key:"index",value:function(y,O){return y===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var y=this.textNode,O=this.selection.getNativeRange(),N=void 0,T=void 0,A=void 0;if(O!=null&&O.start.node===y&&O.end.node===y){var I=[y,O.start.offset,O.end.offset];N=I[0],T=I[1],A=I[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var w=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(N=this.next.domNode,this.next.insertAt(0,w),this.textNode.data=g.CONTENTS):(this.textNode.data=w,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),T!=null){var E=[T,A].map(function(P){return Math.max(0,Math.min(N.data.length,P-1))}),x=i(E,2);return T=x[0],A=x[1],{startNode:N,startOffset:T,endNode:N,endOffset:A}}}}},{key:"update",value:function(y,O){var N=this;if(y.some(function(A){return A.type==="characterData"&&A.target===N.textNode})){var T=this.restore();T&&(O.range=T)}}},{key:"value",value:function(){return""}}]),g}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=h(i),f=o(4),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return p}(a.default.Container);d.allowedChildren=[c.default,f.BlockEmbed,d],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=h(f);function h(b){return b&&b.__esModule?b:{default:b}}function u(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function l(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function s(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var d=function(b){s(m,b);function m(){return u(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"value",value:function(_){var y=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"value",this).call(this,_);return y.startsWith("rgb(")?(y=y.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+y.split(",").map(function(O){return("00"+parseInt(O).toString(16)).slice(-2)}).join("")):y}}]),m}(c.default.Attributor.Style),v=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),p=new d("color","color",{scope:c.default.Scope.INLINE});t.ColorAttributor=d,t.ColorClass=v,t.ColorStyle=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),a=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(6),c=h(f);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function s(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var d=function(p){s(b,p);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"format",value:function(g,_){if(g!==this.statics.blotName||!_)return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,g,_);_=this.constructor.sanitize(_),this.domNode.setAttribute("href",_)}}],[{key:"create",value:function(g){var _=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,g);return g=this.sanitize(g),_.setAttribute("href",g),_.setAttribute("rel","noopener noreferrer"),_.setAttribute("target","_blank"),_}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return v(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),b}(c.default);d.blotName="link",d.tagName="A",d.SANITIZED_URL="about:blank",d.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function v(p,b){var m=document.createElement("a");m.href=p;var g=m.href.slice(0,m.href.indexOf(":"));return b.indexOf(g)>-1}t.default=d,t.sanitize=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},a=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),f=o(23),c=l(f),h=o(107),u=l(h);function l(b){return b&&b.__esModule?b:{default:b}}function s(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}var d=0;function v(b,m){b.setAttribute(m,b.getAttribute(m)!=="true")}var p=function(){function b(m){var g=this;s(this,b),this.select=m,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(){g.togglePicker()}),this.label.addEventListener("keydown",function(_){switch(_.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),_.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var _=this,y=document.createElement("span");return y.tabIndex="0",y.setAttribute("role","button"),y.classList.add("ql-picker-item"),g.hasAttribute("value")&&y.setAttribute("data-value",g.getAttribute("value")),g.textContent&&y.setAttribute("data-label",g.textContent),y.addEventListener("click",function(){_.selectItem(y,!0)}),y.addEventListener("keydown",function(O){switch(O.keyCode){case c.default.keys.ENTER:_.selectItem(y,!0),O.preventDefault();break;case c.default.keys.ESCAPE:_.escape(),O.preventDefault();break}}),y}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=u.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,_=document.createElement("span");_.classList.add("ql-picker-options"),_.setAttribute("aria-hidden","true"),_.tabIndex="-1",_.id="ql-picker-options-"+d,d+=1,this.label.setAttribute("aria-controls",_.id),this.options=_,[].slice.call(this.select.options).forEach(function(y){var O=g.buildItem(y);_.appendChild(O),y.selected===!0&&g.selectItem(O)}),this.container.appendChild(_)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(_){g.container.setAttribute(_.name,_.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.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(g){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=this.container.querySelector(".ql-selected");if(g!==y&&(y!=null&&y.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),_))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event=="undefined"?"undefined":i(Event))==="object"){var O=document.createEvent("Event");O.initEvent("change",!0,!0),this.select.dispatchEvent(O)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var _=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(_)}else this.selectItem(null);var y=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",y)}}]),b}();t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(0),a=D(i),f=o(5),c=D(f),h=o(4),u=D(h),l=o(16),s=D(l),d=o(25),v=D(d),p=o(24),b=D(p),m=o(35),g=D(m),_=o(6),y=D(_),O=o(22),N=D(O),T=o(7),A=D(T),I=o(55),w=D(I),E=o(42),x=D(E),P=o(23),R=D(P);function D(B){return B&&B.__esModule?B:{default:B}}c.default.register({"blots/block":u.default,"blots/block/embed":h.BlockEmbed,"blots/break":s.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":g.default,"blots/inline":y.default,"blots/scroll":N.default,"blots/text":A.default,"modules/clipboard":w.default,"modules/history":x.default,"modules/keyboard":R.default}),a.default.register(u.default,s.default,b.default,y.default,N.default,A.default),t.default=c.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),a=function(){function f(c){this.domNode=c,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(f.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),f.create=function(c){if(this.tagName==null)throw new i.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?h=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?h=document.createElement(c):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},f.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},f.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return i.create(c)},f.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},f.prototype.deleteAt=function(c,h){var u=this.isolate(c,h);u.remove()},f.prototype.formatAt=function(c,h,u,l){var s=this.isolate(c,h);if(i.query(u,i.Scope.BLOT)!=null&&l)s.wrap(u,l);else if(i.query(u,i.Scope.ATTRIBUTE)!=null){var d=i.create(this.statics.scope);s.wrap(d),d.format(u,l)}},f.prototype.insertAt=function(c,h,u){var l=u==null?i.create("text",h):i.create(h,u),s=this.split(c);this.parent.insertBefore(l,s)},f.prototype.insertInto=function(c,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var u=null;c.children.insertBefore(this,h),h!=null&&(u=h.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=u)&&c.domNode.insertBefore(this.domNode,u),this.parent=c,this.attach()},f.prototype.isolate=function(c,h){var u=this.split(c);return u.split(h),u},f.prototype.length=function(){return 1},f.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},f.prototype.optimize=function(c){this.domNode[i.DATA_KEY]!=null&&delete this.domNode[i.DATA_KEY].mutations},f.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},f.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},f.prototype.replaceWith=function(c,h){var u=typeof c=="string"?i.create(c,h):c;return u.replace(this),u},f.prototype.split=function(c,h){return c===0?this:this.next},f.prototype.update=function(c,h){},f.prototype.wrap=function(c,h){var u=typeof c=="string"?i.create(c,h):c;return this.parent!=null&&this.parent.insertBefore(u,this.next),u.appendChild(this),u},f.blotName="abstract",f}();t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(12),a=o(32),f=o(33),c=o(1),h=function(){function u(l){this.attributes={},this.domNode=l,this.build()}return u.prototype.attribute=function(l,s){s?l.add(this.domNode,s)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},u.prototype.build=function(){var l=this;this.attributes={};var s=i.default.keys(this.domNode),d=a.default.keys(this.domNode),v=f.default.keys(this.domNode);s.concat(d).concat(v).forEach(function(p){var b=c.query(p,c.Scope.ATTRIBUTE);b instanceof i.default&&(l.attributes[b.attrName]=b)})},u.prototype.copy=function(l){var s=this;Object.keys(this.attributes).forEach(function(d){var v=s.attributes[d].value(s.domNode);l.format(d,v)})},u.prototype.move=function(l){var s=this;this.copy(l),Object.keys(this.attributes).forEach(function(d){s.attributes[d].remove(s.domNode)}),this.attributes={}},u.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(s,d){return s[d]=l.attributes[d].value(l.domNode),s},{})},u}();t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(h,u){var l=h.getAttribute("class")||"";return l.split(/\s+/).filter(function(s){return s.indexOf(u+"-")===0})}var c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(s){return s.split("-").slice(0,-1).join("-")})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(this.remove(l),l.classList.add(this.keyName+"-"+s),!0):!1},u.prototype.remove=function(l){var s=f(l,this.keyName);s.forEach(function(d){l.classList.remove(d)}),l.classList.length===0&&l.removeAttribute("class")},u.prototype.value=function(l){var s=f(l,this.keyName)[0]||"",d=s.slice(this.keyName.length+1);return this.canAdd(l,d)?d:""},u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(12);function f(h){var u=h.split("-"),l=u.slice(1).map(function(s){return s[0].toUpperCase()+s.slice(1)}).join("");return u[0]+l}var c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(s){var d=s.split(":");return d[0].trim()})},u.prototype.add=function(l,s){return this.canAdd(l,s)?(l.style[f(this.keyName)]=s,!0):!1},u.prototype.remove=function(l){l.style[f(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},u.prototype.value=function(l){var s=l.style[f(this.keyName)];return this.canAdd(l,s)?s:""},u}(a.default);t.default=c},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(h,s.key,s)}}return function(h,u,l){return u&&c(h.prototype,u),l&&c(h,l),h}}();function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(h,u){a(this,c),this.quill=h,this.options=u,this.modules={}}return i(c,[{key:"init",value:function(){var u=this;Object.keys(this.options.modules).forEach(function(l){u.modules[l]==null&&u.addModule(l)})}},{key:"addModule",value:function(u){var l=this.quill.constructor.import("modules/"+u);return this.modules[u]=new l(this.quill,this.options.modules[u]||{}),this.modules[u]}}]),c}();f.DEFAULTS={modules:{}},f.themes={default:f},t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=l(f),h=o(7),u=l(h);function l(m){return m&&m.__esModule?m:{default:m}}function s(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function d(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function v(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var p="\uFEFF",b=function(m){v(g,m);function g(_){s(this,g);var y=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,_));return y.contentNode=document.createElement("span"),y.contentNode.setAttribute("contenteditable",!1),[].slice.call(y.domNode.childNodes).forEach(function(O){y.contentNode.appendChild(O)}),y.leftGuard=document.createTextNode(p),y.rightGuard=document.createTextNode(p),y.domNode.appendChild(y.leftGuard),y.domNode.appendChild(y.contentNode),y.domNode.appendChild(y.rightGuard),y}return i(g,[{key:"index",value:function(y,O){return y===this.leftGuard?0:y===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,y,O)}},{key:"restore",value:function(y){var O=void 0,N=void 0,T=y.data.split(p).join("");if(y===this.leftGuard)if(this.prev instanceof u.default){var A=this.prev.length();this.prev.insertAt(A,T),O={startNode:this.prev.domNode,startOffset:A+T.length}}else N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this),O={startNode:N,startOffset:T.length};else y===this.rightGuard&&(this.next instanceof u.default?(this.next.insertAt(0,T),O={startNode:this.next.domNode,startOffset:T.length}):(N=document.createTextNode(T),this.parent.insertBefore(c.default.create(N),this.next),O={startNode:N,startOffset:T.length}));return y.data=p,O}},{key:"update",value:function(y,O){var N=this;y.forEach(function(T){if(T.type==="characterData"&&(T.target===N.leftGuard||T.target===N.rightGuard)){var A=N.restore(T.target);A&&(O.range=A)}})}}]),g}(c.default.Embed);t.default=b},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new a.default.Attributor.Attribute("align","align",c),u=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);t.AlignAttribute=h,t.AlignClass=u,t.AlignStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var i=o(0),a=c(i),f=o(26);function c(l){return l&&l.__esModule?l:{default:l}}var h=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),u=new f.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=h,t.BackgroundStyle=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var i=o(0),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},h=new a.default.Attributor.Attribute("direction","dir",c),u=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);t.DirectionAttribute=h,t.DirectionClass=u,t.DirectionStyle=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var i=function(){function m(g,_){for(var y=0;y<_.length;y++){var O=_[y];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(g,O.key,O)}}return function(g,_,y){return _&&m(g.prototype,_),y&&m(g,y),g}}(),a=function m(g,_,y){g===null&&(g=Function.prototype);var O=Object.getOwnPropertyDescriptor(g,_);if(O===void 0){var N=Object.getPrototypeOf(g);return N===null?void 0:m(N,_,y)}else{if("value"in O)return O.value;var T=O.get;return T===void 0?void 0:T.call(y)}},f=o(0),c=h(f);function h(m){return m&&m.__esModule?m:{default:m}}function u(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function l(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:m}function s(m,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var d={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new c.default.Attributor.Class("font","ql-font",d),p=function(m){s(g,m);function g(){return u(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,[{key:"value",value:function(y){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,y).replace(/["']/g,"")}}]),g}(c.default.Attributor.Style),b=new p("font","font-family",d);t.FontStyle=b,t.FontClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var i=o(0),a=f(i);function f(u){return u&&u.__esModule?u:{default:u}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=c,t.SizeStyle=h},function(n,t,o){n.exports={align:{"":o(76),center:o(77),right:o(78),justify:o(79)},background:o(80),blockquote:o(81),bold:o(82),clean:o(83),code:o(58),"code-block":o(58),color:o(84),direction:{"":o(85),rtl:o(86)},float:{center:o(87),full:o(88),left:o(89),right:o(90)},formula:o(91),header:{"1":o(92),"2":o(93)},italic:o(94),image:o(95),indent:{"+1":o(96),"-1":o(97)},link:o(98),list:{ordered:o(99),bullet:o(100),check:o(101)},script:{sub:o(102),super:o(103)},strike:o(104),underline:o(105),video:o(106)}},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var i=function(){function _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=o(0),f=s(a),c=o(5),h=s(c),u=o(9),l=s(u);function s(_){return _&&_.__esModule?_:{default:_}}function d(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function v(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function p(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var b=function(_){p(y,_);function y(O,N){d(this,y);var T=v(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,O,N));return T.lastRecorded=0,T.ignoreChange=!1,T.clear(),T.quill.on(h.default.events.EDITOR_CHANGE,function(A,I,w,E){A!==h.default.events.TEXT_CHANGE||T.ignoreChange||(!T.options.userOnly||E===h.default.sources.USER?T.record(I,w):T.transform(I))}),T.quill.keyboard.addBinding({key:"Z",shortKey:!0},T.undo.bind(T)),T.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},T.redo.bind(T)),/Win/i.test(navigator.platform)&&T.quill.keyboard.addBinding({key:"Y",shortKey:!0},T.redo.bind(T)),T}return i(y,[{key:"change",value:function(N,T){if(this.stack[N].length!==0){var A=this.stack[N].pop();this.stack[T].push(A),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(A[N],h.default.sources.USER),this.ignoreChange=!1;var I=g(A[N]);this.quill.setSelection(I)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(N,T){if(N.ops.length!==0){this.stack.redo=[];var A=this.quill.getContents().diff(T),I=Date.now();if(this.lastRecorded+this.options.delay>I&&this.stack.undo.length>0){var w=this.stack.undo.pop();A=A.compose(w.undo),N=w.redo.compose(N)}else this.lastRecorded=I;this.stack.undo.push({redo:N,undo:A}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(N){this.stack.undo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)}),this.stack.redo.forEach(function(T){T.undo=N.transform(T.undo,!0),T.redo=N.transform(T.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),y}(l.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function m(_){var y=_.ops[_.ops.length-1];return y==null?!1:y.insert!=null?typeof y.insert=="string"&&y.insert.endsWith(`
59
+ `):y.attributes!=null?Object.keys(y.attributes).some(function(O){return f.default.query(O,f.default.Scope.BLOCK)!=null}):!1}function g(_){var y=_.reduce(function(N,T){return N+=T.delete||0,N},0),O=_.length()-y;return m(_)&&(O-=1),O}t.default=b,t.getLastChangeIndex=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var i=function(){function C(k,F){for(var j=0;j<F.length;j++){var L=F[j];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(k,L.key,L)}}return function(k,F,j){return F&&C(k.prototype,F),j&&C(k,j),k}}(),a=function C(k,F,j){k===null&&(k=Function.prototype);var L=Object.getOwnPropertyDescriptor(k,F);if(L===void 0){var M=Object.getPrototypeOf(k);return M===null?void 0:C(M,F,j)}else{if("value"in L)return L.value;var H=L.get;return H===void 0?void 0:H.call(j)}},f=o(3),c=I(f),h=o(2),u=I(h),l=o(8),s=I(l),d=o(23),v=I(d),p=o(34),b=I(p),m=o(59),g=I(m),_=o(60),y=I(_),O=o(28),N=I(O),T=o(61),A=I(T);function I(C){return C&&C.__esModule?C:{default:C}}function w(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}function E(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:C}function x(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}var P=[!1,"center","right","justify"],R=["#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"],D=[!1,"serif","monospace"],B=["1","2","3",!1],U=["small",!1,"large","huge"],V=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j)),M=function H(z){if(!document.body.contains(F.root))return document.body.removeEventListener("click",H);L.tooltip!=null&&!L.tooltip.root.contains(z.target)&&document.activeElement!==L.tooltip.textbox&&!L.quill.hasFocus()&&L.tooltip.hide(),L.pickers!=null&&L.pickers.forEach(function(Y){Y.container.contains(z.target)||Y.close()})};return F.emitter.listenDOM("click",document.body,M),L}return i(k,[{key:"addModule",value:function(j){var L=a(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"addModule",this).call(this,j);return j==="toolbar"&&this.extendToolbar(L),L}},{key:"buildButtons",value:function(j,L){j.forEach(function(M){var H=M.getAttribute("class")||"";H.split(/\s+/).forEach(function(z){if(!!z.startsWith("ql-")&&(z=z.slice("ql-".length),L[z]!=null))if(z==="direction")M.innerHTML=L[z][""]+L[z].rtl;else if(typeof L[z]=="string")M.innerHTML=L[z];else{var Y=M.value||"";Y!=null&&L[z][Y]&&(M.innerHTML=L[z][Y])}})})}},{key:"buildPickers",value:function(j,L){var M=this;this.pickers=j.map(function(z){if(z.classList.contains("ql-align"))return z.querySelector("option")==null&&S(z,P),new y.default(z,L.align);if(z.classList.contains("ql-background")||z.classList.contains("ql-color")){var Y=z.classList.contains("ql-background")?"background":"color";return z.querySelector("option")==null&&S(z,R,Y==="background"?"#ffffff":"#000000"),new g.default(z,L[Y])}else return z.querySelector("option")==null&&(z.classList.contains("ql-font")?S(z,D):z.classList.contains("ql-header")?S(z,B):z.classList.contains("ql-size")&&S(z,U)),new N.default(z)});var H=function(){M.pickers.forEach(function(Y){Y.update()})};this.quill.on(s.default.events.EDITOR_CHANGE,H)}}]),k}(b.default);V.DEFAULTS=(0,c.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var k=this,F=this.container.querySelector("input.ql-image[type=file]");F==null&&(F=document.createElement("input"),F.setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(F.files!=null&&F.files[0]!=null){var j=new FileReader;j.onload=function(L){var M=k.quill.getSelection(!0);k.quill.updateContents(new u.default().retain(M.index).delete(M.length).insert({image:L.target.result}),s.default.sources.USER),k.quill.setSelection(M.index+1,s.default.sources.SILENT),F.value=""},j.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var q=function(C){x(k,C);function k(F,j){w(this,k);var L=E(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,F,j));return L.textbox=L.root.querySelector('input[type="text"]'),L.listen(),L}return i(k,[{key:"listen",value:function(){var j=this;this.textbox.addEventListener("keydown",function(L){v.default.match(L,"enter")?(j.save(),L.preventDefault()):v.default.match(L,"escape")&&(j.cancel(),L.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),L!=null?this.textbox.value=L:j!==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-"+j)||""),this.root.setAttribute("data-mode",j)}},{key:"restoreFocus",value:function(){var j=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=j}},{key:"save",value:function(){var j=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var L=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",j,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",j,s.default.sources.USER)),this.quill.root.scrollTop=L;break}case"video":j=$(j);case"formula":{if(!j)break;var M=this.quill.getSelection(!0);if(M!=null){var H=M.index+M.length;this.quill.insertEmbed(H,this.root.getAttribute("data-mode"),j,s.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(H+1," ",s.default.sources.USER),this.quill.setSelection(H+2,s.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),k}(A.default);function $(C){var k=C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||C.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return k?(k[1]||"https")+"://www.youtube.com/embed/"+k[2]+"?showinfo=0":(k=C.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(k[1]||"https")+"://player.vimeo.com/video/"+k[2]+"/":C}function S(C,k){var F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(j){var L=document.createElement("option");j===F?L.setAttribute("selected","selected"):L.setAttribute("value",j),C.appendChild(L)})}t.BaseTooltip=q,t.default=V},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];this.insertBefore(f[0],null),f.length>1&&this.append.apply(this,f.slice(1))},a.prototype.contains=function(f){for(var c,h=this.iterator();c=h();)if(c===f)return!0;return!1},a.prototype.insertBefore=function(f,c){!f||(f.next=c,c!=null?(f.prev=c.prev,c.prev!=null&&(c.prev.next=f),c.prev=f,c===this.head&&(this.head=f)):this.tail!=null?(this.tail.next=f,f.prev=this.tail,this.tail=f):(f.prev=null,this.head=this.tail=f),this.length+=1)},a.prototype.offset=function(f){for(var c=0,h=this.head;h!=null;){if(h===f)return c;c+=h.length(),h=h.next}return-1},a.prototype.remove=function(f){!this.contains(f)||(f.prev!=null&&(f.prev.next=f.next),f.next!=null&&(f.next.prev=f.prev),f===this.head&&(this.head=f.next),f===this.tail&&(this.tail=f.prev),this.length-=1)},a.prototype.iterator=function(f){return f===void 0&&(f=this.head),function(){var c=f;return f!=null&&(f=f.next),c}},a.prototype.find=function(f,c){c===void 0&&(c=!1);for(var h,u=this.iterator();h=u();){var l=h.length();if(f<l||c&&f===l&&(h.next==null||h.next.length()!==0))return[h,f];f-=l}return[null,0]},a.prototype.forEach=function(f){for(var c,h=this.iterator();c=h();)f(c)},a.prototype.forEachAt=function(f,c,h){if(!(c<=0))for(var u=this.find(f),l=u[0],s=u[1],d,v=f-s,p=this.iterator(l);(d=p())&&v<f+c;){var b=d.length();f>v?h(d,f-v,Math.min(c,v+b-f)):h(d,0,Math.min(b,f+c-v)),v+=b}},a.prototype.map=function(f){return this.reduce(function(c,h){return c.push(f(h)),c},[])},a.prototype.reduce=function(f,c){for(var h,u=this.iterator();h=u();)c=f(c,h);return c},a}();t.default=i},function(n,t,o){var i=this&&this.__extends||function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,d){s.__proto__=d}||function(s,d){for(var v in d)d.hasOwnProperty(v)&&(s[v]=d[v])};return function(s,d){l(s,d);function v(){this.constructor=s}s.prototype=d===null?Object.create(d):(v.prototype=d.prototype,new v)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(17),f=o(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,u=function(l){i(s,l);function s(d){var v=l.call(this,d)||this;return v.scroll=v,v.observer=new MutationObserver(function(p){v.update(p)}),v.observer.observe(v.domNode,c),v.attach(),v}return s.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},s.prototype.deleteAt=function(d,v){this.update(),d===0&&v===this.length()?this.children.forEach(function(p){p.remove()}):l.prototype.deleteAt.call(this,d,v)},s.prototype.formatAt=function(d,v,p,b){this.update(),l.prototype.formatAt.call(this,d,v,p,b)},s.prototype.insertAt=function(d,v,p){this.update(),l.prototype.insertAt.call(this,d,v,p)},s.prototype.optimize=function(d,v){var p=this;d===void 0&&(d=[]),v===void 0&&(v={}),l.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)d.push(b.pop());for(var m=function(O,N){N===void 0&&(N=!0),!(O==null||O===p)&&O.domNode.parentNode!=null&&(O.domNode[f.DATA_KEY].mutations==null&&(O.domNode[f.DATA_KEY].mutations=[]),N&&m(O.parent))},g=function(O){O.domNode[f.DATA_KEY]==null||O.domNode[f.DATA_KEY].mutations==null||(O instanceof a.default&&O.children.forEach(g),O.optimize(v))},_=d,y=0;_.length>0;y+=1){if(y>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(_.forEach(function(O){var N=f.find(O.target,!0);N!=null&&(N.domNode===O.target&&(O.type==="childList"?(m(f.find(O.previousSibling,!1)),[].forEach.call(O.addedNodes,function(T){var A=f.find(T,!1);m(A,!1),A instanceof a.default&&A.children.forEach(function(I){m(I,!1)})})):O.type==="attributes"&&m(N.prev)),m(N))}),this.children.forEach(g),_=[].slice.call(this.observer.takeRecords()),b=_.slice();b.length>0;)d.push(b.pop())}},s.prototype.update=function(d,v){var p=this;v===void 0&&(v={}),d=d||this.observer.takeRecords(),d.map(function(b){var m=f.find(b.target,!0);return m==null?null:m.domNode[f.DATA_KEY].mutations==null?(m.domNode[f.DATA_KEY].mutations=[b],m):(m.domNode[f.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===p||b.domNode[f.DATA_KEY]==null||b.update(b.domNode[f.DATA_KEY].mutations||[],v)}),this.domNode[f.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[f.DATA_KEY].mutations,v),this.optimize(d,v)},s.blotName="scroll",s.defaultChild="block",s.scope=f.Scope.BLOCK_BLOT,s.tagName="DIV",s}(a.default);t.default=u},function(n,t,o){var i=this&&this.__extends||function(){var u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,s){l.__proto__=s}||function(l,s){for(var d in s)s.hasOwnProperty(d)&&(l[d]=s[d])};return function(l,s){u(l,s);function d(){this.constructor=l}l.prototype=s===null?Object.create(s):(d.prototype=s.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1);function c(u,l){if(Object.keys(u).length!==Object.keys(l).length)return!1;for(var s in u)if(u[s]!==l[s])return!1;return!0}var h=function(u){i(l,u);function l(){return u!==null&&u.apply(this,arguments)||this}return l.formats=function(s){if(s.tagName!==l.tagName)return u.formats.call(this,s)},l.prototype.format=function(s,d){var v=this;s===this.statics.blotName&&!d?(this.children.forEach(function(p){p instanceof a.default||(p=p.wrap(l.blotName,!0)),v.attributes.copy(p)}),this.unwrap()):u.prototype.format.call(this,s,d)},l.prototype.formatAt=function(s,d,v,p){if(this.formats()[v]!=null||f.query(v,f.Scope.ATTRIBUTE)){var b=this.isolate(s,d);b.format(v,p)}else u.prototype.formatAt.call(this,s,d,v,p)},l.prototype.optimize=function(s){u.prototype.optimize.call(this,s);var d=this.formats();if(Object.keys(d).length===0)return this.unwrap();var v=this.next;v instanceof l&&v.prev===this&&c(d,v.formats())&&(v.moveChildren(this),v.remove())},l.blotName="inline",l.scope=f.Scope.INLINE_BLOT,l.tagName="SPAN",l}(a.default);t.default=h},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(18),f=o(1),c=function(h){i(u,h);function u(){return h!==null&&h.apply(this,arguments)||this}return u.formats=function(l){var s=f.query(u.blotName).tagName;if(l.tagName!==s)return h.formats.call(this,l)},u.prototype.format=function(l,s){f.query(l,f.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!s?this.replaceWith(u.blotName):h.prototype.format.call(this,l,s))},u.prototype.formatAt=function(l,s,d,v){f.query(d,f.Scope.BLOCK)!=null?this.format(d,v):h.prototype.formatAt.call(this,l,s,d,v)},u.prototype.insertAt=function(l,s,d){if(d==null||f.query(s,f.Scope.INLINE)!=null)h.prototype.insertAt.call(this,l,s,d);else{var v=this.split(l),p=f.create(s,d);v.parent.insertBefore(p,v)}},u.prototype.update=function(l,s){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,l,s)},u.blotName="block",u.scope=f.Scope.BLOCK_BLOT,u.tagName="P",u}(a.default);t.default=c},function(n,t,o){var i=this&&this.__extends||function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var l in u)u.hasOwnProperty(l)&&(h[l]=u[l])};return function(h,u){c(h,u);function l(){this.constructor=h}h.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=function(c){i(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.formats=function(u){},h.prototype.format=function(u,l){c.prototype.formatAt.call(this,0,this.length(),u,l)},h.prototype.formatAt=function(u,l,s,d){u===0&&l===this.length()?this.format(s,d):c.prototype.formatAt.call(this,u,l,s,d)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(a.default);t.default=f},function(n,t,o){var i=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,l){u.__proto__=l}||function(u,l){for(var s in l)l.hasOwnProperty(s)&&(u[s]=l[s])};return function(u,l){h(u,l);function s(){this.constructor=u}u.prototype=l===null?Object.create(l):(s.prototype=l.prototype,new s)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=o(19),f=o(1),c=function(h){i(u,h);function u(l){var s=h.call(this,l)||this;return s.text=s.statics.value(s.domNode),s}return u.create=function(l){return document.createTextNode(l)},u.value=function(l){var s=l.data;return s.normalize&&(s=s.normalize()),s},u.prototype.deleteAt=function(l,s){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+s)},u.prototype.index=function(l,s){return this.domNode===l?s:-1},u.prototype.insertAt=function(l,s,d){d==null?(this.text=this.text.slice(0,l)+s+this.text.slice(l),this.domNode.data=this.text):h.prototype.insertAt.call(this,l,s,d)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(l){h.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(l,s){return[this.domNode,l]},u.prototype.split=function(l,s){if(s===void 0&&(s=!1),!s){if(l===0)return this;if(l===this.length())return this.next}var d=f.create(this.domNode.splitText(l));return this.parent.insertBefore(d,this.next),this.text=this.statics.value(this.domNode),d},u.prototype.update=function(l,s){var d=this;l.some(function(v){return v.type==="characterData"&&v.target===d.domNode})&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=f.Scope.INLINE_BLOT,u}(a.default);t.default=c},function(n,t,o){var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(f,c){return arguments.length>1&&!this.contains(f)==!c?c:a.call(this,f)}}String.prototype.startsWith||(String.prototype.startsWith=function(f,c){return c=c||0,this.substr(c,f.length)===f}),String.prototype.endsWith||(String.prototype.endsWith=function(f,c){var h=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>h.length)&&(c=h.length),c-=f.length;var u=h.indexOf(f,c);return u!==-1&&u===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),u=h.length>>>0,l=arguments[1],s,d=0;d<u;d++)if(s=h[d],c.call(l,s,d,h))return s}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(n,t){var o=-1,i=1,a=0;function f(y,O,N){if(y==O)return y?[[a,y]]:[];(N<0||y.length<N)&&(N=null);var T=l(y,O),A=y.substring(0,T);y=y.substring(T),O=O.substring(T),T=s(y,O);var I=y.substring(y.length-T);y=y.substring(0,y.length-T),O=O.substring(0,O.length-T);var w=c(y,O);return A&&w.unshift([a,A]),I&&w.push([a,I]),v(w),N!=null&&(w=m(w,N)),w=g(w),w}function c(y,O){var N;if(!y)return[[i,O]];if(!O)return[[o,y]];var T=y.length>O.length?y:O,A=y.length>O.length?O:y,I=T.indexOf(A);if(I!=-1)return N=[[i,T.substring(0,I)],[a,A],[i,T.substring(I+A.length)]],y.length>O.length&&(N[0][0]=N[2][0]=o),N;if(A.length==1)return[[o,y],[i,O]];var w=d(y,O);if(w){var E=w[0],x=w[1],P=w[2],R=w[3],D=w[4],B=f(E,P),U=f(x,R);return B.concat([[a,D]],U)}return h(y,O)}function h(y,O){for(var N=y.length,T=O.length,A=Math.ceil((N+T)/2),I=A,w=2*A,E=new Array(w),x=new Array(w),P=0;P<w;P++)E[P]=-1,x[P]=-1;E[I+1]=0,x[I+1]=0;for(var R=N-T,D=R%2!=0,B=0,U=0,V=0,q=0,$=0;$<A;$++){for(var S=-$+B;S<=$-U;S+=2){var C=I+S,k;S==-$||S!=$&&E[C-1]<E[C+1]?k=E[C+1]:k=E[C-1]+1;for(var F=k-S;k<N&&F<T&&y.charAt(k)==O.charAt(F);)k++,F++;if(E[C]=k,k>N)U+=2;else if(F>T)B+=2;else if(D){var j=I+R-S;if(j>=0&&j<w&&x[j]!=-1){var L=N-x[j];if(k>=L)return u(y,O,k,F)}}}for(var M=-$+V;M<=$-q;M+=2){var j=I+M,L;M==-$||M!=$&&x[j-1]<x[j+1]?L=x[j+1]:L=x[j-1]+1;for(var H=L-M;L<N&&H<T&&y.charAt(N-L-1)==O.charAt(T-H-1);)L++,H++;if(x[j]=L,L>N)q+=2;else if(H>T)V+=2;else if(!D){var C=I+R-M;if(C>=0&&C<w&&E[C]!=-1){var k=E[C],F=I+k-C;if(L=N-L,k>=L)return u(y,O,k,F)}}}}return[[o,y],[i,O]]}function u(y,O,N,T){var A=y.substring(0,N),I=O.substring(0,T),w=y.substring(N),E=O.substring(T),x=f(A,I),P=f(w,E);return x.concat(P)}function l(y,O){if(!y||!O||y.charAt(0)!=O.charAt(0))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(I,A)==O.substring(I,A)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function s(y,O){if(!y||!O||y.charAt(y.length-1)!=O.charAt(O.length-1))return 0;for(var N=0,T=Math.min(y.length,O.length),A=T,I=0;N<A;)y.substring(y.length-A,y.length-I)==O.substring(O.length-A,O.length-I)?(N=A,I=N):T=A,A=Math.floor((T-N)/2+N);return A}function d(y,O){var N=y.length>O.length?y:O,T=y.length>O.length?O:y;if(N.length<4||T.length*2<N.length)return null;function A(U,V,q){for(var $=U.substring(q,q+Math.floor(U.length/4)),S=-1,C="",k,F,j,L;(S=V.indexOf($,S+1))!=-1;){var M=l(U.substring(q),V.substring(S)),H=s(U.substring(0,q),V.substring(0,S));C.length<H+M&&(C=V.substring(S-H,S)+V.substring(S,S+M),k=U.substring(0,q-H),F=U.substring(q+M),j=V.substring(0,S-H),L=V.substring(S+M))}return C.length*2>=U.length?[k,F,j,L,C]:null}var I=A(N,T,Math.ceil(N.length/4)),w=A(N,T,Math.ceil(N.length/2)),E;if(!I&&!w)return null;w?I?E=I[4].length>w[4].length?I:w:E=w:E=I;var x,P,R,D;y.length>O.length?(x=E[0],P=E[1],R=E[2],D=E[3]):(R=E[0],D=E[1],x=E[2],P=E[3]);var B=E[4];return[x,P,R,D,B]}function v(y){y.push([a,""]);for(var O=0,N=0,T=0,A="",I="",w;O<y.length;)switch(y[O][0]){case i:T++,I+=y[O][1],O++;break;case o:N++,A+=y[O][1],O++;break;case a:N+T>1?(N!==0&&T!==0&&(w=l(I,A),w!==0&&(O-N-T>0&&y[O-N-T-1][0]==a?y[O-N-T-1][1]+=I.substring(0,w):(y.splice(0,0,[a,I.substring(0,w)]),O++),I=I.substring(w),A=A.substring(w)),w=s(I,A),w!==0&&(y[O][1]=I.substring(I.length-w)+y[O][1],I=I.substring(0,I.length-w),A=A.substring(0,A.length-w))),N===0?y.splice(O-T,N+T,[i,I]):T===0?y.splice(O-N,N+T,[o,A]):y.splice(O-N-T,N+T,[o,A],[i,I]),O=O-N-T+(N?1:0)+(T?1:0)+1):O!==0&&y[O-1][0]==a?(y[O-1][1]+=y[O][1],y.splice(O,1)):O++,T=0,N=0,A="",I="";break}y[y.length-1][1]===""&&y.pop();var E=!1;for(O=1;O<y.length-1;)y[O-1][0]==a&&y[O+1][0]==a&&(y[O][1].substring(y[O][1].length-y[O-1][1].length)==y[O-1][1]?(y[O][1]=y[O-1][1]+y[O][1].substring(0,y[O][1].length-y[O-1][1].length),y[O+1][1]=y[O-1][1]+y[O+1][1],y.splice(O-1,1),E=!0):y[O][1].substring(0,y[O+1][1].length)==y[O+1][1]&&(y[O-1][1]+=y[O+1][1],y[O][1]=y[O][1].substring(y[O+1][1].length)+y[O+1][1],y.splice(O+1,1),E=!0)),O++;E&&v(y)}var p=f;p.INSERT=i,p.DELETE=o,p.EQUAL=a,n.exports=p;function b(y,O){if(O===0)return[a,y];for(var N=0,T=0;T<y.length;T++){var A=y[T];if(A[0]===o||A[0]===a){var I=N+A[1].length;if(O===I)return[T+1,y];if(O<I){y=y.slice();var w=O-N,E=[A[0],A[1].slice(0,w)],x=[A[0],A[1].slice(w)];return y.splice(T,1,E,x),[T+1,y]}else N=I}}throw new Error("cursor_pos is out of bounds!")}function m(y,O){var N=b(y,O),T=N[1],A=N[0],I=T[A],w=T[A+1];if(I==null)return y;if(I[0]!==a)return y;if(w!=null&&I[1]+w[1]===w[1]+I[1])return T.splice(A,2,w,I),_(T,A,2);if(w!=null&&w[1].indexOf(I[1])===0){T.splice(A,2,[w[0],I[1]],[0,I[1]]);var E=w[1].slice(I[1].length);return E.length>0&&T.splice(A+2,0,[w[0],E]),_(T,A,3)}else return y}function g(y){for(var O=!1,N=function(w){return w.charCodeAt(0)>=56320&&w.charCodeAt(0)<=57343},T=function(w){return w.charCodeAt(w.length-1)>=55296&&w.charCodeAt(w.length-1)<=56319},A=2;A<y.length;A+=1)y[A-2][0]===a&&T(y[A-2][1])&&y[A-1][0]===o&&N(y[A-1][1])&&y[A][0]===i&&N(y[A][1])&&(O=!0,y[A-1][1]=y[A-2][1].slice(-1)+y[A-1][1],y[A][1]=y[A-2][1].slice(-1)+y[A][1],y[A-2][1]=y[A-2][1].slice(0,-1));if(!O)return y;for(var I=[],A=0;A<y.length;A+=1)y[A][1].length>0&&I.push(y[A]);return I}function _(y,O,N){for(var T=O+N-1;T>=0&&T>=O-1;T--)if(T+1<y.length){var A=y[T],I=y[T+1];A[0]===I[1]&&y.splice(T,2,[A[0],A[1]+I[1]])}return y}},function(n,t){t=n.exports=typeof Object.keys=="function"?Object.keys:o,t.shim=o;function o(i){var a=[];for(var f in i)a.push(f);return a}},function(n,t){var o=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";t=n.exports=o?i:a,t.supported=i;function i(f){return Object.prototype.toString.call(f)=="[object Arguments]"}t.unsupported=a;function a(f){return f&&typeof f=="object"&&typeof f.length=="number"&&Object.prototype.hasOwnProperty.call(f,"callee")&&!Object.prototype.propertyIsEnumerable.call(f,"callee")||!1}},function(n,t){var o=Object.prototype.hasOwnProperty,i="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(i=!1));function f(h,u,l){this.fn=h,this.context=u,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var u=[],l,s;if(this._eventsCount===0)return u;for(s in l=this._events)o.call(l,s)&&u.push(i?s.slice(1):s);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(l)):u},c.prototype.listeners=function(u,l){var s=i?i+u:u,d=this._events[s];if(l)return!!d;if(!d)return[];if(d.fn)return[d.fn];for(var v=0,p=d.length,b=new Array(p);v<p;v++)b[v]=d[v].fn;return b},c.prototype.emit=function(u,l,s,d,v,p){var b=i?i+u:u;if(!this._events[b])return!1;var m=this._events[b],g=arguments.length,_,y;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,l),!0;case 3:return m.fn.call(m.context,l,s),!0;case 4:return m.fn.call(m.context,l,s,d),!0;case 5:return m.fn.call(m.context,l,s,d,v),!0;case 6:return m.fn.call(m.context,l,s,d,v,p),!0}for(y=1,_=new Array(g-1);y<g;y++)_[y-1]=arguments[y];m.fn.apply(m.context,_)}else{var O=m.length,N;for(y=0;y<O;y++)switch(m[y].once&&this.removeListener(u,m[y].fn,void 0,!0),g){case 1:m[y].fn.call(m[y].context);break;case 2:m[y].fn.call(m[y].context,l);break;case 3:m[y].fn.call(m[y].context,l,s);break;case 4:m[y].fn.call(m[y].context,l,s,d);break;default:if(!_)for(N=1,_=new Array(g-1);N<g;N++)_[N-1]=arguments[N];m[y].fn.apply(m[y].context,_)}}return!0},c.prototype.on=function(u,l,s){var d=new f(l,s||this),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.once=function(u,l,s){var d=new f(l,s||this,!0),v=i?i+u:u;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],d]:this._events[v].push(d):(this._events[v]=d,this._eventsCount++),this},c.prototype.removeListener=function(u,l,s,d){var v=i?i+u:u;if(!this._events[v])return this;if(!l)return--this._eventsCount==0?this._events=new a:delete this._events[v],this;var p=this._events[v];if(p.fn)p.fn===l&&(!d||p.once)&&(!s||p.context===s)&&(--this._eventsCount==0?this._events=new a:delete this._events[v]);else{for(var b=0,m=[],g=p.length;b<g;b++)(p[b].fn!==l||d&&!p[b].once||s&&p[b].context!==s)&&m.push(p[b]);m.length?this._events[v]=m.length===1?m[0]:m:--this._eventsCount==0?this._events=new a:delete this._events[v]}return this},c.prototype.removeAllListeners=function(u){var l;return u?(l=i?i+u:u,this._events[l]&&(--this._eventsCount==0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=i,c.EventEmitter=c,typeof n!="undefined"&&(n.exports=c)},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},a=function(){function W(K,Z){var Q=[],X=!0,se=!1,ue=void 0;try{for(var fe=K[Symbol.iterator](),Ke;!(X=(Ke=fe.next()).done)&&(Q.push(Ke.value),!(Z&&Q.length===Z));X=!0);}catch(lt){se=!0,ue=lt}finally{try{!X&&fe.return&&fe.return()}finally{if(se)throw ue}}return Q}return function(K,Z){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return W(K,Z);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function W(K,Z){for(var Q=0;Q<Z.length;Q++){var X=Z[Q];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(K,X.key,X)}}return function(K,Z,Q){return Z&&W(K.prototype,Z),Q&&W(K,Q),K}}(),c=o(3),h=x(c),u=o(2),l=x(u),s=o(0),d=x(s),v=o(5),p=x(v),b=o(10),m=x(b),g=o(9),_=x(g),y=o(36),O=o(37),N=o(13),T=x(N),A=o(26),I=o(38),w=o(39),E=o(40);function x(W){return W&&W.__esModule?W:{default:W}}function P(W,K,Z){return K in W?Object.defineProperty(W,K,{value:Z,enumerable:!0,configurable:!0,writable:!0}):W[K]=Z,W}function R(W,K){if(!(W instanceof K))throw new TypeError("Cannot call a class as a function")}function D(W,K){if(!W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K&&(typeof K=="object"||typeof K=="function")?K:W}function B(W,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof K);W.prototype=Object.create(K&&K.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(W,K):W.__proto__=K)}var U=(0,m.default)("quill:clipboard"),V="__ql-matcher",q=[[Node.TEXT_NODE,Ne],[Node.TEXT_NODE,de],["br",ee],[Node.ELEMENT_NODE,de],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,ve],[Node.ELEMENT_NODE,z],[Node.ELEMENT_NODE,qe],["li",ae],["b",H.bind(H,"bold")],["i",H.bind(H,"italic")],["style",re]],$=[y.AlignAttribute,I.DirectionAttribute].reduce(function(W,K){return W[K.keyName]=K,W},{}),S=[y.AlignStyle,O.BackgroundStyle,A.ColorStyle,I.DirectionStyle,w.FontStyle,E.SizeStyle].reduce(function(W,K){return W[K.keyName]=K,W},{}),C=function(W){B(K,W);function K(Z,Q){R(this,K);var X=D(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,Z,Q));return X.quill.root.addEventListener("paste",X.onPaste.bind(X)),X.container=X.quill.addContainer("ql-clipboard"),X.container.setAttribute("contenteditable",!0),X.container.setAttribute("tabindex",-1),X.matchers=[],q.concat(X.options.matchers).forEach(function(se){var ue=a(se,2),fe=ue[0],Ke=ue[1];!Q.matchVisual&&Ke===ve||X.addMatcher(fe,Ke)}),X}return f(K,[{key:"addMatcher",value:function(Q,X){this.matchers.push([Q,X])}},{key:"convert",value:function(Q){if(typeof Q=="string")return this.container.innerHTML=Q.replace(/\>\r?\n +\</g,"><"),this.convert();var X=this.quill.getFormat(this.quill.selection.savedRange.index);if(X[T.default.blotName]){var se=this.container.innerText;return this.container.innerHTML="",new l.default().insert(se,P({},T.default.blotName,X[T.default.blotName]))}var ue=this.prepareMatching(),fe=a(ue,2),Ke=fe[0],lt=fe[1],_e=M(this.container,Ke,lt);return j(_e,`
60
60
  `)&&_e.ops[_e.ops.length-1].attributes==null&&(_e=_e.compose(new l.default().retain(_e.length()-1).delete(1))),U.log("convert",this.container.innerHTML,_e),this.container.innerHTML="",_e}},{key:"dangerouslyPasteHTML",value:function(Q,X){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof Q=="string")this.quill.setContents(this.convert(Q),X),this.quill.setSelection(0,p.default.sources.SILENT);else{var ue=this.convert(X);this.quill.updateContents(new l.default().retain(Q).concat(ue),se),this.quill.setSelection(Q+ue.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(Q){var X=this;if(!(Q.defaultPrevented||!this.quill.isEnabled())){var se=this.quill.getSelection(),ue=new l.default().retain(se.index),fe=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout(function(){ue=ue.concat(X.convert()).delete(se.length),X.quill.updateContents(ue,p.default.sources.USER),X.quill.setSelection(ue.length()-se.length,p.default.sources.SILENT),X.quill.scrollingContainer.scrollTop=fe,X.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var Q=this,X=[],se=[];return this.matchers.forEach(function(ue){var fe=a(ue,2),Ke=fe[0],lt=fe[1];switch(Ke){case Node.TEXT_NODE:se.push(lt);break;case Node.ELEMENT_NODE:X.push(lt);break;default:[].forEach.call(Q.container.querySelectorAll(Ke),function(_e){_e[V]=_e[V]||[],_e[V].push(lt)});break}}),[X,se]}}]),K}(_.default);C.DEFAULTS={matchers:[],matchVisual:!0};function k(W,K,Z){return(typeof K=="undefined"?"undefined":i(K))==="object"?Object.keys(K).reduce(function(Q,X){return k(Q,X,K[X])},W):W.reduce(function(Q,X){return X.attributes&&X.attributes[K]?Q.push(X):Q.insert(X.insert,(0,h.default)({},P({},K,Z),X.attributes))},new l.default)}function F(W){if(W.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return W[K]||(W[K]=window.getComputedStyle(W))}function j(W,K){for(var Z="",Q=W.ops.length-1;Q>=0&&Z.length<K.length;--Q){var X=W.ops[Q];if(typeof X.insert!="string")break;Z=X.insert+Z}return Z.slice(-1*K.length)===K}function L(W){if(W.childNodes.length===0)return!1;var K=F(W);return["block","list-item"].indexOf(K.display)>-1}function M(W,K,Z){return W.nodeType===W.TEXT_NODE?Z.reduce(function(Q,X){return X(W,Q)},new l.default):W.nodeType===W.ELEMENT_NODE?[].reduce.call(W.childNodes||[],function(Q,X){var se=M(X,K,Z);return X.nodeType===W.ELEMENT_NODE&&(se=K.reduce(function(ue,fe){return fe(X,ue)},se),se=(X[V]||[]).reduce(function(ue,fe){return fe(X,ue)},se)),Q.concat(se)},new l.default):new l.default}function H(W,K,Z){return k(Z,W,!0)}function z(W,K){var Z=d.default.Attributor.Attribute.keys(W),Q=d.default.Attributor.Class.keys(W),X=d.default.Attributor.Style.keys(W),se={};return Z.concat(Q).concat(X).forEach(function(ue){var fe=d.default.query(ue,d.default.Scope.ATTRIBUTE);fe!=null&&(se[fe.attrName]=fe.value(W),se[fe.attrName])||(fe=$[ue],fe!=null&&(fe.attrName===ue||fe.keyName===ue)&&(se[fe.attrName]=fe.value(W)||void 0),fe=S[ue],fe!=null&&(fe.attrName===ue||fe.keyName===ue)&&(fe=S[ue],se[fe.attrName]=fe.value(W)||void 0))}),Object.keys(se).length>0&&(K=k(K,se)),K}function Y(W,K){var Z=d.default.query(W);if(Z==null)return K;if(Z.prototype instanceof d.default.Embed){var Q={},X=Z.value(W);X!=null&&(Q[Z.blotName]=X,K=new l.default().insert(Q,Z.formats(W)))}else typeof Z.formats=="function"&&(K=k(K,Z.blotName,Z.formats(W)));return K}function ee(W,K){return j(K,`
61
61
  `)||K.insert(`
62
62
  `),K}function re(){return new l.default}function ae(W,K){var Z=d.default.query(W);if(Z==null||Z.blotName!=="list-item"||!j(K,`
@@ -65,5 +65,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
65
65
  `),K}function ve(W,K){if(L(W)&&W.nextElementSibling!=null&&!j(K,`
66
66
 
67
67
  `)){var Z=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&K.insert(`
68
- `)}return K}function qe(W,K){var Z={},Q=W.style||{};return Q.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),Q.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=k(K,Z)),parseFloat(Q.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ne(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var Q=function(se,ue){return ue=ue.replace(/[^\u00a0]/g,""),ue.length<1&&se?" ":ue};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,Q.bind(Q,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,Q.bind(Q,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=Y,t.matchNewline=de,t.matchSpacing=ve,t.matchText=Ne},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(c.default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function E(x,P){var D=[],R=!0,B=!1,U=void 0;try{for(var V=x[Symbol.iterator](),q;!(R=(q=V.next()).done)&&(D.push(q.value),!(P&&D.length===P));R=!0);}catch($){B=!0,U=$}finally{try{!R&&V.return&&V.return()}finally{if(B)throw U}}return D}return function(x,P){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return E(x,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function E(x,P){for(var D=0;D<P.length;D++){var R=P[D];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,P,D){return P&&E(x.prototype,P),D&&E(x,D),x}}(),f=o(2),c=m(f),h=o(0),u=m(h),l=o(5),s=m(l),d=o(10),v=m(d),p=o(9),b=m(p);function m(E){return E&&E.__esModule?E:{default:E}}function g(E,x,P){return x in E?Object.defineProperty(E,x,{value:P,enumerable:!0,configurable:!0,writable:!0}):E[x]=P,E}function _(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function y(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function O(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var N=(0,v.default)("quill:toolbar"),T=function(E){O(x,E);function x(P,D){_(this,x);var R=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,D));if(Array.isArray(R.options.container)){var B=document.createElement("div");I(B,R.options.container),P.container.parentNode.insertBefore(B,P.container),R.container=B}else typeof R.options.container=="string"?R.container=document.querySelector(R.options.container):R.container=R.options.container;if(!(R.container instanceof HTMLElement)){var U;return U=N.error("Container required for toolbar",R.options),y(R,U)}return R.container.classList.add("ql-toolbar"),R.controls=[],R.handlers={},Object.keys(R.options.handlers).forEach(function(V){R.addHandler(V,R.options.handlers[V])}),[].forEach.call(R.container.querySelectorAll("button, select"),function(V){R.attach(V)}),R.quill.on(s.default.events.EDITOR_CHANGE,function(V,q){V===s.default.events.SELECTION_CHANGE&&R.update(q)}),R.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var V=R.quill.selection.getRange(),q=i(V,1),$=q[0];R.update($)}),R}return a(x,[{key:"addHandler",value:function(D,R){this.handlers[D]=R}},{key:"attach",value:function(D){var R=this,B=[].find.call(D.classList,function(V){return V.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){N.warn("ignoring attaching to disabled format",B,D);return}if(u.default.query(B)==null){N.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,function(V){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var $=D.options[D.selectedIndex];$.hasAttribute("selected")?q=!1:q=$.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),V.preventDefault();R.quill.focus();var S=R.quill.selection.getRange(),C=i(S,1),k=C[0];if(R.handlers[B]!=null)R.handlers[B].call(R,q);else if(u.default.query(B).prototype instanceof u.default.Embed){if(q=prompt("Enter "+B),!q)return;R.quill.updateContents(new c.default().retain(k.index).delete(k.length).insert(g({},B,q)),s.default.sources.USER)}else R.quill.format(B,q,s.default.sources.USER);R.update(k)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var R=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),V=U[0],q=U[1];if(q.tagName==="SELECT"){var $=void 0;if(D==null)$=null;else if(R[V]==null)$=q.querySelector("option[selected]");else if(!Array.isArray(R[V])){var S=R[V];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),$=q.querySelector('option[value="'+S+'"]')}$==null?(q.value="",q.selectedIndex=-1):$.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=R[V]===q.getAttribute("value")||R[V]!=null&&R[V].toString()===q.getAttribute("value")||R[V]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",R[V]!=null)})}}]),x}(b.default);T.DEFAULTS={};function A(E,x,P){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+x),P!=null&&(D.value=P),E.appendChild(D)}function I(E,x){Array.isArray(x[0])||(x=[x]),x.forEach(function(P){var D=document.createElement("span");D.classList.add("ql-formats"),P.forEach(function(R){if(typeof R=="string")A(D,R);else{var B=Object.keys(R)[0],U=R[B];Array.isArray(U)?w(D,B,U):A(D,B,U)}}),E.appendChild(D)})}function w(E,x,P){var D=document.createElement("select");D.classList.add("ql-"+x),P.forEach(function(R){var B=document.createElement("option");R!==!1?B.setAttribute("value",R):B.setAttribute("selected","selected"),D.appendChild(B)}),E.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var x=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function(R){u.default.query(R,u.default.Scope.INLINE)!=null&&x.quill.format(R,!1)})}else this.quill.removeFormat(P,s.default.sources.USER)},direction:function(x){var P=this.quill.getFormat().align;x==="rtl"&&P==null?this.quill.format("align","right",s.default.sources.USER):!x&&P==="right"&&this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",x,s.default.sources.USER)},indent:function(x){var P=this.quill.getSelection(),D=this.quill.getFormat(P),R=parseInt(D.indent||0);if(x==="+1"||x==="-1"){var B=x==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",R+B,s.default.sources.USER)}},link:function(x){x===!0&&(x=prompt("Enter link URL:")),this.quill.format("link",x,s.default.sources.USER)},list:function(x){var P=this.quill.getSelection(),D=this.quill.getFormat(P);x==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",x,s.default.sources.USER)}}},t.default=T,t.addControls=I},function(n,t){n.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(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(b,m){u(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=m,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),g}return i(p,[{key:"buildItem",value:function(m){var g=a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),p}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(b,m){u(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(m,g){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(h,s.key,s)}}return function(h,u,l){return u&&c(h.prototype,u),l&&c(h,l),h}}();function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(h,u){var l=this;a(this,c),this.quill=h,this.boundsContainer=u||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var l=u.left+u.width/2-this.root.offsetWidth/2,s=u.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=s+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>d.right&&(p=d.right-v.right,this.root.style.left=l+p+"px"),v.left<d.left&&(p=d.left-v.left,this.root.style.left=l+p+"px"),v.bottom>d.bottom){var b=v.bottom-v.top,m=u.bottom-u.top+b;this.root.style.top=s-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],D=!0,R=!1,B=void 0;try{for(var U=E[Symbol.iterator](),V;!(D=(V=U.next()).done)&&(P.push(V.value),!(x&&P.length===x));D=!0);}catch(q){R=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if(R)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function w(E,x,P){E===null&&(E=Function.prototype);var D=Object.getOwnPropertyDescriptor(E,x);if(D===void 0){var R=Object.getPrototypeOf(E);return R===null?void 0:w(R,x,P)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(P)}},f=function(){function w(E,x){for(var P=0;P<x.length;P++){var D=x[P];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(E,D.key,D)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),c=o(3),h=_(c),u=o(8),l=_(u),s=o(43),d=_(s),v=o(27),p=_(v),b=o(15),m=o(41),g=_(m);function _(w){return w&&w.__esModule?w:{default:w}}function y(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function O(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function N(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(w){N(E,w);function E(x,P){y(this,E),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=T);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return D.quill.container.classList.add("ql-snow"),D}return f(E,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),g.default),this.tooltip=new I(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,R){P.handlers.link.call(P,!R.format.link)})}}]),E}(d.default);A.DEFAULTS=(0,h.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var x=this.quill.getSelection();if(x==null||x.length==0)return;var P=this.quill.getText(x);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var D=this.quill.theme.tooltip;D.edit("link",P)}else this.quill.format("link",!1)}}}}});var I=function(w){N(E,w);function E(x,P){y(this,E);var D=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return D.preview=D.root.querySelector("a.ql-preview"),D}return f(E,[{key:"listen",value:function(){var P=this;a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(P.linkRange!=null){var R=P.linkRange;P.restoreFocus(),P.quill.formatText(R,"link",!1,l.default.sources.USER),delete P.linkRange}D.preventDefault(),P.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,R,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=P.quill.scroll.descendant(p.default,D.index),V=i(U,2),q=V[0],$=V[1];if(q!=null){P.linkRange=new b.Range(D.index-$,q.length());var S=p.default.formats(q.domNode);P.preview.textContent=S,P.preview.setAttribute("href",S),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(s.BaseTooltip);I.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(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),a=X(i),f=o(36),c=o(38),h=o(64),u=o(65),l=X(u),s=o(66),d=X(s),v=o(67),p=X(v),b=o(37),m=o(26),g=o(39),_=o(40),y=o(56),O=X(y),N=o(68),T=X(N),A=o(27),I=X(A),w=o(69),E=X(w),x=o(70),P=X(x),D=o(71),R=X(D),B=o(72),U=X(B),V=o(73),q=X(V),$=o(13),S=X($),C=o(74),k=X(C),F=o(75),j=X(F),L=o(57),M=X(L),H=o(41),z=X(H),Y=o(28),ee=X(Y),re=o(59),ae=X(re),de=o(60),ve=X(de),qe=o(61),Ne=X(qe),W=o(108),K=X(W),Z=o(62),Q=X(Z);function X(se){return se&&se.__esModule?se:{default:se}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":f.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":f.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),a.default.register({"formats/align":f.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":S.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":$.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":E.default,"formats/strike":P.default,"formats/underline":R.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":z.default,"ui/picker":ee.default,"ui/icon-picker":ve.default,"ui/color-picker":ae.default,"ui/tooltip":Ne.default},!0),t.default=a.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),a=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(0),c=h(f);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function s(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var d=function(p){s(b,p);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var y=this.value(g)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(g),!0):a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(c.default.Attributor.Class),v=new d("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function d(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&d(v.prototype,p),b&&d(v,b),v}}(),a=o(4),f=c(a);function c(d){return d&&d.__esModule?d:{default:d}}function h(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function l(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var s=function(d){l(v,d);function v(){return h(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(f.default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function y(O,N){for(var T=0;T<N.length;T++){var A=N[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,N,T){return N&&y(O.prototype,N),T&&y(O,T),O}}(),a=function y(O,N,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,N);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:y(I,N,T)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(T)}},f=o(0),c=d(f),h=o(4),u=d(h),l=o(25),s=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function v(y,O,N){return O in y?Object.defineProperty(y,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[O]=N,y}function p(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function b(y,O){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:y}function m(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var g=function(y){m(O,y);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(c.default.create(this.statics.scope)):a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:a(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(u.default);g.blotName="list-item",g.tagName="LI";var _=function(y){m(O,y),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",I=a(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&I.setAttribute("data-checked",T==="checked"),I}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(N){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N)),A=function(w){if(w.target.parentNode===N){var E=T.statics.formats(N),x=c.default.find(w.target);E==="checked"?x.format("list","unchecked"):E==="unchecked"&&x.format("list","checked")}};return N.addEventListener("touchstart",A),N.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var I=A==null?this.length():A.offset(this),w=this.split(I);w.parent.insertBefore(T,w)}}},{key:"optimize",value:function(T){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=c.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(s.default);_.blotName="list",_.scope=c.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[g],t.ListItem=g,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(c.default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=u(f),h=o(27);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(c.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(4),c=o(27),h=u(c);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(f.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=function _(y,O,N){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,O);if(T===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:_(A,O,N)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(N)}},f=o(35),c=d(f),h=o(5),u=d(h),l=o(9),s=d(l);function d(_){return _&&_.__esModule?_:{default:_}}function v(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function p(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function b(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){b(y,_);function y(){return v(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"create",value:function(N){var T=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,N);return typeof N=="string"&&(window.katex.render(N,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",N)),T}},{key:"value",value:function(N){return N.getAttribute("data-value")}}]),y}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(_){b(y,_),i(y,null,[{key:"register",value:function(){u.default.register(m,!0)}}]);function y(){v(this,y);var O=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return y}(s.default);t.FormulaBlot=m,t.default=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function N(T,A){for(var I=0;I<A.length;I++){var w=A[I];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,A,I){return A&&N(T.prototype,A),I&&N(T,I),T}}(),a=function N(T,A,I){T===null&&(T=Function.prototype);var w=Object.getOwnPropertyDescriptor(T,A);if(w===void 0){var E=Object.getPrototypeOf(T);return E===null?void 0:N(E,A,I)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(I)}},f=o(0),c=p(f),h=o(5),u=p(h),l=o(9),s=p(l),d=o(13),v=p(d);function p(N){return N&&N.__esModule?N:{default:N}}function b(N,T){if(!(N instanceof T))throw new TypeError("Cannot call a class as a function")}function m(N,T){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:N}function g(N,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);N.prototype=Object.create(T&&T.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(N,T):N.__proto__=T)}var _=function(N){g(T,N);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var w=this.domNode.textContent;this.cachedText!==w&&((w.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(w),this.domNode.normalize(),this.attach()),this.cachedText=w)}}]),T}(v.default);_.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(N){g(T,N),i(T,null,[{key:"register",value:function(){u.default.register(y,!0),u.default.register(_,!0)}}]);function T(A,I){b(this,T);var w=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));if(typeof w.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return w.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){w.highlight(),E=null},w.options.interval)}),w.highlight(),w}return i(T,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var w=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(E){E.highlight(I.options.highlight)}),this.quill.update(u.default.sources.SILENT),w!=null&&this.quill.setSelection(w,u.default.sources.SILENT)}}}]),T}(s.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(N){var T=window.hljs.highlightAuto(N);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=y,t.default=O},function(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,I,w){A===null&&(A=Function.prototype);var E=Object.getOwnPropertyDescriptor(A,I);if(E===void 0){var x=Object.getPrototypeOf(A);return x===null?void 0:T(x,I,w)}else{if("value"in E)return E.value;var P=E.get;return P===void 0?void 0:P.call(w)}},a=function(){function T(A,I){for(var w=0;w<I.length;w++){var E=I[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}return function(A,I,w){return I&&T(A.prototype,I),w&&T(A,w),A}}(),f=o(3),c=b(f),h=o(8),u=b(h),l=o(43),s=b(l),d=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function g(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,w){m(this,A),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=y);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.container.classList.add("ql-bubble"),E}return a(A,[{key:"extendToolbar",value:function(w){this.tooltip=new N(this.quill,this.options.bounds),this.tooltip.root.appendChild(w.container),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),p.default)}}]),A}(s.default);O.DEFAULTS=(0,c.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var N=function(T){_(A,T);function A(I,w){m(this,A);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.on(u.default.events.EDITOR_CHANGE,function(x,P,D,R){if(x===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&R===u.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var B=E.quill.getLines(P.index,P.length);if(B.length===1)E.position(E.quill.getBounds(P));else{var U=B[B.length-1],V=E.quill.getIndex(U),q=Math.min(U.length()-1,P.index+P.length-V),$=E.quill.getBounds(new d.Range(V,q));E.position($)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return a(A,[{key:"listen",value:function(){var w=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){w.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!w.root.classList.contains("ql-hidden")){var E=w.quill.getSelection();E!=null&&w.position(w.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(w){var E=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,w),x=this.root.querySelector(".ql-tooltip-arrow");if(x.style.marginLeft="",E===0)return E;x.style.marginLeft=-1*E-x.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);N.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(""),t.BubbleTooltip=N,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(xa);var Aa=Ji(xa.exports),sh="",uh="",fh="",ud=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},fd=[],ch="";const cd={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:zn(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new Aa(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new Aa(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},Ta={};var dd=Ce(cd,ud,fd,!1,hd,"009bd892",null,null);function hd(e){for(let r in Ta)this[r]=Ta[r]}var rr=function(){return dd.exports}();rr.install=e=>{e.component(rr.name,rr)};const Ca=rr;var pd=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},vd=[];const md={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},Na={};var yd=Ce(md,pd,vd,!1,gd,null,null,null);function gd(e){for(let r in Na)this[r]=Na[r]}var bd=function(){return yd.exports}();const _d=je.default.extend(bd);var Od={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),f=new _d({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:a,fullscreen:!1}});e.instance=f,e.mask=f.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},Ed=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},Sd=[],hh="";const un={confirm:"confirm",cancel:"cancel"},wd={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=gt(ye({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(un.cancel)},triggerCallBack(e){const r={[un.confirm]:"beforeConfirm",[un.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===un.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(un.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Pa={};var xd=Ce(wd,Ed,Sd,!1,Ad,null,null,null);function Ad(e){for(let r in Pa)this[r]=Pa[r]}var Td=function(){return xd.exports}();const Cd={title:"",items:[]},Nd=je.default.extend(Td);let ka,fn,fi=[];const Pd=()=>{fn=new Nd({el:document.createElement("div")})},kd=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Id=e=>{const r=kd(e.items);Object.entries(gt(ye({},e),{formData:r})).forEach(([n,t])=>{fn[n]=t}),document.body.appendChild(fn.$el),je.default.nextTick(()=>{fn.visible=!0})},Ld=()=>{fn||Pd(),fi.length>0&&(ka=fi.shift(),Id(ka))},Dd=e=>new Promise((r,n)=>{fi.push(gt(ye(ye({},Cd),e),{resolve:r,reject:n})),Ld()}),Rd=[zi,Gi,Ki,Xi,io,so,co,Bo,_a,Ea,wa,Ca],Ia={version:"dev",install:(e,r={config:{}})=>{Rd.forEach(i=>e.component(i.name,i));const n={tablePreset:{separator:"@",presetPropMap:{image(i,{field:a,params:f}){const c=i[a].split("|"),h=f.size||59;return["com-image",{attrs:{src:c,size:h,lazy:!0}}]},link(i,{field:a,params:f}){const c=i[a];let{target:h,href:u,type:l,underline:s}=f;return h=h||"_blank",u=i[u]||c,l=l||"primary",s=!!s,["el-link",{attrs:{target:h,href:u,type:l,underline:s}},c]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ye(ye({},n),r.config),Object.entries(Od).forEach(([i,a])=>{e.directive(i,a)}),e.prototype.$formDialog=Dd,e.prototype.$jump=(i,a="_blank")=>{window.open(i,a)};const t=new e;e.prototype.$toChildren=t;const o=Xl.create({headers:{["Login-Token"]:r.config.token}});e.prototype.$http=o},ComTemplate:zi,ComMenu:Gi,ComTabs:Ki,ComTool:Xi,ComDialog:io,ComFormItem:so,ComOperation:co,ComSearch:Bo,ComTable:_a,ComImage:Ea,ComContainer:wa,ComEditor:Ca};try{Ia.version=require("../package.json").version}catch{console.log("no require")}return Ia});
68
+ `)}return K}function qe(W,K){var Z={},Q=W.style||{};return Q.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),Q.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=k(K,Z)),parseFloat(Q.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ne(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var Q=function(se,ue){return ue=ue.replace(/[^\u00a0]/g,""),ue.length<1&&se?" ":ue};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,Q.bind(Q,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,Q.bind(Q,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,Q.bind(Q,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=Y,t.matchNewline=de,t.matchSpacing=ve,t.matchText=Ne},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(c.default);d.blotName="bold",d.tagName=["STRONG","B"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function E(x,P){var R=[],D=!0,B=!1,U=void 0;try{for(var V=x[Symbol.iterator](),q;!(D=(q=V.next()).done)&&(R.push(q.value),!(P&&R.length===P));D=!0);}catch($){B=!0,U=$}finally{try{!D&&V.return&&V.return()}finally{if(B)throw U}}return R}return function(x,P){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return E(x,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function E(x,P){for(var R=0;R<P.length;R++){var D=P[R];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(x,D.key,D)}}return function(x,P,R){return P&&E(x.prototype,P),R&&E(x,R),x}}(),f=o(2),c=m(f),h=o(0),u=m(h),l=o(5),s=m(l),d=o(10),v=m(d),p=o(9),b=m(p);function m(E){return E&&E.__esModule?E:{default:E}}function g(E,x,P){return x in E?Object.defineProperty(E,x,{value:P,enumerable:!0,configurable:!0,writable:!0}):E[x]=P,E}function _(E,x){if(!(E instanceof x))throw new TypeError("Cannot call a class as a function")}function y(E,x){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:E}function O(E,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);E.prototype=Object.create(x&&x.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(E,x):E.__proto__=x)}var N=(0,v.default)("quill:toolbar"),T=function(E){O(x,E);function x(P,R){_(this,x);var D=y(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,P,R));if(Array.isArray(D.options.container)){var B=document.createElement("div");I(B,D.options.container),P.container.parentNode.insertBefore(B,P.container),D.container=B}else typeof D.options.container=="string"?D.container=document.querySelector(D.options.container):D.container=D.options.container;if(!(D.container instanceof HTMLElement)){var U;return U=N.error("Container required for toolbar",D.options),y(D,U)}return D.container.classList.add("ql-toolbar"),D.controls=[],D.handlers={},Object.keys(D.options.handlers).forEach(function(V){D.addHandler(V,D.options.handlers[V])}),[].forEach.call(D.container.querySelectorAll("button, select"),function(V){D.attach(V)}),D.quill.on(s.default.events.EDITOR_CHANGE,function(V,q){V===s.default.events.SELECTION_CHANGE&&D.update(q)}),D.quill.on(s.default.events.SCROLL_OPTIMIZE,function(){var V=D.quill.selection.getRange(),q=i(V,1),$=q[0];D.update($)}),D}return a(x,[{key:"addHandler",value:function(R,D){this.handlers[R]=D}},{key:"attach",value:function(R){var D=this,B=[].find.call(R.classList,function(V){return V.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),R.tagName==="BUTTON"&&R.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){N.warn("ignoring attaching to disabled format",B,R);return}if(u.default.query(B)==null){N.warn("ignoring attaching to nonexistent format",B,R);return}}var U=R.tagName==="SELECT"?"change":"click";R.addEventListener(U,function(V){var q=void 0;if(R.tagName==="SELECT"){if(R.selectedIndex<0)return;var $=R.options[R.selectedIndex];$.hasAttribute("selected")?q=!1:q=$.value||!1}else R.classList.contains("ql-active")?q=!1:q=R.value||!R.hasAttribute("value"),V.preventDefault();D.quill.focus();var S=D.quill.selection.getRange(),C=i(S,1),k=C[0];if(D.handlers[B]!=null)D.handlers[B].call(D,q);else if(u.default.query(B).prototype instanceof u.default.Embed){if(q=prompt("Enter "+B),!q)return;D.quill.updateContents(new c.default().retain(k.index).delete(k.length).insert(g({},B,q)),s.default.sources.USER)}else D.quill.format(B,q,s.default.sources.USER);D.update(k)}),this.controls.push([B,R])}}},{key:"update",value:function(R){var D=R==null?{}:this.quill.getFormat(R);this.controls.forEach(function(B){var U=i(B,2),V=U[0],q=U[1];if(q.tagName==="SELECT"){var $=void 0;if(R==null)$=null;else if(D[V]==null)$=q.querySelector("option[selected]");else if(!Array.isArray(D[V])){var S=D[V];typeof S=="string"&&(S=S.replace(/\"/g,'\\"')),$=q.querySelector('option[value="'+S+'"]')}$==null?(q.value="",q.selectedIndex=-1):$.selected=!0}else if(R==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=D[V]===q.getAttribute("value")||D[V]!=null&&D[V].toString()===q.getAttribute("value")||D[V]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",D[V]!=null)})}}]),x}(b.default);T.DEFAULTS={};function A(E,x,P){var R=document.createElement("button");R.setAttribute("type","button"),R.classList.add("ql-"+x),P!=null&&(R.value=P),E.appendChild(R)}function I(E,x){Array.isArray(x[0])||(x=[x]),x.forEach(function(P){var R=document.createElement("span");R.classList.add("ql-formats"),P.forEach(function(D){if(typeof D=="string")A(R,D);else{var B=Object.keys(D)[0],U=D[B];Array.isArray(U)?w(R,B,U):A(R,B,U)}}),E.appendChild(R)})}function w(E,x,P){var R=document.createElement("select");R.classList.add("ql-"+x),P.forEach(function(D){var B=document.createElement("option");D!==!1?B.setAttribute("value",D):B.setAttribute("selected","selected"),R.appendChild(B)}),E.appendChild(R)}T.DEFAULTS={container:null,handlers:{clean:function(){var x=this,P=this.quill.getSelection();if(P!=null)if(P.length==0){var R=this.quill.getFormat();Object.keys(R).forEach(function(D){u.default.query(D,u.default.Scope.INLINE)!=null&&x.quill.format(D,!1)})}else this.quill.removeFormat(P,s.default.sources.USER)},direction:function(x){var P=this.quill.getFormat().align;x==="rtl"&&P==null?this.quill.format("align","right",s.default.sources.USER):!x&&P==="right"&&this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",x,s.default.sources.USER)},indent:function(x){var P=this.quill.getSelection(),R=this.quill.getFormat(P),D=parseInt(R.indent||0);if(x==="+1"||x==="-1"){var B=x==="+1"?1:-1;R.direction==="rtl"&&(B*=-1),this.quill.format("indent",D+B,s.default.sources.USER)}},link:function(x){x===!0&&(x=prompt("Enter link URL:")),this.quill.format("link",x,s.default.sources.USER)},list:function(x){var P=this.quill.getSelection(),R=this.quill.getFormat(P);x==="check"?R.list==="checked"||R.list==="unchecked"?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",x,s.default.sources.USER)}}},t.default=T,t.addControls=I},function(n,t){n.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(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(b,m){u(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.label.innerHTML=m,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),g}return i(p,[{key:"buildItem",value:function(m){var g=a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return g.style.backgroundColor=m.getAttribute("value")||"",g}},{key:"selectItem",value:function(m,g){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g);var _=this.label.querySelector(".ql-color-label"),y=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=y:_.style.fill=y)}}]),p}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(28),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(b,m){u(this,p);var g=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return i(p,[{key:"selectItem",value:function(m,g){a(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,g),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(c.default);t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function c(h,u){for(var l=0;l<u.length;l++){var s=u[l];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(h,s.key,s)}}return function(h,u,l){return u&&c(h.prototype,u),l&&c(h,l),h}}();function a(c,h){if(!(c instanceof h))throw new TypeError("Cannot call a class as a function")}var f=function(){function c(h,u){var l=this;a(this,c),this.quill=h,this.boundsContainer=u||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(u){var l=u.left+u.width/2-this.root.offsetWidth/2,s=u.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=s+"px",this.root.classList.remove("ql-flip");var d=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>d.right&&(p=d.right-v.right,this.root.style.left=l+p+"px"),v.left<d.left&&(p=d.left-v.left,this.root.style.left=l+p+"px"),v.bottom>d.bottom){var b=v.bottom-v.top,m=u.bottom-u.top+b;this.root.style.top=s-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c}();t.default=f},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(E,x){var P=[],R=!0,D=!1,B=void 0;try{for(var U=E[Symbol.iterator](),V;!(R=(V=U.next()).done)&&(P.push(V.value),!(x&&P.length===x));R=!0);}catch(q){D=!0,B=q}finally{try{!R&&U.return&&U.return()}finally{if(D)throw B}}return P}return function(E,x){if(Array.isArray(E))return E;if(Symbol.iterator in Object(E))return w(E,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function w(E,x,P){E===null&&(E=Function.prototype);var R=Object.getOwnPropertyDescriptor(E,x);if(R===void 0){var D=Object.getPrototypeOf(E);return D===null?void 0:w(D,x,P)}else{if("value"in R)return R.value;var B=R.get;return B===void 0?void 0:B.call(P)}},f=function(){function w(E,x){for(var P=0;P<x.length;P++){var R=x[P];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(E,R.key,R)}}return function(E,x,P){return x&&w(E.prototype,x),P&&w(E,P),E}}(),c=o(3),h=_(c),u=o(8),l=_(u),s=o(43),d=_(s),v=o(27),p=_(v),b=o(15),m=o(41),g=_(m);function _(w){return w&&w.__esModule?w:{default:w}}function y(w,E){if(!(w instanceof E))throw new TypeError("Cannot call a class as a function")}function O(w,E){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:w}function N(w,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);w.prototype=Object.create(E&&E.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(w,E):w.__proto__=E)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(w){N(E,w);function E(x,P){y(this,E),P.modules.toolbar!=null&&P.modules.toolbar.container==null&&(P.modules.toolbar.container=T);var R=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return R.quill.container.classList.add("ql-snow"),R}return f(E,[{key:"extendToolbar",value:function(P){P.container.classList.add("ql-snow"),this.buildButtons([].slice.call(P.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(P.container.querySelectorAll("select")),g.default),this.tooltip=new I(this.quill,this.options.bounds),P.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(R,D){P.handlers.link.call(P,!D.format.link)})}}]),E}(d.default);A.DEFAULTS=(0,h.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(E){if(E){var x=this.quill.getSelection();if(x==null||x.length==0)return;var P=this.quill.getText(x);/^\S+@\S+\.\S+$/.test(P)&&P.indexOf("mailto:")!==0&&(P="mailto:"+P);var R=this.quill.theme.tooltip;R.edit("link",P)}else this.quill.format("link",!1)}}}}});var I=function(w){N(E,w);function E(x,P){y(this,E);var R=O(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,x,P));return R.preview=R.root.querySelector("a.ql-preview"),R}return f(E,[{key:"listen",value:function(){var P=this;a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(R){P.root.classList.contains("ql-editing")?P.save():P.edit("link",P.preview.textContent),R.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(R){if(P.linkRange!=null){var D=P.linkRange;P.restoreFocus(),P.quill.formatText(D,"link",!1,l.default.sources.USER),delete P.linkRange}R.preventDefault(),P.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(R,D,B){if(R!=null){if(R.length===0&&B===l.default.sources.USER){var U=P.quill.scroll.descendant(p.default,R.index),V=i(U,2),q=V[0],$=V[1];if(q!=null){P.linkRange=new b.Range(R.index-$,q.length());var S=p.default.formats(q.domNode);P.preview.textContent=S,P.preview.setAttribute("href",S),P.show(),P.position(P.quill.getBounds(P.linkRange));return}}else delete P.linkRange;P.hide()}})}},{key:"show",value:function(){a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),E}(s.BaseTooltip);I.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(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),a=X(i),f=o(36),c=o(38),h=o(64),u=o(65),l=X(u),s=o(66),d=X(s),v=o(67),p=X(v),b=o(37),m=o(26),g=o(39),_=o(40),y=o(56),O=X(y),N=o(68),T=X(N),A=o(27),I=X(A),w=o(69),E=X(w),x=o(70),P=X(x),R=o(71),D=X(R),B=o(72),U=X(B),V=o(73),q=X(V),$=o(13),S=X($),C=o(74),k=X(C),F=o(75),j=X(F),L=o(57),M=X(L),H=o(41),z=X(H),Y=o(28),ee=X(Y),re=o(59),ae=X(re),de=o(60),ve=X(de),qe=o(61),Ne=X(qe),W=o(108),K=X(W),Z=o(62),Q=X(Z);function X(se){return se&&se.__esModule?se:{default:se}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":f.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":f.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":_.SizeStyle},!0),a.default.register({"formats/align":f.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":g.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":S.default,"formats/header":d.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":$.Code,"formats/italic":T.default,"formats/link":I.default,"formats/script":E.default,"formats/strike":P.default,"formats/underline":D.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":k.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":Q.default,"ui/icons":z.default,"ui/picker":ee.default,"ui/icon-picker":ve.default,"ui/color-picker":ae.default,"ui/tooltip":Ne.default},!0),t.default=a.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var g=0;g<m.length;g++){var _=m[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,g){return m&&p(b.prototype,m),g&&p(b,g),b}}(),a=function p(b,m,g){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var y=Object.getPrototypeOf(b);return y===null?void 0:p(y,m,g)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(g)}},f=o(0),c=h(f);function h(p){return p&&p.__esModule?p:{default:p}}function u(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function s(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var d=function(p){s(b,p);function b(){return u(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(g,_){if(_==="+1"||_==="-1"){var y=this.value(g)||0;_=_==="+1"?y+1:y-1}return _===0?(this.remove(g),!0):a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,g,_)}},{key:"canAdd",value:function(g,_){return a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,_)||a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,g,parseInt(_))}},{key:"value",value:function(g){return parseInt(a(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,g))||void 0}}]),b}(c.default.Attributor.Class),v=new d("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function d(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&d(v.prototype,p),b&&d(v,b),v}}(),a=o(4),f=c(a);function c(d){return d&&d.__esModule?d:{default:d}}function h(d,v){if(!(d instanceof v))throw new TypeError("Cannot call a class as a function")}function u(d,v){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:d}function l(d,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);d.prototype=Object.create(v&&v.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(d,v):d.__proto__=v)}var s=function(d){l(v,d);function v(){return h(this,v),u(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(f.default);s.blotName="header",s.tagName=["H1","H2","H3","H4","H5","H6"],t.default=s},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function y(O,N){for(var T=0;T<N.length;T++){var A=N[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,N,T){return N&&y(O.prototype,N),T&&y(O,T),O}}(),a=function y(O,N,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,N);if(A===void 0){var I=Object.getPrototypeOf(O);return I===null?void 0:y(I,N,T)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(T)}},f=o(0),c=d(f),h=o(4),u=d(h),l=o(25),s=d(l);function d(y){return y&&y.__esModule?y:{default:y}}function v(y,O,N){return O in y?Object.defineProperty(y,O,{value:N,enumerable:!0,configurable:!0,writable:!0}):y[O]=N,y}function p(y,O){if(!(y instanceof O))throw new TypeError("Cannot call a class as a function")}function b(y,O){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:y}function m(y,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);y.prototype=Object.create(O&&O.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(y,O):y.__proto__=O)}var g=function(y){m(O,y);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(c.default.create(this.statics.scope)):a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:a(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(u.default);g.blotName="list-item",g.tagName="LI";var _=function(y){m(O,y),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",I=a(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&I.setAttribute("data-checked",T==="checked"),I}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(N){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,N)),A=function(w){if(w.target.parentNode===N){var E=T.statics.formats(N),x=c.default.find(w.target);E==="checked"?x.format("list","unchecked"):E==="unchecked"&&x.format("list","checked")}};return N.addEventListener("touchstart",A),N.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof g)a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var I=A==null?this.length():A.offset(this),w=this.split(I);w.parent.insertBefore(T,w)}}},{key:"optimize",value:function(T){a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=c.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}a(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(s.default);_.blotName="list",_.scope=c.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[g],t.ListItem=g,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),a=function v(p,b,m){p===null&&(p=Function.prototype);var g=Object.getOwnPropertyDescriptor(p,b);if(g===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in g)return g.value;var y=g.get;return y===void 0?void 0:y.call(m)}},f=o(6),c=h(f);function h(v){return v&&v.__esModule?v:{default:v}}function u(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function s(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var d=function(v){s(p,v);function p(){return u(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):a(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(c.default);d.blotName="script",d.tagName=["SUB","SUP"],t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),a=f(i);function f(s){return s&&s.__esModule?s:{default:s}}function c(s,d){if(!(s instanceof d))throw new TypeError("Cannot call a class as a function")}function h(s,d){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:s}function u(s,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);s.prototype=Object.create(d&&d.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(s,d):s.__proto__=d)}var l=function(s){u(d,s);function d(){return c(this,d),h(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return d}(a.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(0),c=u(f),h=o(27);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(c.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,g,_){return g&&b(m.prototype,g),_&&b(m,_),m}}(),a=function b(m,g,_){m===null&&(m=Function.prototype);var y=Object.getOwnPropertyDescriptor(m,g);if(y===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,g,_)}else{if("value"in y)return y.value;var N=y.get;return N===void 0?void 0:N.call(_)}},f=o(4),c=o(27),h=u(c);function u(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function s(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function d(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){d(m,b);function m(){return l(this,m),s(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,y){v.indexOf(_)>-1?y?this.domNode.setAttribute(_,y):this.domNode.removeAttribute(_):a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,y)}}],[{key:"create",value:function(_){var y=a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return y.setAttribute("frameborder","0"),y.setAttribute("allowfullscreen",!0),y.setAttribute("src",this.sanitize(_)),y}},{key:"formats",value:function(_){return v.reduce(function(y,O){return _.hasAttribute(O)&&(y[O]=_.getAttribute(O)),y},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(f.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(y,O){for(var N=0;N<O.length;N++){var T=O[N];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(y,T.key,T)}}return function(y,O,N){return O&&_(y.prototype,O),N&&_(y,N),y}}(),a=function _(y,O,N){y===null&&(y=Function.prototype);var T=Object.getOwnPropertyDescriptor(y,O);if(T===void 0){var A=Object.getPrototypeOf(y);return A===null?void 0:_(A,O,N)}else{if("value"in T)return T.value;var I=T.get;return I===void 0?void 0:I.call(N)}},f=o(35),c=d(f),h=o(5),u=d(h),l=o(9),s=d(l);function d(_){return _&&_.__esModule?_:{default:_}}function v(_,y){if(!(_ instanceof y))throw new TypeError("Cannot call a class as a function")}function p(_,y){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:_}function b(_,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);_.prototype=Object.create(y&&y.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(_,y):_.__proto__=y)}var m=function(_){b(y,_);function y(){return v(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return i(y,null,[{key:"create",value:function(N){var T=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,N);return typeof N=="string"&&(window.katex.render(N,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",N)),T}},{key:"value",value:function(N){return N.getAttribute("data-value")}}]),y}(c.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var g=function(_){b(y,_),i(y,null,[{key:"register",value:function(){u.default.register(m,!0)}}]);function y(){v(this,y);var O=p(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return y}(s.default);t.FormulaBlot=m,t.default=g},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function N(T,A){for(var I=0;I<A.length;I++){var w=A[I];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,A,I){return A&&N(T.prototype,A),I&&N(T,I),T}}(),a=function N(T,A,I){T===null&&(T=Function.prototype);var w=Object.getOwnPropertyDescriptor(T,A);if(w===void 0){var E=Object.getPrototypeOf(T);return E===null?void 0:N(E,A,I)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(I)}},f=o(0),c=p(f),h=o(5),u=p(h),l=o(9),s=p(l),d=o(13),v=p(d);function p(N){return N&&N.__esModule?N:{default:N}}function b(N,T){if(!(N instanceof T))throw new TypeError("Cannot call a class as a function")}function m(N,T){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:N}function g(N,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);N.prototype=Object.create(T&&T.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(N,T):N.__proto__=T)}var _=function(N){g(T,N);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(I){this.domNode.textContent=this.domNode.textContent,this.attach(),a(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,I)}},{key:"highlight",value:function(I){var w=this.domNode.textContent;this.cachedText!==w&&((w.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=I(w),this.domNode.normalize(),this.attach()),this.cachedText=w)}}]),T}(v.default);_.className="ql-syntax";var y=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),O=function(N){g(T,N),i(T,null,[{key:"register",value:function(){u.default.register(y,!0),u.default.register(_,!0)}}]);function T(A,I){b(this,T);var w=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,I));if(typeof w.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var E=null;return w.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(E),E=setTimeout(function(){w.highlight(),E=null},w.options.interval)}),w.highlight(),w}return i(T,[{key:"highlight",value:function(){var I=this;if(!this.quill.selection.composing){this.quill.update(u.default.sources.USER);var w=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(E){E.highlight(I.options.highlight)}),this.quill.update(u.default.sources.SILENT),w!=null&&this.quill.setSelection(w,u.default.sources.SILENT)}}}]),T}(s.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(N){var T=window.hljs.highlightAuto(N);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=y,t.default=O},function(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t){n.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(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,I,w){A===null&&(A=Function.prototype);var E=Object.getOwnPropertyDescriptor(A,I);if(E===void 0){var x=Object.getPrototypeOf(A);return x===null?void 0:T(x,I,w)}else{if("value"in E)return E.value;var P=E.get;return P===void 0?void 0:P.call(w)}},a=function(){function T(A,I){for(var w=0;w<I.length;w++){var E=I[w];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(A,E.key,E)}}return function(A,I,w){return I&&T(A.prototype,I),w&&T(A,w),A}}(),f=o(3),c=b(f),h=o(8),u=b(h),l=o(43),s=b(l),d=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function g(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(I,w){m(this,A),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=y);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.container.classList.add("ql-bubble"),E}return a(A,[{key:"extendToolbar",value:function(w){this.tooltip=new N(this.quill,this.options.bounds),this.tooltip.root.appendChild(w.container),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),p.default)}}]),A}(s.default);O.DEFAULTS=(0,c.default)(!0,{},s.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var N=function(T){_(A,T);function A(I,w){m(this,A);var E=g(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,I,w));return E.quill.on(u.default.events.EDITOR_CHANGE,function(x,P,R,D){if(x===u.default.events.SELECTION_CHANGE)if(P!=null&&P.length>0&&D===u.default.sources.USER){E.show(),E.root.style.left="0px",E.root.style.width="",E.root.style.width=E.root.offsetWidth+"px";var B=E.quill.getLines(P.index,P.length);if(B.length===1)E.position(E.quill.getBounds(P));else{var U=B[B.length-1],V=E.quill.getIndex(U),q=Math.min(U.length()-1,P.index+P.length-V),$=E.quill.getBounds(new d.Range(V,q));E.position($)}}else document.activeElement!==E.textbox&&E.quill.hasFocus()&&E.hide()}),E}return a(A,[{key:"listen",value:function(){var w=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){w.root.classList.remove("ql-editing")}),this.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!w.root.classList.contains("ql-hidden")){var E=w.quill.getSelection();E!=null&&w.position(w.quill.getBounds(E))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(w){var E=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,w),x=this.root.querySelector(".ql-tooltip-arrow");if(x.style.marginLeft="",E===0)return E;x.style.marginLeft=-1*E-x.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);N.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(""),t.BubbleTooltip=N,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(xa);var Aa=Ji(xa.exports),sh="",uh="",fh="",ud=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},fd=[],ch="";const cd={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:zn(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new Aa(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new Aa(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},Ta={};var dd=Ce(cd,ud,fd,!1,hd,"009bd892",null,null);function hd(e){for(let r in Ta)this[r]=Ta[r]}var rr=function(){return dd.exports}();rr.install=e=>{e.component(rr.name,rr)};const Ca=rr;var pd=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},vd=[];const md={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},Na={};var yd=Ce(md,pd,vd,!1,gd,null,null,null);function gd(e){for(let r in Na)this[r]=Na[r]}var bd=function(){return yd.exports}();const _d=je.default.extend(bd);var Od={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),a=e.getAttribute("element-loading-custom-class"),f=new _d({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:a,fullscreen:!1}});e.instance=f,e.mask=f.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},Ed=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},Sd=[],hh="";const un={confirm:"confirm",cancel:"cancel"},wd={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=gt(ye({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(un.cancel)},triggerCallBack(e){const r={[un.confirm]:"beforeConfirm",[un.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===un.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(un.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Pa={};var xd=Ce(wd,Ed,Sd,!1,Ad,null,null,null);function Ad(e){for(let r in Pa)this[r]=Pa[r]}var Td=function(){return xd.exports}();const Cd={title:"",items:[]},Nd=je.default.extend(Td);let ka,fn,fi=[];const Pd=()=>{fn=new Nd({el:document.createElement("div")})},kd=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Id=e=>{const r=kd(e.items);Object.entries(gt(ye({},e),{formData:r})).forEach(([n,t])=>{fn[n]=t}),document.body.appendChild(fn.$el),je.default.nextTick(()=>{fn.visible=!0})},Ld=()=>{fn||Pd(),fi.length>0&&(ka=fi.shift(),Id(ka))},Rd=e=>new Promise((r,n)=>{fi.push(gt(ye(ye({},Cd),e),{resolve:r,reject:n})),Ld()}),Dd=[zi,Gi,Ki,Xi,io,so,co,Bo,_a,Ea,wa,Ca],Ia={version:"dev",install:(e,r={config:{}})=>{Dd.forEach(i=>e.component(i.name,i));const n={tablePreset:{separator:"@",presetPropMap:{image(i,{field:a,params:f}){const c=i[a].split("|"),h=f.size||59;return["com-image",{attrs:{src:c,size:h,lazy:!0}}]},link(i,{field:a,params:f}){const c=i[a];let{target:h,href:u,type:l,underline:s}=f;return h=h||"_blank",u=i[u]||c,l=l||"primary",s=!!s,["el-link",{attrs:{target:h,href:u,type:l,underline:s}},c]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ye(ye({},n),r.config),Object.entries(Od).forEach(([i,a])=>{e.directive(i,a)}),e.prototype.$formDialog=Rd,e.prototype.$jump=(i,a="_blank")=>{window.open(i,a)};const t=new e;e.prototype.$toChildren=t;const o=Xl.create({headers:{["Login-Token"]:r.config.token}});e.prototype.$http=o},ComTemplate:zi,ComMenu:Gi,ComTabs:Ki,ComTool:Xi,ComDialog:io,ComFormItem:so,ComOperation:co,ComSearch:Bo,ComTable:_a,ComImage:Ea,ComContainer:wa,ComEditor:Ca};try{Ia.version=require("../package.json").version}catch{console.log("no require")}return Ia});
69
69
  //# sourceMappingURL=tenghui-ui.umd.js.map