common-chatbox-v3
Version:
Common ChatBox V3
876 lines • 597 kB
JavaScript
(function(nn,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],c):(nn=typeof globalThis<"u"?globalThis:nn||self,c(nn["common-chatbox"]={},nn.Vue))})(this,function(nn,c){"use strict";function hi(e,o){return function(){return e.apply(o,arguments)}}const{toString:Eu}=Object.prototype,{getPrototypeOf:No}=Object,Tr=(e=>o=>{const n=Eu.call(o);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ct=e=>(e=e.toLowerCase(),o=>Tr(o)===e),Dr=e=>o=>typeof o===e,{isArray:Dn}=Array,$n=Dr("undefined");function Su(e){return e!==null&&!$n(e)&&e.constructor!==null&&!$n(e.constructor)&&nt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mi=Ct("ArrayBuffer");function xu(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&mi(e.buffer),o}const wu=Dr("string"),nt=Dr("function"),vi=Dr("number"),Mr=e=>e!==null&&typeof e=="object",Tu=e=>e===!0||e===!1,br=e=>{if(Tr(e)!=="object")return!1;const o=No(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Du=Ct("Date"),Mu=Ct("File"),bu=Ct("Blob"),Nu=Ct("FileList"),Ru=e=>Mr(e)&&nt(e.pipe),Iu=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||nt(e.append)&&((o=Tr(e))==="formdata"||o==="object"&&nt(e.toString)&&e.toString()==="[object FormData]"))},Pu=Ct("URLSearchParams"),[Ou,Lu,Bu,Fu]=["ReadableStream","Request","Response","Headers"].map(Ct),Hu=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Wn(e,o,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,t;if(typeof e!="object"&&(e=[e]),Dn(e))for(r=0,t=e.length;r<t;r++)o.call(null,e[r],r,e);else{const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let l;for(r=0;r<i;r++)l=a[r],o.call(null,e[l],l,e)}}function pi(e,o){o=o.toLowerCase();const n=Object.keys(e);let r=n.length,t;for(;r-- >0;)if(t=n[r],o===t.toLowerCase())return t;return null}const cn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gi=e=>!$n(e)&&e!==cn;function Ro(){const{caseless:e}=gi(this)&&this||{},o={},n=(r,t)=>{const a=e&&pi(o,t)||t;br(o[a])&&br(r)?o[a]=Ro(o[a],r):br(r)?o[a]=Ro({},r):Dn(r)?o[a]=r.slice():o[a]=r};for(let r=0,t=arguments.length;r<t;r++)arguments[r]&&Wn(arguments[r],n);return o}const Vu=(e,o,n,{allOwnKeys:r}={})=>(Wn(o,(t,a)=>{n&&nt(t)?e[a]=hi(t,n):e[a]=t},{allOwnKeys:r}),e),ku=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Uu=(e,o,n,r)=>{e.prototype=Object.create(o.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),n&&Object.assign(e.prototype,n)},Yu=(e,o,n,r)=>{let t,a,i;const l={};if(o=o||{},e==null)return o;do{for(t=Object.getOwnPropertyNames(e),a=t.length;a-- >0;)i=t[a],(!r||r(i,e,o))&&!l[i]&&(o[i]=e[i],l[i]=!0);e=n!==!1&&No(e)}while(e&&(!n||n(e,o))&&e!==Object.prototype);return o},ju=(e,o,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=o.length;const r=e.indexOf(o,n);return r!==-1&&r===n},zu=e=>{if(!e)return null;if(Dn(e))return e;let o=e.length;if(!vi(o))return null;const n=new Array(o);for(;o-- >0;)n[o]=e[o];return n},$u=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&No(Uint8Array)),Wu=(e,o)=>{const r=(e&&e[Symbol.iterator]).call(e);let t;for(;(t=r.next())&&!t.done;){const a=t.value;o.call(e,a[0],a[1])}},Gu=(e,o)=>{let n;const r=[];for(;(n=e.exec(o))!==null;)r.push(n);return r},Qu=Ct("HTMLFormElement"),Ju=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,t){return r.toUpperCase()+t}),yi=(({hasOwnProperty:e})=>(o,n)=>e.call(o,n))(Object.prototype),Ku=Ct("RegExp"),Ai=(e,o)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Wn(n,(t,a)=>{let i;(i=o(t,a,e))!==!1&&(r[a]=i||t)}),Object.defineProperties(e,r)},Zu=e=>{Ai(e,(o,n)=>{if(nt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(nt(r)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xu=(e,o)=>{const n={},r=t=>{t.forEach(a=>{n[a]=!0})};return Dn(e)?r(e):r(String(e).split(o)),n},qu=()=>{},_u=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o,Io="abcdefghijklmnopqrstuvwxyz",Ci="0123456789",Ei={DIGIT:Ci,ALPHA:Io,ALPHA_DIGIT:Io+Io.toUpperCase()+Ci},ed=(e=16,o=Ei.ALPHA_DIGIT)=>{let n="";const{length:r}=o;for(;e--;)n+=o[Math.random()*r|0];return n};function td(e){return!!(e&&nt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nd=e=>{const o=new Array(10),n=(r,t)=>{if(Mr(r)){if(o.indexOf(r)>=0)return;if(!("toJSON"in r)){o[t]=r;const a=Dn(r)?[]:{};return Wn(r,(i,l)=>{const s=n(i,t+1);!$n(s)&&(a[l]=s)}),o[t]=void 0,a}}return r};return n(e,0)},rd=Ct("AsyncFunction"),od=e=>e&&(Mr(e)||nt(e))&&nt(e.then)&&nt(e.catch),Si=((e,o)=>e?setImmediate:o?((n,r)=>(cn.addEventListener("message",({source:t,data:a})=>{t===cn&&a===n&&r.length&&r.shift()()},!1),t=>{r.push(t),cn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",nt(cn.postMessage)),ad=typeof queueMicrotask<"u"?queueMicrotask.bind(cn):typeof process<"u"&&process.nextTick||Si,U={isArray:Dn,isArrayBuffer:mi,isBuffer:Su,isFormData:Iu,isArrayBufferView:xu,isString:wu,isNumber:vi,isBoolean:Tu,isObject:Mr,isPlainObject:br,isReadableStream:Ou,isRequest:Lu,isResponse:Bu,isHeaders:Fu,isUndefined:$n,isDate:Du,isFile:Mu,isBlob:bu,isRegExp:Ku,isFunction:nt,isStream:Ru,isURLSearchParams:Pu,isTypedArray:$u,isFileList:Nu,forEach:Wn,merge:Ro,extend:Vu,trim:Hu,stripBOM:ku,inherits:Uu,toFlatObject:Yu,kindOf:Tr,kindOfTest:Ct,endsWith:ju,toArray:zu,forEachEntry:Wu,matchAll:Gu,isHTMLForm:Qu,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:Ai,freezeMethods:Zu,toObjectSet:Xu,toCamelCase:Ju,noop:qu,toFiniteNumber:_u,findKey:pi,global:cn,isContextDefined:gi,ALPHABET:Ei,generateString:ed,isSpecCompliantForm:td,toJSONObject:nd,isAsyncFn:rd,isThenable:od,setImmediate:Si,asap:ad};function fe(e,o,n,r,t){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),n&&(this.config=n),r&&(this.request=r),t&&(this.response=t,this.status=t.status?t.status:null)}U.inherits(fe,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:U.toJSONObject(this.config),code:this.code,status:this.status}}});const xi=fe.prototype,wi={};["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=>{wi[e]={value:e}}),Object.defineProperties(fe,wi),Object.defineProperty(xi,"isAxiosError",{value:!0}),fe.from=(e,o,n,r,t,a)=>{const i=Object.create(xi);return U.toFlatObject(e,i,function(s){return s!==Error.prototype},l=>l!=="isAxiosError"),fe.call(i,e.message,o,n,r,t),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const id=null;function Po(e){return U.isPlainObject(e)||U.isArray(e)}function Ti(e){return U.endsWith(e,"[]")?e.slice(0,-2):e}function Di(e,o,n){return e?e.concat(o).map(function(t,a){return t=Ti(t),!n&&a?"["+t+"]":t}).join(n?".":""):o}function ld(e){return U.isArray(e)&&!e.some(Po)}const sd=U.toFlatObject(U,{},null,function(o){return/^is[A-Z]/.test(o)});function Nr(e,o,n){if(!U.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,n=U.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,m){return!U.isUndefined(m[v])});const r=n.metaTokens,t=n.visitor||h,a=n.dots,i=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&U.isSpecCompliantForm(o);if(!U.isFunction(t))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(U.isDate(d))return d.toISOString();if(!s&&U.isBlob(d))throw new fe("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(d)||U.isTypedArray(d)?s&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function h(d,v,m){let A=d;if(d&&!m&&typeof d=="object"){if(U.endsWith(v,"{}"))v=r?v:v.slice(0,-2),d=JSON.stringify(d);else if(U.isArray(d)&&ld(d)||(U.isFileList(d)||U.endsWith(v,"[]"))&&(A=U.toArray(d)))return v=Ti(v),A.forEach(function(C,E){!(U.isUndefined(C)||C===null)&&o.append(i===!0?Di([v],E,a):i===null?v:v+"[]",u(C))}),!1}return Po(d)?!0:(o.append(Di(m,v,a),u(d)),!1)}const f=[],g=Object.assign(sd,{defaultVisitor:h,convertValue:u,isVisitable:Po});function p(d,v){if(!U.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(d),U.forEach(d,function(A,y){(!(U.isUndefined(A)||A===null)&&t.call(o,A,U.isString(y)?y.trim():y,v,g))===!0&&p(A,v?v.concat(y):[y])}),f.pop()}}if(!U.isObject(e))throw new TypeError("data must be an object");return p(e),o}function Mi(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return o[r]})}function Oo(e,o){this._pairs=[],e&&Nr(e,this,o)}const bi=Oo.prototype;bi.append=function(o,n){this._pairs.push([o,n])},bi.toString=function(o){const n=o?function(r){return o.call(this,r,Mi)}:Mi;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};function cd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ni(e,o,n){if(!o)return e;const r=n&&n.encode||cd,t=n&&n.serialize;let a;if(t?a=t(o,n):a=U.isURLSearchParams(o)?o.toString():new Oo(o,n).toString(r),a){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Ri{constructor(){this.handlers=[]}use(o,n,r){return this.handlers.push({fulfilled:o,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){U.forEach(this.handlers,function(r){r!==null&&o(r)})}}const Ii={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ud={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Oo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Lo=typeof window<"u"&&typeof document<"u",Bo=typeof navigator=="object"&&navigator||void 0,dd=Lo&&(!Bo||["ReactNative","NativeScript","NS"].indexOf(Bo.product)<0),fd=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hd=Lo&&window.location.href||"http://localhost",Xe={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Lo,hasStandardBrowserEnv:dd,hasStandardBrowserWebWorkerEnv:fd,navigator:Bo,origin:hd},Symbol.toStringTag,{value:"Module"})),...ud};function md(e,o){return Nr(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,r,t,a){return Xe.isNode&&U.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},o))}function vd(e){return U.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function pd(e){const o={},n=Object.keys(e);let r;const t=n.length;let a;for(r=0;r<t;r++)a=n[r],o[a]=e[a];return o}function Pi(e){function o(n,r,t,a){let i=n[a++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),s=a>=n.length;return i=!i&&U.isArray(t)?t.length:i,s?(U.hasOwnProp(t,i)?t[i]=[t[i],r]:t[i]=r,!l):((!t[i]||!U.isObject(t[i]))&&(t[i]=[]),o(n,r,t[i],a)&&U.isArray(t[i])&&(t[i]=pd(t[i])),!l)}if(U.isFormData(e)&&U.isFunction(e.entries)){const n={};return U.forEachEntry(e,(r,t)=>{o(vd(r),t,n,0)}),n}return null}function gd(e,o,n){if(U.isString(e))try{return(o||JSON.parse)(e),U.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Gn={transitional:Ii,adapter:["xhr","http","fetch"],transformRequest:[function(o,n){const r=n.getContentType()||"",t=r.indexOf("application/json")>-1,a=U.isObject(o);if(a&&U.isHTMLForm(o)&&(o=new FormData(o)),U.isFormData(o))return t?JSON.stringify(Pi(o)):o;if(U.isArrayBuffer(o)||U.isBuffer(o)||U.isStream(o)||U.isFile(o)||U.isBlob(o)||U.isReadableStream(o))return o;if(U.isArrayBufferView(o))return o.buffer;if(U.isURLSearchParams(o))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return md(o,this.formSerializer).toString();if((l=U.isFileList(o))||r.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return Nr(l?{"files[]":o}:o,s&&new s,this.formSerializer)}}return a||t?(n.setContentType("application/json",!1),gd(o)):o}],transformResponse:[function(o){const n=this.transitional||Gn.transitional,r=n&&n.forcedJSONParsing,t=this.responseType==="json";if(U.isResponse(o)||U.isReadableStream(o))return o;if(o&&U.isString(o)&&(r&&!this.responseType||t)){const i=!(n&&n.silentJSONParsing)&&t;try{return JSON.parse(o)}catch(l){if(i)throw l.name==="SyntaxError"?fe.from(l,fe.ERR_BAD_RESPONSE,this,null,this.response):l}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};U.forEach(["delete","get","head","post","put","patch"],e=>{Gn.headers[e]={}});const yd=U.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"]),Ad=e=>{const o={};let n,r,t;return e&&e.split(`
`).forEach(function(i){t=i.indexOf(":"),n=i.substring(0,t).trim().toLowerCase(),r=i.substring(t+1).trim(),!(!n||o[n]&&yd[n])&&(n==="set-cookie"?o[n]?o[n].push(r):o[n]=[r]:o[n]=o[n]?o[n]+", "+r:r)}),o},Oi=Symbol("internals");function Qn(e){return e&&String(e).trim().toLowerCase()}function Rr(e){return e===!1||e==null?e:U.isArray(e)?e.map(Rr):String(e)}function Cd(e){const o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)o[r[1]]=r[2];return o}const Ed=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fo(e,o,n,r,t){if(U.isFunction(r))return r.call(this,o,n);if(t&&(o=n),!!U.isString(o)){if(U.isString(r))return o.indexOf(r)!==-1;if(U.isRegExp(r))return r.test(o)}}function Sd(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,n,r)=>n.toUpperCase()+r)}function xd(e,o){const n=U.toCamelCase(" "+o);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(t,a,i){return this[r].call(this,o,t,a,i)},configurable:!0})})}class qe{constructor(o){o&&this.set(o)}set(o,n,r){const t=this;function a(l,s,u){const h=Qn(s);if(!h)throw new Error("header name must be a non-empty string");const f=U.findKey(t,h);(!f||t[f]===void 0||u===!0||u===void 0&&t[f]!==!1)&&(t[f||s]=Rr(l))}const i=(l,s)=>U.forEach(l,(u,h)=>a(u,h,s));if(U.isPlainObject(o)||o instanceof this.constructor)i(o,n);else if(U.isString(o)&&(o=o.trim())&&!Ed(o))i(Ad(o),n);else if(U.isHeaders(o))for(const[l,s]of o.entries())a(s,l,r);else o!=null&&a(n,o,r);return this}get(o,n){if(o=Qn(o),o){const r=U.findKey(this,o);if(r){const t=this[r];if(!n)return t;if(n===!0)return Cd(t);if(U.isFunction(n))return n.call(this,t,r);if(U.isRegExp(n))return n.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,n){if(o=Qn(o),o){const r=U.findKey(this,o);return!!(r&&this[r]!==void 0&&(!n||Fo(this,this[r],r,n)))}return!1}delete(o,n){const r=this;let t=!1;function a(i){if(i=Qn(i),i){const l=U.findKey(r,i);l&&(!n||Fo(r,r[l],l,n))&&(delete r[l],t=!0)}}return U.isArray(o)?o.forEach(a):a(o),t}clear(o){const n=Object.keys(this);let r=n.length,t=!1;for(;r--;){const a=n[r];(!o||Fo(this,this[a],a,o,!0))&&(delete this[a],t=!0)}return t}normalize(o){const n=this,r={};return U.forEach(this,(t,a)=>{const i=U.findKey(r,a);if(i){n[i]=Rr(t),delete n[a];return}const l=o?Sd(a):String(a).trim();l!==a&&delete n[a],n[l]=Rr(t),r[l]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const n=Object.create(null);return U.forEach(this,(r,t)=>{r!=null&&r!==!1&&(n[t]=o&&U.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,n])=>o+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...n){const r=new this(o);return n.forEach(t=>r.set(t)),r}static accessor(o){const r=(this[Oi]=this[Oi]={accessors:{}}).accessors,t=this.prototype;function a(i){const l=Qn(i);r[l]||(xd(t,i),r[l]=!0)}return U.isArray(o)?o.forEach(a):a(o),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.reduceDescriptors(qe.prototype,({value:e},o)=>{let n=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(r){this[n]=r}}}),U.freezeMethods(qe);function Ho(e,o){const n=this||Gn,r=o||n,t=qe.from(r.headers);let a=r.data;return U.forEach(e,function(l){a=l.call(n,a,t.normalize(),o?o.status:void 0)}),t.normalize(),a}function Li(e){return!!(e&&e.__CANCEL__)}function Mn(e,o,n){fe.call(this,e??"canceled",fe.ERR_CANCELED,o,n),this.name="CanceledError"}U.inherits(Mn,fe,{__CANCEL__:!0});function Bi(e,o,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):o(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wd(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function Td(e,o){e=e||10;const n=new Array(e),r=new Array(e);let t=0,a=0,i;return o=o!==void 0?o:1e3,function(s){const u=Date.now(),h=r[a];i||(i=u),n[t]=s,r[t]=u;let f=a,g=0;for(;f!==t;)g+=n[f++],f=f%e;if(t=(t+1)%e,t===a&&(a=(a+1)%e),u-i<o)return;const p=h&&u-h;return p?Math.round(g*1e3/p):void 0}}function Dd(e,o){let n=0,r=1e3/o,t,a;const i=(u,h=Date.now())=>{n=h,t=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const h=Date.now(),f=h-n;f>=r?i(u,h):(t=u,a||(a=setTimeout(()=>{a=null,i(t)},r-f)))},()=>t&&i(t)]}const Ir=(e,o,n=3)=>{let r=0;const t=Td(50,250);return Dd(a=>{const i=a.loaded,l=a.lengthComputable?a.total:void 0,s=i-r,u=t(s),h=i<=l;r=i;const f={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:u||void 0,estimated:u&&l&&h?(l-i)/u:void 0,event:a,lengthComputable:l!=null,[o?"download":"upload"]:!0};e(f)},n)},Fi=(e,o)=>{const n=e!=null;return[r=>o[0]({lengthComputable:n,total:e,loaded:r}),o[1]]},Hi=e=>(...o)=>U.asap(()=>e(...o)),Md=Xe.hasStandardBrowserEnv?function(){const o=Xe.navigator&&/(msie|trident)/i.test(Xe.navigator.userAgent),n=document.createElement("a");let r;function t(a){let i=a;return o&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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 r=t(window.location.href),function(i){const l=U.isString(i)?t(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),bd=Xe.hasStandardBrowserEnv?{write(e,o,n,r,t,a){const i=[e+"="+encodeURIComponent(o)];U.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),U.isString(r)&&i.push("path="+r),U.isString(t)&&i.push("domain="+t),a===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nd(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rd(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function Vi(e,o){return e&&!Nd(o)?Rd(e,o):o}const ki=e=>e instanceof qe?{...e}:e;function un(e,o){o=o||{};const n={};function r(u,h,f){return U.isPlainObject(u)&&U.isPlainObject(h)?U.merge.call({caseless:f},u,h):U.isPlainObject(h)?U.merge({},h):U.isArray(h)?h.slice():h}function t(u,h,f){if(U.isUndefined(h)){if(!U.isUndefined(u))return r(void 0,u,f)}else return r(u,h,f)}function a(u,h){if(!U.isUndefined(h))return r(void 0,h)}function i(u,h){if(U.isUndefined(h)){if(!U.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function l(u,h,f){if(f in o)return r(u,h);if(f in e)return r(void 0,u)}const s={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(u,h)=>t(ki(u),ki(h),!0)};return U.forEach(Object.keys(Object.assign({},e,o)),function(h){const f=s[h]||t,g=f(e[h],o[h],h);U.isUndefined(g)&&f!==l||(n[h]=g)}),n}const Ui=e=>{const o=un({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:t,xsrfCookieName:a,headers:i,auth:l}=o;o.headers=i=qe.from(i),o.url=Ni(Vi(o.baseURL,o.url),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let s;if(U.isFormData(n)){if(Xe.hasStandardBrowserEnv||Xe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((s=i.getContentType())!==!1){const[u,...h]=s?s.split(";").map(f=>f.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...h].join("; "))}}if(Xe.hasStandardBrowserEnv&&(r&&U.isFunction(r)&&(r=r(o)),r||r!==!1&&Md(o.url))){const u=t&&a&&bd.read(a);u&&i.set(t,u)}return o},Id=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,r){const t=Ui(e);let a=t.data;const i=qe.from(t.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=t,h,f,g,p,d;function v(){p&&p(),d&&d(),t.cancelToken&&t.cancelToken.unsubscribe(h),t.signal&&t.signal.removeEventListener("abort",h)}let m=new XMLHttpRequest;m.open(t.method.toUpperCase(),t.url,!0),m.timeout=t.timeout;function A(){if(!m)return;const C=qe.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:C,config:e,request:m};Bi(function(T){n(T),v()},function(T){r(T),v()},S),m=null}"onloadend"in m?m.onloadend=A:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(A)},m.onabort=function(){m&&(r(new fe("Request aborted",fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new fe("Network Error",fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let E=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const S=t.transitional||Ii;t.timeoutErrorMessage&&(E=t.timeoutErrorMessage),r(new fe(E,S.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,m)),m=null},a===void 0&&i.setContentType(null),"setRequestHeader"in m&&U.forEach(i.toJSON(),function(E,S){m.setRequestHeader(S,E)}),U.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),l&&l!=="json"&&(m.responseType=t.responseType),u&&([g,d]=Ir(u,!0),m.addEventListener("progress",g)),s&&m.upload&&([f,p]=Ir(s),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",p)),(t.cancelToken||t.signal)&&(h=C=>{m&&(r(!C||C.type?new Mn(null,e,m):C),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(h),t.signal&&(t.signal.aborted?h():t.signal.addEventListener("abort",h)));const y=wd(t.url);if(y&&Xe.protocols.indexOf(y)===-1){r(new fe("Unsupported protocol "+y+":",fe.ERR_BAD_REQUEST,e));return}m.send(a||null)})},Pd=(e,o)=>{const{length:n}=e=e?e.filter(Boolean):[];if(o||n){let r=new AbortController,t;const a=function(u){if(!t){t=!0,l();const h=u instanceof Error?u:this.reason;r.abort(h instanceof fe?h:new Mn(h instanceof Error?h.message:h))}};let i=o&&setTimeout(()=>{i=null,a(new fe(`timeout ${o} of ms exceeded`,fe.ETIMEDOUT))},o);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:s}=r;return s.unsubscribe=()=>U.asap(l),s}},Od=function*(e,o){let n=e.byteLength;if(!o||n<o){yield e;return}let r=0,t;for(;r<n;)t=r+o,yield e.slice(r,t),r=t},Ld=async function*(e,o){for await(const n of Bd(e))yield*Od(n,o)},Bd=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:n,value:r}=await o.read();if(n)break;yield r}}finally{await o.cancel()}},Yi=(e,o,n,r)=>{const t=Ld(e,o);let a=0,i,l=s=>{i||(i=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:h}=await t.next();if(u){l(),s.close();return}let f=h.byteLength;if(n){let g=a+=f;n(g)}s.enqueue(new Uint8Array(h))}catch(u){throw l(u),u}},cancel(s){return l(s),t.return()}},{highWaterMark:2})},Pr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ji=Pr&&typeof ReadableStream=="function",Fd=Pr&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zi=(e,...o)=>{try{return!!e(...o)}catch{return!1}},Hd=ji&&zi(()=>{let e=!1;const o=new Request(Xe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),$i=64*1024,Vo=ji&&zi(()=>U.isReadableStream(new Response("").body)),Or={stream:Vo&&(e=>e.body)};Pr&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Or[o]&&(Or[o]=U.isFunction(e[o])?n=>n[o]():(n,r)=>{throw new fe(`Response type '${o}' is not supported`,fe.ERR_NOT_SUPPORT,r)})})})(new Response);const Vd=async e=>{if(e==null)return 0;if(U.isBlob(e))return e.size;if(U.isSpecCompliantForm(e))return(await new Request(Xe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(U.isArrayBufferView(e)||U.isArrayBuffer(e))return e.byteLength;if(U.isURLSearchParams(e)&&(e=e+""),U.isString(e))return(await Fd(e)).byteLength},kd=async(e,o)=>{const n=U.toFiniteNumber(e.getContentLength());return n??Vd(o)},ko={http:id,xhr:Id,fetch:Pr&&(async e=>{let{url:o,method:n,data:r,signal:t,cancelToken:a,timeout:i,onDownloadProgress:l,onUploadProgress:s,responseType:u,headers:h,withCredentials:f="same-origin",fetchOptions:g}=Ui(e);u=u?(u+"").toLowerCase():"text";let p=Pd([t,a&&a.toAbortSignal()],i),d;const v=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let m;try{if(s&&Hd&&n!=="get"&&n!=="head"&&(m=await kd(h,r))!==0){let S=new Request(o,{method:"POST",body:r,duplex:"half"}),w;if(U.isFormData(r)&&(w=S.headers.get("content-type"))&&h.setContentType(w),S.body){const[T,b]=Fi(m,Ir(Hi(s)));r=Yi(S.body,$i,T,b)}}U.isString(f)||(f=f?"include":"omit");const A="credentials"in Request.prototype;d=new Request(o,{...g,signal:p,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:A?f:void 0});let y=await fetch(d);const C=Vo&&(u==="stream"||u==="response");if(Vo&&(l||C&&v)){const S={};["status","statusText","headers"].forEach(N=>{S[N]=y[N]});const w=U.toFiniteNumber(y.headers.get("content-length")),[T,b]=l&&Fi(w,Ir(Hi(l),!0))||[];y=new Response(Yi(y.body,$i,T,()=>{b&&b(),v&&v()}),S)}u=u||"text";let E=await Or[U.findKey(Or,u)||"text"](y,e);return!C&&v&&v(),await new Promise((S,w)=>{Bi(S,w,{data:E,headers:qe.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:d})})}catch(A){throw v&&v(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,d),{cause:A.cause||A}):fe.from(A,A&&A.code,e,d)}})};U.forEach(ko,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const Wi=e=>`- ${e}`,Ud=e=>U.isFunction(e)||e===null||e===!1,Gi={getAdapter:e=>{e=U.isArray(e)?e:[e];const{length:o}=e;let n,r;const t={};for(let a=0;a<o;a++){n=e[a];let i;if(r=n,!Ud(n)&&(r=ko[(i=String(n)).toLowerCase()],r===void 0))throw new fe(`Unknown adapter '${i}'`);if(r)break;t[i||"#"+a]=r}if(!r){const a=Object.entries(t).map(([l,s])=>`adapter ${l} `+(s===!1?"is not supported by the environment":"is not available in the build"));let i=o?a.length>1?`since :
`+a.map(Wi).join(`
`):" "+Wi(a[0]):"as no adapter specified";throw new fe("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ko};function Uo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Mn(null,e)}function Qi(e){return Uo(e),e.headers=qe.from(e.headers),e.data=Ho.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gi.getAdapter(e.adapter||Gn.adapter)(e).then(function(r){return Uo(e),r.data=Ho.call(e,e.transformResponse,r),r.headers=qe.from(r.headers),r},function(r){return Li(r)||(Uo(e),r&&r.response&&(r.response.data=Ho.call(e,e.transformResponse,r.response),r.response.headers=qe.from(r.response.headers))),Promise.reject(r)})}const Ji="1.7.7",Yo={};["object","boolean","number","function","string","symbol"].forEach((e,o)=>{Yo[e]=function(r){return typeof r===e||"a"+(o<1?"n ":" ")+e}});const Ki={};Yo.transitional=function(o,n,r){function t(a,i){return"[Axios v"+Ji+"] Transitional option '"+a+"'"+i+(r?". "+r:"")}return(a,i,l)=>{if(o===!1)throw new fe(t(i," has been removed"+(n?" in "+n:"")),fe.ERR_DEPRECATED);return n&&!Ki[i]&&(Ki[i]=!0,console.warn(t(i," has been deprecated since v"+n+" and will be removed in the near future"))),o?o(a,i,l):!0}};function Yd(e,o,n){if(typeof e!="object")throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let t=r.length;for(;t-- >0;){const a=r[t],i=o[a];if(i){const l=e[a],s=l===void 0||i(l,a,e);if(s!==!0)throw new fe("option "+a+" must be "+s,fe.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new fe("Unknown option "+a,fe.ERR_BAD_OPTION)}}const jo={assertOptions:Yd,validators:Yo},rn=jo.validators;class dn{constructor(o){this.defaults=o,this.interceptors={request:new Ri,response:new Ri}}async request(o,n){try{return await this._request(o,n)}catch(r){if(r instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const a=t.stack?t.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+a):r.stack=a}catch{}}throw r}}_request(o,n){typeof o=="string"?(n=n||{},n.url=o):n=o||{},n=un(this.defaults,n);const{transitional:r,paramsSerializer:t,headers:a}=n;r!==void 0&&jo.assertOptions(r,{silentJSONParsing:rn.transitional(rn.boolean),forcedJSONParsing:rn.transitional(rn.boolean),clarifyTimeoutError:rn.transitional(rn.boolean)},!1),t!=null&&(U.isFunction(t)?n.paramsSerializer={serialize:t}:jo.assertOptions(t,{encode:rn.function,serialize:rn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=a&&U.merge(a.common,a[n.method]);a&&U.forEach(["delete","get","head","post","put","patch","common"],d=>{delete a[d]}),n.headers=qe.concat(i,a);const l=[];let s=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(s=s&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let h,f=0,g;if(!s){const d=[Qi.bind(this),void 0];for(d.unshift.apply(d,l),d.push.apply(d,u),g=d.length,h=Promise.resolve(n);f<g;)h=h.then(d[f++],d[f++]);return h}g=l.length;let p=n;for(f=0;f<g;){const d=l[f++],v=l[f++];try{p=d(p)}catch(m){v.call(this,m);break}}try{h=Qi.call(this,p)}catch(d){return Promise.reject(d)}for(f=0,g=u.length;f<g;)h=h.then(u[f++],u[f++]);return h}getUri(o){o=un(this.defaults,o);const n=Vi(o.baseURL,o.url);return Ni(n,o.params,o.paramsSerializer)}}U.forEach(["delete","get","head","options"],function(o){dn.prototype[o]=function(n,r){return this.request(un(r||{},{method:o,url:n,data:(r||{}).data}))}}),U.forEach(["post","put","patch"],function(o){function n(r){return function(a,i,l){return this.request(un(l||{},{method:o,headers:r?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}dn.prototype[o]=n(),dn.prototype[o+"Form"]=n(!0)});class zo{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const r=this;this.promise.then(t=>{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](t);r._listeners=null}),this.promise.then=t=>{let a;const i=new Promise(l=>{r.subscribe(l),a=l}).then(t);return i.cancel=function(){r.unsubscribe(a)},i},o(function(a,i,l){r.reason||(r.reason=new Mn(a,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const n=this._listeners.indexOf(o);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const o=new AbortController,n=r=>{o.abort(r)};return this.subscribe(n),o.signal.unsubscribe=()=>this.unsubscribe(n),o.signal}static source(){let o;return{token:new zo(function(t){o=t}),cancel:o}}}function jd(e){return function(n){return e.apply(null,n)}}function zd(e){return U.isObject(e)&&e.isAxiosError===!0}const $o={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($o).forEach(([e,o])=>{$o[o]=e});function Zi(e){const o=new dn(e),n=hi(dn.prototype.request,o);return U.extend(n,dn.prototype,o,{allOwnKeys:!0}),U.extend(n,o,null,{allOwnKeys:!0}),n.create=function(t){return Zi(un(e,t))},n}const Re=Zi(Gn);Re.Axios=dn,Re.CanceledError=Mn,Re.CancelToken=zo,Re.isCancel=Li,Re.VERSION=Ji,Re.toFormData=Nr,Re.AxiosError=fe,Re.Cancel=Re.CanceledError,Re.all=function(o){return Promise.all(o)},Re.spread=jd,Re.isAxiosError=zd,Re.mergeConfig=un,Re.AxiosHeaders=qe,Re.formToJSON=e=>Pi(U.isHTMLForm(e)?new FormData(e):e),Re.getAdapter=Gi.getAdapter,Re.HttpStatusCode=$o,Re.default=Re;const fn=Re.create({baseURL:"",timeout:9e4});let Wo=0;setInterval(()=>{Wo=0},8e3);const $d=e=>{if(Wo===0&&e.response){let o=e.response.data;switch(e.response.status){case 400:$message.error($translate("Parameter error"));break;case 401:break;case 403:$message.error($translate("Access denied"));break;case 404:break;case 412:$message.error($translate(o));break;case 500:$message.error($translate("System Error"));break;default:$message.error($translate(o));break}}return Wo++,Promise.reject(e)};fn.interceptors.request.use(e=>(e.headers["X-tenant-id"]=window.VUE_APP_X_tenant_id,e),e=>Promise.reject(e)),fn.interceptors.response.use(e=>e.headers["content-disposition"]?e:e.data,$d);function Wd(e,o,n,r=!0){return fn({url:e,method:"post",data:n,withCredentials:r,headers:{Authorization:"Bearer "+o}})}function Gd(e,o,n,r=!0){return fn({url:e,method:"put",data:n,withCredentials:r,headers:{Authorization:"Bearer "+o}})}function Xi(e,o,n,r=!0){return console.log(e),fn({url:e,method:"get",params:n,withCredentials:r,headers:{Authorization:"Bearer "+o}})}function Qd(e,o,n,r=!0){return fn({url:e,params:n,method:"get",responseType:"blob",withCredentials:r,headers:{Authorization:"Bearer "+o}})}function Jd(e,o,n,r=!0){return fn({url:e,data:n,method:"post",headers:{"Content-Type":"multipart/form-data"},withCredentials:r,headers:{Authorization:"Bearer "+o}})}const bn=(e,o,n)=>Wd(e+"/client/ticket-conversation",o,n),qi=(e,o,n)=>Jd(e+"/upload/multi",o,n),_i=(e,o,n)=>Qd(e+`/download/${n}`,o),el=(e,o,n)=>Xi(e+"/client/ticket/exist/"+n.id,o),Lr=(e,o,n)=>Xi(e+"/common/ticket-conversation/history/list",o,n),tl=(e,o,n)=>Gd(e+"/client/ticket-conversation/close-show",o,n);function Kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nl={exports:{}};(function(e,o){(function(r,t){e.exports=t()})(window,function(){return function(n){var r={};function t(a){if(r[a])return r[a].exports;var i=r[a]={i:a,l:!1,exports:{}};return n[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=n,t.c=r,t.d=function(a,i,l){t.o(a,i)||Object.defineProperty(a,i,{enumerable:!0,get:l})},t.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.t=function(a,i){if(i&1&&(a=t(a)),i&8||i&4&&typeof a=="object"&&a&&a.__esModule)return a;var l=Object.create(null);if(t.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:a}),i&2&&typeof a!="string")for(var s in a)t.d(l,s,(function(u){return a[u]}).bind(null,s));return l},t.n=function(a){var i=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(i,"a",i),i},t.o=function(a,i){return Object.prototype.hasOwnProperty.call(a,i)},t.p="",t(t.s=141)}([function(n,r){function t(a){return a&&a.__esModule?a:{default:a}}n.exports=t},function(n,r,t){n.exports=t(142)},function(n,r,t){t.r(r),t.d(r,"__extends",function(){return i}),t.d(r,"__assign",function(){return l}),t.d(r,"__rest",function(){return s}),t.d(r,"__decorate",function(){return u}),t.d(r,"__param",function(){return h}),t.d(r,"__metadata",function(){return f}),t.d(r,"__awaiter",function(){return g}),t.d(r,"__generator",function(){return p}),t.d(r,"__createBinding",function(){return d}),t.d(r,"__exportStar",function(){return v}),t.d(r,"__values",function(){return m}),t.d(r,"__read",function(){return A}),t.d(r,"__spread",function(){return y}),t.d(r,"__spreadArrays",function(){return C}),t.d(r,"__spreadArray",function(){return E}),t.d(r,"__await",function(){return S}),t.d(r,"__asyncGenerator",function(){return w}),t.d(r,"__asyncDelegator",function(){return T}),t.d(r,"__asyncValues",function(){return b}),t.d(r,"__makeTemplateObject",function(){return N}),t.d(r,"__importStar",function(){return x}),t.d(r,"__importDefault",function(){return D}),t.d(r,"__classPrivateFieldGet",function(){return R}),t.d(r,"__classPrivateFieldSet",function(){return P});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var a=function(I,O){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,H){L.__proto__=H}||function(L,H){for(var k in H)Object.prototype.hasOwnProperty.call(H,k)&&(L[k]=H[k])},a(I,O)};function i(I,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");a(I,O);function L(){this.constructor=I}I.prototype=O===null?Object.create(O):(L.prototype=O.prototype,new L)}var l=function(){return l=Object.assign||function(O){for(var L,H=1,k=arguments.length;H<k;H++){L=arguments[H];for(var B in L)Object.prototype.hasOwnProperty.call(L,B)&&(O[B]=L[B])}return O},l.apply(this,arguments)};function s(I,O){var L={};for(var H in I)Object.prototype.hasOwnProperty.call(I,H)&&O.indexOf(H)<0&&(L[H]=I[H]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,H=Object.getOwnPropertySymbols(I);k<H.length;k++)O.indexOf(H[k])<0&&Object.prototype.propertyIsEnumerable.call(I,H[k])&&(L[H[k]]=I[H[k]]);return L}function u(I,O,L,H){var k=arguments.length,B=k<3?O:H===null?H=Object.getOwnPropertyDescriptor(O,L):H,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(I,O,L,H);else for(var Y=I.length-1;Y>=0;Y--)(F=I[Y])&&(B=(k<3?F(B):k>3?F(O,L,B):F(O,L))||B);return k>3&&B&&Object.defineProperty(O,L,B),B}function h(I,O){return function(L,H){O(L,H,I)}}function f(I,O){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(I,O)}function g(I,O,L,H){function k(B){return B instanceof L?B:new L(function(F){F(B)})}return new(L||(L=Promise))(function(B,F){function Y(G){try{W(H.next(G))}catch(j){F(j)}}function $(G){try{W(H.throw(G))}catch(j){F(j)}}function W(G){G.done?B(G.value):k(G.value).then(Y,$)}W((H=H.apply(I,O||[])).next())})}function p(I,O){var L={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},H,k,B,F;return F={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Y(W){return function(G){return $([W,G])}}function $(W){if(H)throw new TypeError("Generator is already executing.");for(;L;)try{if(H=1,k&&(B=W[0]&2?k.return:W[0]?k.throw||((B=k.return)&&B.call(k),0):k.next)&&!(B=B.call(k,W[1])).done)return B;switch(k=0,B&&(W=[W[0]&2,B.value]),W[0]){case 0:case 1:B=W;break;case 4:return L.label++,{value:W[1],done:!1};case 5:L.label++,k=W[1],W=[0];continue;case 7:W=L.ops.pop(),L.trys.pop();continue;default:if(B=L.trys,!(B=B.length>0&&B[B.length-1])&&(W[0]===6||W[0]===2)){L=0;continue}if(W[0]===3&&(!B||W[1]>B[0]&&W[1]<B[3])){L.label=W[1];break}if(W[0]===6&&L.label<B[1]){L.label=B[1],B=W;break}if(B&&L.label<B[2]){L.label=B[2],L.ops.push(W);break}B[2]&&L.ops.pop(),L.trys.pop();continue}W=O.call(I,L)}catch(G){W=[6,G],k=0}finally{H=B=0}if(W[0]&5)throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}}var d=Object.create?function(I,O,L,H){H===void 0&&(H=L),Object.defineProperty(I,H,{enumerable:!0,get:function(){return O[L]}})}:function(I,O,L,H){H===void 0&&(H=L),I[H]=O[L]};function v(I,O){for(var L in I)L!=="default"&&!Object.prototype.hasOwnProperty.call(O,L)&&d(O,I,L)}function m(I){var O=typeof Symbol=="function"&&Symbol.iterator,L=O&&I[O],H=0;if(L)return L.call(I);if(I&&typeof I.length=="number")return{next:function(){return I&&H>=I.length&&(I=void 0),{value:I&&I[H++],done:!I}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")}function A(I,O){var L=typeof Symbol=="function"&&I[Symbol.iterator];if(!L)return I;var H=L.call(I),k,B=[],F;try{for(;(O===void 0||O-- >0)&&!(k=H.next()).done;)B.push(k.value)}catch(Y){F={error:Y}}finally{try{k&&!k.done&&(L=H.return)&&L.call(H)}finally{if(F)throw F.error}}return B}function y(){for(var I=[],O=0;O<arguments.length;O++)I=I.concat(A(arguments[O]));return I}function C(){for(var I=0,O=0,L=arguments.length;O<L;O++)I+=arguments[O].length;for(var H=Array(I),k=0,O=0;O<L;O++)for(var B=arguments[O],F=0,Y=B.length;F<Y;F++,k++)H[k]=B[F];return H}function E(I,O){for(var L=0,H=O.length,k=I.length;L<H;L++,k++)I[k]=O[L];return I}function S(I){return this instanceof S?(this.v=I,this):new S(I)}function w(I,O,L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H=L.apply(I,O||[]),k,B=[];return k={},F("next"),F("throw"),F("return"),k[Symbol.asyncIterator]=function(){return this},k;function F(z){H[z]&&(k[z]=function(Z){return new Promise(function(ee,se){B.push([z,Z,ee,se])>1||Y(z,Z)})})}function Y(z,Z){try{$(H[z](Z))}catch(ee){j(B[0][3],ee)}}function $(z){z.value instanceof S?Promise.resolve(z.value.v).then(W,G):j(B[0][2],z)}function W(z){Y("next",z)}function G(z){Y("throw",z)}function j(z,Z){z(Z),B.shift(),B.length&&Y(B[0][0],B[0][1])}}function T(I){var O,L;return O={},H("next"),H("throw",function(k){throw k}),H("return"),O[Symbol.iterator]=function(){return this},O;function H(k,B){O[k]=I[k]?function(F){return(L=!L)?{value:S(I[k](F)),done:k==="return"}:B?B(F):F}:B}}function b(I){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O=I[Symbol.asyncIterator],L;return O?O.call(I):(I=typeof m=="function"?m(I):I[Symbol.iterator](),L={},H("next"),H("throw"),H("return"),L[Symbol.asyncIterator]=function(){return this},L);function H(B){L[B]=I[B]&&function(F){return new Promise(function(Y,$){F=I[B](F),k(Y,$,F.done,F.value)})}}function k(B,F,Y,$){Promise.resolve($).then(function(W){B({value:W,done:Y})},F)}}function N(I,O){return Object.defineProperty?Object.defineProperty(I,"raw",{value:O}):I.raw=O,I}var M=Object.create?function(I,O){Object.defineProperty(I,"default",{enumerable:!0,value:O})}:function(I,O){I.default=O};function x(I){if(I&&I.__esModule)return I;var O={};if(I!=null)for(var L in I)L!=="default"&&Object.prototype.hasOwnProperty.call(I,L)&&d(O,I,L);return M(O,I),O}function D(I){return I&&I.__esModule?I:{default:I}}function R(I,O){if(!O.has(I))throw new TypeError("attempted to get private field on non-instance");return O.get(I)}function P(I,O,L){if(!O.has(I))throw new TypeError("attempted to set private field on non-instance");return O.set(I,L),L}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(89)),s=a(t(4)),u=a(t(26)),h=a(t(17)),f=a(t(121)),g=a(t(27)),p=a(t(91)),d=a(t(70)),v=a(t(28)),m=a(t(57));(0,i.default)(r,"__esModule",{value:!0}),r.DomElement=void 0;var A=t(2),y=t(6),C=[];function E(M){var x=document.createElement("div");x.innerHTML=M;var D=x.children;return y.toArray(D)}function S(M){return M?M instanceof HTMLCollection||M instanceof NodeList:!1}function w(M){var x=document.querySelectorAll(M);return y.toArray(x)}function T(M){var x=[],D=[];return(0,l.default)(M)?x=M:x=M.split(";"),(0,s.default)(x).call(x,function(R){var P,I=(0,u.default)(P=R.split(":")).call(P,function(O){return(0,h.default)(O).call(O)});I.length===2&&D.push(I[0]+":"+I[1])}),D}var b=function(){function M(x){if(this.elems=[],this.length=this.elems.length,this.dataSource=new f.default,!!x){if(x instanceof M)return x;var D=[],R=x instanceof Node?x.nodeType:-1;if(this.selector=x,R===1||R===9)D=[x];else if(S(x))D=y.toArray(x);else if(x instanceof Array)D=x;else if(typeof x=="string"){var P,I=(0,h.default)(P=x.replace(`/
/mg`,"")).call(P);(0,g.default)(I).call(I,"<")===0?D=E(I):D=w(I)}var O=D.length;if(!O)return this;for(var L=0;L<O;L++)this.elems.push(D[L]);this.length=O}}return(0,i.default)(M.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),M.prototype.forEach=function(x){for(var D=0;D<this.length;D++){var R=this.elems[D],P=x.call(R,R,D);if(P===!1)break}return this},M.prototype.clone=function(x){var D;x===void 0&&(x=!1);var R=[];return(0,s.default)(D=this.elems).call(D,function(P){R.push(P.cloneNode(!!x))}),N(R)},M.prototype.get=function(x){x===void 0&&(x=0);var D=this.length;return x>=D&&(x=x%D),N(this.elems[x])},M.prototype.first=function(){return this.get(0)},M.prototype.last=function(){var x=this.length;return this.get(x-1)},M.prototype.on=function(x,D,R){var P;return x?(typeof D=="function"&&(R=D,D=""),(0,s.default)(P=this).call(P,function(I){if(!D){I.addEventListener(x,R);return}var O=function(H){var k=H.target;k.matches(D)&&R.call(k,H)};I.addEventListener(x,O),C.push({elem:I,selector:D,fn:R,agentFn:O})})):this},M.prototype.off=function(x,D,R){var P;return x?(typeof D=="function"&&(R=D,D=""),(0,s.default)(P=this).call(P,function(I){if(D){for(var O=-1,L=0;L<C.length;L++){var H=C[L];if(H.selector===D&&H.fn===R&&H.elem===I){O=L;break}}if(O!==-1){var k=(0,p.default)(C).call(C,O,1)[0].agentFn;I.removeEventListener(x,k)}}else I.removeEventListener(x,R)})):this},M.prototype.attr=function(x,D){var R;return D==null?this.elems[0].getAttribute(x)||"":(0,s.default)(R=this).call(R,function(P){P.setAttribute(x,D)})},M.prototype.removeAttr=function(x){var D;(0,s.default)(D=this).call(D,function(R){R.removeAttribute(x)})},M.prototype.addClass=function(x){var D;return x?(0,s.default)(D=this).call(D,function(R){if(R.className){var P=R.className.split(/\s/);P=(0,d.default)(P).call(P,function(I){return!!(0,h.default)(I).call(I)}),(0,g.default)(P).call(P,x)<0&&P.push(x),R.className=P.join(" ")}else R.className=x}):this},M.prototype.removeClass=function(x){var D;return x?(0,s.default)(D=this).call(D,function(R){if(R.className){var P=R.className.split(/\s/);P=(0,d.default)(P).call(P,function(I){return I=(0,h.default)(I).call(I),!(!I||I===x)}),R.className=P.join(" ")}}):this},M.prototype.hasClass=function(x){if(!x)return!1;var D=this.elems[0];if(!D.className)return!1;var R=D.className.split(/\s/);return(0,v.default)(R).call(R,x)},M.prototype.css=function(x,D){var R,P;return D==""?P="":P=x+":"+D+";",(0,s.default)(R=this).call(R,function(I){var O,L=(0,h.default)(O=I.getAttribute("style")||"").call(O);if(L){var H=T(L);H=(0,u.default)(H).call(H,function(k){return(0,g.default)(k).call(k,x)===0?P:k}),P!=""&&(0,g.default)(H).call(H,P)<0&&H.push(P),P==""&&(H=T(H)),I.setAttribute("style",H.join("; "))}else I.setAttribute("style",P)})},M.prototype.getBoundingClientRect=function(){var x=this.elems[0];return x.getBoundingClientRect()},M.prototype.show=function(){return this.css("display","block")},M.prototype.hide=function(){return this.css("display","none")},M.prototype.children=function(){var x=this.elems[0];return x?N(x.children):null},M.prototype.childNodes=function(){var x=this.elems[0];return x?N(x.childNodes):null},M.prototype.replaceChildAll=function(x){for(var D=this.getNode(),R=this.elems[0];R.hasChildNodes();)D.firstChild&&R.removeChild(D.firstChild);this.append(x)},M.prototype.append=function(x){var D;return(0,s.default)(D=this).call(D,function(R){(0,s.default)(x).call(x,function(P){R.appendChild(P)})})},M.prototype.remove=function(){var x;return(0,s.default)(x=this).call(x,function(D){if(D.remove)D.remove();else{var R=D.parentElement;R&&R.removeChild(D)}})},M.prototype.isContain=function(x){var D=this.elems[0],R=x.elems[0];return D.contains(R)},M.prototype.getNodeName=function(){var x=this.elems[0];return x.nodeName},M.prototype.getNode=function(x){x===void 0&&(x=0);var D;return D=this.elems[x],D},M.prototype.find=function(x){var D=this.elems[0];return N(D.querySelectorAll(x))},M.prototype.text=function(x){if(x){var R;return(0,s.default)(R=this).call(R,function(P){P.innerHTML=x})}else{var D=this.elems[0];return D.innerHTML.replace(/<[^>]+>/g,function(){return""})}},M.prototype.html=function(x){var D=this.elems[0];return x?(D.innerHTML=x,this):D.innerHTML},M.prototype.val=function(){var x,D=this.elems[0];return(0,h.default)(x=D.value).call(x)},M.prototype.focus=function(){var x;return(0,s.default)(x=this).call(x,function(D){D.focus()})},M.prototype.prev=function(){var x=this.elems[0];return N(x.previousElementSibling)},M.prototype.next=function(){var x=this.elems[0];return N(x.nextElementSibling)},M.prototype.getNextSibling=function(){var x=this.elems[0];return N(x.nextSibling)},M.prototype.parent=function(){var x=this.elems[0];return N(x.parentElement)},M.prototype.parentUntil=function(x,D){var R=D||this.elems[0];if(R.nodeName==="BODY")return null;var P=R.parentElement;return P===null?null:P.matches(x)?N(P):this.parentUntil(x,P)},M.prototype.parentUntilEditor=function(x,D,R){var P=R||this.elems[0];if(N(P).equal(D.$textContainerElem)||N(P).equal(D.$toolbarElem))return null;var I=P.parentElement;return I===null?null:I.matches(x)?N(I):this.parentUntilEditor(x,D,I)},M.prototype.equal=function(x){return x instanceof M?this.elems[0]===x.elems[0]:x instanceof HTMLElement?this.elems[0]===x:!1},M.prototype.insertBefore=function(x){var D,R=N(x),P=R.elems[0];return P?(0,s.default)(D=this).call(D,function(I){var O=P.parentNode;O==null||O.insertBefore(I,P)}):this},M.prototype.insertAfter=function(x){var D,R=N(x),P=R.elems[0],I=P&&P.nextSibling;return P?(0,s.default)(D=this).call(D,function(O){var L=P.parentNode;I?L.insertBefore(O,I):L.appendChild(O)}):this},M.prototype.data=function(x,D){if(D!=null)this.dataSource.set(x,D);else return this.dataSource.get(x)},M.prototype.getNodeTop=function(x){if(this.length<1)return this;var D=this.parent();return x.$textElem.equal(this)||x.$textElem.equal(D)?this:(D.prior=this,D.getNodeTop(x))},M.prototype.getOffsetData=function(){var x=this.elems[0];return{top:x.offsetTop,left:x.offsetLeft,width:x.offsetWidth,height:x.offsetHeight,parent:x.offsetParent}},M.prototype.scrollTop=function(x){var D=this.elems[0];D.scrollTo({top:x})},M}();r.DomElement=b;function N(){for(var M=[],x=0;x<arguments.length;x++)M[x]=arguments[x];return new((0,m.default)(b).apply(b,A.__spreadArrays([void 0],M)))}r.default=N},function(n,r,t){n.exports=t(180)},function(n,r,t){var a=t(8),i=t(71).f,l=t(101),s=t(9),u=t(40),h=t(19),f=t(16),g=function(p){var d=function(v,m,A){if(this instanceof p){switch(arguments.length){case 0:return new p;case 1:return new p(v);case 2:return new p(v,m)}return new p(v,m,A)}return p.apply(this,arguments)};return d.prototype=p.prototype,d};n.exports=function(p,d){var v=p.target,m=p.global,A=p.stat,y=p.proto,C=m?a:A?a[v]:(a[v]||{}).prototype,E=m?s:s[v]||(s[v]={}),S=E.prototype,w,T,b,N,M,x,D,R,P;for(N in d)w=l(m?N:v+(A?".":"#")+N,p.forced),T=!w&&C&&f(C,N),x=E[N],T&&(p.noTargetGet?(P=i(C,N),D=P&&P.value):D=C[N]),M=T&&D?D:d[N],!(T&&typeof x==typeof M)&&(p.bind&&T?R=u(M,a):p.wrap&&T?R=g(M):y&&typeof M=="function"?R=u(Function.call,M):R=M,(p.sham||M&&M.sham||x&&x.sham)&&h(R,"sham",!0),E[N]=R,y&&(b=v+"Prototype",f(s,b)||h(s,b,{}),s[b][N]=M,p.real&&S&&!S[N]&&h(S,N,M)))}},function(n,r,t){var a=t(0),i=a(t(92)),l=a(t(1)),s=a(t(256)),u=a(t(45)),h=a(t(46)),f=a(t(89)),g=a(t(26));(0,l.default)(r,"__esModule",{value:!0}),r.hexToRgb=r.getRandomCode=r.toArray=r.deepClone=r.isFunction=r.debounce=r.throttle=r.arrForEach=r.forEach=r.replaceSpecialSymbol=r.replaceHtmlSymbol=r.getRandom=r.UA=void 0;var p=t(2),d=function(){function x(){this._ua=navigator.userAgent;var D=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(D&&D[1]=="Edge"&&(0,s.default)(D[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return x.prototype.isIE=function(){return"ActiveXObject"in window},x.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},x}();r.UA=new d;function v(x){var D;return x===void 0&&(x=""),x+(0,u.default)(D=Math.random().toString()).call(D,2)}r.getRandom=v;function m(x){return x.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")}r.replaceHtmlSymbol=m;function A(x){return x.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}r.replaceSpecialSymbol=A;function y(x,D){for(var R in x)if(Object.prototype.hasOwnProperty.call(x,R)){var P=D(R,x[R]);if(P===!1)break}}r.forEach=y;function C(x,D){var R,P,I,O=x.length||0;for(R=0;R<O&&(P=x[R],I=D.call(x,P,R),I!==!1);R++);}r.arrForEach=C;function E(x,D){D===void 0&&(D=200);var R=!1;return function(){for(var P=this,I=[],O=0;O<arguments.length;O++)I[O]=arguments[O];R||(R=!0,(0,h.default)(function(){R=!1,x.call.apply(x,p.__spreadArrays([P],I))},D))}}r.throttle=E;function S(x,D){D===void 0&&(D=200);var R=0;return function(){for(var P=this,I=[],O=0;O<arguments.length;O++)I[O]=arguments[O];R&&window.clearTimeout(R),R=(0,h.default)(function(){R=0,x.call.apply(x,p.__spreadArrays([P],I))},D)}}r.debounce=S;function w(x){return typeof x=="function"}r.isFunction=w;function T(x){if((0,i.default)(x)!=="object"||typeof x=="function"||x===null)return x;var D;(0,f.default)(x)&&(D=[]),(0,f.default)(x)||(D={});for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&(D[R]=T(x[R]));return D}r.deepClone=T;function b(x){return(0,u.default)(Array.prototype).call(x)}r.toArray=b;function N(){var x;return(0,u.default)(x=Math.random().toString(36)).call(x,-5)}r.getRandomCode=N;function M(x){var D=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(x);if(D==null)return null;var R=(0,g.default)(D).call(D,function(L){return(0,s.default)(L,16)}),P=R[1],I=R[2],O=R[3];return"rgb("+P+", "+I+", "+O+")"}r.hexToRgb=M},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.EMPTY_P_REGEX=r.EMPTY_P_LAST_REGEX=r.EMPTY_P=r.urlRegex=r.EMPTY_FN=void 0;function l(){}r.EMPTY_FN=l,r.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/g,r.EMPTY_P='<p data-we-empty-p=""><br></p>',r.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,r.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(n,r,t){(function(a){var i=function(l){return l&&l.Math==Math&&l};n.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof a=="object"&&a)||Function("return this")()}).call(this,t(145))},function(n,r){n.exports={}},function(n,r,t){var a=t(8),i=t(74),l=t(16),s=t(64),u=t(76),h=t(106),f=i("wks"),g=a.Symbol,p=h?g:g&&g.withoutSetter||s;n.exports=function(d){return l(f,d)||(u&&l(g,d)?f[d]=g[d]:f[d]=p("Symbol."+d)),f[d]}},function(n,r){n.exports=function(t){try{return!!t()}catch{return!0}}},function(n,r,t){var a=t(9),i=t(16),l=t(93),s=t(18).f;n.exports=function(u){var h=a.Symbol||(a.Symbol={});i(h,u)||s(h,u,{value:l.f(u)})}},function(n,r){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},function(n,r,t){var a=t(11);n.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(n,r,t){var a=t(9);n.exports=function(i){return a[i+"Prototype"]}},function(n,r){var t={}.hasOwnProperty;n.exports=function(a,i){return t.call(a,i)}},function(n,r,t){n.exports=t(192)},function(n,r,t){var a=t(14),i=t(100),l=t(25),s=t(60),u=Object.defineProperty;r.f=a?u:function(f,g,p){if(l(f),g=s(g,!0),l(p),i)try{return u(f,g,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(f[g]=p.value),f}},function(n,r,t){var a=t(14),i=t(18),l=t(48);n.exports=a?function(s,u,h){return i.f(s,u,l(1,h))}:function(s,u,h){return s[u]=h,s}},function(n,r,t){var a=function(){var C;return function(){return typeof C>"u"&&(C=!!(window&&document&&document.all&&!window.atob)),C}}(),i=function(){var C={};return function(S){if(typeof C[S]>"u"){var w=document.querySelector(S);if(window.HTMLIFrameElement&&w instanceof window.HTMLIFrameElement)try{w=w.contentDocument.head}catch{w=null}C[S]=w}return C[S]}}(),l=[];function s(y){for(var C=-1,E=0;E<l.length;E++)if(l[E].identifier===y){C=E;break}return C}function u(y,C){for(var E={},S=[],w=0;w<y.length;w++){var T=y[w],b=C.base?T[0]+C.base:T[0],N=E[b]||0,M="".concat(b," ").concat(N);E[b]=N+1;var x=s(M),D={css:T[1],media:T[2],sourceMap:T[3]};x!==-1?(l[x].references++,l[x].updater(D)):l.push({identifier:M,updater:A(D,C),references:1}),S.push(M)}return S}function h(y){var C=document.createElement("style"),E=y.attributes||{};if(typeof E.nonce>"u"){var S=t.nc;S&&(E.nonce=S)}if(Object.keys(E).forEach(function(T){C.setAttribute(T,E[T])}),typeof y.insert=="function")y.insert(C);else{var w=i(y.insert||"head");if(!w)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");w.appendChild(C)}return C}function f(y){if(y.parentNode===null)return!1;y.parentNode.removeChild(y)}var g=function(){var C=[];return function(S,w){return C[S]=w,C.filter(Boolean).join(`
`)}}();function p(y,C,E,S){var w=E?"":S.media?"@media ".concat(S.media," {").concat(S.css,"}"):S.css;if(y.styleSheet)y.styleSheet.cssText=g(C,w);else{var T=document.createTextNode(w),b=y.childNodes;b[C]&&y.removeChild(b[C]),b.length?y.insertBefore(T,b[C]):y.appendChild(T)}}function d(y,C,E){var S=E.css,w=E.media,T=E.sourceMap;if(w?y.setAttribute("media",w):y.removeAttribute("media"),T&&typeof btoa<"u"&&(S+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(T))))," */")),y.styleSheet)y.styleSheet.cssText=S;else{for(;y.firstChild;)y.removeChild(y.firstChild);y.appendChild(document.createTextNode(S))}}var v=null,m=0;function A(y,C){var E,S,w;if(C.singleton){var T=m++;E=v||(v=h(C)),S=p.bind(null,E,T,!1),w=p.bind(null,E,T,!0)}else E=h(C),S=d.bind(null,E,C),w=function(){f(E)};return S(y),function(N){if(N){if(N.css===y.css&&N.media===y.media&&N.sourceMap===y.sourceMap)return;S(y=N)}else w()}}n.exports=function(y,C){C=C||{},!C.singleton&&typeof C.singleton!="boolean"&&(C.singleton=a()),y=y||[];var E=u(y,C);return function(w){if(w=w||[],Object.prototype.toString.call(w)==="[object Array]"){for(var T=0;T<E.length;T++){var b=E[T],N=s(b);l[N].references--}for(var M=u(w,C),x=0;x<E.length;x++){var D=E[x],R=s(D);l[R].references===0&&(l[R].updater(),l.splice(R,1))}E=M}}}},function(n,r,t){n.exports=function(l){var s=[];return s.toString=function(){return this.map(function(h){var f=a(h,l);return h[2]?"@media ".concat(h[2]," {").concat(f,"}"):f}).join("")},s.i=function(u,h,f){typeof u=="string"&&(u=[[null,u,""]]);var g={};if(f)for(var p=0;p<this.length;p++){var d=this[p][0];d!=null&&(g[d]=!0)}for(var v=0;v<u.length;v++){var m=[].concat(u[v]);f&&g[m[0]]||(h&&(m[2]?m[2]="".concat(h," and ").concat(m[2]):m[2]=h),s.push(m))}},s};function a(l,s){var u=l[1]||"",h=l[3];if(!h)return u;if(s&&typeof btoa=="function"){var f=i(h),g=h.sources.map(function(p){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(p," */")});return[u].concat(g).concat([f]).join(`
`)}return[u].join(`
`)}function i(l){var s=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s);return"/*# ".concat(u," */")}},function(n,r,t){var a=t(14),i=t(11),l=t(16),s=Object.defineProperty,u={},h=function(f){throw f};n.exports=function(f,g){if(l(u,f))return u[f];g||(g={});var p=[][f],d=l(g,"ACCESSORS")?g.ACCESSORS:!1,v=l(g,0)?g[0]:h,m=l(g,1)?g[1]:void 0;return u[f]=!!p&&!i(function(){if(d&&!a)return!0;var A={length:-1};d?s(A,1,{enumerable:!0,get:h}):A[1]=1,p.call(A,v,m)})}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(95)),u=function(h){l.__extends(f,h);function f(g,p){return h.call(this,g,p)||this}return f}(s.default);r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(46));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=u.__importDefault(t(95)),g=u.__importDefault(t(134)),p=function(d){u.__extends(v,d);function v(m,A,y){var C=d.call(this,m,A)||this;y.title=A.i18next.t("menus.dropListMenu."+y.title);var E=A.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(E!==""&&y.type==="list"){var S;(0,l.default)(S=y.list).call(S,function(T){var b=T.$elem,N=h.default(b.children());if(N.length>0){var M=N==null?void 0:N.getNodeName();M&&M==="I"&&b.addClass(E)}})}var w=new g.default(C,y);return C.dropList=w,m.on("click",function(){var T;A.selection.getRange()!=null&&(m.css("z-index",A.zIndex.get("menu")),(0,l.default)(T=A.txt.eventHooks.dropListMenuHoverEvents).call(T,function(b){return b()}),w.show())}).on("mouseleave",function(){m.css("z-index","auto"),w.hideTimeoutId=(0,s.default)(function(){w.hide()})}),C}return v}(f.default);r.default=p},function(n,r,t){var a=t(13);n.exports=function(i){if(!a(i))throw TypeError(String(i)+" is not an object");return i}},function(n,r,t){n.exports=t(188)},function(n,r,t){n.exports=t(201)},function(n,r,t){n.exports=t(213)},function(n,r,t){n.exports=t(283)},function(n,r,t){var a=t(72),i=t(49);n.exports=function(l){return a(i(l))}},function(n,r,t){var a=t(49);n.exports=function(i){return Object(a(i))}},function(n,r,t){var a=t(40),i=t(72),l=t(31),s=t(35),u=t(88),h=[].push,f=function(g){var p=g==1,d=g==2,v=g==3,m=g==4,A=g==6,y=g==5||A;return function(C,E,S,w){for(var T=l(C),b=i(T),N=a(E,S,3),M=s(b.length),x=0,D=w||u,R=p?D(C,M):d?D(C,0):void 0,P,I;M>x;x++)if((y||x in b)&&(P=b[x],I=N(P,x,T),g)){if(p)R[x]=I;else if(I)switch(g){case 3:return!0;case 5:return P;case 6:return x;case 2:h.call(R,P)}else if(m)return!1}return A?-1:v||m?m:R}};n.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(29)),u=a(t(132));(0,i.default)(r,"__esModule",{value:!0});var h=t(2),f=h.__importDefault(t(3)),g=t(7),p=function(){function d(v,m){this.menu=v,this.conf=m,this.$container=f.default('<div class="w-e-panel-container"></div>');var A=v.editor;A.txt.eventHooks.clickEvents.push(d.hideCurAllPanels),A.txt.eventHooks.toolbarClickEvents.push(d.hideCurAllPanels),A.txt.eventHooks.dropListMenuHoverEvents.push(d.hideCurAllPanels)}return d.prototype.create=function(){var v=this,m=this.menu;if(!d.createdMenus.has(m)){var A=this.conf,y=this.$container,C=A.width||300,E=m.editor.$toolbarElem.getBoundingClientRect(),S=m.$elem.getBoundingClientRect(),w=E.height+E.top-S.top,T=(E.width-C)/2+E.left-S.left,b=300;Math.abs(T)>b&&(S.left<document.documentElement.clientWidth/2?T=-S.width/2:T=-C+S.width/2),y.css("width",C+"px").css("margin-top",w+"px").css("margin-left",T+"px").css("z-index",m.editor.zIndex.get("panel"));var N=f.default('<i class="w-e-icon-close w-e-panel-close"></i>');y.append(N),N.on("click",function(){v.remove()});var M=f.default('<ul class="w-e-panel-tab-title"></ul>'),x=f.default('<div class="w-e-panel-tab-content"></div>');y.append(M).append(x);var D=A.height;D&&x.css("height",D+"px").css("overflow-y","auto");var R=A.tabs||[],P=[],I=[];(0,l.default)(R).call(R,function(L,H){if(L){var k=L.title||"",B=L.tpl||"",F=f.default('<li class="w-e-item">'+k+"</li>");M.append(F);var Y=f.default(B);x.append(Y),P.push(F),I.push(Y),H===0?(F.data("active",!0),F.addClass("w-e-active")):Y.hide(),F.on("click",function(){F.data("active")||((0,l.default)(P).call(P,function($){$.data("active",!1),$.removeClass("w-e-active")}),(0,l.default)(I).call(I,function($){$.hide()}),F.data("active",!0),F.addClass("w-e-active"),Y.show())})}}),y.on("click",function(L){L.stopPropagation()}),m.$elem.append(y),A.setLinkValue&&A.setLinkValue(y,"text"),A.setLinkValue&&A.setLinkValue(y,"link"),(0,l.default)(R).call(R,function(L,H){if(L){var k=L.events||[];(0,l.default)(k).call(k,function(B){var F,Y=B.selector,$=B.type,W=B.fn||g.EMPTY_FN,G=I[H],j=(F=B.bindEnter)!==null&&F!==void 0?F:!1,z=function(ee){return h.__awaiter(v,void 0,void 0,function(){var se;return h.__generator(this,function(pe){switch(pe.label){case 0:return ee.stopPropagation(),[4,W(ee)];case 1:return se=pe.sent(),se&&this.remove(),[2]}})})};(0,s.default)(G).call(G,Y).on($,z),j&&$==="click"&&G.on("keyup",function(Z){Z.keyCode==13&&z(Z)})})}});var O=(0,s.default)(y).call(y,"input[type=text],textarea");O.length&&O.get(0).focus(),d.hideCurAllPanels(),m.setPanel(this),d.createdMenus.add(m)}},d.prototype.remove=function(){var v=this.menu,m=this.$container;m&&m.remove(),d.createdMenus.delete(v)},d.hideCurAllPanels=function(){var v;d.createdMenus.size!==0&&(0,l.default)(v=d.createdMenus).call(v,function(m){var A=m.panel;A&&A.remove()})},d.createdMenus=new u.default,d}();r.default=p},function(n,r){var t={}.toString;n.exports=function(a){return t.call(a).slice(8,-1)}},function(n,r,t){var a=t(62),i=Math.min;n.exports=function(l){return l>0?i(a(l),9007199254740991):0}},function(n,r,t){var a=t(9),i=t(8),l=function(s){return typeof s=="function"?s:void 0};n.exports=function(s,u){return arguments.length<2?l(a[s])||l(i[s]):a[s]&&a[s][u]||i[s]&&i[s][u]}},function(n,r,t){var a=t(81),i=t(18).f,l=t(19),s=t(16),u=t(170),h=t(10),f=h("toStringTag");n.exports=function(g,p,d,v){if(g){var m=d?g:g.prototype;s(m,f)||i(m,f,{configurable:!0,value:p}),v&&!a&&l(m,"toString",u)}}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(95)),u=function(h){l.__extends(f,h);function f(g,p){return h.call(this,g,p)||this}return f.prototype.setPanel=function(g){this.panel=g},f}(s.default);r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(57));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=function(){function g(p,d,v){this.editor=p,this.$targetElem=d,this.conf=v,this._show=!1,this._isInsertTextContainer=!1;var m=h.default("<div></div>");m.addClass("w-e-tooltip"),this.$container=m}return g.prototype.getPositionData=function(){var p=this.$container,d=0,v=0,m=20,A=document.documentElement.scrollTop,y=this.$targetElem.getBoundingClientRect(),C=this.editor.$textElem.getBoundingClientRect(),E=this.$targetElem.getOffsetData(),S=h.default(E.parent),w=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=S.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var T=S.getBoundingClientRect().height,b=E.top,N=E.left,M=E.height,x=b-w;x>m+5?(d=x-m-15,p.addClass("w-e-tooltip-up")):x+M+m<T?(d=x+M+10,p.addClass("w-e-tooltip-down")):(d=(x>0?x:0)+m+10,p.addClass("w-e-tooltip-down")),N<0?v=0:v=N}else y.top<m||y.top-C.top<m?(d=y.bottom+A+5,p.addClass("w-e-tooltip-down")):(d=y.top+A-m-15,p.addClass("w-e-tooltip-up")),y.left<0?v=0:v=y.left;return{top:d,left:v}},g.prototype.appendMenus=function(){var p=this,d=this.conf,v=this.editor,m=this.$targetElem,A=this.$container;(0,l.default)(d).call(d,function(y,C){var E=y.$elem,S=h.default("<div></div>");S.addClass("w-e-tooltip-item-wrapper "),S.append(E),A.append(S),E.on("click",function(w){w.preventDefault();var T=y.onClick(v,m);T&&p.remove()})})},g.prototype.create=function(){var p,d,v=this.editor,m=this.$container;this.appendMenus();var A=this.getPositionData(),y=A.top,C=A.left;m.css("top",y+"px"),m.css("left",C+"px"),m.css("z-index",v.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(m):h.default("body").append(m),this._show=!0,v.beforeDestroy((0,s.default)(p=this.remove).call(p,this)),v.txt.eventHooks.onBlurEvents.push((0,s.default)(d=this.remove).call(d,this))},g.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,i.default)(g.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),g}();r.default=f},function(n,r,t){var a=t(41);n.exports=function(i,l,s){if(a(i),l===void 0)return i;switch(s){case 0:return function(){return i.call(l)};case 1:return function(u){return i.call(l,u)};case 2:return function(u,h){return i.call(l,u,h)};case 3:return function(u,h,f){return i.call(l,u,h,f)}}return function(){return i.apply(l,arguments)}}},function(n,r){n.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},function(n,r,t){var a=t(165),i=t(8),l=t(13),s=t(19),u=t(16),h=t(63),f=t(51),g=i.WeakMap,p,d,v,m=function(T){return v(T)?d(T):p(T,{})},A=function(T){return function(b){var N;if(!l(b)||(N=d(b)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return N}};if(a){var y=new g,C=y.get,E=y.has,S=y.set;p=function(T,b){return S.call(y,T,b),b},d=function(T){return C.call(y,T)||{}},v=function(T){return E.call(y,T)}}else{var w=h("state");f[w]=!0,p=function(T,b){return s(T,w,b),b},d=function(T){return u(T,w)?T[w]:{}},v=function(T){return u(T,w)}}n.exports={set:p,get:d,has:v,enforce:m,getterFor:A}},function(n,r){n.exports=!0},function(n,r){n.exports={}},function(n,r,t){n.exports=t(261)},function(n,r,t){n.exports=t(265)},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0}),r.createElementFragment=r.createDocumentFragment=r.createElement=r.insertBefore=r.getEndPoint=r.getStartPoint=r.updateRange=r.filterSelectionNodes=void 0;var s=t(2),u=t(137),h=s.__importDefault(t(3));function f(C){var E=[];return(0,l.default)(C).call(C,function(S){var w=S.getNodeName();if(w!==u.ListType.OrderedList&&w!==u.ListType.UnorderedList)E.push(S);else if(S.prior)E.push(S.prior);else{var T=S.children();T==null||(0,l.default)(T).call(T,function(b){E.push(h.default(b))})}}),E}r.filterSelectionNodes=f;function g(C,E,S){var w=C.selection,T=document.createRange();E.length>1?(T.setStart(E.elems[0],0),T.setEnd(E.elems[E.length-1],E.elems[E.length-1].childNodes.length)):T.selectNodeContents(E.elems[0]),S&&T.collapse(!1),w.saveRange(T),w.restoreSelection()}r.updateRange=g;function p(C){var E;return C.prior?C.prior:h.default((E=C.children())===null||E===void 0?void 0:E.elems[0])}r.getStartPoint=p;function d(C){var E;return C.prior?C.prior:h.default((E=C.children())===null||E===void 0?void 0:E.last().elems[0])}r.getEndPoint=d;function v(C,E,S){S===void 0&&(S=null),C.parent().elems[0].insertBefore(E,S)}r.insertBefore=v;function m(C){return document.createElement(C)}r.createElement=m;function A(){return document.createDocumentFragment()}r.createDocumentFragment=A;function y(C,E,S){return S===void 0&&(S="li"),(0,l.default)(C).call(C,function(w){var T=m(S);T.innerHTML=w.html(),E.appendChild(T),w.remove()}),E}r.createElementFragment=y},function(n,r){n.exports=function(t,a){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:a}}},function(n,r){n.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(n,r,t){var a=t(164).charAt,i=t(42),l=t(75),s="String Iterator",u=i.set,h=i.getterFor(s);l(String,"String",function(f){u(this,{type:s,string:String(f),index:0})},function(){var g=h(this),p=g.string,d=g.index,v;return d>=p.length?{value:void 0,done:!0}:(v=a(p,d),g.index+=v.length,{value:v,done:!1})})},function(n,r){n.exports={}},function(n,r,t){var a=t(107),i=t(80);n.exports=Object.keys||function(s){return a(s,i)}},function(n,r,t){var a=t(19);n.exports=function(i,l,s,u){u&&u.enumerable?i[l]=s:a(i,l,s)}},function(n,r,t){t(173);var a=t(174),i=t(8),l=t(65),s=t(19),u=t(44),h=t(10),f=h("toStringTag");for(var g in a){var p=i[g],d=p&&p.prototype;d&&l(d)!==f&&s(d,f,g),u[g]=u.Array}},function(n,r,t){var a=t(34);n.exports=Array.isArray||function(l){return a(l)=="Array"}},function(n,r,t){var a=t(11),i=t(10),l=t(86),s=i("species");n.exports=function(u){return l>=51||!a(function(){var h=[],f=h.constructor={};return f[s]=function(){return{foo:1}},h[u](Boolean).foo!==1})}},function(n,r,t){n.exports=t(222)},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.ListHandle=void 0;var l=t(2),s=l.__importDefault(t(373)),u=function(){function h(f){this.options=f,this.selectionRangeElem=new s.default}return h}();r.ListHandle=u},function(n,r,t){var a={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,l=i&&!a.call({1:2},1);r.f=l?function(u){var h=i(this,u);return!!h&&h.enumerable}:a},function(n,r,t){var a=t(13);n.exports=function(i,l){if(!a(i))return i;var s,u;if(l&&typeof(s=i.toString)=="function"&&!a(u=s.call(i))||typeof(s=i.valueOf)=="function"&&!a(u=s.call(i))||!l&&typeof(s=i.toString)=="function"&&!a(u=s.call(i)))return u;throw TypeError("Can't convert object to primitive value")}},function(n,r){},function(n,r){var t=Math.ceil,a=Math.floor;n.exports=function(i){return isNaN(i=+i)?0:(i>0?a:t)(i)}},function(n,r,t){var a=t(74),i=t(64),l=a("keys");n.exports=function(s){return l[s]||(l[s]=i(s))}},function(n,r){var t=0,a=Math.random();n.exports=function(i){return"Symbol("+String(i===void 0?"":i)+")_"+(++t+a).toString(36)}},function(n,r,t){var a=t(81),i=t(34),l=t(10),s=l("toStringTag"),u=i(function(){return arguments}())=="Arguments",h=function(f,g){try{return f[g]}catch{}};n.exports=a?i:function(f){var g,p,d;return f===void 0?"Undefined":f===null?"Null":typeof(p=h(g=Object(f),s))=="string"?p:u?i(g):(d=i(g))=="Object"&&typeof g.callee=="function"?"Arguments":d}},function(n,r,t){var a=t(25),i=t(112),l=t(35),s=t(40),u=t(113),h=t(114),f=function(p,d){this.stopped=p,this.result=d},g=n.exports=function(p,d,v,m,A){var y=s(d,v,m?2:1),C,E,S,w,T,b,N;if(A)C=p;else{if(E=u(p),typeof E!="function")throw TypeError("Target is not iterable");if(i(E)){for(S=0,w=l(p.length);w>S;S++)if(T=m?y(a(N=p[S])[0],N[1]):y(p[S]),T&&T instanceof f)return T;return new f(!1)}C=E.call(p)}for(b=C.next;!(N=b.call(C)).done;)if(T=h(C,y,N.value,m),typeof T=="object"&&T&&T instanceof f)return T;return new f(!1)};g.stop=function(p){return new f(!0,p)}},function(n,r,t){var a=t(11);n.exports=function(i,l){var s=[][i];return!!s&&a(function(){s.call(null,l||function(){throw 1},1)})}},function(n,r){n.exports=`
\v\f\r \u2028\u2029\uFEFF`},function(n,r,t){var a=t(60),i=t(18),l=t(48);n.exports=function(s,u,h){var f=a(u);f in s?i.f(s,f,l(0,h)):s[f]=h}},function(n,r,t){n.exports=t(209)},function(n,r,t){var a=t(14),i=t(59),l=t(48),s=t(30),u=t(60),h=t(16),f=t(100),g=Object.getOwnPropertyDescriptor;r.f=a?g:function(d,v){if(d=s(d),v=u(v,!0),f)try{return g(d,v)}catch{}if(h(d,v))return l(!i.f.call(d,v),d[v])}},function(n,r,t){var a=t(11),i=t(34),l="".split;n.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(s){return i(s)=="String"?l.call(s,""):Object(s)}:Object},function(n,r,t){var a=t(8),i=t(13),l=a.document,s=i(l)&&i(l.createElement);n.exports=function(u){return s?l.createElement(u):{}}},function(n,r,t){var a=t(43),i=t(103);(n.exports=function(l,s){return i[l]||(i[l]=s!==void 0?s:{})})("versions",[]).push({version:"3.6.4",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(n,r,t){var a=t(5),i=t(167),l=t(105),s=t(171),u=t(37),h=t(19),f=t(53),g=t(10),p=t(43),d=t(44),v=t(104),m=v.IteratorPrototype,A=v.BUGGY_SAFARI_ITERATORS,y=g("iterator"),C="keys",E="values",S="entries",w=function(){return this};n.exports=function(T,b,N,M,x,D,R){i(N,b,M);var P=function(W){if(W===x&&k)return k;if(!A&&W in L)return L[W];switch(W){case C:return function(){return new N(this,W)};case E:return function(){return new N(this,W)};case S:return function(){return new N(this,W)}}return function(){return new N(this)}},I=b+" Iterator",O=!1,L=T.prototype,H=L[y]||L["@@iterator"]||x&&L[x],k=!A&&H||P(x),B=b=="Array"&&L.entries||H,F,Y,$;if(B&&(F=l(B.call(new T)),m!==Object.prototype&&F.next&&(!p&&l(F)!==m&&(s?s(F,m):typeof F[y]!="function"&&h(F,y,w)),u(F,I,!0,!0),p&&(d[I]=w))),x==E&&H&&H.name!==E&&(O=!0,k=function(){return H.call(this)}),(!p||R)&&L[y]!==k&&h(L,y,k),d[b]=k,x)if(Y={values:P(E),keys:D?k:P(C),entries:P(S)},R)for($ in Y)(A||O||!($ in L))&&f(L,$,Y[$]);else a({target:b,proto:!0,forced:A||O},Y);return Y}},function(n,r,t){var a=t(11);n.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},function(n,r,t){var a=t(25),i=t(169),l=t(80),s=t(51),u=t(108),h=t(73),f=t(63),g=">",p="<",d="prototype",v="script",m=f("IE_PROTO"),A=function(){},y=function(T){return p+v+g+T+p+"/"+v+g},C=function(T){T.write(y("")),T.close();var b=T.parentWindow.Object;return T=null,b},E=function(){var T=h("iframe"),b="java"+v+":",N;return T.style.display="none",u.appendChild(T),T.src=String(b),N=T.contentWindow.document,N.open(),N.write(y("document.F=Object")),N.close(),N.F},S,w=function(){try{S=document.domain&&new ActiveXObject("htmlfile")}catch{}w=S?C(S):E();for(var T=l.length;T--;)delete w[d][l[T]];return w()};s[m]=!0,n.exports=Object.create||function(b,N){var M;return b!==null?(A[d]=a(b),M=new A,A[d]=null,M[m]=b):M=w(),N===void 0?M:i(M,N)}},function(n,r,t){var a=t(30),i=t(35),l=t(79),s=function(u){return function(h,f,g){var p=a(h),d=i(p.length),v=l(g,d),m;if(u&&f!=f){for(;d>v;)if(m=p[v++],m!=m)return!0}else for(;d>v;v++)if((u||v in p)&&p[v]===f)return u||v||0;return!u&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},function(n,r,t){var a=t(62),i=Math.max,l=Math.min;n.exports=function(s,u){var h=a(s);return h<0?i(h+u,0):l(h,u)}},function(n,r){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(n,r,t){var a=t(10),i=a("toStringTag"),l={};l[i]="z",n.exports=String(l)==="[object z]"},function(n,r){n.exports=function(){}},function(n,r){n.exports=function(t,a,i){if(!(t instanceof a))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return t}},function(n,r,t){var a=t(36);n.exports=a("navigator","userAgent")||""},function(n,r,t){var a=t(41),i=function(l){var s,u;this.promise=new l(function(h,f){if(s!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");s=h,u=f}),this.resolve=a(s),this.reject=a(u)};n.exports.f=function(l){return new i(l)}},function(n,r,t){var a=t(8),i=t(84),l=a.process,s=l&&l.versions,u=s&&s.v8,h,f;u?(h=u.split("."),f=h[0]+h[1]):i&&(h=i.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=i.match(/Chrome\/(\d+)/),h&&(f=h[1]))),n.exports=f&&+f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(6),f=s.__importDefault(t(267)),g=s.__importDefault(t(280)),p=s.__importDefault(t(281)),d=s.__importDefault(t(282)),v=s.__importDefault(t(301)),m=s.__importStar(t(416)),A=s.__importDefault(t(417)),y=s.__importDefault(t(418)),C=s.__importDefault(t(419)),E=s.__importStar(t(420)),S=s.__importDefault(t(423)),w=s.__importDefault(t(424)),T=s.__importDefault(t(425)),b=s.__importDefault(t(427)),N=s.__importDefault(t(437)),M=s.__importDefault(t(440)),x=s.__importStar(t(441)),D=s.__importDefault(t(23)),R=s.__importDefault(t(134)),P=s.__importDefault(t(24)),I=s.__importDefault(t(33)),O=s.__importDefault(t(38)),L=s.__importDefault(t(39)),H=1,k=function(){function B(F,Y){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+H++,this.toolbarSelector=F,this.textSelector=Y,m.selectorValidator(this),this.config=h.deepClone(f.default),this.$toolbarElem=u.default("<div></div>"),this.$textContainerElem=u.default("<div></div>"),this.$textElem=u.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new g.default(this),this.cmd=new p.default(this),this.txt=new d.default(this),this.menus=new v.default(this),this.zIndex=new w.default,this.change=new T.default(this),this.history=new b.default(this),this.onSelectionChange=new M.default(this);var $=N.default(this),W=$.disable,G=$.enable;this.disable=W,this.enable=G,this.isEnable=!0}return B.prototype.initSelection=function(F){A.default(this,F)},B.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),C.default(this),m.default(this),this.txt.init(),this.menus.init(),E.default(this),this.initSelection(!0),y.default(this),this.change.observe(),this.history.observe(),x.default(this)},B.prototype.beforeDestroy=function(F){return this.beforeDestroyHooks.push(F),this},B.prototype.destroy=function(){var F,Y=this;(0,l.default)(F=this.beforeDestroyHooks).call(F,function($){return $.call(Y)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},B.prototype.fullScreen=function(){E.setFullScreen(this)},B.prototype.unFullScreen=function(){E.setUnFullScreen(this)},B.prototype.scrollToHead=function(F){S.default(this,F)},B.registerMenu=function(F,Y){!Y||typeof Y!="function"||(B.globalCustomMenuConstructorList[F]=Y)},B.prototype.registerPlugin=function(F,Y){x.registerPlugin(F,Y,this.pluginsFunctionList)},B.registerPlugin=function(F,Y){x.registerPlugin(F,Y,B.globalPluginsFunctionList)},B.$=u.default,B.BtnMenu=D.default,B.DropList=R.default,B.DropListMenu=P.default,B.Panel=I.default,B.PanelMenu=O.default,B.Tooltip=L.default,B.globalCustomMenuConstructorList={},B.globalPluginsFunctionList={},B}();r.default=k},function(n,r,t){var a=t(13),i=t(55),l=t(10),s=l("species");n.exports=function(u,h){var f;return i(u)&&(f=u.constructor,typeof f=="function"&&(f===Array||i(f.prototype))?f=void 0:a(f)&&(f=f[s],f===null&&(f=void 0))),new(f===void 0?Array:f)(h===0?0:h)}},function(n,r,t){n.exports=t(185)},function(n,r,t){var a=t(49),i=t(68),l="["+i+"]",s=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),h=function(f){return function(g){var p=String(a(g));return f&1&&(p=p.replace(s,"")),f&2&&(p=p.replace(u,"")),p}};n.exports={start:h(1),end:h(2),trim:h(3)}},function(n,r,t){n.exports=t(205)},function(n,r,t){var a=t(227),i=t(230);function l(s){"@babel/helpers - typeof";return typeof i=="function"&&typeof a=="symbol"?n.exports=l=function(h){return typeof h}:n.exports=l=function(h){return h&&typeof i=="function"&&h.constructor===i&&h!==i.prototype?"symbol":typeof h},l(s)}n.exports=l},function(n,r,t){var a=t(10);r.f=a},function(n,r,t){n.exports=t(306)},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(33)),h=function(){function f(g,p){var d=this;this.$elem=g,this.editor=p,this._active=!1,g.on("click",function(v){var m;u.default.hideCurAllPanels(),(0,l.default)(m=p.txt.eventHooks.menuClickEvents).call(m,function(A){return A()}),v.stopPropagation(),p.selection.getRange()!=null&&d.clickHandler(v)})}return f.prototype.clickHandler=function(g){},f.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},f.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,i.default)(f.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(28));(0,i.default)(r,"__esModule",{value:!0}),r.getParentNodeA=r.EXTRA_TAG=void 0,r.EXTRA_TAG=["B","FONT","I","STRIKE"];function s(h){for(var f=h.elems[0];f&&(0,l.default)(g=r.EXTRA_TAG).call(g,f.nodeName);){var g;if(f=f.parentElement,f.nodeName==="A")return f}}r.getParentNodeA=s;function u(h){var f,g=h.selection.getSelectionContainerElem();if(!(!((f=g==null?void 0:g.elems)===null||f===void 0)&&f.length))return!1;if(g.getNodeName()==="A")return!0;var p=s(g);return!!(p&&p.nodeName==="A")}r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(57)),s=a(t(4)),u=a(t(27));(0,i.default)(r,"__esModule",{value:!0});var h=t(2),f=t(6),g=h.__importDefault(t(135)),p=h.__importDefault(t(136)),d=function(){function v(m){this.editor=m}return v.prototype.insertImg=function(m,A,y){var C=this.editor,E=C.config,S="validate.",w=function(D,R){return R===void 0&&(R=S),C.i18next.t(R+D)},T=m.replace(/</g,"<").replace(/>/g,">");T=T.replace("'",'"');var b="";y&&(b=y.replace("'",'"'),b="data-href='"+encodeURIComponent(b)+"' ");var N="";A&&(N=A.replace(/</g,"<").replace(/>/g,">"),N=N.replace("'",'"'),N="alt='"+N+"' "),C.cmd.do("insertHTML","<img src='"+T+"' "+N+b+'style="max-width:100%;" contenteditable="false"/>'),E.linkImgCallback(m,A,y);var M=document.createElement("img");M.onload=function(){M=null},M.onerror=function(){E.customAlert(w("插入图片错误"),"error","wangEditor: "+w("插入图片错误")+","+w("图片链接")+' "'+m+'",'+w("下载链接失败")),M=null},M.onabort=function(){return M=null},M.src=m},v.prototype.uploadImg=function(m){var A=this;if(m.length){var y=this.editor,C=y.config,E="validate.",S=function(z){return y.i18next.t(E+z)},w=C.uploadImgServer,T=C.uploadImgShowBase64,b=C.uploadImgMaxSize,N=b/1024/1024,M=C.uploadImgMaxLength,x=C.uploadFileName,D=C.uploadImgParams,R=C.uploadImgParamsWithUrl,P=C.uploadImgHeaders,I=C.uploadImgHooks,O=C.uploadImgTimeout,L=C.withCredentials,H=C.customUploadImg;if(!(!H&&!w&&!T)){var k=[],B=[];if(f.arrForEach(m,function(j){if(j){var z=j.name||j.type.replace("/","."),Z=j.size;if(!(!z||!Z)){var ee=y.config.uploadImgAccept.join("|"),se=".("+ee+")$",pe=new RegExp(se,"i");if(pe.test(z)===!1){B.push("【"+z+"】"+S("不是图片"));return}if(b<Z){B.push("【"+z+"】"+S("大于")+" "+N+"M");return}k.push(j)}}}),B.length){C.customAlert(S("图片验证未通过")+`:
`+B.join(`
`),"warning");return}if(k.length===0){C.customAlert(S("传入的文件不合法"),"warning");return}if(k.length>M){C.customAlert(S("一次最多上传")+M+S("张图片"),"warning");return}if(H&&typeof H=="function"){var F;H(k,(0,l.default)(F=this.insertImg).call(F,this));return}var Y=new FormData;if((0,s.default)(k).call(k,function(j,z){var Z=x||j.name;k.length>1&&(Z=Z+(z+1)),Y.append(Z,j)}),w){var $=w.split("#");w=$[0];var W=$[1]||"";(0,s.default)(f).call(f,D,function(j,z){R&&((0,u.default)(w).call(w,"?")>0?w+="&":w+="?",w=w+j+"="+z),Y.append(j,z)}),W&&(w+="#"+W);var G=g.default(w,{timeout:O,formData:Y,headers:P,withCredentials:!!L,beforeSend:function(z){if(I.before)return I.before(z,y,k)},onTimeout:function(z){C.customAlert(S("上传图片超时"),"error"),I.timeout&&I.timeout(z,y)},onProgress:function(z,Z){var ee=new p.default(y);Z.lengthComputable&&(z=Z.loaded/Z.total,ee.show(z))},onError:function(z){C.customAlert(S("上传图片错误"),"error",S("上传图片错误")+","+S("服务器返回状态")+": "+z.status),I.error&&I.error(z,y)},onFail:function(z,Z){C.customAlert(S("上传图片失败"),"error",S("上传图片返回结果错误")+(","+S("返回结果")+": ")+Z),I.fail&&I.fail(z,y,Z)},onSuccess:function(z,Z){if(I.customInsert){var ee;I.customInsert((0,l.default)(ee=A.insertImg).call(ee,A),Z,y);return}if(Z.errno!="0"){C.customAlert(S("上传图片失败"),"error",S("上传图片返回结果错误")+","+S("返回结果")+" errno="+Z.errno),I.fail&&I.fail(z,y,Z);return}var se=Z.data;(0,s.default)(se).call(se,function(pe){typeof pe=="string"?A.insertImg(pe):A.insertImg(pe.url,pe.alt,pe.href)}),I.success&&I.success(z,y,Z)}});typeof G=="string"&&C.customAlert(G,"error");return}T&&f.arrForEach(m,function(j){var z=A,Z=new FileReader;Z.readAsDataURL(j),Z.onload=function(){if(this.result){var ee=this.result.toString();z.insertImg(ee,ee)}}})}}},v}();r.default=d},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(410)),s=a(t(4)),u=a(t(45));(0,i.default)(r,"__esModule",{value:!0}),r.dealTextNode=r.isAllTodo=r.isTodo=r.getCursorNextNode=void 0;function h(v){return v.length?v.attr("class")==="w-e-todo":!1}r.isTodo=h;function f(v){var m=v.selection.getSelectionRangeTopNodes();if(m.length!==0)return(0,l.default)(m).call(m,function(A){return h(A)})}r.isAllTodo=f;function g(v,m,A){var y;if(v.hasChildNodes()){var C=v.cloneNode(),E=!1;m.nodeValue===""&&(E=!0);var S=[];return(0,s.default)(y=v.childNodes).call(y,function(w){if(!p(w,m)&&E&&(C.appendChild(w.cloneNode(!0)),w.nodeName!=="BR"&&S.push(w)),p(w,m)){if(w.nodeType===1){var T=g(w,m,A);T&&T.textContent!==""&&(C==null||C.appendChild(T))}if(w.nodeType===3&&m.isEqualNode(w)){var b=d(w,A);C.textContent=b}E=!0}}),(0,s.default)(S).call(S,function(w){var T=w;T.remove()}),C}}r.getCursorNextNode=g;function p(v,m){return v.nodeType===3?v.nodeValue===m.nodeValue:v.contains(m)}function d(v,m,A){A===void 0&&(A=!0);var y=v.nodeValue,C=y==null?void 0:(0,u.default)(y).call(y,0,m);if(y=y==null?void 0:(0,u.default)(y).call(y,m),!A){var E=y;y=C,C=E}return v.nodeValue=C,y}r.dealTextNode=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(430),s=function(){function u(h){this.maxSize=h,this.isRe=!1,this.data=new l.CeilStack(h),this.revokeData=new l.CeilStack(h)}return(0,i.default)(u.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),u.prototype.resetMaxSize=function(h){this.data.resetMax(h),this.revokeData.resetMax(h)},u.prototype.save=function(h){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(h),this},u.prototype.revoke=function(h){!this.isRe&&(this.isRe=!0);var f=this.data.outstack();return f?(this.revokeData.instack(f),h(f),!0):!1},u.prototype.restore=function(h){!this.isRe&&(this.isRe=!0);var f=this.revokeData.outstack();return f?(this.data.instack(f),h(f),!0):!1},u}();r.default=s},function(n,r,t){var a=t(14),i=t(11),l=t(73);n.exports=!a&&!i(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},function(n,r,t){var a=t(11),i=/#|\.prototype\./,l=function(g,p){var d=u[s(g)];return d==f?!0:d==h?!1:typeof p=="function"?a(p):!!p},s=l.normalize=function(g){return String(g).replace(i,".").toLowerCase()},u=l.data={},h=l.NATIVE="N",f=l.POLYFILL="P";n.exports=l},function(n,r,t){var a=t(103),i=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(l){return i.call(l)}),n.exports=a.inspectSource},function(n,r,t){var a=t(8),i=t(166),l="__core-js_shared__",s=a[l]||i(l,{});n.exports=s},function(n,r,t){var a=t(105),i=t(19),l=t(16),s=t(10),u=t(43),h=s("iterator"),f=!1,g=function(){return this},p,d,v;[].keys&&(v=[].keys(),"next"in v?(d=a(a(v)),d!==Object.prototype&&(p=d)):f=!0),p==null&&(p={}),!u&&!l(p,h)&&i(p,h,g),n.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}},function(n,r,t){var a=t(16),i=t(31),l=t(63),s=t(168),u=l("IE_PROTO"),h=Object.prototype;n.exports=s?Object.getPrototypeOf:function(f){return f=i(f),a(f,u)?f[u]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},function(n,r,t){var a=t(76);n.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(n,r,t){var a=t(16),i=t(30),l=t(78).indexOf,s=t(51);n.exports=function(u,h){var f=i(u),g=0,p=[],d;for(d in f)!a(s,d)&&a(f,d)&&p.push(d);for(;h.length>g;)a(f,d=h[g++])&&(~l(p,d)||p.push(d));return p}},function(n,r,t){var a=t(36);n.exports=a("document","documentElement")},function(n,r,t){var a=t(8);n.exports=a.Promise},function(n,r,t){var a=t(53);n.exports=function(i,l,s){for(var u in l)s&&s.unsafe&&i[u]?i[u]=l[u]:a(i,u,l[u],s);return i}},function(n,r,t){var a=t(36),i=t(18),l=t(10),s=t(14),u=l("species");n.exports=function(h){var f=a(h),g=i.f;s&&f&&!f[u]&&g(f,u,{configurable:!0,get:function(){return this}})}},function(n,r,t){var a=t(10),i=t(44),l=a("iterator"),s=Array.prototype;n.exports=function(u){return u!==void 0&&(i.Array===u||s[l]===u)}},function(n,r,t){var a=t(65),i=t(44),l=t(10),s=l("iterator");n.exports=function(u){if(u!=null)return u[s]||u["@@iterator"]||i[a(u)]}},function(n,r,t){var a=t(25);n.exports=function(i,l,s,u){try{return u?l(a(s)[0],s[1]):l(s)}catch(f){var h=i.return;throw h!==void 0&&a(h.call(i)),f}}},function(n,r,t){var a=t(10),i=a("iterator"),l=!1;try{var s=0,u={next:function(){return{done:!!s++}},return:function(){l=!0}};u[i]=function(){return this},Array.from(u,function(){throw 2})}catch{}n.exports=function(h,f){if(!f&&!l)return!1;var g=!1;try{var p={};p[i]=function(){return{next:function(){return{done:g=!0}}}},h(p)}catch{}return g}},function(n,r,t){var a=t(25),i=t(41),l=t(10),s=l("species");n.exports=function(u,h){var f=a(u).constructor,g;return f===void 0||(g=a(f)[s])==null?h:i(g)}},function(n,r,t){var a=t(8),i=t(11),l=t(34),s=t(40),u=t(108),h=t(73),f=t(118),g=a.location,p=a.setImmediate,d=a.clearImmediate,v=a.process,m=a.MessageChannel,A=a.Dispatch,y=0,C={},E="onreadystatechange",S,w,T,b=function(D){if(C.hasOwnProperty(D)){var R=C[D];delete C[D],R()}},N=function(D){return function(){b(D)}},M=function(D){b(D.data)},x=function(D){a.postMessage(D+"",g.protocol+"//"+g.host)};(!p||!d)&&(p=function(R){for(var P=[],I=1;arguments.length>I;)P.push(arguments[I++]);return C[++y]=function(){(typeof R=="function"?R:Function(R)).apply(void 0,P)},S(y),y},d=function(R){delete C[R]},l(v)=="process"?S=function(D){v.nextTick(N(D))}:A&&A.now?S=function(D){A.now(N(D))}:m&&!f?(w=new m,T=w.port2,w.port1.onmessage=M,S=s(T.postMessage,T,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts&&!i(x)&&g.protocol!=="file:"?(S=x,a.addEventListener("message",M,!1)):E in h("script")?S=function(D){u.appendChild(h("script"))[E]=function(){u.removeChild(this),b(D)}}:S=function(D){setTimeout(N(D),0)}),n.exports={set:p,clear:d}},function(n,r,t){var a=t(84);n.exports=/(iphone|ipod|ipad).*applewebkit/i.test(a)},function(n,r,t){var a=t(25),i=t(13),l=t(85);n.exports=function(s,u){if(a(s),i(u)&&u.constructor===s)return u;var h=l.f(s),f=h.resolve;return f(u),h.promise}},function(n,r){n.exports=function(t){try{return{error:!1,value:t()}}catch(a){return{error:!0,value:a}}}},function(n,r,t){n.exports=t(197)},function(n,r,t){var a=t(5),i=t(8),l=t(123),s=t(11),u=t(19),h=t(66),f=t(83),g=t(13),p=t(37),d=t(18).f,v=t(32).forEach,m=t(14),A=t(42),y=A.set,C=A.getterFor;n.exports=function(E,S,w){var T=E.indexOf("Map")!==-1,b=E.indexOf("Weak")!==-1,N=T?"set":"add",M=i[E],x=M&&M.prototype,D={},R;if(!m||typeof M!="function"||!(b||x.forEach&&!s(function(){new M().entries().next()})))R=w.getConstructor(S,E,T,N),l.REQUIRED=!0;else{R=S(function(I,O){y(f(I,R,E),{type:E,collection:new M}),O!=null&&h(O,I[N],I,T)});var P=C(E);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(I){var O=I=="add"||I=="set";I in x&&!(b&&I=="clear")&&u(R.prototype,I,function(L,H){var k=P(this).collection;if(!O&&b&&!g(L))return I=="get"?void 0:!1;var B=k[I](L===0?0:L,H);return O?this:B})}),b||d(R.prototype,"size",{configurable:!0,get:function(){return P(this).collection.size}})}return p(R,E,!1,!0),D[E]=R,a({global:!0,forced:!0},D),b||w.setStrong(R,E,T),R}},function(n,r,t){var a=t(51),i=t(13),l=t(16),s=t(18).f,u=t(64),h=t(200),f=u("meta"),g=0,p=Object.isExtensible||function(){return!0},d=function(C){s(C,f,{value:{objectID:"O"+ ++g,weakData:{}}})},v=function(C,E){if(!i(C))return typeof C=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!l(C,f)){if(!p(C))return"F";if(!E)return"E";d(C)}return C[f].objectID},m=function(C,E){if(!l(C,f)){if(!p(C))return!0;if(!E)return!1;d(C)}return C[f].weakData},A=function(C){return h&&y.REQUIRED&&p(C)&&!l(C,f)&&d(C),C},y=n.exports={REQUIRED:!1,fastKey:v,getWeakData:m,onFreeze:A};a[f]=!0},function(n,r,t){var a=t(18).f,i=t(77),l=t(110),s=t(40),u=t(83),h=t(66),f=t(75),g=t(111),p=t(14),d=t(123).fastKey,v=t(42),m=v.set,A=v.getterFor;n.exports={getConstructor:function(y,C,E,S){var w=y(function(M,x){u(M,w,C),m(M,{type:C,index:i(null),first:void 0,last:void 0,size:0}),p||(M.size=0),x!=null&&h(x,M[S],M,E)}),T=A(C),b=function(M,x,D){var R=T(M),P=N(M,x),I,O;return P?P.value=D:(R.last=P={index:O=d(x,!0),key:x,value:D,previous:I=R.last,next:void 0,removed:!1},R.first||(R.first=P),I&&(I.next=P),p?R.size++:M.size++,O!=="F"&&(R.index[O]=P)),M},N=function(M,x){var D=T(M),R=d(x),P;if(R!=="F")return D.index[R];for(P=D.first;P;P=P.next)if(P.key==x)return P};return l(w.prototype,{clear:function(){for(var x=this,D=T(x),R=D.index,P=D.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=void 0),delete R[P.index],P=P.next;D.first=D.last=void 0,p?D.size=0:x.size=0},delete:function(M){var x=this,D=T(x),R=N(x,M);if(R){var P=R.next,I=R.previous;delete D.index[R.index],R.removed=!0,I&&(I.next=P),P&&(P.previous=I),D.first==R&&(D.first=P),D.last==R&&(D.last=I),p?D.size--:x.size--}return!!R},forEach:function(x){for(var D=T(this),R=s(x,arguments.length>1?arguments[1]:void 0,3),P;P=P?P.next:D.first;)for(R(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(x){return!!N(this,x)}}),l(w.prototype,E?{get:function(x){var D=N(this,x);return D&&D.value},set:function(x,D){return b(this,x===0?0:x,D)}}:{add:function(x){return b(this,x=x===0?0:x,x)}}),p&&a(w.prototype,"size",{get:function(){return T(this).size}}),w},setStrong:function(y,C,E){var S=C+" Iterator",w=A(C),T=A(S);f(y,C,function(b,N){m(this,{type:S,target:b,state:w(b),kind:N,last:void 0})},function(){for(var b=T(this),N=b.kind,M=b.last;M&&M.removed;)M=M.previous;return!b.target||!(b.last=M=M?M.next:b.state.first)?(b.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:M.key,done:!1}:N=="values"?{value:M.value,done:!1}:{value:[M.key,M.value],done:!1}},E?"entries":"values",!E,!0),g(C)}}},function(n,r,t){var a=t(12);a("iterator")},function(n,r,t){var a=t(107),i=t(80),l=i.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(u){return a(u,l)}},function(n,r){r.f=Object.getOwnPropertySymbols},function(n,r,t){n.exports=t(268)},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={zIndex:1e4}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={focus:!0,height:300,placeholder:"请输入正文",zIndexFullScreen:10002,showFullScreen:!0}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0}),r.getPasteImgs=r.getPasteHtml=r.getPasteText=void 0;var s=t(2),u=t(6),h=s.__importDefault(t(292));function f(d){var v=d.clipboardData,m="";return v==null?m=window.clipboardData&&window.clipboardData.getData("text"):m=v.getData("text/plain"),u.replaceHtmlSymbol(m)}r.getPasteText=f;function g(d,v,m){v===void 0&&(v=!0),m===void 0&&(m=!1);var A=d.clipboardData,y="";if(A&&(y=A.getData("text/html")),!y){var C=f(d);if(!C)return"";y="<p>"+C+"</p>"}return y=y.replace(/<(\d)/gm,function(E,S){return"<"+S}),y=y.replace(/<(\/?meta.*?)>/gim,""),y=h.default(y,v,m),y}r.getPasteHtml=g;function p(d){var v,m=[],A=f(d);if(A)return m;var y=(v=d.clipboardData)===null||v===void 0?void 0:v.items;return y&&(0,l.default)(u).call(u,y,function(C,E){var S=E.type;/image/i.test(S)&&m.push(E.getAsFile())}),m}r.getPasteImgs=p},function(n,r,t){n.exports=t(294)},function(n,r,t){n.exports=t(310)},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(46));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=t(7),g=function(){function p(d,v){var m=this;this.hideTimeoutId=0,this.menu=d,this.conf=v;var A=h.default('<div class="w-e-droplist"></div>'),y=h.default("<p>"+v.title+"</p>");y.addClass("w-e-dp-title"),A.append(y);var C=v.list||[],E=v.type||"list",S=v.clickHandler||f.EMPTY_FN,w=h.default('<ul class="'+(E==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,l.default)(C).call(C,function(T){var b=T.$elem,N=T.value,M=h.default('<li class="w-e-item"></li>');b&&(M.append(b),w.append(M),M.on("click",function(x){S(N),x.stopPropagation(),m.hideTimeoutId=(0,s.default)(function(){m.hide()})}))}),A.append(w),A.on("mouseleave",function(){m.hideTimeoutId=(0,s.default)(function(){m.hide()})}),this.$container=A,this.rendered=!1,this._show=!1}return p.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var d=this.menu,v=d.$elem,m=this.$container;if(!this._show){if(this.rendered)m.show();else{var A=v.getBoundingClientRect().height||0,y=this.conf.width||100;m.css("margin-top",A+"px").css("width",y+"px"),v.append(m),this.rendered=!0}this._show=!0}},p.prototype.hide=function(){var d=this.$container;this._show&&(d.hide(),this._show=!1)},(0,i.default)(p.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),p}();r.default=g},function(n,r,t){var a=t(0),i=a(t(92)),l=a(t(1)),s=a(t(4));(0,l.default)(r,"__esModule",{value:!0});var u=t(6);function h(f,g){var p=new XMLHttpRequest;if(p.open("POST",f),p.timeout=g.timeout||10*1e3,p.ontimeout=function(){console.error("wangEditor - 请求超时"),g.onTimeout&&g.onTimeout(p)},p.upload&&(p.upload.onprogress=function(v){var m=v.loaded/v.total;g.onProgress&&g.onProgress(m,v)}),g.headers&&(0,s.default)(u).call(u,g.headers,function(v,m){p.setRequestHeader(v,m)}),p.withCredentials=!!g.withCredentials,g.beforeSend){var d=g.beforeSend(p);if(d&&(0,i.default)(d)==="object"&&d.prevent)return d.msg}return p.onreadystatechange=function(){if(p.readyState===4){var v=p.status;if(!(v<200)&&!(v>=300&&v<400)){if(v>=400){console.error("wangEditor - XHR 报错,状态码 "+v),g.onError&&g.onError(p);return}var m=p.responseText,A;if((0,i.default)(m)!=="object")try{A=JSON.parse(m)}catch{console.error("wangEditor - 返回结果不是 JSON 格式",m),g.onFail&&g.onFail(p,m);return}else A=m;g.onSuccess(p,A)}}},p.send(g.formData||null),p}r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(342)),s=a(t(46));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=function(){function g(p){this.editor=p,this.$textContainer=p.$textContainerElem,this.$bar=h.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return g.prototype.show=function(p){var d=this;if(!this.isShow){this.isShow=!0;var v=this.$bar,m=this.$textContainer;m.append(v),(0,l.default)()-this.time>100&&p<=1&&(v.css("width",p*100+"%"),this.time=(0,l.default)());var A=this.timeoutId;A&&clearTimeout(A),this.timeoutId=(0,s.default)(function(){d.hide()},500)}},g.prototype.hide=function(){var p=this.$bar;p.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},g}();r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.ListType=void 0;var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(24)),h=t(47),f=l.__importStar(t(371)),g;(function(d){d.OrderedList="OL",d.UnorderedList="UL"})(g=r.ListType||(r.ListType={}));var p=function(d){l.__extends(v,d);function v(m){var A=this,y=s.default(`<div class="w-e-menu" data-title="序列">
<i class="w-e-icon-list2"></i>
</div>`),C={width:130,title:"序列",type:"list",list:[{$elem:s.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.list.无序列表")+`
<p>`),value:g.UnorderedList},{$elem:s.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+m.i18next.t("menus.dropListMenu.list.有序列表")+`
<p>`),value:g.OrderedList}],clickHandler:function(S){A.command(S)}};return A=d.call(this,y,m,C)||this,A}return v.prototype.command=function(m){var A=this.editor,y=A.selection.getSelectionContainerElem();y!==void 0&&(this.handleSelectionRangeNodes(m),this.tryChangeActive())},v.prototype.validator=function(m,A,y){return!(!m.length||!A.length||y.equal(m)||y.equal(A))},v.prototype.handleSelectionRangeNodes=function(m){var A=this.editor,y=A.selection,C=m.toLowerCase(),E=y.getSelectionContainerElem(),S=y.getSelectionStartElem().getNodeTop(A),w=y.getSelectionEndElem().getNodeTop(A);if(this.validator(S,w,A.$textElem)){var T=y.getRange(),b=T==null?void 0:T.collapsed;A.$textElem.equal(E)||(E=E.getNodeTop(A));var N={editor:A,listType:m,listTarget:C,$selectionElem:E,$startElem:S,$endElem:w},M;this.isOrderElem(E)?M=f.ClassType.Wrap:this.isOrderElem(S)&&this.isOrderElem(w)?M=f.ClassType.Join:this.isOrderElem(S)?M=f.ClassType.StartJoin:this.isOrderElem(w)?M=f.ClassType.EndJoin:M=f.ClassType.Other;var x=new f.default(f.createListHandle(M,N,T));h.updateRange(A,x.getSelectionRangeElem(),!!b)}},v.prototype.isOrderElem=function(m){var A=m.getNodeName();return A===g.OrderedList||A===g.UnorderedList},v.prototype.tryChangeActive=function(){},v}(u.default);r.default=p},function(n,r,t){n.exports=t(395)},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});function l(s){var u=s.selection.getSelectionContainerElem();return u!=null&&u.length?!!(u.getNodeName()=="CODE"||u.getNodeName()=="PRE"||u.parent().getNodeName()=="CODE"||u.parent().getNodeName()=="PRE"||/hljs/.test(u.parent().attr("class"))):!1}r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29));(0,i.default)(r,"__esModule",{value:!0}),r.todo=void 0;var s=t(2),u=s.__importDefault(t(3)),h=function(){function g(p){var d;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=u.default(this.template),this.$child=(d=p==null?void 0:p.childNodes())===null||d===void 0?void 0:d.clone(!0)}return g.prototype.init=function(){var p=this.$child,d=this.getInputContainer();p&&p.insertAfter(d)},g.prototype.getInput=function(){var p=this.$todo,d=(0,l.default)(p).call(p,"input");return d},g.prototype.getInputContainer=function(){var p=this.getInput().parent();return p},g.prototype.getTodo=function(){return this.$todo},g}();r.todo=h;function f(g){var p=new h(g);return p.init(),p}r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2);t(146),t(148),t(152),t(154),t(156),t(158),t(160);var s=l.__importDefault(t(87));l.__exportStar(t(442),r);try{}catch{throw new Error("请在浏览器环境下运行")}r.default=s.default},function(n,r,t){var a=t(143);n.exports=a},function(n,r,t){t(144);var a=t(9),i=a.Object,l=n.exports=function(u,h,f){return i.defineProperty(u,h,f)};i.defineProperty.sham&&(l.sham=!0)},function(n,r,t){var a=t(5),i=t(14),l=t(18);a({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:l.f})},function(n,r){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}n.exports=t},function(n,r,t){var a=t(20),i=t(147);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-toolbar,
.w-e-text-container,
.w-e-menu-panel {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: #fff;
/*表情菜单样式*/
/*分割线样式*/
}
.w-e-toolbar h1,
.w-e-text-container h1,
.w-e-menu-panel h1 {
font-size: 32px !important;
}
.w-e-toolbar h2,
.w-e-text-container h2,
.w-e-menu-panel h2 {
font-size: 24px !important;
}
.w-e-toolbar h3,
.w-e-text-container h3,
.w-e-menu-panel h3 {
font-size: 18.72px !important;
}
.w-e-toolbar h4,
.w-e-text-container h4,
.w-e-menu-panel h4 {
font-size: 16px !important;
}
.w-e-toolbar h5,
.w-e-text-container h5,
.w-e-menu-panel h5 {
font-size: 13.28px !important;
}
.w-e-toolbar p,
.w-e-text-container p,
.w-e-menu-panel p {
font-size: 16px !important;
}
.w-e-toolbar .eleImg,
.w-e-text-container .eleImg,
.w-e-menu-panel .eleImg {
cursor: pointer;
display: inline-block;
font-size: 18px;
padding: 0 3px;
}
.w-e-toolbar *,
.w-e-text-container *,
.w-e-menu-panel * {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.w-e-toolbar hr,
.w-e-text-container hr,
.w-e-menu-panel hr {
cursor: pointer;
display: block;
height: 0px;
border: 0;
border-top: 3px solid #ccc;
margin: 20px 0;
}
.w-e-clear-fix:after {
content: "";
display: table;
clear: both;
}
.w-e-drop-list-item {
position: relative;
top: 1px;
padding-right: 7px;
color: #333 !important;
}
.w-e-drop-list-tl {
padding-left: 10px;
text-align: left;
}
`,""]),n.exports=r},function(n,r,t){var a=t(20),i=t(149);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21),i=t(150),l=t(151);r=a(!1);var s=i(l);r.push([n.i,`@font-face {
font-family: 'w-e-icon';
src: url(`+s+`) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="w-e-icon-"],
[class*=" w-e-icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'w-e-icon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.w-e-icon-close:before {
content: "\\f00d";
}
.w-e-icon-upload2:before {
content: "\\e9c6";
}
.w-e-icon-trash-o:before {
content: "\\f014";
}
.w-e-icon-header:before {
content: "\\f1dc";
}
.w-e-icon-pencil2:before {
content: "\\e906";
}
.w-e-icon-paint-brush:before {
content: "\\f1fc";
}
.w-e-icon-image:before {
content: "\\e90d";
}
.w-e-icon-play:before {
content: "\\e912";
}
.w-e-icon-location:before {
content: "\\e947";
}
.w-e-icon-undo:before {
content: "\\e965";
}
.w-e-icon-redo:before {
content: "\\e966";
}
.w-e-icon-quotes-left:before {
content: "\\e977";
}
.w-e-icon-list-numbered:before {
content: "\\e9b9";
}
.w-e-icon-list2:before {
content: "\\e9bb";
}
.w-e-icon-link:before {
content: "\\e9cb";
}
.w-e-icon-happy:before {
content: "\\e9df";
}
.w-e-icon-bold:before {
content: "\\ea62";
}
.w-e-icon-underline:before {
content: "\\ea63";
}
.w-e-icon-italic:before {
content: "\\ea64";
}
.w-e-icon-strikethrough:before {
content: "\\ea65";
}
.w-e-icon-table2:before {
content: "\\ea71";
}
.w-e-icon-paragraph-left:before {
content: "\\ea77";
}
.w-e-icon-paragraph-center:before {
content: "\\ea78";
}
.w-e-icon-paragraph-right:before {
content: "\\ea79";
}
.w-e-icon-paragraph-justify:before {
content: "\\ea7a";
}
.w-e-icon-terminal:before {
content: "\\f120";
}
.w-e-icon-page-break:before {
content: "\\ea68";
}
.w-e-icon-cancel-circle:before {
content: "\\ea0d";
}
.w-e-icon-font:before {
content: "\\ea5c";
}
.w-e-icon-text-heigh:before {
content: "\\ea5f";
}
.w-e-icon-paint-format:before {
content: "\\e90c";
}
.w-e-icon-indent-increase:before {
content: "\\ea7b";
}
.w-e-icon-indent-decrease:before {
content: "\\ea7c";
}
.w-e-icon-row-height:before {
content: "\\e9be";
}
.w-e-icon-fullscreen_exit:before {
content: "\\e900";
}
.w-e-icon-fullscreen:before {
content: "\\e901";
}
.w-e-icon-split-line:before {
content: "\\ea0b";
}
.w-e-icon-checkbox-checked:before {
content: "\\ea52";
}
`,""]),n.exports=r},function(n,r,t){n.exports=function(a,i){return i||(i={}),a=a&&a.__esModule?a.default:a,typeof a!="string"?a:(/^['"].*['"]$/.test(a)&&(a=a.slice(1,-1)),i.hash&&(a+=i.hash),/["'() \t\n]/.test(a)||i.needQuotes?'"'.concat(a.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):a)}},function(n,r,t){t.r(r),r.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(n,r,t){var a=t(20),i=t(153);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-toolbar {
display: flex;
padding: 0 6px;
flex-wrap: wrap;
position: relative;
/* 单个菜单 */
}
.w-e-toolbar .w-e-menu {
position: relative;
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
}
.w-e-toolbar .w-e-menu i {
color: #999;
}
.w-e-toolbar .w-e-menu:hover {
background-color: #F6F6F6;
}
.w-e-toolbar .w-e-menu:hover i {
color: #333;
}
.w-e-toolbar .w-e-active i {
color: #1e88e5;
}
.w-e-toolbar .w-e-active:hover i {
color: #1e88e5;
}
.w-e-menu-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-menu-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-item-wrapper {
font-size: 14px;
margin: 0 5px;
}
`,""]),n.exports=r},function(n,r,t){var a=t(20),i=t(155);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-text-container {
position: relative;
height: 100%;
}
.w-e-text-container .w-e-progress {
position: absolute;
background-color: #1e88e5;
top: 0;
left: 0;
height: 1px;
}
.w-e-text-container .placeholder {
color: #D4D4D4;
position: absolute;
font-size: 11pt;
line-height: 22px;
left: 10px;
top: 10px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: -1;
}
.w-e-text {
padding: 0 10px;
overflow-y: auto;
}
.w-e-text p,
.w-e-text h1,
.w-e-text h2,
.w-e-text h3,
.w-e-text h4,
.w-e-text h5,
.w-e-text table,
.w-e-text pre {
margin: 10px 0;
line-height: 1.5;
}
.w-e-text ul,
.w-e-text ol {
margin: 10px 0 10px 20px;
}
.w-e-text blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.w-e-text code {
display: inline-block;
background-color: #f1f1f1;
border-radius: 3px;
padding: 3px 5px;
margin: 0 3px;
}
.w-e-text pre code {
display: block;
}
.w-e-text table {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
}
.w-e-text table td,
.w-e-text table th {
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px 5px;
min-height: 30px;
height: 30px;
}
.w-e-text table th {
border-bottom: 2px solid #ccc;
text-align: center;
background-color: #f1f1f1;
}
.w-e-text:focus {
outline: none;
}
.w-e-text img {
cursor: pointer;
}
.w-e-text img:hover {
box-shadow: 0 0 5px #333;
}
.w-e-text .w-e-todo {
margin: 0 0 0 20px;
}
.w-e-text .w-e-todo li {
list-style: none;
font-size: 1em;
}
.w-e-text .w-e-todo li span:nth-child(1) {
position: relative;
left: -18px;
}
.w-e-text .w-e-todo li span:nth-child(1) input {
position: absolute;
margin-right: 3px;
}
.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
top: 50%;
margin-top: -6px;
}
.w-e-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-item-wrapper {
cursor: pointer;
font-size: 14px;
margin: 0 5px;
}
.w-e-tooltip-item-wrapper:hover {
color: #ccc;
text-decoration: underline;
}
`,""]),n.exports=r},function(n,r,t){var a=t(20),i=t(157);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-menu .w-e-panel-container {
position: absolute;
top: 0;
left: 50%;
border: 1px solid #ccc;
border-top: 0;
box-shadow: 1px 1px 2px #ccc;
color: #333;
background-color: #fff;
text-align: left;
/* 为 emotion panel 定制的样式 */
/* 上传图片、上传视频的 panel 定制样式 */
}
.w-e-menu .w-e-panel-container .w-e-panel-close {
position: absolute;
right: 0;
top: 0;
padding: 5px;
margin: 2px 5px 0 0;
cursor: pointer;
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
color: #333;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
list-style: none;
display: flex;
font-size: 14px;
margin: 2px 10px 0 10px;
border-bottom: 1px solid #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
padding: 3px 5px;
color: #999;
cursor: pointer;
margin: 0 3px;
position: relative;
top: 1px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
color: #333;
border-bottom: 1px solid #333;
cursor: default;
font-weight: 700;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
padding: 10px 15px 10px 15px;
font-size: 16px;
/* 输入框的样式 */
/* 按钮的样式 */
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
outline: none;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
width: 100%;
border: 1px solid #ccc;
padding: 5px;
margin-top: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
border-color: #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
border: none;
border-bottom: 1px solid #ccc;
font-size: 14px;
height: 20px;
color: #333;
text-align: left;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
width: 30px;
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
display: block;
width: 100%;
margin: 10px 0;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
border-bottom: 2px solid #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
font-size: 14px;
color: #1e88e5;
border: none;
padding: 5px 10px;
background-color: #fff;
cursor: pointer;
border-radius: 3px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
float: left;
margin-right: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
float: right;
margin-left: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
color: #c24f4a;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
background-color: #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
content: "";
display: table;
clear: both;
}
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
cursor: pointer;
font-size: 18px;
padding: 0 3px;
display: inline-block;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container,
.w-e-menu .w-e-panel-container .w-e-up-video-container {
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
display: inline-block;
color: #999;
cursor: pointer;
font-size: 60px;
line-height: 1;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
color: #333;
}
`,""]),n.exports=r},function(n,r,t){var a=t(20),i=t(159);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-toolbar .w-e-droplist {
position: absolute;
left: 0;
top: 0;
background-color: #fff;
border: 1px solid #f1f1f1;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
.w-e-toolbar .w-e-droplist .w-e-dp-title {
text-align: center;
color: #999;
line-height: 2;
border-bottom: 1px solid #f1f1f1;
font-size: 13px;
}
.w-e-toolbar .w-e-droplist ul.w-e-list {
list-style: none;
line-height: 1;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
color: #333;
padding: 5px 0;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
background-color: #f1f1f1;
}
.w-e-toolbar .w-e-droplist ul.w-e-block {
list-style: none;
text-align: left;
padding: 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
display: inline-block;
padding: 3px 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
background-color: #f1f1f1;
}
`,""]),n.exports=r},function(n,r,t){var a=t(0),i=a(t(161));Element.prototype.matches||(Element.prototype.matches=function(l){var s=this.ownerDocument.querySelectorAll(l),u=s.length;for(u;u>=0&&s.item(u)!==this;u--);return u>-1}),i.default||(window.Promise=i.default)},function(n,r,t){n.exports=t(162)},function(n,r,t){var a=t(163);n.exports=a},function(n,r,t){t(61),t(50),t(54),t(175),t(178),t(179);var a=t(9);n.exports=a.Promise},function(n,r,t){var a=t(62),i=t(49),l=function(s){return function(u,h){var f=String(i(u)),g=a(h),p=f.length,d,v;return g<0||g>=p?s?"":void 0:(d=f.charCodeAt(g),d<55296||d>56319||g+1===p||(v=f.charCodeAt(g+1))<56320||v>57343?s?f.charAt(g):d:s?f.slice(g,g+2):(d-55296<<10)+(v-56320)+65536)}};n.exports={codeAt:l(!1),charAt:l(!0)}},function(n,r,t){var a=t(8),i=t(102),l=a.WeakMap;n.exports=typeof l=="function"&&/native code/.test(i(l))},function(n,r,t){var a=t(8),i=t(19);n.exports=function(l,s){try{i(a,l,s)}catch{a[l]=s}return s}},function(n,r,t){var a=t(104).IteratorPrototype,i=t(77),l=t(48),s=t(37),u=t(44),h=function(){return this};n.exports=function(f,g,p){var d=g+" Iterator";return f.prototype=i(a,{next:l(1,p)}),s(f,d,!1,!0),u[d]=h,f}},function(n,r,t){var a=t(11);n.exports=!a(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})},function(n,r,t){var a=t(14),i=t(18),l=t(25),s=t(52);n.exports=a?Object.defineProperties:function(h,f){l(h);for(var g=s(f),p=g.length,d=0,v;p>d;)i.f(h,v=g[d++],f[v]);return h}},function(n,r,t){var a=t(81),i=t(65);n.exports=a?{}.toString:function(){return"[object "+i(this)+"]"}},function(n,r,t){var a=t(25),i=t(172);n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,s={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(s,[]),l=s instanceof Array}catch{}return function(f,g){return a(f),i(g),l?u.call(f,g):f.__proto__=g,f}}():void 0)},function(n,r,t){var a=t(13);n.exports=function(i){if(!a(i)&&i!==null)throw TypeError("Can't set "+String(i)+" as a prototype");return i}},function(n,r,t){var a=t(30),i=t(82),l=t(44),s=t(42),u=t(75),h="Array Iterator",f=s.set,g=s.getterFor(h);n.exports=u(Array,"Array",function(p,d){f(this,{type:h,target:a(p),index:0,kind:d})},function(){var p=g(this),d=p.target,v=p.kind,m=p.index++;return!d||m>=d.length?(p.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:m,done:!1}:v=="values"?{value:d[m],done:!1}:{value:[m,d[m]],done:!1}},"values"),l.Arguments=l.Array,i("keys"),i("values"),i("entries")},function(n,r){n.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(n,r,t){var a=t(5),i=t(43),l=t(8),s=t(36),u=t(109),h=t(53),f=t(110),g=t(37),p=t(111),d=t(13),v=t(41),m=t(83),A=t(34),y=t(102),C=t(66),E=t(115),S=t(116),w=t(117).set,T=t(176),b=t(119),N=t(177),M=t(85),x=t(120),D=t(42),R=t(101),P=t(10),I=t(86),O=P("species"),L="Promise",H=D.get,k=D.set,B=D.getterFor(L),F=u,Y=l.TypeError,$=l.document,W=l.process,G=s("fetch"),j=M.f,z=j,Z=A(W)=="process",ee=!!($&&$.createEvent&&l.dispatchEvent),se="unhandledrejection",pe="rejectionhandled",xe=0,Je=1,mt=2,Ye=1,Xt=2,it,Ve,et,qt,vt=R(L,function(){var ne=y(F)!==String(F);if(!ne&&(I===66||!Z&&typeof PromiseRejectionEvent!="function")||i&&!F.prototype.finally)return!0;if(I>=51&&/native code/.test(F))return!1;var X=F.resolve(1),le=function(_){_(function(){},function(){})},de=X.constructor={};return de[O]=le,!(X.then(function(){})instanceof le)}),xr=vt||!E(function(ne){F.all(ne).catch(function(){})}),Lt=function(ne){var X;return d(ne)&&typeof(X=ne.then)=="function"?X:!1},lt=function(ne,X,le){if(!X.notified){X.notified=!0;var de=X.reactions;T(function(){for(var _=X.value,q=X.state==Je,ae=0;de.length>ae;){var ue=de[ae++],he=q?ue.ok:ue.fail,Pe=ue.resolve,Fe=ue.reject,At=ue.domain,Ke,be,bt;try{he?(q||(X.rejection===Xt&&en(ne,X),X.rejection=Ye),he===!0?Ke=_:(At&&At.enter(),Ke=he(_),At&&(At.exit(),bt=!0)),Ke===ue.promise?Fe(Y("Promise-chain cycle")):(be=Lt(Ke))?be.call(Ke,Pe,Fe):Pe(Ke)):Fe(_)}catch(ui){At&&!bt&&At.exit(),Fe(ui)}}X.reactions=[],X.notified=!1,le&&!X.rejection&&pt(ne,X)})}},st=function(ne,X,le){var de,_;ee?(de=$.createEvent("Event"),de.promise=X,de.reason=le,de.initEvent(ne,!1,!0),l.dispatchEvent(de)):de={promise:X,reason:le},(_=l["on"+ne])?_(de):ne===se&&N("Unhandled promise rejection",le)},pt=function(ne,X){w.call(l,function(){var le=X.value,de=_t(X),_;if(de&&(_=x(function(){Z?W.emit("unhandledRejection",le,ne):st(se,ne,le)}),X.rejection=Z||_t(X)?Xt:Ye,_.error))throw _.value})},_t=function(ne){return ne.rejection!==Ye&&!ne.parent},en=function(ne,X){w.call(l,function(){Z?W.emit("rejectionHandled",ne):st(pe,ne,X.value)})},gt=function(ne,X,le,de){return function(_){ne(X,le,_,de)}},yt=function(ne,X,le,de){X.done||(X.done=!0,de&&(X=de),X.value=le,X.state=mt,lt(ne,X,!0))},Bt=function(ne,X,le,de){if(!X.done){X.done=!0,de&&(X=de);try{if(ne===le)throw Y("Promise can't be resolved itself");var _=Lt(le);_?T(function(){var q={done:!1};try{_.call(le,gt(Bt,ne,q,X),gt(yt,ne,q,X))}catch(ae){yt(ne,q,ae,X)}}):(X.value=le,X.state=Je,lt(ne,X,!1))}catch(q){yt(ne,{done:!1},q,X)}}};vt&&(F=function(X){m(this,F,L),v(X),it.call(this);var le=H(this);try{X(gt(Bt,this,le),gt(yt,this,le))}catch(de){yt(this,le,de)}},it=function(X){k(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:xe,value:void 0})},it.prototype=f(F.prototype,{then:function(X,le){var de=B(this),_=j(S(this,F));return _.ok=typeof X=="function"?X:!0,_.fail=typeof le=="function"&&le,_.domain=Z?W.domain:void 0,de.parent=!0,de.reactions.push(_),de.state!=xe&<(this,de,!1),_.promise},catch:function(ne){return this.then(void 0,ne)}}),Ve=function(){var ne=new it,X=H(ne);this.promise=ne,this.resolve=gt(Bt,ne,X),this.reject=gt(yt,ne,X)},M.f=j=function(ne){return ne===F||ne===et?new Ve(ne):z(ne)},!i&&typeof u=="function"&&(qt=u.prototype.then,h(u.prototype,"then",function(X,le){var de=this;return new F(function(_,q){qt.call(de,_,q)}).then(X,le)},{unsafe:!0}),typeof G=="function"&&a({global:!0,enumerable:!0,forced:!0},{fetch:function(X){return b(F,G.apply(l,arguments))}}))),a({global:!0,wrap:!0,forced:vt},{Promise:F}),g(F,L,!1,!0),p(L),et=s(L),a({target:L,stat:!0,forced:vt},{reject:function(X){var le=j(this);return le.reject.call(void 0,X),le.promise}}),a({target:L,stat:!0,forced:i||vt},{resolve:function(X){return b(i&&this===et?F:this,X)}}),a({target:L,stat:!0,forced:xr},{all:function(X){var le=this,de=j(le),_=de.resolve,q=de.reject,ae=x(function(){var ue=v(le.resolve),he=[],Pe=0,Fe=1;C(X,function(At){var Ke=Pe++,be=!1;he.push(void 0),Fe++,ue.call(le,At).then(function(bt){be||(be=!0,he[Ke]=bt,--Fe||_(he))},q)}),--Fe||_(he)});return ae.error&&q(ae.value),de.promise},race:function(X){var le=this,de=j(le),_=de.reject,q=x(function(){var ae=v(le.resolve);C(X,function(ue){ae.call(le,ue).then(de.resolve,_)})});return q.error&&_(q.value),de.promise}})},function(n,r,t){var a=t(8),i=t(71).f,l=t(34),s=t(117).set,u=t(118),h=a.MutationObserver||a.WebKitMutationObserver,f=a.process,g=a.Promise,p=l(f)=="process",d=i(a,"queueMicrotask"),v=d&&d.value,m,A,y,C,E,S,w,T;v||(m=function(){var b,N;for(p&&(b=f.domain)&&b.exit();A;){N=A.fn,A=A.next;try{N()}catch(M){throw A?C():y=void 0,M}}y=void 0,b&&b.enter()},p?C=function(){f.nextTick(m)}:h&&!u?(E=!0,S=document.createTextNode(""),new h(m).observe(S,{characterData:!0}),C=function(){S.data=E=!E}):g&&g.resolve?(w=g.resolve(void 0),T=w.then,C=function(){T.call(w,m)}):C=function(){s.call(a,m)}),n.exports=v||function(b){var N={fn:b,next:void 0};y&&(y.next=N),A||(A=N,C()),y=N}},function(n,r,t){var a=t(8);n.exports=function(i,l){var s=a.console;s&&s.error&&(arguments.length===1?s.error(i):s.error(i,l))}},function(n,r,t){var a=t(5),i=t(41),l=t(85),s=t(120),u=t(66);a({target:"Promise",stat:!0},{allSettled:function(f){var g=this,p=l.f(g),d=p.resolve,v=p.reject,m=s(function(){var A=i(g.resolve),y=[],C=0,E=1;u(f,function(S){var w=C++,T=!1;y.push(void 0),E++,A.call(g,S).then(function(b){T||(T=!0,y[w]={status:"fulfilled",value:b},--E||d(y))},function(b){T||(T=!0,y[w]={status:"rejected",reason:b},--E||d(y))})}),--E||d(y)});return m.error&&v(m.value),p.promise}})},function(n,r,t){var a=t(5),i=t(43),l=t(109),s=t(11),u=t(36),h=t(116),f=t(119),g=t(53),p=!!l&&s(function(){l.prototype.finally.call({then:function(){}},function(){})});a({target:"Promise",proto:!0,real:!0,forced:p},{finally:function(d){var v=h(this,u("Promise")),m=typeof d=="function";return this.then(m?function(A){return f(v,d()).then(function(){return A})}:d,m?function(A){return f(v,d()).then(function(){throw A})}:d)}}),!i&&typeof l=="function"&&!l.prototype.finally&&g(l.prototype,"finally",u("Promise").prototype.finally)},function(n,r,t){t(54);var a=t(181),i=t(65),l=Array.prototype,s={DOMTokenList:!0,NodeList:!0};n.exports=function(u){var h=u.forEach;return u===l||u instanceof Array&&h===l.forEach||s.hasOwnProperty(i(u))?a:h}},function(n,r,t){var a=t(182);n.exports=a},function(n,r,t){t(183);var a=t(15);n.exports=a("Array").forEach},function(n,r,t){var a=t(5),i=t(184);a({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(n,r,t){var a=t(32).forEach,i=t(67),l=t(22),s=i("forEach"),u=l("forEach");n.exports=!s||!u?function(f){return a(this,f,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(n,r,t){var a=t(186);n.exports=a},function(n,r,t){t(187);var a=t(9);n.exports=a.Array.isArray},function(n,r,t){var a=t(5),i=t(55);a({target:"Array",stat:!0},{isArray:i})},function(n,r,t){var a=t(189);n.exports=a},function(n,r,t){var a=t(190),i=Array.prototype;n.exports=function(l){var s=l.map;return l===i||l instanceof Array&&s===i.map?a:s}},function(n,r,t){t(191);var a=t(15);n.exports=a("Array").map},function(n,r,t){var a=t(5),i=t(32).map,l=t(56),s=t(22),u=l("map"),h=s("map");a({target:"Array",proto:!0,forced:!u||!h},{map:function(g){return i(this,g,arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(193);n.exports=a},function(n,r,t){var a=t(194),i=String.prototype;n.exports=function(l){var s=l.trim;return typeof l=="string"||l===i||l instanceof String&&s===i.trim?a:s}},function(n,r,t){t(195);var a=t(15);n.exports=a("String").trim},function(n,r,t){var a=t(5),i=t(90).trim,l=t(196);a({target:"String",proto:!0,forced:l("trim")},{trim:function(){return i(this)}})},function(n,r,t){var a=t(11),i=t(68),l="
";n.exports=function(s){return a(function(){return!!i[s]()||l[s]()!=l||i[s].name!==s})}},function(n,r,t){var a=t(198);n.exports=a},function(n,r,t){t(199),t(61),t(50),t(54);var a=t(9);n.exports=a.Map},function(n,r,t){var a=t(122),i=t(124);n.exports=a("Map",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},i)},function(n,r,t){var a=t(11);n.exports=!a(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(n,r,t){var a=t(202);n.exports=a},function(n,r,t){var a=t(203),i=Array.prototype;n.exports=function(l){var s=l.indexOf;return l===i||l instanceof Array&&s===i.indexOf?a:s}},function(n,r,t){t(204);var a=t(15);n.exports=a("Array").indexOf},function(n,r,t){var a=t(5),i=t(78).indexOf,l=t(67),s=t(22),u=[].indexOf,h=!!u&&1/[1].indexOf(1,-0)<0,f=l("indexOf"),g=s("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:h||!f||!g},{indexOf:function(d){return h?u.apply(this,arguments)||0:i(this,d,arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(206);n.exports=a},function(n,r,t){var a=t(207),i=Array.prototype;n.exports=function(l){var s=l.splice;return l===i||l instanceof Array&&s===i.splice?a:s}},function(n,r,t){t(208);var a=t(15);n.exports=a("Array").splice},function(n,r,t){var a=t(5),i=t(79),l=t(62),s=t(35),u=t(31),h=t(88),f=t(69),g=t(56),p=t(22),d=g("splice"),v=p("splice",{ACCESSORS:!0,0:0,1:2}),m=Math.max,A=Math.min,y=9007199254740991,C="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d||!v},{splice:function(S,w){var T=u(this),b=s(T.length),N=i(S,b),M=arguments.length,x,D,R,P,I,O;if(M===0?x=D=0:M===1?(x=0,D=b-N):(x=M-2,D=A(m(l(w),0),b-N)),b+x-D>y)throw TypeError(C);for(R=h(T,D),P=0;P<D;P++)I=N+P,I in T&&f(R,P,T[I]);if(R.length=D,x<D){for(P=N;P<b-D;P++)I=P+D,O=P+x,I in T?T[O]=T[I]:delete T[O];for(P=b;P>b-D+x;P--)delete T[P-1]}else if(x>D)for(P=b-D;P>N;P--)I=P+D-1,O=P+x-1,I in T?T[O]=T[I]:delete T[O];for(P=0;P<x;P++)T[P+N]=arguments[P+2];return T.length=b-D+x,R}})},function(n,r,t){var a=t(210);n.exports=a},function(n,r,t){var a=t(211),i=Array.prototype;n.exports=function(l){var s=l.filter;return l===i||l instanceof Array&&s===i.filter?a:s}},function(n,r,t){t(212);var a=t(15);n.exports=a("Array").filter},function(n,r,t){var a=t(5),i=t(32).filter,l=t(56),s=t(22),u=l("filter"),h=s("filter");a({target:"Array",proto:!0,forced:!u||!h},{filter:function(g){return i(this,g,arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(214);n.exports=a},function(n,r,t){var a=t(215),i=t(217),l=Array.prototype,s=String.prototype;n.exports=function(u){var h=u.includes;return u===l||u instanceof Array&&h===l.includes?a:typeof u=="string"||u===s||u instanceof String&&h===s.includes?i:h}},function(n,r,t){t(216);var a=t(15);n.exports=a("Array").includes},function(n,r,t){var a=t(5),i=t(78).includes,l=t(82),s=t(22),u=s("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!u},{includes:function(f){return i(this,f,arguments.length>1?arguments[1]:void 0)}}),l("includes")},function(n,r,t){t(218);var a=t(15);n.exports=a("String").includes},function(n,r,t){var a=t(5),i=t(219),l=t(49),s=t(221);a({target:"String",proto:!0,forced:!s("includes")},{includes:function(h){return!!~String(l(this)).indexOf(i(h),arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(220);n.exports=function(i){if(a(i))throw TypeError("The method doesn't accept regular expressions");return i}},function(n,r,t){var a=t(13),i=t(34),l=t(10),s=l("match");n.exports=function(u){var h;return a(u)&&((h=u[s])!==void 0?!!h:i(u)=="RegExp")}},function(n,r,t){var a=t(10),i=a("match");n.exports=function(l){var s=/./;try{"/./"[l](s)}catch{try{return s[i]=!1,"/./"[l](s)}catch{}}return!1}},function(n,r,t){var a=t(223);n.exports=a},function(n,r,t){var a=t(224),i=Function.prototype;n.exports=function(l){var s=l.bind;return l===i||l instanceof Function&&s===i.bind?a:s}},function(n,r,t){t(225);var a=t(15);n.exports=a("Function").bind},function(n,r,t){var a=t(5),i=t(226);a({target:"Function",proto:!0},{bind:i})},function(n,r,t){var a=t(41),i=t(13),l=[].slice,s={},u=function(h,f,g){if(!(f in s)){for(var p=[],d=0;d<f;d++)p[d]="a["+d+"]";s[f]=Function("C,a","return new C("+p.join(",")+")")}return s[f](h,g)};n.exports=Function.bind||function(f){var g=a(this),p=l.call(arguments,1),d=function(){var m=p.concat(l.call(arguments));return this instanceof d?u(g,m.length,m):g.apply(f,m)};return i(g.prototype)&&(d.prototype=g.prototype),d}},function(n,r,t){n.exports=t(228)},function(n,r,t){var a=t(229);n.exports=a},function(n,r,t){t(125),t(50),t(54);var a=t(93);n.exports=a.f("iterator")},function(n,r,t){n.exports=t(231)},function(n,r,t){var a=t(232);t(251),t(252),t(253),t(254),t(255),n.exports=a},function(n,r,t){t(233),t(61),t(234),t(236),t(237),t(238),t(239),t(125),t(240),t(241),t(242),t(243),t(244),t(245),t(246),t(247),t(248),t(249),t(250);var a=t(9);n.exports=a.Symbol},function(n,r,t){var a=t(5),i=t(11),l=t(55),s=t(13),u=t(31),h=t(35),f=t(69),g=t(88),p=t(56),d=t(10),v=t(86),m=d("isConcatSpreadable"),A=9007199254740991,y="Maximum allowed index exceeded",C=v>=51||!i(function(){var T=[];return T[m]=!1,T.concat()[0]!==T}),E=p("concat"),S=function(T){if(!s(T))return!1;var b=T[m];return b!==void 0?!!b:l(T)},w=!C||!E;a({target:"Array",proto:!0,forced:w},{concat:function(b){var N=u(this),M=g(N,0),x=0,D,R,P,I,O;for(D=-1,P=arguments.length;D<P;D++)if(O=D===-1?N:arguments[D],S(O)){if(I=h(O.length),x+I>A)throw TypeError(y);for(R=0;R<I;R++,x++)R in O&&f(M,x,O[R])}else{if(x>=A)throw TypeError(y);f(M,x++,O)}return M.length=x,M}})},function(n,r,t){var a=t(5),i=t(8),l=t(36),s=t(43),u=t(14),h=t(76),f=t(106),g=t(11),p=t(16),d=t(55),v=t(13),m=t(25),A=t(31),y=t(30),C=t(60),E=t(48),S=t(77),w=t(52),T=t(126),b=t(235),N=t(127),M=t(71),x=t(18),D=t(59),R=t(19),P=t(53),I=t(74),O=t(63),L=t(51),H=t(64),k=t(10),B=t(93),F=t(12),Y=t(37),$=t(42),W=t(32).forEach,G=O("hidden"),j="Symbol",z="prototype",Z=k("toPrimitive"),ee=$.set,se=$.getterFor(j),pe=Object[z],xe=i.Symbol,Je=l("JSON","stringify"),mt=M.f,Ye=x.f,Xt=b.f,it=D.f,Ve=I("symbols"),et=I("op-symbols"),qt=I("string-to-symbol-registry"),vt=I("symbol-to-string-registry"),xr=I("wks"),Lt=i.QObject,lt=!Lt||!Lt[z]||!Lt[z].findChild,st=u&&g(function(){return S(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a!=7})?function(_,q,ae){var ue=mt(pe,q);ue&&delete pe[q],Ye(_,q,ae),ue&&_!==pe&&Ye(pe,q,ue)}:Ye,pt=function(_,q){var ae=Ve[_]=S(xe[z]);return ee(ae,{type:j,tag:_,description:q}),u||(ae.description=q),ae},_t=f?function(_){return typeof _=="symbol"}:function(_){return Object(_)instanceof xe},en=function(q,ae,ue){q===pe&&en(et,ae,ue),m(q);var he=C(ae,!0);return m(ue),p(Ve,he)?(ue.enumerable?(p(q,G)&&q[G][he]&&(q[G][he]=!1),ue=S(ue,{enumerable:E(0,!1)})):(p(q,G)||Ye(q,G,E(1,{})),q[G][he]=!0),st(q,he,ue)):Ye(q,he,ue)},gt=function(q,ae){m(q);var ue=y(ae),he=w(ue).concat(le(ue));return W(he,function(Pe){(!u||Bt.call(ue,Pe))&&en(q,Pe,ue[Pe])}),q},yt=function(q,ae){return ae===void 0?S(q):gt(S(q),ae)},Bt=function(q){var ae=C(q,!0),ue=it.call(this,ae);return this===pe&&p(Ve,ae)&&!p(et,ae)?!1:ue||!p(this,ae)||!p(Ve,ae)||p(this,G)&&this[G][ae]?ue:!0},ne=function(q,ae){var ue=y(q),he=C(ae,!0);if(!(ue===pe&&p(Ve,he)&&!p(et,he))){var Pe=mt(ue,he);return Pe&&p(Ve,he)&&!(p(ue,G)&&ue[G][he])&&(Pe.enumerable=!0),Pe}},X=function(q){var ae=Xt(y(q)),ue=[];return W(ae,function(he){!p(Ve,he)&&!p(L,he)&&ue.push(he)}),ue},le=function(q){var ae=q===pe,ue=Xt(ae?et:y(q)),he=[];return W(ue,function(Pe){p(Ve,Pe)&&(!ae||p(pe,Pe))&&he.push(Ve[Pe])}),he};if(h||(xe=function(){if(this instanceof xe)throw TypeError("Symbol is not a constructor");var q=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=H(q),ue=function(he){this===pe&&ue.call(et,he),p(this,G)&&p(this[G],ae)&&(this[G][ae]=!1),st(this,ae,E(1,he))};return u&<&&st(pe,ae,{configurable:!0,set:ue}),pt(ae,q)},P(xe[z],"toString",function(){return se(this).tag}),P(xe,"withoutSetter",function(_){return pt(H(_),_)}),D.f=Bt,x.f=en,M.f=ne,T.f=b.f=X,N.f=le,B.f=function(_){return pt(k(_),_)},u&&(Ye(xe[z],"description",{configurable:!0,get:function(){return se(this).description}}),s||P(pe,"propertyIsEnumerable",Bt,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:xe}),W(w(xr),function(_){F(_)}),a({target:j,stat:!0,forced:!h},{for:function(_){var q=String(_);if(p(qt,q))return qt[q];var ae=xe(q);return qt[q]=ae,vt[ae]=q,ae},keyFor:function(q){if(!_t(q))throw TypeError(q+" is not a symbol");if(p(vt,q))return vt[q]},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),a({target:"Object",stat:!0,forced:!h,sham:!u},{create:yt,defineProperty:en,defineProperties:gt,getOwnPropertyDescriptor:ne}),a({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:X,getOwnPropertySymbols:le}),a({target:"Object",stat:!0,forced:g(function(){N.f(1)})},{getOwnPropertySymbols:function(q){return N.f(A(q))}}),Je){var de=!h||g(function(){var _=xe();return Je([_])!="[null]"||Je({a:_})!="{}"||Je(Object(_))!="{}"});a({target:"JSON",stat:!0,forced:de},{stringify:function(q,ae,ue){for(var he=[q],Pe=1,Fe;arguments.length>Pe;)he.push(arguments[Pe++]);if(Fe=ae,!(!v(ae)&&q===void 0||_t(q)))return d(ae)||(ae=function(At,Ke){if(typeof Fe=="function"&&(Ke=Fe.call(this,At,Ke)),!_t(Ke))return Ke}),he[1]=ae,Je.apply(null,he)}})}xe[z][Z]||R(xe[z],Z,xe[z].valueOf),Y(xe,j),L[G]=!0},function(n,r,t){var a=t(30),i=t(126).f,l={}.toString,s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(h){try{return i(h)}catch{return s.slice()}};n.exports.f=function(f){return s&&l.call(f)=="[object Window]"?u(f):i(a(f))}},function(n,r,t){var a=t(12);a("asyncIterator")},function(n,r){},function(n,r,t){var a=t(12);a("hasInstance")},function(n,r,t){var a=t(12);a("isConcatSpreadable")},function(n,r,t){var a=t(12);a("match")},function(n,r,t){var a=t(12);a("matchAll")},function(n,r,t){var a=t(12);a("replace")},function(n,r,t){var a=t(12);a("search")},function(n,r,t){var a=t(12);a("species")},function(n,r,t){var a=t(12);a("split")},function(n,r,t){var a=t(12);a("toPrimitive")},function(n,r,t){var a=t(12);a("toStringTag")},function(n,r,t){var a=t(12);a("unscopables")},function(n,r,t){var a=t(37);a(Math,"Math",!0)},function(n,r,t){var a=t(8),i=t(37);i(a.JSON,"JSON",!0)},function(n,r,t){var a=t(12);a("asyncDispose")},function(n,r,t){var a=t(12);a("dispose")},function(n,r,t){var a=t(12);a("observable")},function(n,r,t){var a=t(12);a("patternMatch")},function(n,r,t){var a=t(12);a("replaceAll")},function(n,r,t){n.exports=t(257)},function(n,r,t){var a=t(258);n.exports=a},function(n,r,t){t(259);var a=t(9);n.exports=a.parseInt},function(n,r,t){var a=t(5),i=t(260);a({global:!0,forced:parseInt!=i},{parseInt:i})},function(n,r,t){var a=t(8),i=t(90).trim,l=t(68),s=a.parseInt,u=/^[+-]?0[Xx]/,h=s(l+"08")!==8||s(l+"0x16")!==22;n.exports=h?function(g,p){var d=i(String(g));return s(d,p>>>0||(u.test(d)?16:10))}:s},function(n,r,t){var a=t(262);n.exports=a},function(n,r,t){var a=t(263),i=Array.prototype;n.exports=function(l){var s=l.slice;return l===i||l instanceof Array&&s===i.slice?a:s}},function(n,r,t){t(264);var a=t(15);n.exports=a("Array").slice},function(n,r,t){var a=t(5),i=t(13),l=t(55),s=t(79),u=t(35),h=t(30),f=t(69),g=t(10),p=t(56),d=t(22),v=p("slice"),m=d("slice",{ACCESSORS:!0,0:0,1:2}),A=g("species"),y=[].slice,C=Math.max;a({target:"Array",proto:!0,forced:!v||!m},{slice:function(S,w){var T=h(this),b=u(T.length),N=s(S,b),M=s(w===void 0?b:w,b),x,D,R;if(l(T)&&(x=T.constructor,typeof x=="function"&&(x===Array||l(x.prototype))?x=void 0:i(x)&&(x=x[A],x===null&&(x=void 0)),x===Array||x===void 0))return y.call(T,N,M);for(D=new(x===void 0?Array:x)(C(M-N,0)),R=0;N<M;N++,R++)N in T&&f(D,R,T[N]);return D.length=R,D}})},function(n,r,t){t(266);var a=t(9);n.exports=a.setTimeout},function(n,r,t){var a=t(5),i=t(8),l=t(84),s=[].slice,u=/MSIE .\./.test(l),h=function(f){return function(g,p){var d=arguments.length>2,v=d?s.call(arguments,2):void 0;return f(d?function(){(typeof g=="function"?g:Function(g)).apply(this,v)}:g,p)}};a({global:!0,bind:!0,forced:u},{setTimeout:h(i.setTimeout),setInterval:h(i.setInterval)})},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(128));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(272)),h=s.__importDefault(t(273)),f=s.__importDefault(t(129)),g=s.__importDefault(t(274)),p=s.__importDefault(t(275)),d=s.__importDefault(t(276)),v=s.__importDefault(t(130)),m=s.__importDefault(t(277)),A=s.__importDefault(t(278)),y=s.__importDefault(t(279)),C=(0,l.default)({},u.default,h.default,f.default,p.default,g.default,d.default,v.default,m.default,A.default,y.default,{linkCheck:function(S,w){return!0}});r.default=C},function(n,r,t){var a=t(269);n.exports=a},function(n,r,t){t(270);var a=t(9);n.exports=a.Object.assign},function(n,r,t){var a=t(5),i=t(271);a({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(n,r,t){var a=t(14),i=t(11),l=t(52),s=t(127),u=t(59),h=t(31),f=t(72),g=Object.assign,p=Object.defineProperty;n.exports=!g||i(function(){if(a&&g({b:1},g(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var d={},v={},m=Symbol(),A="abcdefghijklmnopqrst";return d[m]=7,A.split("").forEach(function(y){v[y]=y}),g({},d)[m]!=7||l(g({},v)).join("")!=A})?function(v,m){for(var A=h(v),y=arguments.length,C=1,E=s.f,S=u.f;y>C;)for(var w=f(arguments[C++]),T=E?l(w).concat(E(w)):l(w),b=T.length,N=0,M;b>N;)M=T[N++],(!a||S.call(w,M))&&(A[M]=w[M]);return A}:g},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["黑体","仿宋","楷体","标楷体","华文仿宋","华文楷体","宋体","微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:" ",emotions:[{title:"表情",type:"emoji",content:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣".split(/\s/)},{title:"手势",type:"emoji",content:"👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(7);function s(u,h,f){window.alert(u),f&&console.error("wangEditor: "+f)}r.default={onchangeTimeout:200,onchange:null,onfocus:l.EMPTY_FN,onblur:l.EMPTY_FN,onCatalogChange:null,customAlert:s}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(s){return s}}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={styleWithCSS:!1}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(7);r.default={linkImgCheck:function(u,h,f){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:l.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{重置:"重置",插入:"插入",默认:"默认",创建:"创建",修改:"修改",如:"如",请输入正文:"请输入正文",menus:{title:{标题:"标题",加粗:"加粗",字号:"字号",字体:"字体",斜体:"斜体",下划线:"下划线",删除线:"删除线",缩进:"缩进",行高:"行高",文字颜色:"文字颜色",背景色:"背景色",链接:"链接",序列:"序列",对齐:"对齐",引用:"引用",表情:"表情",图片:"图片",视频:"视频",表格:"表格",代码:"代码",分割线:"分割线",恢复:"恢复",撤销:"撤销",全屏:"全屏",取消全屏:"取消全屏",待办事项:"待办事项"},dropListMenu:{设置标题:"设置标题",背景颜色:"背景颜色",文字颜色:"文字颜色",设置字号:"设置字号",设置字体:"设置字体",设置缩进:"设置缩进",对齐方式:"对齐方式",设置行高:"设置行高",序列:"序列",head:{正文:"正文"},indent:{增加缩进:"增加缩进",减少缩进:"减少缩进"},justify:{靠左:"靠左",居中:"居中",靠右:"靠右",两端:"两端"},list:{无序列表:"无序列表",有序列表:"有序列表"}},panelMenus:{emoticon:{默认:"默认",新浪:"新浪",emoji:"emoji",手势:"手势"},image:{上传图片:"上传图片",网络图片:"网络图片",图片地址:"图片地址",图片文字说明:"图片文字说明",跳转链接:"跳转链接"},link:{链接:"链接",链接文字:"链接文字",取消链接:"取消链接",查看链接:"查看链接"},video:{插入视频:"插入视频",上传视频:"上传视频"},table:{行:"行",列:"列",的:"的",表格:"表格",添加行:"添加行",删除行:"删除行",添加列:"添加列",删除列:"删除列",设置表头:"设置表头",取消表头:"取消表头",插入表格:"插入表格",删除表格:"删除表格"},code:{删除代码:"删除代码",修改代码:"修改代码",插入代码:"插入代码"}}},validate:{张图片:"张图片",大于:"大于",图片链接:"图片链接",不是图片:"不是图片",返回结果:"返回结果",上传图片超时:"上传图片超时",上传图片错误:"上传图片错误",上传图片失败:"上传图片失败",插入图片错误:"插入图片错误",一次最多上传:"一次最多上传",下载链接失败:"下载链接失败",图片验证未通过:"图片验证未通过",服务器返回状态:"服务器返回状态",上传图片返回结果错误:"上传图片返回结果错误",请替换为支持的图片类型:"请替换为支持的图片类型",您插入的网络图片无法识别:"您插入的网络图片无法识别",您刚才插入的图片链接未通过编辑器校验:"您刚才插入的图片链接未通过编辑器校验",插入视频错误:"插入视频错误",视频链接:"视频链接",不是视频:"不是视频",视频验证未通过:"视频验证未通过",个视频:"个视频",上传视频超时:"上传视频超时",上传视频错误:"上传视频错误",上传视频失败:"上传视频失败",上传视频返回结果错误:"上传视频返回结果错误"}}},en:{wangEditor:{重置:"reset",插入:"insert",默认:"default",创建:"create",修改:"edit",如:"like",请输入正文:"please enter the text",menus:{title:{标题:"head",加粗:"bold",字号:"font size",字体:"font family",斜体:"italic",下划线:"underline",删除线:"strikethrough",缩进:"indent",行高:"line heihgt",文字颜色:"font color",背景色:"background",链接:"link",序列:"numbered list",对齐:"align",引用:"quote",表情:"emoticons",图片:"image",视频:"media",表格:"table",代码:"code",分割线:"split line",恢复:"redo",撤销:"undo",全屏:"fullscreen",取消全屏:"cancel fullscreen",待办事项:"todo"},dropListMenu:{设置标题:"title",背景颜色:"background",文字颜色:"font color",设置字号:"font size",设置字体:"font family",设置缩进:"indent",对齐方式:"align",设置行高:"line heihgt",序列:"list",head:{正文:"text"},indent:{增加缩进:"indent",减少缩进:"outdent"},justify:{靠左:"left",居中:"center",靠右:"right",两端:"justify"},list:{无序列表:"unordered",有序列表:"ordered"}},panelMenus:{emoticon:{表情:"emoji",手势:"gesture"},image:{上传图片:"upload image",网络图片:"network image",图片地址:"image link",图片文字说明:"image alt",跳转链接:"hyperlink"},link:{链接:"link",链接文字:"link text",取消链接:"unlink",查看链接:"view links"},video:{插入视频:"insert video",上传视频:"upload local video"},table:{行:"rows",列:"columns",的:" ",表格:"table",添加行:"insert row",删除行:"delete row",添加列:"insert column",删除列:"delete column",设置表头:"set header",取消表头:"cancel header",插入表格:"insert table",删除表格:"delete table"},code:{删除代码:"delete code",修改代码:"edit code",插入代码:"insert code"}}},validate:{张图片:"images",大于:"greater than",图片链接:"image link",不是图片:"is not image",返回结果:"return results",上传图片超时:"upload image timeout",上传图片错误:"upload image error",上传图片失败:"upload image failed",插入图片错误:"insert image error",一次最多上传:"once most at upload",下载链接失败:"download link failed",图片验证未通过:"image validate failed",服务器返回状态:"server return status",上传图片返回结果错误:"upload image return results error",请替换为支持的图片类型:"please replace with a supported image type",您插入的网络图片无法识别:"the network picture you inserted is not recognized",您刚才插入的图片链接未通过编辑器校验:"the image link you just inserted did not pass the editor verification",插入视频错误:"insert video error",视频链接:"video link",不是视频:"is not video",视频验证未通过:"video validate failed",个视频:"videos",上传视频超时:"upload video timeout",上传视频错误:"upload video error",上传视频失败:"upload video failed",上传视频返回结果错误:"upload video return results error"}}}}}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(6);function s(){return!!(l.UA.isIE()||l.UA.isOldEdge)}r.default={compatibleMode:s,historyMaxSize:30}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(7);r.default={onlineVideoCheck:function(u){return!0},onlineVideoCallback:l.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(6),f=t(7),g=function(){function p(d){this._currentRange=null,this.editor=d}return p.prototype.getRange=function(){return this._currentRange},p.prototype.saveRange=function(d){if(d){this._currentRange=d;return}var v=window.getSelection();if(v.rangeCount!==0){var m=v.getRangeAt(0),A=this.getSelectionContainerElem(m);if(A!=null&&A.length&&!(A.attr("contenteditable")==="false"||A.parentUntil("[contenteditable=false]"))){var y=this.editor,C=y.$textElem;if(C.isContain(A)){if(C.elems[0]===A.elems[0]){var E;if((0,l.default)(E=C.html()).call(E)===f.EMPTY_P){var S=C.children(),w=S==null?void 0:S.last();y.selection.createRangeByElem(w,!0,!0),y.selection.restoreSelection()}}this._currentRange=m}}}},p.prototype.collapseRange=function(d){d===void 0&&(d=!1);var v=this._currentRange;v&&v.collapse(d)},p.prototype.getSelectionText=function(){var d=this._currentRange;return d?d.toString():""},p.prototype.getSelectionContainerElem=function(d){var v;v=d||this._currentRange;var m;if(v)return m=v.commonAncestorContainer,u.default(m.nodeType===1?m:m.parentNode)},p.prototype.getSelectionStartElem=function(d){var v;v=d||this._currentRange;var m;if(v)return m=v.startContainer,u.default(m.nodeType===1?m:m.parentNode)},p.prototype.getSelectionEndElem=function(d){var v;v=d||this._currentRange;var m;if(v)return m=v.endContainer,u.default(m.nodeType===1?m:m.parentNode)},p.prototype.isSelectionEmpty=function(){var d=this._currentRange;return!!(d&&d.startContainer&&d.startContainer===d.endContainer&&d.startOffset===d.endOffset)},p.prototype.restoreSelection=function(){var d=window.getSelection(),v=this._currentRange;d&&v&&(d.removeAllRanges(),d.addRange(v))},p.prototype.createEmptyRange=function(){var d=this.editor,v=this.getRange(),m;if(v&&this.isSelectionEmpty())try{h.UA.isWebkit()?(d.cmd.do("insertHTML","​"),v.setEnd(v.endContainer,v.endOffset+1),this.saveRange(v)):(m=u.default("<strong>​</strong>"),d.cmd.do("insertElem",m),this.createRangeByElem(m,!0))}catch{}},p.prototype.createRangeByElems=function(d,v){var m=window.getSelection?window.getSelection():document.getSelection();m==null||m.removeAllRanges();var A=document.createRange();A.setStart(d,0),A.setEnd(v,v.childNodes.length||1),this.saveRange(A),this.restoreSelection()},p.prototype.createRangeByElem=function(d,v,m){if(d.length){var A=d.elems[0],y=document.createRange();m?y.selectNodeContents(A):y.selectNode(A),v!=null&&(y.collapse(v),v||(this.saveRange(y),this.editor.selection.moveCursor(A))),this.saveRange(y)}},p.prototype.getSelectionRangeTopNodes=function(){var d,v,m,A=(d=this.getSelectionStartElem())===null||d===void 0?void 0:d.getNodeTop(this.editor),y=(v=this.getSelectionEndElem())===null||v===void 0?void 0:v.getNodeTop(this.editor);return m=this.recordSelectionNodes(u.default(A),u.default(y)),m},p.prototype.moveCursor=function(d,v){var m,A=this.getRange(),y=d.nodeType===3?(m=d.nodeValue)===null||m===void 0?void 0:m.length:d.childNodes.length;(h.UA.isFirefox||h.UA.isIE())&&y!==0&&(d.nodeType===3||d.childNodes[y-1].nodeName==="BR")&&(y=y-1);var C=v??y;A&&d&&(A.setStart(d,C),A.setEnd(d,C),this.restoreSelection())},p.prototype.getCursorPos=function(){var d=window.getSelection();return d==null?void 0:d.anchorOffset},p.prototype.clearWindowSelectionRange=function(){var d=window.getSelection();d&&d.removeAllRanges()},p.prototype.recordSelectionNodes=function(d,v){var m=[],A=!0;try{for(var y=d,C=this.editor.$textElem;A;){var E=y==null?void 0:y.getNodeTop(this.editor);E.getNodeName()==="BODY"&&(A=!1),E.length>0&&(m.push(u.default(y)),v!=null&&v.equal(E)||C.equal(E)?A=!1:y=E.getNextSibling())}}catch{A=!1}return m},p.prototype.setRangeToElem=function(d){var v=this.getRange();v==null||v.setStart(d,0),v==null||v.setEnd(d,0)},p}();r.default=g},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=function(){function h(f){this.editor=f}return h.prototype.do=function(f,g){var p=this.editor;p.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var d=p.selection;if(d.getRange()){switch(d.restoreSelection(),f){case"insertHTML":this.insertHTML(g);break;case"insertElem":this.insertElem(g);break;default:this.execCommand(f,g);break}p.menus.changeActive(),d.saveRange(),d.restoreSelection()}},h.prototype.insertHTML=function(f){var g=this.editor,p=g.selection.getRange();if(p!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",f);else if(p.insertNode){if(p.deleteContents(),s.default(f).elems.length>0)p.insertNode(s.default(f).elems[0]);else{var d=document.createElement("p");d.appendChild(document.createTextNode(f)),p.insertNode(d)}g.selection.collapseRange()}}},h.prototype.insertElem=function(f){var g=this.editor,p=g.selection.getRange();p!=null&&p.insertNode&&(p.deleteContents(),p.insertNode(f.elems[0]))},h.prototype.execCommand=function(f,g){document.execCommand(f,!1,g)},h.prototype.queryCommandValue=function(f){return document.queryCommandValue(f)},h.prototype.queryCommandState=function(f){return document.queryCommandState(f)},h.prototype.queryCommandSupported=function(f){return document.queryCommandSupported(f)},h}();r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29)),s=a(t(4)),u=a(t(17)),h=a(t(27)),f=a(t(46));(0,i.default)(r,"__esModule",{value:!0});var g=t(2),p=g.__importDefault(t(3)),d=g.__importDefault(t(287)),v=t(6),m=g.__importDefault(t(299)),A=g.__importDefault(t(300)),y=t(7),C=function(){function E(S){this.editor=S,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return E.prototype.init=function(){this._saveRange(),this._bindEventHooks(),d.default(this)},E.prototype.togglePlaceholder=function(){var S,w=this.html(),T=(0,l.default)(S=this.editor.$textContainerElem).call(S,".placeholder");T.hide(),!this.editor.isComposing&&(!w||w===" ")&&T.show()},E.prototype.clear=function(){this.html(y.EMPTY_P)},E.prototype.html=function(S){var w=this.editor,T=w.$textElem;if(S==null){var b=T.html();b=b.replace(/\u200b/gm,""),b=b.replace(/<p><\/p>/gim,""),b=b.replace(y.EMPTY_P_LAST_REGEX,""),b=b.replace(y.EMPTY_P_REGEX,"<p>");var N=b.match(/<(img|br|hr|input)[^>]*>/gi);return N!==null&&(0,s.default)(N).call(N,function(M){M.match(/\/>/)||(b=b.replace(M,M.substring(0,M.length-1)+"/>"))}),b}S=(0,u.default)(S).call(S),S===""&&(S=y.EMPTY_P),(0,h.default)(S).call(S,"<")!==0&&(S="<p>"+S+"</p>"),T.html(S),w.initSelection()},E.prototype.setJSON=function(S){var w=A.default(S).children(),T=this.editor,b=T.$textElem;w&&b.replaceChildAll(w)},E.prototype.getJSON=function(){var S=this.editor,w=S.$textElem;return m.default(w)},E.prototype.text=function(S){var w=this.editor,T=w.$textElem;if(S==null){var b=T.text();return b=b.replace(/\u200b/gm,""),b}T.text("<p>"+S+"</p>"),w.initSelection()},E.prototype.append=function(S){var w=this.editor;(0,h.default)(S).call(S,"<")!==0&&(S="<p>"+S+"</p>"),this.html(this.html()+S),w.initSelection()},E.prototype._saveRange=function(){var S=this.editor,w=S.$textElem,T=p.default(document);function b(){S.selection.saveRange(),S.menus.changeActive()}w.on("keyup",b);function N(){b(),w.off("click",N)}w.on("click",N);function M(){b(),T.off("mouseup",M)}function x(){T.on("mouseup",M),w.off("mouseleave",x)}w.on("mousedown",function(){w.on("mouseleave",x)}),w.on("mouseup",function(D){w.off("mouseleave",x),(0,f.default)(function(){var R=S.selection,P=R.getRange();P!==null&&b()},0)})},E.prototype._bindEventHooks=function(){var S=this.editor,w=S.$textElem,T=this.eventHooks;w.on("click",function(N){var M=T.clickEvents;(0,s.default)(M).call(M,function(x){return x(N)})}),w.on("keyup",function(N){if(N.keyCode===13){var M=T.enterUpEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("keyup",function(N){var M=T.keyupEvents;(0,s.default)(M).call(M,function(x){return x(N)})}),w.on("keydown",function(N){var M=T.keydownEvents;(0,s.default)(M).call(M,function(x){return x(N)})}),w.on("keyup",function(N){if(!(N.keyCode!==8&&N.keyCode!==46)){var M=T.deleteUpEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("keydown",function(N){if(!(N.keyCode!==8&&N.keyCode!==46)){var M=T.deleteDownEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("paste",function(N){if(!v.UA.isIE()){N.preventDefault();var M=T.pasteEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("keydown",function(N){(S.isFocus||S.isCompatibleMode)&&(N.ctrlKey||N.metaKey)&&N.keyCode===90&&(N.preventDefault(),N.shiftKey?S.history.restore():S.history.revoke())}),w.on("keyup",function(N){if(N.keyCode===9){N.preventDefault();var M=T.tabUpEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("keydown",function(N){if(N.keyCode===9){N.preventDefault();var M=T.tabDownEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("scroll",v.throttle(function(N){var M=T.textScrollEvents;(0,s.default)(M).call(M,function(x){return x(N)})},100));function b(N){N.preventDefault()}p.default(document).on("dragleave",b).on("drop",b).on("dragenter",b).on("dragover",b),S.beforeDestroy(function(){p.default(document).off("dragleave",b).off("drop",b).off("dragenter",b).off("dragover",b)}),w.on("drop",function(N){N.preventDefault();var M=T.dropEvents;(0,s.default)(M).call(M,function(x){return x(N)})}),w.on("click",function(N){var M=null,x=N.target,D=p.default(x);if(D.getNodeName()==="A")M=D;else{var R=D.parentUntil("a");R!=null&&(M=R)}if(M){var P=T.linkClickEvents;(0,s.default)(P).call(P,function(I){return I(M)})}}),w.on("click",function(N){var M=null,x=N.target,D=p.default(x);if(D.getNodeName()==="IMG"&&!D.elems[0].getAttribute("data-emoji")&&(N.stopPropagation(),M=D),!!M){var R=T.imgClickEvents;(0,s.default)(R).call(R,function(P){return P(M)})}}),w.on("click",function(N){var M=null,x=N.target,D=p.default(x);if(D.getNodeName()==="PRE")M=D;else{var R=D.parentUntil("pre");R!==null&&(M=R)}if(M){var P=T.codeClickEvents;(0,s.default)(P).call(P,function(I){return I(M)})}}),w.on("click",function(N){var M=null,x=N.target,D=p.default(x);if(D.getNodeName()==="HR"&&(M=D),!!M){S.selection.createRangeByElem(M),S.selection.restoreSelection();var R=T.splitLineEvents;(0,s.default)(R).call(R,function(P){return P(M)})}}),S.$toolbarElem.on("click",function(N){var M=T.toolbarClickEvents;(0,s.default)(M).call(M,function(x){return x(N)})}),S.$textContainerElem.on("mousedown",function(N){var M=N.target,x=p.default(M);if(x.hasClass("w-e-img-drag-rb")){var D=T.imgDragBarMouseDownEvents;(0,s.default)(D).call(D,function(R){return R()})}}),w.on("click",function(N){var M=null,x=N.target;if(M=p.default(x).parentUntilEditor("TABLE",S,x),!!M){var D=T.tableClickEvents;(0,s.default)(D).call(D,function(R){return R(M,N)})}}),w.on("keydown",function(N){if(N.keyCode===13){var M=T.enterDownEvents;(0,s.default)(M).call(M,function(x){return x(N)})}}),w.on("click",function(N){var M=null,x=N.target,D=p.default(x);if(D.getNodeName()==="VIDEO"&&(N.stopPropagation(),M=D),!!M){var R=T.videoClickEvents;(0,s.default)(R).call(R,function(P){return P(M)})}})},E}();r.default=C},function(n,r,t){var a=t(284);n.exports=a},function(n,r,t){var a=t(285),i=Array.prototype;n.exports=function(l){var s=l.find;return l===i||l instanceof Array&&s===i.find?a:s}},function(n,r,t){t(286);var a=t(15);n.exports=a("Array").find},function(n,r,t){var a=t(5),i=t(32).find,l=t(82),s=t(22),u="find",h=!0,f=s(u);u in[]&&Array(1)[u](function(){h=!1}),a({target:"Array",proto:!0,forced:h||!f},{find:function(p){return i(this,p,arguments.length>1?arguments[1]:void 0)}}),l(u)},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(288)),u=l.__importStar(t(289)),h=l.__importDefault(t(290)),f=l.__importDefault(t(291)),g=l.__importDefault(t(298));function p(d){var v=d.editor,m=d.eventHooks;s.default(v,m.enterUpEvents,m.enterDownEvents),u.default(v,m.deleteUpEvents,m.deleteDownEvents),u.cutToKeepP(v,m.keyupEvents),h.default(v,m.tabDownEvents),f.default(v,m.pasteEvents),g.default(v,m.imgClickEvents)}r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(27));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(7),h=s.__importDefault(t(3));function f(g,p,d){function v(y){var C,E=h.default(u.EMPTY_P);if(E.insertBefore(y),(0,l.default)(C=y.html()).call(C,"<img")>=0){E.remove();return}g.selection.createRangeByElem(E,!0,!0),g.selection.restoreSelection(),y.remove()}function m(){var y=g.$textElem,C=g.selection.getSelectionContainerElem(),E=C.parent();if(E.html()==="<code><br></code>"){v(E);return}if(C.getNodeName()==="FONT"&&C.text()===""&&C.attr("face")==="monospace"){v(E);return}if(E.equal(y)){var S=C.getNodeName();S==="P"&&C.attr("data-we-empty-p")===null||C.text()||v(C)}}p.push(m);function A(y){var C;g.selection.saveRange((C=getSelection())===null||C===void 0?void 0:C.getRangeAt(0));var E=g.selection.getSelectionContainerElem();E.id===g.textElemId&&(y.preventDefault(),g.cmd.do("insertHTML","<p><br></p>"))}d.push(A)}r.default=f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17)),s=a(t(28));(0,i.default)(r,"__esModule",{value:!0}),r.cutToKeepP=void 0;var u=t(2),h=t(7),f=u.__importDefault(t(3));function g(d,v,m){function A(){var C=d.$textElem,E=d.$textElem.html(),S=d.$textElem.text(),w=(0,l.default)(E).call(E),T=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',h.EMPTY_P];if(/^\s*$/.test(S)&&(!w||(0,s.default)(T).call(T,w))){C.html(h.EMPTY_P);var b=C.getNode();d.selection.createRangeByElems(b.childNodes[0],b.childNodes[0]);var N=d.selection.getSelectionContainerElem();d.selection.restoreSelection(),d.selection.moveCursor(N.getNode(),0)}}v.push(A);function y(C){var E,S=d.$textElem,w=(0,l.default)(E=S.html().toLowerCase()).call(E);if(w===h.EMPTY_P){C.preventDefault();return}}m.push(y)}function p(d,v){function m(A){var y;if(A.keyCode===88){var C=d.$textElem,E=(0,l.default)(y=C.html().toLowerCase()).call(y);if(!E||E==="<br>"){var S=f.default(h.EMPTY_P);C.html(" "),C.append(S),d.selection.createRangeByElem(S,!1,!0),d.selection.restoreSelection(),d.selection.moveCursor(S.getNode(),0)}}}v.push(m)}r.cutToKeepP=p,r.default=g},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});function l(s,u){function h(){if(s.cmd.queryCommandSupported("insertHTML")){var f=s.selection.getSelectionContainerElem();if(f){var g=f.parent(),p=f.getNodeName(),d=g.getNodeName();p=="CODE"||d==="CODE"||d==="PRE"||/hljs/.test(d)?s.cmd.do("insertHTML",s.config.languageTab):s.cmd.do("insertHTML"," ")}}}u.push(h)}r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17)),s=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var u=t(131),h=t(6),f=t(7);function g(A){var y,C=(0,l.default)(y=A.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(y),E=document.createElement("div");return E.innerHTML=C,E.innerHTML.replace(/<p><\/p>/gim,"")}function p(A){var y=A.replace(/<br>|<br\/>/gm,`
`).replace(/<[^>]+>/gm,"");return y}function d(A){var y;if(A==="")return!1;var C=document.createElement("div");return C.innerHTML=A,((y=C.firstChild)===null||y===void 0?void 0:y.nodeName)==="P"}function v(A){if(!(A!=null&&A.length))return!1;var y=A.elems[0];return y.nodeName==="P"&&y.innerHTML==="<br>"}function m(A,y){function C(E){var S=A.config,w=S.pasteFilterStyle,T=S.pasteIgnoreImg,b=S.pasteTextHandle,N=u.getPasteHtml(E,w,T),M=u.getPasteText(E);M=M.replace(/\n/gm,"<br>");var x=A.selection.getSelectionContainerElem();if(x){var D=x==null?void 0:x.getNodeName(),R=x==null?void 0:x.getNodeTop(A),P="";if(R.elems[0]&&(P=R==null?void 0:R.getNodeName()),D==="CODE"||P==="PRE"){b&&h.isFunction(b)&&(M=""+(b(M)||"")),A.cmd.do("insertHTML",p(M));return}if(f.urlRegex.test(M)&&w){b&&h.isFunction(b)&&(M=""+(b(M)||""));var I=M.replace(f.urlRegex,function($){return'<a href="'+$+'" target="_blank">'+$+"</a>"}),O=A.selection.getRange(),L=document.createElement("div"),H=document.createDocumentFragment();if(L.innerHTML=I,O==null)return;for(;L.childNodes.length;)H.append(L.childNodes[0]);var k=H.querySelectorAll("a");(0,s.default)(k).call(k,function($){$.innerText=$.href}),O.insertNode&&(O.deleteContents(),O.insertNode(H)),A.selection.clearWindowSelectionRange();return}if(N)try{b&&h.isFunction(b)&&(N=""+(b(N)||""));var B=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(N);if(B&&w)A.cmd.do("insertHTML",""+g(M));else{var F=g(N);if(d(F)){var Y=A.$textElem;if(A.cmd.do("insertHTML",F),Y.equal(x)){A.selection.createEmptyRange();return}v(R)&&R.remove()}else A.cmd.do("insertHTML",F)}}catch{b&&h.isFunction(b)&&(M=""+(b(M)||"")),A.cmd.do("insertHTML",""+g(M))}}}y.push(C)}r.default=m},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17)),s=a(t(4)),u=a(t(28));(0,i.default)(r,"__esModule",{value:!0});var h=t(2),f=t(293),g=h.__importDefault(t(297));function p(y){var C=/<span>.*?<\/span>/gi,E=/<span>(.*?)<\/span>/;return y.replace(C,function(S){var w=S.match(E);return w==null?"":w[1]})}function d(y,C){var E;return y=(0,l.default)(E=y.toLowerCase()).call(E),!!(f.IGNORE_TAGS.has(y)||C&&y==="img")}function v(y,C){var E="";E="<"+y;var S=[];(0,s.default)(C).call(C,function(T){S.push(T.name+'="'+T.value+'"')}),S.length>0&&(E=E+" "+S.join(" "));var w=f.EMPTY_TAGS.has(y);return E=E+(w?"/":"")+">",E}function m(y){return"</"+y+">"}function A(y,C,E){C===void 0&&(C=!0),E===void 0&&(E=!1);var S=[],w="";function T(x){x=(0,l.default)(x).call(x),x&&(f.EMPTY_TAGS.has(x)||(w=x))}function b(){w=""}var N=new g.default;N.parse(y,{startElement:function(D,R){if(T(D),!d(D,E)){var P=f.NECESSARY_ATTRS.get(D)||[],I=[];(0,s.default)(R).call(R,function(L){var H=L.name;if(H==="style"){C||I.push(L);return}(0,u.default)(P).call(P,H)!==!1&&I.push(L)});var O=v(D,I);S.push(O)}},characters:function(D){D&&(d(w,E)||S.push(D))},endElement:function(D){if(!d(D,E)){var R=m(D);S.push(R),b()}},comment:function(D){T(D)}});var M=S.join("");return M=p(M),M}r.default=A},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(132)),s=a(t(121));(0,i.default)(r,"__esModule",{value:!0}),r.TOP_LEVEL_TAGS=r.EMPTY_TAGS=r.NECESSARY_ATTRS=r.IGNORE_TAGS=void 0,r.IGNORE_TAGS=new l.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),r.NECESSARY_ATTRS=new s.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),r.EMPTY_TAGS=new l.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),r.TOP_LEVEL_TAGS=new l.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(n,r,t){var a=t(295);n.exports=a},function(n,r,t){t(296),t(61),t(50),t(54);var a=t(9);n.exports=a.Set},function(n,r,t){var a=t(122),i=t(124);n.exports=a("Set",function(l){return function(){return l(this,arguments.length?arguments[0]:void 0)}},i)},function(n,r){function t(){}t.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(a,i){i&&(this.contentHandler=i);for(var l,s,u,h=!1,f=this;a.length>0;)a.substring(0,4)=="<!--"?(u=a.indexOf("-->"),u!=-1?(this.contentHandler.comment(a.substring(4,u)),a=a.substring(u+3),h=!1):h=!0):a.substring(0,2)=="</"?this.endTagRe.test(a)?(l=RegExp.lastMatch,s=RegExp.rightContext,l.replace(this.endTagRe,function(){return f.parseEndTag.apply(f,arguments)}),a=s,h=!1):h=!0:a.charAt(0)=="<"&&(this.startTagRe.test(a)?(l=RegExp.lastMatch,s=RegExp.rightContext,l.replace(this.startTagRe,function(){return f.parseStartTag.apply(f,arguments)}),a=s,h=!1):h=!0),h&&(u=a.indexOf("<"),u==-1?(this.contentHandler.characters(a),a=""):(this.contentHandler.characters(a.substring(0,u)),a=a.substring(u))),h=!0},parseStartTag:function(a,i,l){var s=this.parseAttributes(i,l);this.contentHandler.startElement(i,s)},parseEndTag:function(a,i){this.contentHandler.endElement(i)},parseAttributes:function(a,i){var l=this,s=[];return i.replace(this.attrRe,function(u,h,f,g,p,d,v,m){s.push(l.parseAttribute(a,u,h,f,g,p,d,v,m))}),s},parseAttribute:function(a,i,l){var s="";arguments[7]?s=arguments[8]:arguments[5]?s=arguments[6]:arguments[3]&&(s=arguments[4]);var u=!s&&!arguments[3];return{name:l,value:u?null:s}}},n.exports=t},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});function l(s,u){function h(f){s.selection.createRangeByElem(f),s.selection.restoreSelection()}u.push(h)}r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(6),h=s.__importDefault(t(3));function f(g){var p=[],d=g.childNodes()||[];return(0,l.default)(d).call(d,function(v){var m,A=v.nodeType;if(A===3&&(m=v.textContent||"",m=u.replaceHtmlSymbol(m)),A===1){m={},m=m,m.tag=v.nodeName.toLowerCase();for(var y=[],C=v.attributes,E=C.length||0,S=0;S<E;S++){var w=C[S];y.push({name:w.name,value:w.value})}m.attrs=y,m.children=f(h.default(v))}m&&p.push(m)}),p}r.default=f},function(n,r,t){var a=t(0),i=a(t(92)),l=a(t(1)),s=a(t(4));(0,l.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3));function f(g,p){p===void 0&&(p=document.createElement("div"));var d=p;return(0,s.default)(g).call(g,function(v){var m;if(typeof v=="string"&&(m=document.createTextNode(v)),(0,i.default)(v)==="object"){var A;m=document.createElement(v.tag),(0,s.default)(A=v.attrs).call(A,function(y){h.default(m).attr(y.name,y.value)}),v.children&&v.children.length>0&&f(v.children,m.getRootNode())}m&&d.appendChild(m)}),h.default(d)}r.default=f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(89)),s=a(t(70)),u=a(t(28)),h=a(t(302)),f=a(t(4)),g=a(t(94)),p=a(t(133)),d=a(t(46)),v=a(t(57));(0,i.default)(r,"__esModule",{value:!0});var m=t(2),A=m.__importDefault(t(87)),y=m.__importDefault(t(314)),C=m.__importDefault(t(3)),E=function(){function S(w){this.editor=w,this.menuList=[],this.constructorList=y.default}return S.prototype.extend=function(w,T){!T||typeof T!="function"||(this.constructorList[w]=T)},S.prototype.init=function(){var w,T,b=this,N=this.editor.config,M=N.excludeMenus;(0,l.default)(M)===!1&&(M=[]),N.menus=(0,s.default)(w=N.menus).call(w,function(H){return(0,u.default)(M).call(M,H)===!1});var x=(0,h.default)(A.default.globalCustomMenuConstructorList);x=(0,s.default)(x).call(x,function(H){return(0,u.default)(M).call(M,H)}),(0,f.default)(x).call(x,function(H){delete A.default.globalCustomMenuConstructorList[H]}),(0,f.default)(T=N.menus).call(T,function(H){var k=b.constructorList[H];b._initMenuList(H,k)});for(var D=0,R=(0,g.default)(A.default.globalCustomMenuConstructorList);D<R.length;D++){var P=R[D],I=P[0],O=P[1],L=O;this._initMenuList(I,L)}this._addToToolbar(),N.showMenuTooltips&&this._bindMenuTooltips()},S.prototype._initMenuList=function(w,T){var b;if(!(T==null||typeof T!="function"))if((0,p.default)(b=this.menuList).call(b,function(M){return M.key===w}))console.warn("菜单名称重复:"+w);else{var N=new T(this.editor);N.key=w,this.menuList.push(N)}},S.prototype._bindMenuTooltips=function(){var w=this.editor,T=w.$toolbarElem,b=w.config,N=b.menuTooltipPosition,M=C.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+N+`">
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);M.css("visibility","hidden"),T.append(M),M.css("z-index",w.zIndex.get("tooltip"));var x=0;function D(){x&&clearTimeout(x)}function R(){D(),M.css("visibility","hidden")}T.on("mouseover",function(P){var I=P.target,O=C.default(I),L,H;if(O.isContain(T)){R();return}if(O.parentUntil(".w-e-droplist")!=null)R();else if(O.attr("data-title"))L=O.attr("data-title"),H=O;else{var k=O.parentUntil(".w-e-menu");k!=null&&(L=k.attr("data-title"),H=k)}if(L&&H){D();var B=H.getOffsetData();M.text(w.i18next.t("menus.title."+L));var F=M.getOffsetData(),Y=B.left+B.width/2-F.width/2;M.css("left",Y+"px"),N==="up"?M.css("top",B.top-F.height-8+"px"):N==="down"&&M.css("top",B.top+B.height+8+"px"),x=(0,d.default)(function(){M.css("visibility","visible")},200)}else R()}).on("mouseleave",function(){R()})},S.prototype._addToToolbar=function(){var w,T=this.editor,b=T.$toolbarElem;(0,f.default)(w=this.menuList).call(w,function(N){var M=N.$elem;M&&b.append(M)})},S.prototype.menuFind=function(w){for(var T=this.menuList,b=0,N=T.length;b<N;b++)if(T[b].key===w)return T[b];return T[0]},S.prototype.changeActive=function(){var w;(0,f.default)(w=this.menuList).call(w,function(T){var b;(0,d.default)((0,v.default)(b=T.tryChangeActive).call(b,T),100)})},S}();r.default=E},function(n,r,t){n.exports=t(303)},function(n,r,t){var a=t(304);n.exports=a},function(n,r,t){t(305);var a=t(9);n.exports=a.Object.keys},function(n,r,t){var a=t(5),i=t(31),l=t(52),s=t(11),u=s(function(){l(1)});a({target:"Object",stat:!0,forced:u},{keys:function(f){return l(i(f))}})},function(n,r,t){var a=t(307);n.exports=a},function(n,r,t){t(308);var a=t(9);n.exports=a.Object.entries},function(n,r,t){var a=t(5),i=t(309).entries;a({target:"Object",stat:!0},{entries:function(s){return i(s)}})},function(n,r,t){var a=t(14),i=t(52),l=t(30),s=t(59).f,u=function(h){return function(f){for(var g=l(f),p=i(g),d=p.length,v=0,m=[],A;d>v;)A=p[v++],(!a||s.call(g,A))&&m.push(h?[A,g[A]]:g[A]);return m}};n.exports={entries:u(!0),values:u(!1)}},function(n,r,t){var a=t(311);n.exports=a},function(n,r,t){var a=t(312),i=Array.prototype;n.exports=function(l){var s=l.some;return l===i||l instanceof Array&&s===i.some?a:s}},function(n,r,t){t(313);var a=t(15);n.exports=a("Array").some},function(n,r,t){var a=t(5),i=t(32).some,l=t(67),s=t(22),u=l("some"),h=s("some");a({target:"Array",proto:!0,forced:!u||!h},{some:function(g){return i(this,g,arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(315)),u=l.__importDefault(t(316)),h=l.__importDefault(t(321)),f=l.__importDefault(t(326)),g=l.__importDefault(t(327)),p=l.__importDefault(t(328)),d=l.__importDefault(t(329)),v=l.__importDefault(t(331)),m=l.__importDefault(t(333)),A=l.__importDefault(t(334)),y=l.__importDefault(t(337)),C=l.__importDefault(t(338)),E=l.__importDefault(t(339)),S=l.__importDefault(t(350)),w=l.__importDefault(t(365)),T=l.__importDefault(t(369)),b=l.__importDefault(t(137)),N=l.__importDefault(t(378)),M=l.__importDefault(t(380)),x=l.__importDefault(t(381)),D=l.__importDefault(t(382)),R=l.__importDefault(t(401)),P=l.__importDefault(t(406)),I=l.__importDefault(t(409));r.default={bold:s.default,head:u.default,italic:f.default,link:h.default,underline:g.default,strikeThrough:p.default,fontName:d.default,fontSize:v.default,justify:m.default,quote:A.default,backColor:y.default,foreColor:C.default,video:E.default,image:S.default,indent:w.default,emoticon:T.default,list:b.default,lineHeight:N.default,undo:M.default,redo:x.default,table:D.default,code:R.default,splitLine:P.default,todo:I.default}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(23)),u=l.__importDefault(t(3)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=u.default(`<div class="w-e-menu" data-title="加粗">
<i class="w-e-icon-bold"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor,d=p.selection.isSelectionEmpty();d&&p.selection.createEmptyRange(),p.cmd.do("bold"),d&&(p.selection.collapseRange(),p.selection.restoreSelection())},g.prototype.tryChangeActive=function(){var p=this.editor;p.cmd.queryCommandState("bold")?this.active():this.unActive()},g}(s.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(27)),s=a(t(29)),u=a(t(4)),h=a(t(317)),f=a(t(28));(0,i.default)(r,"__esModule",{value:!0});var g=t(2),p=g.__importDefault(t(24)),d=g.__importDefault(t(3)),v=t(6),m=t(7),A=function(y){g.__extends(C,y);function C(E){var S=this,w=d.default('<div class="w-e-menu" data-title="标题"><i class="w-e-icon-header"></i></div>'),T={width:100,title:"设置标题",type:"list",list:[{$elem:d.default("<h1>H1</h1>"),value:"<h1>"},{$elem:d.default("<h2>H2</h2>"),value:"<h2>"},{$elem:d.default("<h3>H3</h3>"),value:"<h3>"},{$elem:d.default("<h4>H4</h4>"),value:"<h4>"},{$elem:d.default("<h5>H5</h5>"),value:"<h5>"},{$elem:d.default("<p>"+E.i18next.t("menus.dropListMenu.head.正文")+"</p>"),value:"<p>"}],clickHandler:function(M){S.command(M)}};S=y.call(this,w,E,T)||this;var b=E.config.onCatalogChange;return b&&(S.oldCatalogs=[],S.addListenerCatalog(),S.getCatalogs()),S}return C.prototype.command=function(E){var S=this.editor,w=S.selection.getSelectionContainerElem();if(w&&S.$textElem.equal(w))this.setMultilineHead(E);else{var T;if((0,l.default)(T=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(T,d.default(w).getNodeName())>-1)return;S.cmd.do("formatBlock",E)}E!=="<p>"&&this.addUidForSelectionElem()},C.prototype.addUidForSelectionElem=function(){var E=this.editor,S=E.selection.getSelectionContainerElem(),w=v.getRandomCode();d.default(S).attr("id",w)},C.prototype.addListenerCatalog=function(){var E=this,S=this.editor;S.txt.eventHooks.changeEvents.push(function(){E.getCatalogs()})},C.prototype.getCatalogs=function(){var E=this.editor,S=this.editor.$textElem,w=E.config.onCatalogChange,T=(0,s.default)(S).call(S,"h1,h2,h3,h4,h5"),b=[];(0,u.default)(T).call(T,function(N,M){var x=d.default(N),D=x.attr("id"),R=x.getNodeName(),P=x.text();D||(D=v.getRandomCode(),x.attr("id",D)),P&&b.push({tag:R,id:D,text:P})}),(0,h.default)(this.oldCatalogs)!==(0,h.default)(b)&&(this.oldCatalogs=b,w&&w(b))},C.prototype.setMultilineHead=function(E){var S=this,w,T,b=this.editor,N=b.selection,M=(w=N.getSelectionContainerElem())===null||w===void 0?void 0:w.elems[0],x=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],D=d.default(N.getSelectionStartElem()),R=d.default(N.getSelectionEndElem());R.elems[0].outerHTML===d.default(m.EMPTY_P).elems[0].outerHTML&&!R.elems[0].nextSibling&&(R=R.prev());var P=[];P.push(D.getNodeTop(b));var I=[],O=(T=N.getRange())===null||T===void 0?void 0:T.commonAncestorContainer.childNodes;O==null||(0,u.default)(O).call(O,function(k,B){k===P[0].getNode()&&I.push(B),k===R.getNodeTop(b).getNode()&&I.push(B)});for(var L=0;P[L].getNode()!==R.getNodeTop(b).getNode();){if(!P[L].elems[0])return;var H=d.default(P[L].next().getNode());P.push(H),L++}P==null||(0,u.default)(P).call(P,function(k,B){if(!S.hasTag(k,x)){var F=d.default(E),Y=k.parent().getNode();F.html(""+k.html()),Y.insertBefore(F.getNode(),k.getNode()),k.remove()}}),N.createRangeByElems(M.children[I[0]],M.children[I[1]])},C.prototype.hasTag=function(E,S){var w=this,T;if(!E)return!1;if((0,f.default)(S).call(S,E==null?void 0:E.getNodeName()))return!0;var b=!1;return(T=E.children())===null||T===void 0||(0,u.default)(T).call(T,function(N){b=w.hasTag(d.default(N),S)}),b},C.prototype.tryChangeActive=function(){var E=this.editor,S=/^h/i,w=E.cmd.queryCommandValue("formatBlock");S.test(w)?this.active():this.unActive()},C}(p.default);r.default=A},function(n,r,t){n.exports=t(318)},function(n,r,t){var a=t(319);n.exports=a},function(n,r,t){t(320);var a=t(9);a.JSON||(a.JSON={stringify:JSON.stringify}),n.exports=function(l,s,u){return a.JSON.stringify.apply(null,arguments)}},function(n,r,t){var a=t(5),i=t(36),l=t(11),s=i("JSON","stringify"),u=/[\uD800-\uDFFF]/g,h=/^[\uD800-\uDBFF]$/,f=/^[\uDC00-\uDFFF]$/,g=function(d,v,m){var A=m.charAt(v-1),y=m.charAt(v+1);return h.test(d)&&!f.test(y)||f.test(d)&&!h.test(A)?"\\u"+d.charCodeAt(0).toString(16):d},p=l(function(){return s("\uDF06\uD834")!=='"\\udf06\\ud834"'||s("\uDEAD")!=='"\\udead"'});s&&a({target:"JSON",stat:!0,forced:p},{stringify:function(v,m,A){var y=s.apply(null,arguments);return typeof y=="string"?y.replace(u,g):y}})},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(38)),h=s.__importDefault(t(3)),f=s.__importDefault(t(322)),g=s.__importStar(t(96)),p=s.__importDefault(t(33)),d=s.__importDefault(t(324)),v=t(7),m=function(A){s.__extends(y,A);function y(C){var E=this,S=h.default('<div class="w-e-menu" data-title="链接"><i class="w-e-icon-link"></i></div>');return E=A.call(this,S,C)||this,d.default(C),E}return y.prototype.clickHandler=function(){var C=this.editor,E,S=C.selection.getSelectionContainerElem(),w=C.$textElem,T=w.html(),b=(0,l.default)(T).call(T);if(b===v.EMPTY_P){var N=w.children();C.selection.createRangeByElem(N,!0,!0),S=C.selection.getSelectionContainerElem()}if(!(S&&C.$textElem.equal(S)))if(this.isActive){var M="",x="";if(E=C.selection.getSelectionContainerElem(),!E)return;if(E.getNodeName()!=="A"){var D=g.getParentNodeA(E);E=h.default(D)}M=E.elems[0].innerText,x=E.attr("href"),this.createPanel(M,x)}else C.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(C.selection.getSelectionText(),"")},y.prototype.createPanel=function(C,E){var S=f.default(this.editor,C,E),w=new p.default(this,S);w.create()},y.prototype.tryChangeActive=function(){var C=this.editor;g.default(C)?this.active():this.unActive()},y}(u.default);r.default=m},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(28)),s=a(t(17)),u=a(t(29));(0,i.default)(r,"__esModule",{value:!0});var h=t(2),f=t(6),g=h.__importDefault(t(3)),p=h.__importStar(t(96)),d=t(323);function v(m,A,y){var C=f.getRandom("input-link"),E=f.getRandom("input-text"),S=f.getRandom("btn-ok"),w=f.getRandom("btn-del"),T=p.default(m)?"inline-block":"none",b;function N(){if(p.default(m)){var P=m.selection.getSelectionContainerElem();P&&(m.selection.createRangeByElem(P),m.selection.restoreSelection(),b=P)}}function M(P,I){var O=P.replace(/</g,"<").replace(/>/g,">"),L=g.default('<a target="_blank">'+O+"</a>"),H=L.elems[0];H.innerText=P,H.href=I,p.default(m)&&N(),m.cmd.do("insertElem",L)}function x(){if(p.default(m))if(N(),b.getNodeName()==="A"){var P,I=b.elems[0],O=I.parentElement;O&&(0,l.default)(P=p.EXTRA_TAG).call(P,O.nodeName)?O.innerHTML=I.innerHTML:m.cmd.do("insertHTML","<span>"+I.innerHTML+"</span>")}else{var L=p.getParentNodeA(b),H=L.innerHTML;m.cmd.do("insertHTML","<span>"+H+"</span>")}}function D(P,I){var O=m.config.linkCheck(P,I);if(O!==void 0){if(O===!0)return!0;m.config.customAlert(O,"warning")}return!1}var R={width:300,height:0,tabs:[{title:m.i18next.t("menus.panelMenus.link.链接"),tpl:`<div>
<input
id="`+E+`"
type="text"
class="block"
placeholder="`+m.i18next.t("menus.panelMenus.link.链接文字")+`"/>
</td>
<input
id="`+C+`"
type="text"
class="block"
placeholder="`+m.i18next.t("如")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+S+`" class="right">
`+m.i18next.t("插入")+`
</button>
<button type="button" id="`+w+'" class="gray right" style="display:'+T+`">
`+m.i18next.t("menus.panelMenus.link.取消链接")+`
</button>
</div>
</div>`,events:[{selector:"#"+S,type:"click",fn:function(){var I,O,L,H,k,B=m.selection.getSelectionContainerElem(),F=B==null?void 0:B.elems[0];m.selection.restoreSelection();var Y=m.selection.getSelectionRangeTopNodes()[0].getNode(),$=window.getSelection(),W=g.default("#"+C),G=g.default("#"+E),j=(0,s.default)(I=W.val()).call(I),z=(0,s.default)(O=G.val()).call(O),Z="";$&&!($!=null&&$.isCollapsed)&&(Z=(H=d.insertHtml($,Y))===null||H===void 0?void 0:(0,s.default)(H).call(H));var ee=Z==null?void 0:Z.replace(/<.*?>/g,""),se=(k=ee==null?void 0:ee.length)!==null&&k!==void 0?k:0;if(se<=z.length){var pe=z.substring(0,se),xe=z.substring(se);ee===pe&&(z=ee+xe)}if(j&&(z||(z=j),!!D(z,j))){if((F==null?void 0:F.nodeName)==="A")return F.setAttribute("href",j),F.innerText=z,!0;if((F==null?void 0:F.nodeName)!=="A"&&(0,l.default)(L=p.EXTRA_TAG).call(L,F.nodeName)){var Je=p.getParentNodeA(B);if(Je)return Je.setAttribute("href",j),F.innerText=z,!0}return M(z,j),!0}},bindEnter:!0},{selector:"#"+w,type:"click",fn:function(){return x(),!0}}]}],setLinkValue:function(I,O){var L="",H="",k;O==="text"&&(L="#"+E,H=A),O==="link"&&(L="#"+C,H=y),k=(0,u.default)(I).call(I,L).elems[0],k.value=H}};return R}r.default=v},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0}),r.insertHtml=r.createPartHtml=r.makeHtmlString=r.getTopNode=void 0;function s(d,v){var m=d,A=d;do{if(m.textContent===v)break;A=m,m.parentNode&&(m=m==null?void 0:m.parentNode)}while((m==null?void 0:m.nodeName)!=="P");return A}r.getTopNode=s;function u(d,v){var m=d.nodeName,A="";if(d.nodeType===3||/^(h|H)[1-6]$/.test(m))return v;if(d.nodeType===1){var y=d.getAttribute("style"),C=d.getAttribute("face"),E=d.getAttribute("color");y&&(A=A+(' style="'+y+'"')),C&&(A=A+(' face="'+C+'"')),E&&(A=A+(' color="'+E+'"'))}return m=m.toLowerCase(),"<"+m+A+">"+v+"</"+m+">"}r.makeHtmlString=u;function h(d,v,m,A){var y,C=(y=v.textContent)===null||y===void 0?void 0:y.substring(m,A),E=v,S="";do S=u(E,C??""),C=S,E=E==null?void 0:E.parentElement;while(E&&E.textContent!==d);return S}r.createPartHtml=h;function f(d,v){var m,A,y,C,E,S=d.anchorNode,w=d.focusNode,T=d.anchorOffset,b=d.focusOffset,N=(m=v.textContent)!==null&&m!==void 0?m:"",M=g(v),x="",D="",R="",P="",I=S,O=w,L=S;if(S!=null&&S.isEqualNode(w??null)){var H=h(N,S,T,b);return H=p(M,H),H}for(S&&(D=h(N,S,T??0)),w&&(P=h(N,w,0,b)),S&&(I=s(S,N)),w&&(O=s(w,N)),L=(A=I==null?void 0:I.nextSibling)!==null&&A!==void 0?A:S;!(L!=null&&L.isEqualNode(O??null));){var k=L==null?void 0:L.nodeName;if(k==="#text")R=R+(L==null?void 0:L.textContent);else{var B=(C=(y=L==null?void 0:L.firstChild)===null||y===void 0?void 0:y.parentElement)===null||C===void 0?void 0:C.innerHTML;L&&(R=R+u(L,B??""))}var F=(E=L==null?void 0:L.nextSibling)!==null&&E!==void 0?E:L;if(F===L)break;L=F}return x=""+D+R+P,x=p(M,x),x}r.insertHtml=f;function g(d){for(var v,m=(v=d.textContent)!==null&&v!==void 0?v:"",A=[];(d==null?void 0:d.textContent)===m;)d.nodeName!=="P"&&d.nodeName!=="TABLE"&&A.push(d),d=d.childNodes[0];return A}function p(d,v){return(0,l.default)(d).call(d,function(m){v=u(m,v)}),v}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(325));function u(h){s.default(h)}r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(28));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=s.__importDefault(t(39)),f=t(96);function g(d){var v;function m(y){var C=[{$elem:u.default("<span>"+d.i18next.t("menus.panelMenus.link.查看链接")+"</span>"),onClick:function(S,w){var T=w.attr("href");return window.open(T,"_target"),!0}},{$elem:u.default("<span>"+d.i18next.t("menus.panelMenus.link.取消链接")+"</span>"),onClick:function(S,w){var T,b;S.selection.createRangeByElem(w),S.selection.restoreSelection();var N=w.childNodes();if((N==null?void 0:N.getNodeName())==="IMG"){var M=(b=(T=S.selection.getSelectionContainerElem())===null||T===void 0?void 0:T.children())===null||b===void 0?void 0:b.elems[0].children[0];S.cmd.do("insertHTML",`<img
src=`+(M==null?void 0:M.getAttribute("src"))+`
style=`+(M==null?void 0:M.getAttribute("style"))+">")}else{var x,D=w.elems[0],R=D.innerHTML,P=D.parentElement;P&&(0,l.default)(x=f.EXTRA_TAG).call(x,P.nodeName)?P.innerHTML=R:S.cmd.do("insertHTML","<span>"+R+"</span>")}return!0}}];v=new h.default(d,y,C),v.create()}function A(){v&&(v.remove(),v=null)}return{showLinkTooltip:m,hideLinkTooltip:A}}function p(d){var v=g(d),m=v.showLinkTooltip,A=v.hideLinkTooltip;d.txt.eventHooks.linkClickEvents.push(m),d.txt.eventHooks.clickEvents.push(A),d.txt.eventHooks.keyupEvents.push(A),d.txt.eventHooks.toolbarClickEvents.push(A),d.txt.eventHooks.menuClickEvents.push(A),d.txt.eventHooks.textScrollEvents.push(A)}r.default=p},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(23)),u=l.__importDefault(t(3)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=u.default(`<div class="w-e-menu" data-title="斜体">
<i class="w-e-icon-italic"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor,d=p.selection.isSelectionEmpty();d&&p.selection.createEmptyRange(),p.cmd.do("italic"),d&&(p.selection.collapseRange(),p.selection.restoreSelection())},g.prototype.tryChangeActive=function(){var p=this.editor;p.cmd.queryCommandState("italic")?this.active():this.unActive()},g}(s.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(23)),u=l.__importDefault(t(3)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=u.default(`<div class="w-e-menu" data-title="下划线">
<i class="w-e-icon-underline"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor,d=p.selection.isSelectionEmpty();d&&p.selection.createEmptyRange(),p.cmd.do("underline"),d&&(p.selection.collapseRange(),p.selection.restoreSelection())},g.prototype.tryChangeActive=function(){var p=this.editor;p.cmd.queryCommandState("underline")?this.active():this.unActive()},g}(s.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(23)),u=l.__importDefault(t(3)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=u.default(`<div class="w-e-menu" data-title="删除线">
<i class="w-e-icon-strikethrough"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor,d=p.selection.isSelectionEmpty();d&&p.selection.createEmptyRange(),p.cmd.do("strikeThrough"),d&&(p.selection.collapseRange(),p.selection.restoreSelection())},g.prototype.tryChangeActive=function(){var p=this.editor;p.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},g}(s.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(24)),u=l.__importDefault(t(3)),h=l.__importDefault(t(330)),f=function(g){l.__extends(p,g);function p(d){var v=this,m=u.default(`<div class="w-e-menu" data-title="字体">
<i class="w-e-icon-font"></i>
</div>`),A=new h.default(d.config.fontNames),y={width:100,title:"设置字体",type:"list",list:A.getItemList(),clickHandler:function(E){v.command(E)}};return v=g.call(this,m,d,y)||this,v}return p.prototype.command=function(d){var v,m=this.editor,A=m.selection.isSelectionEmpty(),y=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];if(y!=null){var C=(y==null?void 0:y.nodeName.toLowerCase())!=="p",E=(y==null?void 0:y.getAttribute("face"))===d;if(A){if(C&&!E){var S=m.selection.getSelectionRangeTopNodes();m.selection.createRangeByElem(S[0]),m.selection.moveCursor(S[0].elems[0])}m.selection.setRangeToElem(y),m.selection.createEmptyRange()}m.cmd.do("fontName",d),A&&(m.selection.collapseRange(),m.selection.restoreSelection())}},p.prototype.tryChangeActive=function(){},p}(s.default);r.default=f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=function(){function f(g){var p=this;this.itemList=[],(0,l.default)(g).call(g,function(d){var v=typeof d=="string"?d:d.value,m=typeof d=="string"?d:d.name;p.itemList.push({$elem:u.default(`<p style="font-family:'`+v+`'">`+m+"</p>"),value:m})})}return f.prototype.getItemList=function(){return this.itemList},f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(24)),u=l.__importDefault(t(3)),h=l.__importDefault(t(332)),f=function(g){l.__extends(p,g);function p(d){var v=this,m=u.default(`<div class="w-e-menu" data-title="字号">
<i class="w-e-icon-text-heigh"></i>
</div>`),A=new h.default(d.config.fontSizes),y={width:160,title:"设置字号",type:"list",list:A.getItemList(),clickHandler:function(E){v.command(E)}};return v=g.call(this,m,d,y)||this,v}return p.prototype.command=function(d){var v,m=this.editor,A=m.selection.isSelectionEmpty(),y=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];y!=null&&(m.cmd.do("fontSize",d),A&&(m.selection.collapseRange(),m.selection.restoreSelection()))},p.prototype.tryChangeActive=function(){},p}(s.default);r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=function(){function h(f){this.itemList=[];for(var g in f){var p=f[g];this.itemList.push({$elem:s.default('<p style="font-size:'+g+'">'+p.name+"</p>"),value:p.value})}}return h.prototype.getItemList=function(){return this.itemList},h}();r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(27));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(24)),f=u.__importDefault(t(3)),g=["LI"],p=["BLOCKQUOTE"],d=function(v){u.__extends(m,v);function m(A){var y=this,C=f.default('<div class="w-e-menu" data-title="对齐"><i class="w-e-icon-paragraph-left"></i></div>'),E={width:100,title:"对齐方式",type:"list",list:[{$elem:f.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.justify.靠左")+`
</p>`),value:"left"},{$elem:f.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.justify.居中")+`
</p>`),value:"center"},{$elem:f.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.justify.靠右")+`
</p>`),value:"right"},{$elem:f.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.justify.两端")+`
</p>`),value:"justify"}],clickHandler:function(w){y.command(w)}};return y=v.call(this,C,A,E)||this,y}return m.prototype.command=function(A){var y=this.editor,C=y.selection,E=C.getSelectionContainerElem();C.saveRange();var S=y.selection.getSelectionRangeTopNodes();if(E!=null&&E.length)if(this.isSpecialNode(E,S[0])||this.isSpecialTopNode(S[0])){var w=this.getSpecialNodeUntilTop(E,S[0]);if(w==null)return;f.default(w).css("text-align",A)}else(0,l.default)(S).call(S,function(T){T.css("text-align",A)});C.restoreSelection()},m.prototype.getSpecialNodeUntilTop=function(A,y){for(var C=A.elems[0],E=y.elems[0];C!=null;){if((0,s.default)(g).call(g,C==null?void 0:C.nodeName)!==-1||C.parentNode===E)return C;C=C.parentNode}return C},m.prototype.isSpecialNode=function(A,y){var C=this.getSpecialNodeUntilTop(A,y);return C==null?!1:(0,s.default)(g).call(g,C.nodeName)!==-1},m.prototype.isSpecialTopNode=function(A){var y;return A==null?!1:(0,s.default)(p).call(p,(y=A.elems[0])===null||y===void 0?void 0:y.nodeName)!==-1},m.prototype.tryChangeActive=function(){},m}(h.default);r.default=d},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=s.__importDefault(t(23)),f=s.__importDefault(t(335)),g=s.__importDefault(t(336)),p=t(7),d=function(v){s.__extends(m,v);function m(A){var y=this,C=u.default(`<div class="w-e-menu" data-title="引用">
<i class="w-e-icon-quotes-left"></i>
</div>`);return y=v.call(this,C,A)||this,f.default(A),y}return m.prototype.clickHandler=function(){var A,y,C=this.editor,E=C.selection.isSelectionEmpty(),S=C.selection.getSelectionRangeTopNodes(),w=S[S.length-1],T=this.getTopNodeName();if(T==="BLOCKQUOTE"){var b=u.default(w.childNodes()),N=b.length,M=w;(0,l.default)(b).call(b,function(P){var I=u.default(P);I.insertAfter(M),M=I}),w.remove(),C.selection.moveCursor(b.elems[N-1]),this.tryChangeActive()}else{var x=g.default(S);if(C.$textElem.equal(w)){var D=(A=C.selection.getSelectionContainerElem())===null||A===void 0?void 0:A.elems[0];C.selection.createRangeByElems(D.children[0],D.children[0]),S=C.selection.getSelectionRangeTopNodes(),x=g.default(S),w.append(x)}else x.insertAfter(w);this.delSelectNode(S);var R=(y=x.childNodes())===null||y===void 0?void 0:y.last().getNode();if(R==null)return;R.textContent?C.selection.moveCursor(R):C.selection.moveCursor(R,0),this.tryChangeActive(),u.default(p.EMPTY_P).insertAfter(x);return}E&&(C.selection.collapseRange(),C.selection.restoreSelection())},m.prototype.tryChangeActive=function(){var A,y=this.editor,C=(A=y.selection.getSelectionRangeTopNodes()[0])===null||A===void 0?void 0:A.getNodeName();C==="BLOCKQUOTE"?this.active():this.unActive()},m.prototype.getTopNodeName=function(){var A=this.editor,y=A.selection.getSelectionRangeTopNodes()[0],C=y==null?void 0:y.getNodeName();return C},m.prototype.delSelectNode=function(A){(0,l.default)(A).call(A,function(y){y.remove()})},m}(h.default);r.default=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=t(7),u=l.__importDefault(t(3));function h(f){function g(p){var d,v=f.selection.getSelectionContainerElem(),m=f.selection.getSelectionRangeTopNodes()[0];if((m==null?void 0:m.getNodeName())==="BLOCKQUOTE"){if(v.getNodeName()==="BLOCKQUOTE"){var A=(d=v.childNodes())===null||d===void 0?void 0:d.getNode();f.selection.moveCursor(A)}if(v.text()===""){p.preventDefault(),v.remove();var y=u.default(s.EMPTY_P);y.insertAfter(m),f.selection.moveCursor(y.getNode(),0)}m.text()===""&&m.remove()}}f.txt.eventHooks.enterDownEvents.push(g)}r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3));function h(f){var g=u.default("<blockquote></blockquote>");return(0,l.default)(f).call(f,function(p){g.append(p.clone(!0))}),g}r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(24)),h=s.__importDefault(t(3)),f=t(6),g=function(p){s.__extends(d,p);function d(v){var m,A=this,y=h.default(`<div class="w-e-menu" data-title="背景色">
<i class="w-e-icon-paint-brush"></i>
</div>`),C={width:120,title:"背景颜色",type:"inline-block",list:(0,l.default)(m=v.config.colors).call(m,function(E){return{$elem:h.default('<i style="color:'+E+';" class="w-e-icon-paint-brush"></i>'),value:E}}),clickHandler:function(S){A.command(S)}};return A=p.call(this,y,v,C)||this,A}return d.prototype.command=function(v){var m,A=this.editor,y=A.selection.isSelectionEmpty(),C=(m=A.selection.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0];if(C!=null){var E=(C==null?void 0:C.nodeName.toLowerCase())!=="p",S=C==null?void 0:C.style.backgroundColor,w=f.hexToRgb(v)===S;if(y){if(E&&!w){var T=A.selection.getSelectionRangeTopNodes();A.selection.createRangeByElem(T[0]),A.selection.moveCursor(T[0].elems[0])}A.selection.createEmptyRange()}A.cmd.do("backColor",v),y&&(A.selection.collapseRange(),A.selection.restoreSelection())}},d.prototype.tryChangeActive=function(){},d}(u.default);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(24)),h=s.__importDefault(t(3)),f=function(g){s.__extends(p,g);function p(d){var v,m=this,A=h.default(`<div class="w-e-menu" data-title="文字颜色">
<i class="w-e-icon-pencil2"></i>
</div>`),y={width:120,title:"文字颜色",type:"inline-block",list:(0,l.default)(v=d.config.colors).call(v,function(C){return{$elem:h.default('<i style="color:'+C+';" class="w-e-icon-pencil2"></i>'),value:C}}),clickHandler:function(E){m.command(E)}};return m=g.call(this,A,d,y)||this,m}return p.prototype.command=function(d){var v,m=this.editor,A=m.selection.isSelectionEmpty(),y=(v=m.selection.getSelectionContainerElem())===null||v===void 0?void 0:v.elems[0];if(y!=null){var C=m.selection.getSelectionText();if(y.nodeName==="A"&&y.textContent===C){var E=h.default("<span>​</span>").getNode();y.appendChild(E)}m.cmd.do("foreColor",d),A&&(m.selection.collapseRange(),m.selection.restoreSelection())}},p.prototype.tryChangeActive=function(){},p}(u.default);r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(33)),h=l.__importDefault(t(38)),f=l.__importDefault(t(340)),g=l.__importDefault(t(346)),p=function(d){l.__extends(v,d);function v(m){var A=this,y=s.default(`<div class="w-e-menu" data-title="视频">
<i class="w-e-icon-play"></i>
</div>`);return A=d.call(this,y,m)||this,g.default(m),A}return v.prototype.clickHandler=function(){this.createPanel("")},v.prototype.createPanel=function(m){var A=f.default(this.editor,m),y=new u.default(this,A);y.create()},v.prototype.tryChangeActive=function(){},v}(h.default);r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(6),h=s.__importDefault(t(3)),f=s.__importDefault(t(341)),g=t(7);function p(d,v){var m=d.config,A=new f.default(d),y=u.getRandom("input-iframe"),C=u.getRandom("btn-ok"),E=u.getRandom("input-upload"),S=u.getRandom("btn-local-ok");function w(M){d.cmd.do("insertHTML",M+g.EMPTY_P),d.config.onlineVideoCallback(M)}function T(M){var x=d.config.onlineVideoCheck(M);return x===!0?!0:(typeof x=="string"&&d.config.customAlert(x,"error"),!1)}var b=[{title:d.i18next.t("menus.panelMenus.video.上传视频"),tpl:`<div class="w-e-up-video-container">
<div id="`+S+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+E+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+S,type:"click",fn:function(){var x=h.default("#"+E),D=x.elems[0];if(D)D.click();else return!0}},{selector:"#"+E,type:"change",fn:function(){var x=h.default("#"+E),D=x.elems[0];if(!D)return!0;var R=D.files;return R.length&&A.uploadVideo(R),!0}}]},{title:d.i18next.t("menus.panelMenus.video.插入视频"),tpl:`<div>
<input
id="`+y+`"
type="text"
class="block"
placeholder="`+d.i18next.t("如")+`:<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+C+`" class="right">
`+d.i18next.t("插入")+`
</button>
</div>
</div>`,events:[{selector:"#"+C,type:"click",fn:function(){var x,D=h.default("#"+y),R=(0,l.default)(x=D.val()).call(x);if(R&&T(R))return w(R),!0},bindEnter:!0}]}],N={width:300,height:0,tabs:[]};return window.FileReader&&(m.uploadVideoServer||m.customUploadVideo)&&N.tabs.push(b[0]),m.showLinkVideo&&N.tabs.push(b[1]),N}r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(133)),s=a(t(57)),u=a(t(4)),h=a(t(27));(0,i.default)(r,"__esModule",{value:!0});var f=t(2),g=t(6),p=f.__importDefault(t(135)),d=f.__importDefault(t(136)),v=t(7),m=t(6),A=function(){function y(C){this.editor=C}return y.prototype.uploadVideo=function(C){var E=this;if(C.length){var S=this.editor,w=S.config,T="validate.",b=function(ee){return S.i18next.t(T+ee)},N=w.uploadVideoServer,M=w.uploadVideoMaxSize,x=M/1024,D=w.uploadVideoName,R=w.uploadVideoParams,P=w.uploadVideoParamsWithUrl,I=w.uploadVideoHeaders,O=w.uploadVideoHooks,L=w.uploadVideoTimeout,H=w.withVideoCredentials,k=w.customUploadVideo,B=w.uploadVideoAccept,F=[],Y=[];if(g.arrForEach(C,function(Z){var ee=Z.name,se=Z.size/1024/1024;if(!(!ee||!se)){if(!(B instanceof Array)){Y.push("【"+B+"】"+b("uploadVideoAccept 不是Array"));return}if(!(0,l.default)(B).call(B,function(pe){return pe===ee.split(".")[ee.split(".").length-1]})){Y.push("【"+ee+"】"+b("不是视频"));return}if(x<se){Y.push("【"+ee+"】"+b("大于")+" "+x+"M");return}F.push(Z)}}),Y.length){w.customAlert(b("视频验证未通过")+`:
`+Y.join(`
`),"warning");return}if(F.length===0){w.customAlert(b("传入的文件不合法"),"warning");return}if(k&&typeof k=="function"){var $;k(F,(0,s.default)($=this.insertVideo).call($,this));return}var W=new FormData;if((0,u.default)(F).call(F,function(Z,ee){var se=D||Z.name;F.length>1&&(se=se+(ee+1)),W.append(se,Z)}),N){var G=N.split("#");N=G[0];var j=G[1]||"";(0,u.default)(g).call(g,R,function(Z,ee){P&&((0,h.default)(N).call(N,"?")>0?N+="&":N+="?",N=N+Z+"="+ee),W.append(Z,ee)}),j&&(N+="#"+j);var z=p.default(N,{timeout:L,formData:W,headers:I,withCredentials:!!H,beforeSend:function(ee){if(O.before)return O.before(ee,S,F)},onTimeout:function(ee){w.customAlert(b("上传视频超时"),"error"),O.timeout&&O.timeout(ee,S)},onProgress:function(ee,se){var pe=new d.default(S);se.lengthComputable&&(ee=se.loaded/se.total,pe.show(ee))},onError:function(ee){w.customAlert(b("上传视频错误"),"error",b("上传视频错误")+","+b("服务器返回状态")+": "+ee.status),O.error&&O.error(ee,S)},onFail:function(ee,se){w.customAlert(b("上传视频失败"),"error",b("上传视频返回结果错误")+(","+b("返回结果")+": ")+se),O.fail&&O.fail(ee,S,se)},onSuccess:function(ee,se){if(O.customInsert){var pe;O.customInsert((0,s.default)(pe=E.insertVideo).call(pe,E),se,S);return}if(se.errno!="0"){w.customAlert(b("上传视频失败"),"error",b("上传视频返回结果错误")+","+b("返回结果")+" errno="+se.errno),O.fail&&O.fail(ee,S,se);return}var xe=se.data;E.insertVideo(xe.url),O.success&&O.success(ee,S,se)}});typeof z=="string"&&w.customAlert(z,"error")}}},y.prototype.insertVideo=function(C){var E=this.editor,S=E.config,w="validate.",T=function(M,x){return x===void 0&&(x=w),E.i18next.t(x+M)};if(!S.customInsertVideo)m.UA.isFirefox?E.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+C+'" controls="controls" style="max-width:100%"></video></p><p>​</p>'):E.cmd.do("insertHTML",'<video src="'+C+'" controls="controls" style="max-width:100%"></video>'+v.EMPTY_P);else{S.customInsertVideo(C);return}var b=document.createElement("video");b.onload=function(){b=null},b.onerror=function(){S.customAlert(T("插入视频错误"),"error","wangEditor: "+T("插入视频错误")+","+T("视频链接")+' "'+C+'",'+T("下载链接失败")),b=null},b.onabort=function(){return b=null},b.src=C},y}();r.default=A},function(n,r,t){n.exports=t(343)},function(n,r,t){var a=t(344);n.exports=a},function(n,r,t){t(345);var a=t(9);n.exports=a.Date.now},function(n,r,t){var a=t(5);a({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(347)),u=l.__importDefault(t(349));function h(f){s.default(f),u.default(f)}r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(39)),h=l.__importDefault(t(348));function f(p){var d,v=function(C,E){return E===void 0&&(E=""),p.i18next.t(E+C)};function m(y){var C=[{$elem:s.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(S,w){return w.remove(),!0}},{$elem:s.default("<span>100%</span>"),onClick:function(S,w){return w.attr("width","100%"),w.removeAttr("height"),!0}},{$elem:s.default("<span>50%</span>"),onClick:function(S,w){return w.attr("width","50%"),w.removeAttr("height"),!0}},{$elem:s.default("<span>30%</span>"),onClick:function(S,w){return w.attr("width","30%"),w.removeAttr("height"),!0}},{$elem:s.default("<span>"+v("重置")+"</span>"),onClick:function(S,w){return w.removeAttr("width"),w.removeAttr("height"),!0}},{$elem:s.default("<span>"+v("menus.justify.靠左")+"</span>"),onClick:function(S,w){return h.default(w,"left"),!0}},{$elem:s.default("<span>"+v("menus.justify.居中")+"</span>"),onClick:function(S,w){return h.default(w,"center"),!0}},{$elem:s.default("<span>"+v("menus.justify.靠右")+"</span>"),onClick:function(S,w){return h.default(w,"right"),!0}}];d=new u.default(p,y,C),d.create()}function A(){d&&(d.remove(),d=null)}return{showVideoTooltip:m,hideVideoTooltip:A}}r.createShowHideFn=f;function g(p){var d=f(p),v=d.showVideoTooltip,m=d.hideVideoTooltip;p.txt.eventHooks.videoClickEvents.push(v),p.txt.eventHooks.clickEvents.push(m),p.txt.eventHooks.keyupEvents.push(m),p.txt.eventHooks.toolbarClickEvents.push(m),p.txt.eventHooks.menuClickEvents.push(m),p.txt.eventHooks.textScrollEvents.push(m),p.txt.eventHooks.changeEvents.push(m)}r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(28));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3));function h(g,p){var d=["P"],v=f(g,d);v&&u.default(v).css("text-align",p)}r.default=h;function f(g,p){for(var d,v=g.elems[0];v!=null;){if((0,l.default)(p).call(p,v==null?void 0:v.nodeName))return v;if(((d=v==null?void 0:v.parentNode)===null||d===void 0?void 0:d.nodeName)==="BODY")return null;v=v.parentNode}return v}},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(6);function s(u){if(l.UA.isFirefox){var h=u.txt,f=u.selection,g=h.eventHooks.keydownEvents;g.push(function(p){var d=f.getSelectionContainerElem();if(d){var v=d.getNodeTop(u),m=v.length&&v.prev().length?v.prev():null;m&&m.attr("data-we-video-p")&&f.getCursorPos()===0&&p.keyCode===8&&m.remove()}})}}r.default=s},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(7),h=s.__importDefault(t(3)),f=s.__importDefault(t(33)),g=s.__importDefault(t(38)),p=s.__importDefault(t(351)),d=s.__importDefault(t(364)),v=function(m){s.__extends(A,m);function A(y){var C=this,E=h.default('<div class="w-e-menu" data-title="图片"><i class="w-e-icon-image"></i></div>'),S=d.default(y);if(S.onlyUploadConf){var w;E=S.onlyUploadConf.$elem,(0,l.default)(w=S.onlyUploadConf.events).call(w,function(T){var b=T.type,N=T.fn||u.EMPTY_FN;E.on(b,function(M){M.stopPropagation(),N(M)})})}return C=m.call(this,E,y)||this,C.imgPanelConfig=S,p.default(y),C}return A.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},A.prototype.createPanel=function(){var y=this.imgPanelConfig,C=new f.default(this,y);this.setPanel(C),C.create()},A.prototype.tryChangeActive=function(){},A}(g.default);r.default=v},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(352)),u=l.__importDefault(t(353)),h=l.__importDefault(t(354)),f=l.__importDefault(t(362)),g=l.__importDefault(t(363));function p(d){s.default(d),u.default(d),h.default(d),f.default(d),g.default(d)}r.default=p},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=t(131),u=l.__importDefault(t(97));function h(d,v){var m=d.config,A=m.pasteFilterStyle,y=m.pasteIgnoreImg,C=s.getPasteHtml(v,A,y);if(C)return!0;var E=s.getPasteText(v);return!!E}function f(d,v){for(var m,A=((m=v.clipboardData)===null||m===void 0?void 0:m.types)||[],y=0;y<A.length;y++){var C=A[y];if(C==="Files")return!0}return!1}function g(d,v){if(!(!f(v,d)&&h(v,d))){var m=s.getPasteImgs(d);if(m.length){var A=new u.default(v);A.uploadImg(m)}}}function p(d){d.txt.eventHooks.pasteEvents.unshift(function(v){g(v,d)})}r.default=p},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(97));function u(h){function f(g){var p=g.dataTransfer&&g.dataTransfer.files;if(!(!p||!p.length)){var d=new s.default(h);d.uploadImg(p)}}h.txt.eventHooks.dropEvents.push(f)}r.default=u},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29)),s=a(t(355));(0,i.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var u=t(2),h=u.__importDefault(t(3));t(360);var f=t(6);function g(A,y,C,E,S){A.attr("style","width:"+y+"px; height:"+C+"px; left:"+E+"px; top:"+S+"px;")}function p(A,y){var C=h.default(`<div class="w-e-img-drag-mask">
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return C.hide(),y.append(C),C}function d(A,y,C){var E=A.getBoundingClientRect(),S=C.getBoundingClientRect(),w=S.width.toFixed(2),T=S.height.toFixed(2);(0,l.default)(y).call(y,".w-e-img-drag-show-size").text(w+"px * "+T+"px"),g(y,(0,s.default)(w),(0,s.default)(T),S.left-E.left,S.top-E.top),y.show()}function v(A){var y=A.$textContainerElem,C,E=p(A,y);function S(b,N){b.on("click",function(M){M.stopPropagation()}),b.on("mousedown",".w-e-img-drag-rb",function(M){if(M.preventDefault(),!C)return;var x=M.clientX,D=M.clientY,R=N.getBoundingClientRect(),P=C.getBoundingClientRect(),I=P.width,O=P.height,L=P.left-R.left,H=P.top-R.top,k=I/O,B=I,F=O,Y=h.default(document);function $(){Y.off("mousemove",W),Y.off("mouseup",G)}function W(j){j.stopPropagation(),j.preventDefault(),B=I+(j.clientX-x),F=O+(j.clientY-D),B/F!=k&&(F=B/k),B=(0,s.default)(B.toFixed(2)),F=(0,s.default)(F.toFixed(2)),(0,l.default)(b).call(b,".w-e-img-drag-show-size").text(B.toFixed(2).replace(".00","")+"px * "+F.toFixed(2).replace(".00","")+"px"),g(b,B,F,L,H)}Y.on("mousemove",W);function G(){C.attr("width",B+""),C.attr("height",F+"");var j=C.getBoundingClientRect();g(b,B,F,j.left-R.left,j.top-R.top),$()}Y.on("mouseup",G),Y.on("mouseleave",$)})}function w(b){if(f.UA.isIE())return!1;b&&(C=b,d(y,E,C))}function T(){(0,l.default)(y).call(y,".w-e-img-drag-mask").hide()}return S(E,y),h.default(document).on("click",T),A.beforeDestroy(function(){h.default(document).off("click",T)}),{showDrag:w,hideDrag:T}}r.createShowHideFn=v;function m(A){var y=v(A),C=y.showDrag,E=y.hideDrag;A.txt.eventHooks.imgClickEvents.push(C),A.txt.eventHooks.textScrollEvents.push(E),A.txt.eventHooks.keyupEvents.push(E),A.txt.eventHooks.toolbarClickEvents.push(E),A.txt.eventHooks.menuClickEvents.push(E),A.txt.eventHooks.changeEvents.push(E)}r.default=m},function(n,r,t){n.exports=t(356)},function(n,r,t){var a=t(357);n.exports=a},function(n,r,t){t(358);var a=t(9);n.exports=a.parseFloat},function(n,r,t){var a=t(5),i=t(359);a({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(n,r,t){var a=t(8),i=t(90).trim,l=t(68),s=a.parseFloat,u=1/s(l+"-0")!==-1/0;n.exports=u?function(f){var g=i(String(f)),p=s(g);return p===0&&g.charAt(0)=="-"?-0:p}:s},function(n,r,t){var a=t(20),i=t(361);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-text-container {
overflow: hidden;
}
.w-e-img-drag-mask {
position: absolute;
z-index: 1;
border: 1px dashed #ccc;
box-sizing: border-box;
}
.w-e-img-drag-mask .w-e-img-drag-rb {
position: absolute;
right: -5px;
bottom: -5px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ccc;
cursor: se-resize;
}
.w-e-img-drag-mask .w-e-img-drag-show-size {
min-width: 110px;
height: 22px;
line-height: 22px;
font-size: 14px;
color: #999;
position: absolute;
left: 0;
top: 0;
background-color: #999;
color: #fff;
border-radius: 2px;
padding: 0 5px;
}
`,""]),n.exports=r},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(39));function h(g){var p,d=function(y,C){return C===void 0&&(C=""),g.i18next.t(C+y)};function v(A){var y=[{$elem:s.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(E,S){return E.selection.createRangeByElem(S),E.selection.restoreSelection(),E.cmd.do("delete"),!0}},{$elem:s.default("<span>30%</span>"),onClick:function(E,S){return S.attr("width","30%"),S.removeAttr("height"),!0}},{$elem:s.default("<span>50%</span>"),onClick:function(E,S){return S.attr("width","50%"),S.removeAttr("height"),!0}},{$elem:s.default("<span>100%</span>"),onClick:function(E,S){return S.attr("width","100%"),S.removeAttr("height"),!0}}];y.push({$elem:s.default("<span>"+d("重置")+"</span>"),onClick:function(E,S){return S.removeAttr("width"),S.removeAttr("height"),!0}}),A.attr("data-href")&&y.push({$elem:s.default("<span>"+d("查看链接")+"</span>"),onClick:function(E,S){var w=S.attr("data-href");return w&&(w=decodeURIComponent(w),window.open(w,"_target")),!0}}),p=new u.default(g,A,y),p.create()}function m(){p&&(p.remove(),p=null)}return{showImgTooltip:v,hideImgTooltip:m}}r.createShowHideFn=h;function f(g){var p=h(g),d=p.showImgTooltip,v=p.hideImgTooltip;g.txt.eventHooks.imgClickEvents.push(d),g.txt.eventHooks.clickEvents.push(v),g.txt.eventHooks.keyupEvents.push(v),g.txt.eventHooks.toolbarClickEvents.push(v),g.txt.eventHooks.menuClickEvents.push(v),g.txt.eventHooks.textScrollEvents.push(v),g.txt.eventHooks.imgDragBarMouseDownEvents.push(v),g.txt.eventHooks.changeEvents.push(v)}r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});function l(s){var u=s.txt,h=s.selection,f=u.eventHooks.keydownEvents;f.push(function(g){var p=h.getSelectionContainerElem(),d=h.getRange();if(!(!d||!p||g.keyCode!==8||!h.isSelectionEmpty())){var v=d.startContainer,m=d.startOffset,A=null;if(m===0)for(;v!==p.elems[0]&&p.elems[0].contains(v)&&v.parentNode&&!A;){if(v.previousSibling){A=v.previousSibling;break}v=v.parentNode}else v.nodeType!==3&&(A=v.childNodes[m-1]);if(A){for(var y=A;y.childNodes.length;)y=y.childNodes[y.childNodes.length-1];y instanceof HTMLElement&&y.tagName==="IMG"&&(y.remove(),g.preventDefault())}}})}r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26)),s=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=t(6),g=u.__importDefault(t(97));function p(d){var v,m=d.config,A=new g.default(d),y=f.getRandom("up-trigger-id"),C=f.getRandom("up-file-id"),E=f.getRandom("input-link-url"),S=f.getRandom("input-link-url-alt"),w=f.getRandom("input-link-url-href"),T=f.getRandom("btn-link"),b="menus.panelMenus.image.",N=function(k,B){return B===void 0&&(B=b),d.i18next.t(B+k)};function M(H,k,B){var F=m.linkImgCheck(H);return F===!0?!0:(typeof F=="string"&&m.customAlert(F,"error"),!1)}var x=m.uploadImgMaxLength===1?"":'multiple="multiple"',D=(0,l.default)(v=m.uploadImgAccept).call(v,function(H){return"image/"+H}).join(","),R=function(k,B,F){return'<div class="'+k+'" data-title="'+F+`">
<div id="`+y+`" class="w-e-up-btn">
<i class="`+B+`"></i>
</div>
<div style="display:none;">
<input id="`+C+'" type="file" '+x+' accept="'+D+`"/>
</div>
</div>`},P=[{selector:"#"+y,type:"click",fn:function(){var k=m.uploadImgFromMedia;if(k&&typeof k=="function")return k(),!0;var B=h.default("#"+C),F=B.elems[0];if(F)F.click();else return!0}},{selector:"#"+C,type:"change",fn:function(){var k=h.default("#"+C),B=k.elems[0];if(!B)return!0;var F=B.files;return F!=null&&F.length&&A.uploadImg(F),B&&(B.value=""),!0}}],I=[`<input
id="`+E+`"
type="text"
class="block"
placeholder="`+N("图片地址")+'"/>'];m.showLinkImgAlt&&I.push(`
<input
id="`+S+`"
type="text"
class="block"
placeholder="`+N("图片文字说明")+'"/>'),m.showLinkImgHref&&I.push(`
<input
id="`+w+`"
type="text"
class="block"
placeholder="`+N("跳转链接")+'"/>');var O=[{title:N("上传图片"),tpl:R("w-e-up-img-container","w-e-icon-upload2",""),events:P},{title:N("网络图片"),tpl:`<div>
`+I.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+T+'" class="right">'+N("插入","")+`</button>
</div>
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var k,B=h.default("#"+E),F=(0,s.default)(k=B.val()).call(k);if(F){var Y;if(m.showLinkImgAlt){var $;Y=(0,s.default)($=h.default("#"+S).val()).call($)}var W;if(m.showLinkImgHref){var G;W=(0,s.default)(G=h.default("#"+w).val()).call(G)}if(M(F))return A.insertImg(F,Y,W),!0}},bindEnter:!0}]}],L={width:300,height:0,tabs:[],onlyUploadConf:{$elem:h.default(R("w-e-menu","w-e-icon-image","图片")),events:P}};return window.FileReader&&(m.uploadImgShowBase64||m.uploadImgServer||m.customUploadImg||m.uploadImgFromMedia)&&L.tabs.push(O[0]),m.showLinkImg&&(L.tabs.push(O[1]),L.onlyUploadConf=void 0),L}r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=s.__importDefault(t(24)),f=s.__importDefault(t(366)),g=function(p){s.__extends(d,p);function d(v){var m=this,A=u.default(`<div class="w-e-menu" data-title="缩进">
<i class="w-e-icon-indent-increase"></i>
</div>`),y={width:130,title:"设置缩进",type:"list",list:[{$elem:u.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.indent.增加缩进")+`
<p>`),value:"increase"},{$elem:u.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+v.i18next.t("menus.dropListMenu.indent.减少缩进")+`
<p>`),value:"decrease"}],clickHandler:function(E){m.command(E)}};return m=p.call(this,A,v,y)||this,m}return d.prototype.command=function(v){var m=this.editor,A=m.selection.getSelectionContainerElem();if(A&&m.$textElem.equal(A)){var y=m.selection.getSelectionRangeTopNodes();y.length>0&&(0,l.default)(y).call(y,function(C){f.default(u.default(C),v,m)})}else A&&A.length>0&&(0,l.default)(A).call(A,function(C){f.default(u.default(C),v,m)});m.selection.restoreSelection(),this.tryChangeActive()},d.prototype.tryChangeActive=function(){var v=this.editor,m=v.selection.getSelectionStartElem(),A=u.default(m).getNodeTop(v);A.length<=0||(A.elems[0].style.paddingLeft!=""?this.active():this.unActive())},d}(h.default);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(45)),s=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(367)),f=u.__importDefault(t(368)),g=/^(\d+)(\w+)$/,p=/^(\d+)%$/;function d(m){var A=m.config.indentation;if(typeof A=="string"){if(g.test(A)){var y,C=(0,l.default)(y=(0,s.default)(A).call(A).match(g)).call(y,1,3),E=C[0],S=C[1];return{value:Number(E),unit:S}}else if(p.test(A))return{value:Number((0,s.default)(A).call(A).match(p)[1]),unit:"%"}}else if(A.value!==void 0&&A.unit)return A;return{value:2,unit:"em"}}function v(m,A,y){var C=m.getNodeTop(y),E=/^(P|H[0-9]*)$/;E.test(C.getNodeName())&&(A==="increase"?h.default(C,d(y)):A==="decrease"&&f.default(C,d(y)))}r.default=v},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(45));(0,i.default)(r,"__esModule",{value:!0});function s(u,h){var f=u.elems[0];if(f.style.paddingLeft==="")u.css("padding-left",h.value+h.unit);else{var g=f.style.paddingLeft,p=(0,l.default)(g).call(g,0,g.length-h.unit.length),d=Number(p)+h.value;u.css("padding-left",""+d+h.unit)}}r.default=s},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(45));(0,i.default)(r,"__esModule",{value:!0});function s(u,h){var f=u.elems[0];if(f.style.paddingLeft!==""){var g=f.style.paddingLeft,p=(0,l.default)(g).call(g,0,g.length-h.unit.length),d=Number(p)-h.value;d>0?u.css("padding-left",""+d+h.unit):u.css("padding-left","")}}r.default=s},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(38)),h=l.__importDefault(t(33)),f=l.__importDefault(t(370)),g=function(p){l.__extends(d,p);function d(v){var m=this,A=s.default(`<div class="w-e-menu" data-title="表情">
<i class="w-e-icon-happy"></i>
</div>`);return m=p.call(this,A,v)||this,m}return d.prototype.createPanel=function(){var v=f.default(this.editor),m=new h.default(this,v);m.create()},d.prototype.clickHandler=function(){this.createPanel()},d.prototype.tryChangeActive=function(){},d}(u.default);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26)),s=a(t(70)),u=a(t(17));(0,i.default)(r,"__esModule",{value:!0});var h=t(2),f=h.__importDefault(t(3));function g(p){var d=p.config.emotions;function v(y){var C=[];if(y.type=="image"){var E;C=(0,l.default)(E=y.content).call(E,function(w){return typeof w=="string"?"":'<span title="'+w.alt+`">
<img class="eleImg" data-emoji="`+w.alt+'" style src="'+w.src+'" alt="['+w.alt+`]">
</span>`}),C=(0,s.default)(C).call(C,function(w){return w!==""})}else{var S;C=(0,l.default)(S=y.content).call(S,function(w){return'<span class="eleImg" title="'+w+'">'+w+"</span>"})}return C.join("").replace(/ /g,"")}var m=(0,l.default)(d).call(d,function(y){return{title:p.i18next.t("menus.panelMenus.emoticon."+y.title),tpl:"<div>"+v(y)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(E){var S=f.default(E.target),w=S.getNodeName(),T;if(w==="IMG"){var b;T=(0,u.default)(b=S.parent().html()).call(b)}else T="<span>"+S.html()+"</span>";return p.cmd.do("insertHTML",T),!0}}]}}),A={width:300,height:230,tabs:m};return A}r.default=g},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.createListHandle=r.ClassType=void 0;var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(372)),h=l.__importDefault(t(374)),f=l.__importDefault(t(375)),g=l.__importDefault(t(376)),p=l.__importDefault(t(377)),d;(function(y){y.Wrap="WrapListHandle",y.Join="JoinListHandle",y.StartJoin="StartJoinListHandle",y.EndJoin="EndJoinListHandle",y.Other="OtherListHandle"})(d=r.ClassType||(r.ClassType={}));var v={WrapListHandle:u.default,JoinListHandle:h.default,StartJoinListHandle:f.default,EndJoinListHandle:g.default,OtherListHandle:p.default};function m(y,C,E){if(y===d.Other&&E===void 0)throw new Error("other 类需要传入 range");return y!==d.Other?new v[y](C):new v[y](C,E)}r.createListHandle=m;var A=function(){function y(C){this.handle=C,this.handle.exec()}return y.prototype.getSelectionRangeElem=function(){return s.default(this.handle.selectionRangeElem.get())},y}();r.default=A},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(58),f=t(47),g=function(p){s.__extends(d,p);function d(v){return p.call(this,v)||this}return d.prototype.exec=function(){var v=this.options,m=v.listType,A=v.listTarget,y=v.$selectionElem,C=v.$startElem,E=v.$endElem,S,w=[],T=y==null?void 0:y.getNodeName(),b=C.prior,N=E.prior;if(!C.prior&&!E.prior||!(b!=null&&b.prev().length)&&!(N!=null&&N.next().length)){var M;(0,l.default)(M=y==null?void 0:y.children()).call(M,function(L){w.push(u.default(L))}),T===m?S=f.createElementFragment(w,f.createDocumentFragment(),"p"):(S=f.createElement(A),(0,l.default)(w).call(w,function(L){S.appendChild(L.elems[0])})),this.selectionRangeElem.set(S),f.insertBefore(y,S,y.elems[0]),y.remove()}else{for(var x=b;x.length;)w.push(x),N!=null&&N.equal(x)?x=u.default(void 0):x=x.next();var D=b.prev(),R=N.next();if(T===m?S=f.createElementFragment(w,f.createDocumentFragment(),"p"):(S=f.createElement(A),(0,l.default)(w).call(w,function(L){S.append(L.elems[0])})),D.length&&R.length){for(var P=[];R.length;)P.push(R),R=R.next();var I=f.createElement(T);(0,l.default)(P).call(P,function(L){I.append(L.elems[0])}),u.default(I).insertAfter(y),this.selectionRangeElem.set(S);var O=y.next();O.length?f.insertBefore(y,S,O.elems[0]):y.parent().elems[0].append(S)}else if(!D.length)this.selectionRangeElem.set(S),f.insertBefore(y,S,y.elems[0]);else{this.selectionRangeElem.set(S);var O=y.next();O.length?f.insertBefore(y,S,O.elems[0]):y.parent().elems[0].append(S)}}},d}(h.ListHandle);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=function(){function u(){this._element=null}return u.prototype.set=function(h){if(h instanceof DocumentFragment){var f,g=[];(0,l.default)(f=h.childNodes).call(f,function(p){g.push(p)}),h=g}this._element=h},u.prototype.get=function(){return this._element},u.prototype.clear=function(){this._element=null},u}();r.default=s},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(58),f=t(47),g=function(p){s.__extends(d,p);function d(v){return p.call(this,v)||this}return d.prototype.exec=function(){var v,m,A,y,C,E,S,w=this.options,T=w.editor,b=w.listType,N=w.listTarget,M=w.$startElem,x=w.$endElem,D,R=T.selection.getSelectionRangeTopNodes(),P=M==null?void 0:M.getNodeName(),I=x==null?void 0:x.getNodeName();if(P===I)if(R.length>2)if(R.shift(),R.pop(),D=f.createElementFragment(f.filterSelectionNodes(R),f.createDocumentFragment()),P===b)(v=x.children())===null||v===void 0||(0,l.default)(v).call(v,function(j){D.append(j)}),x.remove(),this.selectionRangeElem.set(D),M.elems[0].append(D);else{for(var O=document.createDocumentFragment(),L=document.createDocumentFragment(),H=f.getStartPoint(M);H.length;){var k=H.elems[0];H=H.next(),O.append(k)}for(var B=f.getEndPoint(x),F=[];B.length;)F.unshift(B.elems[0]),B=B.prev();(0,l.default)(F).call(F,function(j){L.append(j)});var Y=f.createElement(N);Y.append(O),Y.append(D),Y.append(L),D=Y,this.selectionRangeElem.set(D),u.default(Y).insertAfter(M),!(!((m=M.children())===null||m===void 0)&&m.length)&&M.remove(),!(!((A=x.children())===null||A===void 0)&&A.length)&&x.remove()}else{R.length=0;for(var H=f.getStartPoint(M);H.length;)R.push(H),H=H.next();for(var B=f.getEndPoint(x),F=[];B.length;)F.unshift(B),B=B.prev();R.push.apply(R,F),P===b?(D=f.createElementFragment(R,f.createDocumentFragment(),"p"),this.selectionRangeElem.set(D),f.insertBefore(M,D,x.elems[0])):(D=f.createElement(N),(0,l.default)(R).call(R,function(ee){D.append(ee.elems[0])}),this.selectionRangeElem.set(D),u.default(D).insertAfter(M)),!(!((y=M.children())===null||y===void 0)&&y.length)&&x.remove(),!(!((C=x.children())===null||C===void 0)&&C.length)&&x.remove()}else{for(var $=[],B=f.getEndPoint(x);B.length;)$.unshift(B),B=B.prev();for(var W=[],H=f.getStartPoint(M);H.length;)W.push(H),H=H.next();if(D=f.createDocumentFragment(),R.shift(),R.pop(),(0,l.default)(W).call(W,function(Z){return D.append(Z.elems[0])}),D=f.createElementFragment(f.filterSelectionNodes(R),D),(0,l.default)($).call($,function(Z){return D.append(Z.elems[0])}),this.selectionRangeElem.set(D),P===b)M.elems[0].append(D),!(!((E=x.children())===null||E===void 0)&&E.length)&&x.remove();else if(!((S=x.children())===null||S===void 0)&&S.length){var G=x.children();f.insertBefore(G,D,G.elems[0])}else x.elems[0].append(D)}},d}(h.ListHandle);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(58),f=t(47),g=function(p){s.__extends(d,p);function d(v){return p.call(this,v)||this}return d.prototype.exec=function(){var v,m=this.options,A=m.editor,y=m.listType,C=m.listTarget,E=m.$startElem,S,w=A.selection.getSelectionRangeTopNodes(),T=E==null?void 0:E.getNodeName();w.shift();for(var b=[],N=f.getStartPoint(E);N.length;)b.push(N),N=N.next();T===y?(S=f.createDocumentFragment(),(0,l.default)(b).call(b,function(M){return S.append(M.elems[0])}),S=f.createElementFragment(f.filterSelectionNodes(w),S),this.selectionRangeElem.set(S),E.elems[0].append(S)):(S=f.createElement(C),(0,l.default)(b).call(b,function(M){return S.append(M.elems[0])}),S=f.createElementFragment(f.filterSelectionNodes(w),S),this.selectionRangeElem.set(S),u.default(S).insertAfter(E),!(!((v=E.children())===null||v===void 0)&&v.length)&&E.remove())},d}(h.ListHandle);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(58),f=t(47),g=function(p){s.__extends(d,p);function d(v){return p.call(this,v)||this}return d.prototype.exec=function(){var v,m,A=this.options,y=A.editor,C=A.listType,E=A.listTarget,S=A.$endElem,w,T=y.selection.getSelectionRangeTopNodes(),b=S==null?void 0:S.getNodeName();T.pop();for(var N=[],M=f.getEndPoint(S);M.length;)N.unshift(M),M=M.prev();if(b===C)if(w=f.createElementFragment(f.filterSelectionNodes(T),f.createDocumentFragment()),(0,l.default)(N).call(N,function(R){return w.append(R.elems[0])}),this.selectionRangeElem.set(w),!((v=S.children())===null||v===void 0)&&v.length){var x=S.children();f.insertBefore(x,w,x.elems[0])}else S.elems[0].append(w);else{var D=f.filterSelectionNodes(T);D.push.apply(D,N),w=f.createElementFragment(D,f.createElement(E)),this.selectionRangeElem.set(w),u.default(w).insertBefore(S),!(!((m=S.children())===null||m===void 0)&&m.length)&&S.remove()}},d}(h.ListHandle);r.default=g},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=t(58),u=t(47),h=function(f){l.__extends(g,f);function g(p,d){var v=f.call(this,p)||this;return v.range=d,v}return g.prototype.exec=function(){var p=this.options,d=p.editor,v=p.listTarget,m=d.selection.getSelectionRangeTopNodes(),A=u.createElementFragment(u.filterSelectionNodes(m),u.createElement(v));this.selectionRangeElem.set(A),this.range.insertNode(A)},g}(s.ListHandle);r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(27));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(24)),f=u.__importDefault(t(3)),g=u.__importDefault(t(379)),p=function(d){u.__extends(v,d);function v(m){var A=this,y=f.default(`<div class="w-e-menu" data-title="行高">
<i class="w-e-icon-row-height"></i>
</div>`),C=new g.default(m,m.config.lineHeights),E={width:100,title:"设置行高",type:"list",list:C.getItemList(),clickHandler:function(w){m.selection.saveRange(),A.command(w)}};return A=d.call(this,y,m,E)||this,A}return v.prototype.command=function(m){var A=this.editor;A.selection.restoreSelection();var y=f.default(A.selection.getSelectionContainerElem());if(y.elems.length){if(y&&A.$textElem.equal(y)){for(var C=!1,E=f.default(A.selection.getSelectionStartElem()).elems[0],S=f.default(A.selection.getSelectionEndElem()).elems[0],w=this.getDom(E),T=this.getDom(S),b=y.elems[0].children,N=0;N<b.length;N++){var M=b[N];if(f.default(M).getNodeName()==="P"&&(M===w&&(C=!0),C&&(f.default(M).css("line-height",m),M===T))){C=!1;return}}A.selection.createRangeByElems(E,S);return}var x=y.elems[0],D=this.getDom(x);f.default(D).getNodeName()==="P"&&(f.default(D).css("line-height",m),A.selection.createRangeByElems(D,D))}},v.prototype.getDom=function(m){var A=f.default(m).elems[0];if(!A.parentNode)return A;function y(C,E){var S=f.default(C.parentNode);return E.$textElem.equal(S)?C:y(S.elems[0],E)}return A=y(A,this.editor),A},v.prototype.styleProcessing=function(m){var A="";return(0,l.default)(m).call(m,function(y){y!==""&&(0,s.default)(y).call(y,"line-height")===-1&&(A=A+y+";")}),A},v.prototype.setRange=function(m,A){var y=this.editor,C=window.getSelection?window.getSelection():document.getSelection();C==null||C.removeAllRanges();var E=document.createRange(),S=m,w=A;E.setStart(S,0),E.setEnd(w,1),C==null||C.addRange(E),y.selection.saveRange(),C==null||C.removeAllRanges(),y.selection.restoreSelection()},v.prototype.tryChangeActive=function(){var m=this.editor,A=m.selection.getSelectionContainerElem();if(!(A&&m.$textElem.equal(A))){var y=f.default(m.selection.getSelectionStartElem());if(y.length!==0){y=this.getDom(y.elems[0]);var C=y.getAttribute("style")?y.getAttribute("style"):"";C&&(0,s.default)(C).call(C,"line-height")!==-1?this.active():this.unActive()}}},v}(h.default);r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=function(){function f(g,p){var d=this;this.itemList=[{$elem:u.default("<span>"+g.i18next.t("默认")+"</span>"),value:""}],(0,l.default)(p).call(p,function(v){d.itemList.push({$elem:u.default("<span>"+v+"</span>"),value:v})})}return f.prototype.getItemList=function(){return this.itemList},f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(23)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=s.default(`<div class="w-e-menu" data-title="撤销">
<i class="w-e-icon-undo"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor;p.history.revoke();var d=p.$textElem.children();if(d!=null&&d.length){var v=d.last();p.selection.createRangeByElem(v,!1,!0),p.selection.restoreSelection()}},g.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},g}(u.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(23)),h=function(f){l.__extends(g,f);function g(p){var d=this,v=s.default(`<div class="w-e-menu" data-title="恢复">
<i class="w-e-icon-redo"></i>
</div>`);return d=f.call(this,v,p)||this,d}return g.prototype.clickHandler=function(){var p=this.editor;p.history.restore();var d=p.$textElem.children();if(d!=null&&d.length){var v=d.last();p.selection.createRangeByElem(v,!1,!0),p.selection.restoreSelection()}},g.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},g}(u.default);r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(38)),u=l.__importDefault(t(3)),h=l.__importDefault(t(383)),f=l.__importDefault(t(33)),g=l.__importDefault(t(392)),p=function(d){l.__extends(v,d);function v(m){var A=this,y=u.default('<div class="w-e-menu" data-title="表格"><i class="w-e-icon-table2"></i></div>');return A=d.call(this,y,m)||this,g.default(m),A}return v.prototype.clickHandler=function(){this.createPanel()},v.prototype.createPanel=function(){var m=h.default(this.editor),A=new f.default(this,m);A.create()},v.prototype.tryChangeActive=function(){},v}(s.default);r.default=p},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(384));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(6),h=s.__importDefault(t(3));t(389);var f=s.__importDefault(t(391));function g(d){return d>0&&(0,l.default)(d)}function p(d){var v=new f.default(d),m=u.getRandom("w-col-id"),A=u.getRandom("w-row-id"),y=u.getRandom("btn-link"),C="menus.panelMenus.table.",E=function(b){return d.i18next.t(b)},S=[{title:E(C+"插入表格"),tpl:`<div>
<div class="w-e-table">
<span>`+E("创建")+`</span>
<input id="`+A+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+E(C+"行")+`</span>
<input id="`+m+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(E(C+"列")+E(C+"的")+E(C+"表格"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+y+'" class="right">'+E("插入")+`</button>
</div>
</div>`,events:[{selector:"#"+y,type:"click",fn:function(){var b=Number(h.default("#"+m).val()),N=Number(h.default("#"+A).val());return g(N)&&g(b)?(v.createAction(N,b),!0):(d.config.customAlert("表格行列请输入正整数","warning"),!1)},bindEnter:!0}]}],w={width:330,height:0,tabs:[]};return w.tabs.push(S[0]),w}r.default=p},function(n,r,t){n.exports=t(385)},function(n,r,t){var a=t(386);n.exports=a},function(n,r,t){t(387);var a=t(9);n.exports=a.Number.isInteger},function(n,r,t){var a=t(5),i=t(388);a({target:"Number",stat:!0},{isInteger:i})},function(n,r,t){var a=t(13),i=Math.floor;n.exports=function(s){return!a(s)&&isFinite(s)&&i(s)===s}},function(n,r,t){var a=t(20),i=t(390);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),n.exports=r},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=t(7),u=l.__importDefault(t(3)),h=function(){function f(g){this.editor=g}return f.prototype.createAction=function(g,p){var d=this.editor,v=u.default(d.selection.getSelectionContainerElem()),m=u.default(v.elems[0]).parentUntilEditor("UL",d),A=u.default(v.elems[0]).parentUntilEditor("OL",d);if(!(m||A)){var y=this.createTableHtml(g,p);d.cmd.do("insertHTML",y)}},f.prototype.createTableHtml=function(g,p){for(var d="",v="",m=0;m<g;m++){v="";for(var A=0;A<p;A++)m===0?v=v+"<th></th>":v=v+"<td></td>";d=d+"<tr>"+v+"</tr>"}var y='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+d+("</tbody></table>"+s.EMPTY_P);return y},f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(393)),u=t(400);function h(f){s.default(f),u.bindEventKeyboardEvent(f),u.bindClickEvent(f)}r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(39)),h=l.__importDefault(t(394)),f=l.__importDefault(t(399)),g=t(7);function p(A){var y;function C(S){var w=new f.default(A),T="menus.panelMenus.table.",b=function(x,D){return D===void 0&&(D=T),A.i18next.t(D+x)},N=[{$elem:s.default("<span>"+b("删除表格")+"</span>"),onClick:function(x,D){return x.selection.createRangeByElem(D),x.selection.restoreSelection(),x.cmd.do("insertHTML",g.EMPTY_P),!0}},{$elem:s.default("<span>"+b("添加行")+"</span>"),onClick:function(x,D){var R=d(x);if(R)return!0;var P=s.default(x.selection.getSelectionStartElem()),I=w.getRowNode(P.elems[0]);if(!I)return!0;var O=Number(w.getCurrentRowIndex(D.elems[0],I)),L=w.getTableHtml(D.elems[0]),H=w.getTableHtml(h.default.ProcessingRow(s.default(L),O).elems[0]);return H=m(D,H),x.selection.createRangeByElem(D),x.selection.restoreSelection(),x.cmd.do("insertHTML",H),!0}},{$elem:s.default("<span>"+b("删除行")+"</span>"),onClick:function(x,D){var R=d(x);if(R)return!0;var P=s.default(x.selection.getSelectionStartElem()),I=w.getRowNode(P.elems[0]);if(!I)return!0;var O=Number(w.getCurrentRowIndex(D.elems[0],I)),L=w.getTableHtml(D.elems[0]),H=h.default.DeleteRow(s.default(L),O).elems[0].children[0].children.length,k="";return x.selection.createRangeByElem(D),x.selection.restoreSelection(),H===0?k=g.EMPTY_P:k=w.getTableHtml(h.default.DeleteRow(s.default(L),O).elems[0]),k=m(D,k),x.cmd.do("insertHTML",k),!0}},{$elem:s.default("<span>"+b("添加列")+"</span>"),onClick:function(x,D){var R=d(x);if(R)return!0;var P=s.default(x.selection.getSelectionStartElem()),I=w.getCurrentColIndex(P.elems[0]),O=w.getTableHtml(D.elems[0]),L=w.getTableHtml(h.default.ProcessingCol(s.default(O),I).elems[0]);return L=m(D,L),x.selection.createRangeByElem(D),x.selection.restoreSelection(),x.cmd.do("insertHTML",L),!0}},{$elem:s.default("<span>"+b("删除列")+"</span>"),onClick:function(x,D){var R=d(x);if(R)return!0;var P=s.default(x.selection.getSelectionStartElem()),I=w.getCurrentColIndex(P.elems[0]),O=w.getTableHtml(D.elems[0]),L=h.default.DeleteCol(s.default(O),I),H=L.elems[0].children[0].children[0].children.length,k="";return x.selection.createRangeByElem(D),x.selection.restoreSelection(),H===0?k=g.EMPTY_P:k=w.getTableHtml(L.elems[0]),k=m(D,k),x.cmd.do("insertHTML",k),!0}},{$elem:s.default("<span>"+b("设置表头")+"</span>"),onClick:function(x,D){var R=d(x);if(R)return!0;var P=s.default(x.selection.getSelectionStartElem()),I=w.getRowNode(P.elems[0]);if(!I)return!0;var O=Number(w.getCurrentRowIndex(D.elems[0],I));O!==0&&(O=0);var L=w.getTableHtml(D.elems[0]),H=w.getTableHtml(h.default.setTheHeader(s.default(L),O,"th").elems[0]);return H=m(D,H),x.selection.createRangeByElem(D),x.selection.restoreSelection(),x.cmd.do("insertHTML",H),!0}},{$elem:s.default("<span>"+b("取消表头")+"</span>"),onClick:function(x,D){var R=s.default(x.selection.getSelectionStartElem()),P=w.getRowNode(R.elems[0]);if(!P)return!0;var I=Number(w.getCurrentRowIndex(D.elems[0],P));I!==0&&(I=0);var O=w.getTableHtml(D.elems[0]),L=w.getTableHtml(h.default.setTheHeader(s.default(O),I,"td").elems[0]);return L=m(D,L),x.selection.createRangeByElem(D),x.selection.restoreSelection(),x.cmd.do("insertHTML",L),!0}}];y=new u.default(A,S,N),y.create()}function E(){y&&(y.remove(),y=null)}return{showTableTooltip:C,hideTableTooltip:E}}function d(A){var y=A.selection.getSelectionStartElem(),C=A.selection.getSelectionEndElem();return(y==null?void 0:y.elems[0])!==(C==null?void 0:C.elems[0])}function v(A){var y=p(A),C=y.showTableTooltip,E=y.hideTableTooltip;A.txt.eventHooks.tableClickEvents.push(C),A.txt.eventHooks.clickEvents.push(E),A.txt.eventHooks.keyupEvents.push(E),A.txt.eventHooks.toolbarClickEvents.push(E),A.txt.eventHooks.menuClickEvents.push(E),A.txt.eventHooks.textScrollEvents.push(E)}r.default=v;function m(A,y){var C=A.elems[0].nextSibling;return(!C||C.innerHTML==="<br>")&&(y+=""+g.EMPTY_P),y}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(45)),s=a(t(91)),u=a(t(4)),h=a(t(138));(0,i.default)(r,"__esModule",{value:!0});var f=t(2),g=f.__importDefault(t(3));function p(E,S){for(var w=C(E),T=(0,l.default)(Array.prototype).apply(w.children),b=T[0].children.length,N=document.createElement("tr"),M=0;M<b;M++){var x=document.createElement("td");N.appendChild(x)}return(0,s.default)(T).call(T,S+1,0,N),y(w,T),g.default(w.parentNode)}function d(E,S){for(var w=C(E),T=(0,l.default)(Array.prototype).apply(w.children),b=function(x){var D,R=[];for((0,u.default)(D=(0,h.default)(T[x].children)).call(D,function(O){R.push(O)});T[x].children.length!==0;)T[x].removeChild(T[x].children[0]);var P=g.default(R[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,s.default)(R).call(R,S+1,0,P);for(var I=0;I<R.length;I++)T[x].appendChild(R[I])},N=0;N<T.length;N++)b(N);return y(w,T),g.default(w.parentNode)}function v(E,S){var w=C(E),T=(0,l.default)(Array.prototype).apply(w.children);return(0,s.default)(T).call(T,S,1),y(w,T),g.default(w.parentNode)}function m(E,S){for(var w=C(E),T=(0,l.default)(Array.prototype).apply(w.children),b=function(x){var D,R=[];for((0,u.default)(D=(0,h.default)(T[x].children)).call(D,function(I){R.push(I)});T[x].children.length!==0;)T[x].removeChild(T[x].children[0]);(0,s.default)(R).call(R,S,1);for(var P=0;P<R.length;P++)T[x].appendChild(R[P])},N=0;N<T.length;N++)b(N);return y(w,T),g.default(w.parentNode)}function A(E,S,w){for(var T=C(E),b=(0,l.default)(Array.prototype).apply(T.children),N=b[S].children,M=document.createElement("tr"),x=function(P){var I,O=document.createElement(w),L=N[P];(0,u.default)(I=(0,h.default)(L.childNodes)).call(I,function(H){O.appendChild(H)}),M.appendChild(O)},D=0;D<N.length;D++)x(D);return(0,s.default)(b).call(b,S,1,M),y(T,b),g.default(T.parentNode)}function y(E,S){for(;E.children.length!==0;)E.removeChild(E.children[0]);for(var w=0;w<S.length;w++)E.appendChild(S[w])}function C(E){var S=E.elems[0].children[0];return S.nodeName==="COLGROUP"&&(S=E.elems[0].children[E.elems[0].children.length-1]),S}r.default={ProcessingRow:p,ProcessingCol:d,DeleteRow:v,DeleteCol:m,setTheHeader:A}},function(n,r,t){var a=t(396);n.exports=a},function(n,r,t){t(50),t(397);var a=t(9);n.exports=a.Array.from},function(n,r,t){var a=t(5),i=t(398),l=t(115),s=!l(function(u){Array.from(u)});a({target:"Array",stat:!0,forced:s},{from:i})},function(n,r,t){var a=t(40),i=t(31),l=t(114),s=t(112),u=t(35),h=t(69),f=t(113);n.exports=function(p){var d=i(p),v=typeof this=="function"?this:Array,m=arguments.length,A=m>1?arguments[1]:void 0,y=A!==void 0,C=f(d),E=0,S,w,T,b,N,M;if(y&&(A=a(A,m>2?arguments[2]:void 0,2)),C!=null&&!(v==Array&&s(C)))for(b=C.call(d),N=b.next,w=new v;!(T=N.call(b)).done;E++)M=y?l(b,A,[T.value,E],!0):T.value,h(w,E,M);else for(S=u(d.length),w=new v(S);S>E;E++)M=y?A(d[E],E):d[E],h(w,E,M);return w.length=E,w}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(138));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(3)),f=function(){function g(p){this.editor=p}return g.prototype.getRowNode=function(p){var d,v=h.default(p).elems[0];return v.parentNode&&(v=(d=h.default(v).parentUntil("TR",v))===null||d===void 0?void 0:d.elems[0]),v},g.prototype.getCurrentRowIndex=function(p,d){var v,m=0,A=p.children[0];return A.nodeName==="COLGROUP"&&(A=p.children[p.children.length-1]),(0,l.default)(v=(0,s.default)(A.children)).call(v,function(y,C){y===d&&(m=C)}),m},g.prototype.getCurrentColIndex=function(p){var d,v,m=0,A=h.default(p).getNodeName()==="TD"||h.default(p).getNodeName()==="TH"?p:(v=h.default(p).parentUntil("TD",p))===null||v===void 0?void 0:v.elems[0],y=h.default(A).parent();return(0,l.default)(d=(0,s.default)(y.elems[0].children)).call(d,function(C,E){C===A&&(m=E)}),m},g.prototype.getTableHtml=function(p){var d='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+h.default(p).html()+"</table>";return d},g}();r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.bindEventKeyboardEvent=r.bindClickEvent=void 0;var l=t(2),s=l.__importDefault(t(3));function u(g){if(!g.length)return!1;var p=g.elems[0];return p.nodeName==="P"&&p.innerHTML==="<br>"}function h(g){function p(d,v){if(v.detail>=3){var m=window.getSelection();if(m){var A=m.focusNode,y=m.anchorNode,C=s.default(y==null?void 0:y.parentElement);if(!d.isContain(s.default(A))){var E=C.elems[0].tagName==="TD"?C:C.parentUntilEditor("td",g);if(E){var S=g.selection.getRange();S==null||S.setEnd(E.elems[0],E.elems[0].childNodes.length),g.selection.restoreSelection()}}}}}g.txt.eventHooks.tableClickEvents.push(p)}r.bindClickEvent=h;function f(g){var p=g.txt,d=g.selection,v=p.eventHooks.keydownEvents;v.push(function(m){g.selection.saveRange();var A=d.getSelectionContainerElem();if(A){var y=A.getNodeTop(g),C=y.length&&y.prev().length?y.prev():null;if(C&&C.getNodeName()==="TABLE"&&d.isSelectionEmpty()&&d.getCursorPos()===0&&m.keyCode===8){var E=y.next(),S=!!E.length;S&&u(y)&&(y.remove(),g.selection.setRangeToElem(E.elems[0])),m.preventDefault()}}})}r.bindEventKeyboardEvent=f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26));(0,i.default)(r,"__esModule",{value:!0}),r.formatCodeHtml=void 0;var s=t(2),u=s.__importDefault(t(38)),h=s.__importDefault(t(3)),f=t(6),g=s.__importDefault(t(402)),p=s.__importDefault(t(139)),d=s.__importDefault(t(33)),v=s.__importDefault(t(403));function m(y,C){if(!C)return C;return C=S(C),C=E(C),C=f.replaceSpecialSymbol(C),C;function E(w){var T=w.match(/<pre[\s|\S]+?\/pre>/g);return T===null||(0,l.default)(T).call(T,function(b){w=w.replace(b,b.replace(/<\/code><code>/g,`
`).replace(/<br>/g,""))}),w}function S(w){var T,b=w.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!b||!b.length)return w;for(var N=(0,l.default)(T=f.deepClone(b)).call(T,function(x){return x=x.replace(/<span\sclass="hljs[^>]+>/,""),x.replace(/<\/span>/,"")}),M=0;M<b.length;M++)w=w.replace(b[M],N[M]);return S(w)}}r.formatCodeHtml=m;var A=function(y){s.__extends(C,y);function C(E){var S=this,w=h.default('<div class="w-e-menu" data-title="代码"><i class="w-e-icon-terminal"></i></div>');return S=y.call(this,w,E)||this,v.default(E),S}return C.prototype.insertLineCode=function(E){var S=this.editor,w=h.default("<code>"+E+"</code>");S.cmd.do("insertElem",w),S.selection.createRangeByElem(w,!1),S.selection.restoreSelection()},C.prototype.clickHandler=function(){var E=this.editor,S=E.selection.getSelectionText();this.isActive||(E.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(S))},C.prototype.createPanel=function(E,S){var w=g.default(this.editor,E,S),T=new d.default(this,w);T.create()},C.prototype.tryChangeActive=function(){var E=this.editor;p.default(E)?this.active():this.unActive()},C}(u.default);r.default=A},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(26));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=t(6),h=s.__importDefault(t(3)),f=s.__importDefault(t(139)),g=t(7);function p(d,v,m){var A,y=u.getRandom("input-iframe"),C=u.getRandom("select"),E=u.getRandom("btn-ok");function S(N,M){var x,D=f.default(d);D&&w();var R=(x=d.selection.getSelectionStartElem())===null||x===void 0?void 0:x.elems[0].innerHTML;R&&d.cmd.do("insertHTML",g.EMPTY_P);var P=M.replace(/</g,"<").replace(/>/g,">");d.highlight&&(P=d.highlight.highlightAuto(P).value),d.cmd.do("insertHTML",'<pre><code class="'+N+'">'+P+"</code></pre>");var I=d.selection.getSelectionStartElem(),O=I==null?void 0:I.getNodeTop(d);(O==null?void 0:O.getNextSibling().elems.length)===0&&h.default(g.EMPTY_P).insertAfter(O)}function w(){if(f.default(d)){var N=d.selection.getSelectionStartElem(),M=N==null?void 0:N.getNodeTop(d);M&&(d.selection.createRangeByElem(M),d.selection.restoreSelection())}}var T=function(M){return d.i18next.t(M)},b={width:500,height:0,tabs:[{title:T("menus.panelMenus.code.插入代码"),tpl:`<div>
<select name="" id="`+C+`">
`+(0,l.default)(A=d.config.languageType).call(A,function(N){return"<option "+(m==N?"selected":"")+' value ="'+N+'">'+N+"</option>"})+`
</select>
<textarea id="`+y+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+v.replace(/"/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+E+'" class="right">'+(f.default(d)?T("修改"):T("插入"))+`</button>
</div>
</div>`,events:[{selector:"#"+E,type:"click",fn:function(){var M=document.getElementById(y),x=h.default("#"+C),D=x.val(),R=M.value;if(R)return f.default(d)?!1:(S(D,R),!0)}}]}]};return b}r.default=p},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(404)),u=l.__importDefault(t(405));function h(f){s.default(f),u.default(f)}r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.createShowHideFn=void 0;var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(39));function h(g){var p;function d(m){var A="menus.panelMenus.code.",y=function(S,w){return w===void 0&&(w=A),g.i18next.t(w+S)},C=[{$elem:s.default("<span>"+y("删除代码")+"</span>"),onClick:function(S,w){return w.remove(),!0}}];p=new u.default(g,m,C),p.create()}function v(){p&&(p.remove(),p=null)}return{showCodeTooltip:d,hideCodeTooltip:v}}r.createShowHideFn=h;function f(g){var p=h(g),d=p.showCodeTooltip,v=p.hideCodeTooltip;g.txt.eventHooks.codeClickEvents.push(d),g.txt.eventHooks.clickEvents.push(v),g.txt.eventHooks.toolbarClickEvents.push(v),g.txt.eventHooks.menuClickEvents.push(v),g.txt.eventHooks.textScrollEvents.push(v)}r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=t(7),u=l.__importDefault(t(3));function h(f){var g=f.$textElem,p=f.selection,d=f.txt,v=d.eventHooks.keydownEvents;v.push(function(m){var A;if(m.keyCode===40){var y=p.getSelectionContainerElem(),C=(A=g.children())===null||A===void 0?void 0:A.last();if((y==null?void 0:y.elems[0].tagName)==="XMP"&&(C==null?void 0:C.elems[0].tagName)==="PRE"){var E=u.default(s.EMPTY_P);g.append(E)}}}),v.push(function(m){f.selection.saveRange();var A=p.getSelectionContainerElem();if(A){var y=A.getNodeTop(f),C=y==null?void 0:y.prev(),E=y==null?void 0:y.getNextSibling();if(C.length&&(C==null?void 0:C.getNodeName())==="PRE"&&E.length===0&&p.getCursorPos()===0&&m.keyCode===8){var S=u.default(s.EMPTY_P);g.append(S)}}})}r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(23)),u=l.__importDefault(t(3)),h=l.__importDefault(t(407)),f=t(6),g=t(7),p=function(d){l.__extends(v,d);function v(m){var A=this,y=u.default('<div class="w-e-menu" data-title="分割线"><i class="w-e-icon-split-line"></i></div>');return A=d.call(this,y,m)||this,h.default(m),A}return v.prototype.clickHandler=function(){var m=this.editor,A=m.selection.getRange(),y=m.selection.getSelectionContainerElem();if(y!=null&&y.length){var C=u.default(y.elems[0]),E=C.parentUntil("TABLE",y.elems[0]),S=C.children();C.getNodeName()!=="CODE"&&(E&&u.default(E.elems[0]).getNodeName()==="TABLE"||S&&S.length!==0&&u.default(S.elems[0]).getNodeName()==="IMG"&&!(A!=null&&A.collapsed)||this.createSplitLine())}},v.prototype.createSplitLine=function(){var m="<hr/>"+g.EMPTY_P;f.UA.isFirefox&&(m="<hr/><p></p>"),this.editor.cmd.do("insertHTML",m)},v.prototype.tryChangeActive=function(){},v}(s.default);r.default=p},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(408));function u(h){s.default(h)}r.default=u},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=l.__importDefault(t(39));function h(g){var p;function d(m){var A=[{$elem:s.default("<span>"+g.i18next.t("menus.panelMenus.删除")+"</span>"),onClick:function(C,E){return C.selection.createRangeByElem(E),C.selection.restoreSelection(),C.cmd.do("delete"),!0}}];p=new u.default(g,m,A),p.create()}function v(){p&&(p.remove(),p=null)}return{showSplitLineTooltip:d,hideSplitLineTooltip:v}}function f(g){var p=h(g),d=p.showSplitLineTooltip,v=p.hideSplitLineTooltip;g.txt.eventHooks.splitLineEvents.push(d),g.txt.eventHooks.clickEvents.push(v),g.txt.eventHooks.keyupEvents.push(v),g.txt.eventHooks.toolbarClickEvents.push(v),g.txt.eventHooks.menuClickEvents.push(v),g.txt.eventHooks.textScrollEvents.push(v)}r.default=f},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=s.__importDefault(t(23)),f=t(98),g=s.__importDefault(t(415)),p=s.__importDefault(t(140)),d=function(v){s.__extends(m,v);function m(A){var y=this,C=u.default(`<div class="w-e-menu" data-title="待办事项">
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return y=v.call(this,C,A)||this,g.default(A),y}return m.prototype.clickHandler=function(){var A=this.editor;f.isAllTodo(A)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},m.prototype.tryChangeActive=function(){f.isAllTodo(this.editor)?this.active():this.unActive()},m.prototype.setTodo=function(){var A=this.editor,y=A.selection.getSelectionRangeTopNodes();(0,l.default)(y).call(y,function(C){var E,S=C==null?void 0:C.getNodeName();if(S==="P"){var w=p.default(C),T=w.getTodo(),b=(E=T.children())===null||E===void 0?void 0:E.getNode();T.insertAfter(C),A.selection.moveCursor(b),C.remove()}}),this.tryChangeActive()},m.prototype.cancelTodo=function(){var A=this.editor,y=A.selection.getSelectionRangeTopNodes();(0,l.default)(y).call(y,function(C){var E,S,w,T=(S=(E=C.childNodes())===null||E===void 0?void 0:E.childNodes())===null||S===void 0?void 0:S.clone(!0),b=u.default("<p></p>");b.append(T),b.insertAfter(C),(w=b.childNodes())===null||w===void 0||w.get(0).remove(),A.selection.moveCursor(b.getNode()),C.remove()})},m}(h.default);r.default=d},function(n,r,t){n.exports=t(411)},function(n,r,t){var a=t(412);n.exports=a},function(n,r,t){var a=t(413),i=Array.prototype;n.exports=function(l){var s=l.every;return l===i||l instanceof Array&&s===i.every?a:s}},function(n,r,t){t(414);var a=t(15);n.exports=a("Array").every},function(n,r,t){var a=t(5),i=t(32).every,l=t(67),s=t(22),u=l("every"),h=s("every");a({target:"Array",proto:!0,forced:!u||!h},{every:function(g){return i(this,g,arguments.length>1?arguments[1]:void 0)}})},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3)),h=t(98),f=s.__importDefault(t(140)),g=t(98),p=t(7);function d(v){function m(E){var S,w;if(h.isAllTodo(v)){E.preventDefault();var T=v.selection,b=T.getSelectionRangeTopNodes()[0],N=(S=b.childNodes())===null||S===void 0?void 0:S.get(0),M=(w=window.getSelection())===null||w===void 0?void 0:w.anchorNode,x=T.getRange();if(!(x!=null&&x.collapsed)){var D=x==null?void 0:x.commonAncestorContainer.childNodes,R=x==null?void 0:x.startContainer,P=x==null?void 0:x.endContainer,I=x==null?void 0:x.startOffset,O=x==null?void 0:x.endOffset,L=0,H=0,k=[];D==null||(0,l.default)(D).call(D,function(ee,se){ee.contains(R)&&(L=se),ee.contains(P)&&(H=se)}),H-L>1&&(D==null||(0,l.default)(D).call(D,function(ee,se){se<=L||se>=H||k.push(ee)}),(0,l.default)(k).call(k,function(ee){ee.remove()})),g.dealTextNode(R,I),g.dealTextNode(P,O,!1),v.selection.moveCursor(P,0)}if(b.text()===""){var B=u.default(p.EMPTY_P);B.insertAfter(b),T.moveCursor(B.getNode()),b.remove();return}var F=T.getCursorPos(),Y=h.getCursorNextNode(N==null?void 0:N.getNode(),M,F),$=f.default(u.default(Y)),W=$.getInputContainer(),G=W.parent().getNode(),j=$.getTodo(),z=W.getNode().nextSibling;if((N==null?void 0:N.text())===""&&(N==null||N.append(u.default("<br>"))),j.insertAfter(b),!z||(z==null?void 0:z.textContent)===""){if((z==null?void 0:z.nodeName)!=="BR"){var Z=u.default("<br>");Z.insertAfter(W)}T.moveCursor(G,1)}else T.moveCursor(G)}}function A(E){var S,w;if(h.isAllTodo(v)){var T=v.selection,b=T.getSelectionRangeTopNodes()[0],N=(S=b.childNodes())===null||S===void 0?void 0:S.getNode(),M=u.default("<p></p>"),x=M.getNode(),D=(w=window.getSelection())===null||w===void 0?void 0:w.anchorNode,R=T.getCursorPos(),P=D.previousSibling;if(b.text()===""){E.preventDefault();var I=u.default(p.EMPTY_P);I.insertAfter(b),b.remove(),T.moveCursor(I.getNode(),0);return}if((P==null?void 0:P.nodeName)==="SPAN"&&P.childNodes[0].nodeName==="INPUT"&&R===0){var O;E.preventDefault(),N==null||(0,l.default)(O=N.childNodes).call(O,function(L,H){H!==0&&x.appendChild(L.cloneNode(!0))}),M.insertAfter(b),b.remove()}}}function y(){var E=v.selection,S=E.getSelectionRangeTopNodes()[0];S&&g.isTodo(S)&&S.text()===""&&(u.default(p.EMPTY_P).insertAfter(S),S.remove())}function C(E){E&&E.target instanceof HTMLInputElement&&E.target.type==="checkbox"&&(E.target.checked?E.target.setAttribute("checked","true"):E.target.removeAttribute("checked"))}v.txt.eventHooks.enterDownEvents.push(m),v.txt.eventHooks.deleteUpEvents.push(y),v.txt.eventHooks.deleteDownEvents.push(A),v.txt.eventHooks.clickEvents.push(C)}r.default=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.selectorValidator=void 0;var l=t(2),s=l.__importDefault(t(3)),u=t(6),h=t(7),f=l.__importDefault(t(130)),g={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function p(v){var m=v.toolbarSelector,A=s.default(m),y=v.textSelector,C=v.config,E=C.height,S=v.i18next,w=s.default("<div></div>"),T=s.default("<div></div>"),b,N,M=null;y==null?(N=A.children(),A.append(w).append(T),w.css("background-color",g.toolbarBgColor).css("border",g.border).css("border-bottom",g.toolbarBottomBorder),T.css("border",g.border).css("border-top","none").css("height",E+"px")):(A.append(w),M=s.default(y).children(),s.default(y).append(T),N=T.children()),b=s.default("<div></div>"),b.attr("contenteditable","true").css("width","100%").css("height","100%");var x,D=v.config.placeholder;D!==f.default.placeholder?x=s.default("<div>"+D+"</div>"):x=s.default("<div>"+S.t(D)+"</div>"),x.addClass("placeholder"),N&&N.length?(b.append(N),x.hide()):b.append(s.default(h.EMPTY_P)),M&&M.length&&(b.append(M),x.hide()),T.append(b),T.append(x),w.addClass("w-e-toolbar").css("z-index",v.zIndex.get("toolbar")),T.addClass("w-e-text-container"),T.css("z-index",v.zIndex.get()),b.addClass("w-e-text");var R=u.getRandom("toolbar-elem");w.attr("id",R);var P=u.getRandom("text-elem");b.attr("id",P);var I=T.getBoundingClientRect().height,O=b.getBoundingClientRect().height;I!==O&&b.css("min-height",I+"px"),v.$toolbarElem=w,v.$textContainerElem=T,v.$textElem=b,v.toolbarElemId=R,v.textElemId=P}r.default=p;function d(v){var m="data-we-id",A=/^wangEditor-\d+$/,y=v.textSelector,C=v.toolbarSelector,E={bar:s.default("<div></div>"),text:s.default("<div></div>")};if(C==null)throw new Error("错误:初始化编辑器时候未传入任何参数,请查阅文档");if(E.bar=s.default(C),!E.bar.elems.length)throw new Error("无效的节点选择器:"+C);if(A.test(E.bar.attr(m)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器");if(y){if(E.text=s.default(y),!E.text.elems.length)throw new Error("无效的节点选择器:"+y);if(A.test(E.text.attr(m)))throw new Error("初始化节点已存在编辑器实例,无法重复创建编辑器")}E.bar.attr(m,v.id),E.text.attr(m,v.id),v.beforeDestroy(function(){E.bar.removeAttr(m),E.text.removeAttr(m)})}r.selectorValidator=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(3)),u=t(7);function h(f,g){var p=f.$textElem,d=p.children();if(!d||!d.length){p.append(s.default(u.EMPTY_P)),h(f);return}var v=d.last();if(g){var m=v.html().toLowerCase(),A=v.getNodeName();if(m!=="<br>"&&m!=="<br/>"||A!=="P"){p.append(s.default(u.EMPTY_P)),h(f);return}}f.selection.createRangeByElem(v,!1,!0),f.config.focus?f.selection.restoreSelection():f.selection.clearWindowSelectionRange()}r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3));function h(m){f(m),g(m),p(m)}function f(m){m.txt.eventHooks.changeEvents.push(function(){var A=m.config.onchange;if(A){var y=m.txt.html()||"";m.isFocus=!0,A(y)}m.txt.togglePlaceholder()})}function g(m){m.isFocus=!1;function A(y){var C=y.target,E=u.default(C),S=m.$textElem,w=m.$toolbarElem,T=S.isContain(E),b=w.isContain(E),N=w.elems[0]==y.target;if(T)m.isFocus||v(m),m.isFocus=!0;else{if(b&&!N||!m.isFocus)return;d(m),m.isFocus=!1}}document.activeElement===m.$textElem.elems[0]&&m.config.focus&&(v(m),m.isFocus=!0),u.default(document).on("click",A),m.beforeDestroy(function(){u.default(document).off("click",A)})}function p(m){m.$textElem.on("compositionstart",function(){m.isComposing=!0,m.txt.togglePlaceholder()}).on("compositionend",function(){m.isComposing=!1,m.txt.togglePlaceholder()})}function d(m){var A,y=m.config,C=y.onblur,E=m.txt.html()||"";(0,l.default)(A=m.txt.eventHooks.onBlurEvents).call(A,function(S){return S()}),C(E)}function v(m){var A=m.config,y=A.onfocus,C=m.txt.html()||"";y(C)}r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});function l(s){var u=s.config,h=u.lang,f=u.languages;if(s.i18next!=null){try{s.i18next.init({ns:"wangEditor",lng:h,defaultNS:"wangEditor",resources:f})}catch(g){throw new Error("i18next:"+g)}return}s.i18next={t:function(p){var d=p.split(".");return d[d.length-1]}}}r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29));(0,i.default)(r,"__esModule",{value:!0}),r.setUnFullScreen=r.setFullScreen=void 0;var s=t(2),u=s.__importDefault(t(3));t(421);var h="w-e-icon-fullscreen",f="w-e-icon-fullscreen_exit",g="w-e-full-screen-editor";r.setFullScreen=function(d){var v=u.default(d.toolbarSelector),m=d.$textContainerElem,A=d.$toolbarElem,y=(0,l.default)(A).call(A,"i."+h),C=d.config;y.removeClass(h),y.addClass(f),v.addClass(g),v.css("z-index",C.zIndexFullScreen);var E=A.getBoundingClientRect();m.css("height","calc(100% - "+E.height+"px)")},r.setUnFullScreen=function(d){var v=u.default(d.toolbarSelector),m=d.$textContainerElem,A=d.$toolbarElem,y=(0,l.default)(A).call(A,"i."+f),C=d.config;y.removeClass(f),y.addClass(h),v.removeClass(g),v.css("z-index","auto"),m.css("height",C.height+"px")};var p=function(v){if(!v.textSelector&&v.config.showFullScreen){var m=v.$toolbarElem,A=u.default(`<div class="w-e-menu" data-title="全屏">
<i class="`+h+`"></i>
</div>`);A.on("click",function(y){var C,E=(0,l.default)(C=u.default(y.currentTarget)).call(C,"i");E.hasClass(h)?(A.attr("data-title","取消全屏"),r.setFullScreen(v)):(A.attr("data-title","全屏"),r.setUnFullScreen(v))}),m.append(A)}};r.default=p},function(n,r,t){var a=t(20),i=t(422);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),n.exports=r},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29));(0,i.default)(r,"__esModule",{value:!0});var s=function(h,f){var g,p=h.isEnable?h.$textElem:(0,l.default)(g=h.$textContainerElem).call(g,".w-e-content-mantle"),d=(0,l.default)(p).call(p,"[id='"+f+"']"),v=d.getOffsetData().top;p.scrollTop(v)};r.default=s},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(129)),u={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},h=function(){function f(){this.tier=u,this.baseZIndex=s.default.zIndex}return f.prototype.get=function(g){return g&&this.tier[g]?this.baseZIndex+this.tier[g]:this.baseZIndex},f.prototype.init=function(g){this.baseZIndex==s.default.zIndex&&(this.baseZIndex=g.config.zIndex)},f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(70)),s=a(t(4));(0,i.default)(r,"__esModule",{value:!0});var u=t(2),h=u.__importDefault(t(426)),f=t(6),g=t(7);function p(v,m){return(0,l.default)(v).call(v,function(A){var y=A.type,C=A.target,E=A.attributeName;return y!="attributes"||y=="attributes"&&(E=="contenteditable"||C!=m)})}var d=function(v){u.__extends(m,v);function m(A){var y=v.call(this,function(C,E){var S;if(C=p(C,E.target),(S=y.data).push.apply(S,C),A.isCompatibleMode)y.asyncSave();else if(!A.isComposing)return y.asyncSave()})||this;return y.editor=A,y.data=[],y.asyncSave=g.EMPTY_FN,y}return m.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},m.prototype.emit=function(){var A;(0,s.default)(A=this.editor.txt.eventHooks.changeEvents).call(A,function(y){return y()})},m.prototype.observe=function(){var A=this;v.prototype.observe.call(this,this.editor.$textElem.elems[0]);var y=this.editor.config.onchangeTimeout;this.asyncSave=f.debounce(function(){A.save()},y),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){A.asyncSave()})},m}(h.default);r.default=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=function(){function s(u,h){var f=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(g){u(g,f)},this.observer=new MutationObserver(this.callback),h&&(this.options=h)}return(0,i.default)(s.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),s.prototype.observe=function(u){this.node instanceof Node||(this.node=u,this.connect())},s.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("还未初始化绑定,请您先绑定有效的 Node 节点")},s.prototype.disconnect=function(){var u=this.observer.takeRecords();u.length&&this.callback(u),this.observer.disconnect()},s}();r.default=l},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(428)),u=l.__importDefault(t(435)),h=l.__importDefault(t(436)),f=function(){function g(p){this.editor=p,this.content=new s.default(p),this.scroll=new u.default(p),this.range=new h.default(p)}return(0,i.default)(g.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),g.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},g.prototype.save=function(p){p.length&&(this.content.save(p),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},g.prototype.revoke=function(){this.editor.change.disconnect();var p=this.content.revoke();p&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),p&&this.editor.change.emit()},g.prototype.restore=function(){this.editor.change.disconnect();var p=this.content.restore();p&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),p&&this.editor.change.emit()},g}();r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(429)),u=l.__importDefault(t(433)),h=function(){function f(g){this.editor=g}return f.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new u.default(this.editor):this.cache=new s.default(this.editor),this.cache.observe()},f.prototype.save=function(g){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(g)},f.prototype.revoke=function(){var g;return(g=this.cache)===null||g===void 0?void 0:g.revoke()},f.prototype.restore=function(){var g;return(g=this.cache)===null||g===void 0?void 0:g.restore()},f}();r.default=h},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(99)),u=l.__importDefault(t(431)),h=t(432),f=function(g){l.__extends(p,g);function p(d){var v=g.call(this,d.config.historyMaxSize)||this;return v.editor=d,v}return p.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},p.prototype.compile=function(d){return this.save(u.default(d)),this},p.prototype.revoke=function(){return g.prototype.revoke.call(this,function(d){h.revoke(d)})},p.prototype.restore=function(){return g.prototype.restore.call(this,function(d){h.restore(d)})},p}(s.default);r.default=f},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0}),r.CeilStack=void 0;var l=function(){function s(u){u===void 0&&(u=0),this.data=[],this.max=0,this.reset=!1,u=Math.abs(u),u&&(this.max=u)}return s.prototype.resetMax=function(u){u=Math.abs(u),!this.reset&&!isNaN(u)&&(this.max=u,this.reset=!0)},(0,i.default)(s.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),s.prototype.instack=function(u){return this.data.unshift(u),this.max&&this.size>this.max&&(this.data.length=this.max),this},s.prototype.outstack=function(){return this.data.shift()},s.prototype.clear=function(){return this.data.length=0,this},s}();r.CeilStack=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(27));(0,i.default)(r,"__esModule",{value:!0}),r.compliePosition=r.complieNodes=r.compileValue=r.compileType=void 0;var u=t(6);function h(A){switch(A){case"childList":return"node";case"attributes":return"attr";default:return"text"}}r.compileType=h;function f(A){switch(A.type){case"attributes":return A.target.getAttribute(A.attributeName)||"";case"characterData":return A.target.textContent;default:return""}}r.compileValue=f;function g(A){var y={};return A.addedNodes.length&&(y.add=u.toArray(A.addedNodes)),A.removedNodes.length&&(y.remove=u.toArray(A.removedNodes)),y}r.complieNodes=g;function p(A){var y;return A.previousSibling?y={type:"before",target:A.previousSibling}:A.nextSibling?y={type:"after",target:A.nextSibling}:y={type:"parent",target:A.target},y}r.compliePosition=p;var d=["UL","OL","H1","H2","H3","H4","H5","H6"];function v(A){var y=[],C=!1,E=[];return(0,l.default)(A).call(A,function(S,w){var T={type:h(S.type),target:S.target,attr:S.attributeName||"",value:f(S)||"",oldValue:S.oldValue||"",nodes:g(S),position:p(S)};if(y.push(T),!!u.UA.isFirefox){if(C&&S.addedNodes.length&&S.addedNodes[0].nodeType==1){var b=S.addedNodes[0],N={type:"node",target:b,attr:"",value:"",oldValue:"",nodes:{add:[C]},position:{type:"parent",target:b}};(0,s.default)(d).call(d,b.nodeName)!=-1?(N.nodes.add=u.toArray(b.childNodes),y.push(N)):C.nodeType==3?(m(b,E)&&(N.nodes.add=u.toArray(b.childNodes)),y.push(N)):(0,s.default)(d).call(d,S.target.nodeName)==-1&&m(b,E)&&(N.nodes.add=u.toArray(b.childNodes),y.push(N))}T.type=="node"&&S.removedNodes.length==1?(C=S.removedNodes[0],E.push(C)):(C=!1,E.length=0)}}),y}r.default=v;function m(A,y){for(var C=0,E=y.length-1;E>0&&A.contains(y[E]);E--)C++;return C}},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(4)),s=a(t(94));(0,i.default)(r,"__esModule",{value:!0}),r.restore=r.revoke=void 0;function u(E,S){var w=E.position.target;switch(E.position.type){case"before":w.nextSibling?(w=w.nextSibling,(0,l.default)(S).call(S,function(T){E.target.insertBefore(T,w)})):(0,l.default)(S).call(S,function(T){E.target.appendChild(T)});break;case"after":(0,l.default)(S).call(S,function(T){E.target.insertBefore(T,w)});break;default:(0,l.default)(S).call(S,function(T){w.appendChild(T)});break}}function h(E){for(var S=0,w=(0,s.default)(E.nodes);S<w.length;S++){var T=w[S],b=T[0],N=T[1];switch(b){case"add":(0,l.default)(N).call(N,function(M){E.target.removeChild(M)});break;default:{u(E,N);break}}}}function f(E){var S=E.target;E.oldValue==null?S.removeAttribute(E.attr):S.setAttribute(E.attr,E.oldValue)}function g(E){E.target.textContent=E.oldValue}var p={node:h,text:g,attr:f};function d(E){for(var S=E.length-1;S>-1;S--){var w=E[S];p[w.type](w)}}r.revoke=d;function v(E){for(var S=0,w=(0,s.default)(E.nodes);S<w.length;S++){var T=w[S],b=T[0],N=T[1];switch(b){case"add":{u(E,N);break}default:{(0,l.default)(N).call(N,function(M){M.parentNode.removeChild(M)});break}}}}function m(E){E.target.textContent=E.value}function A(E){E.target.setAttribute(E.attr,E.value)}var y={node:v,text:m,attr:A};function C(E){for(var S=0,w=E;S<w.length;S++){var T=w[S];y[T.type](T)}}r.restore=C},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(434),s=function(){function u(h){this.editor=h,this.data=new l.TailChain}return u.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},u.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},u.prototype.revoke=function(){var h=this.data.prev();return h?(this.editor.$textElem.html(h),!0):!1},u.prototype.restore=function(){var h=this.data.next();return h?(this.editor.$textElem.html(h),!0):!1},u}();r.default=s},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(91));(0,i.default)(r,"__esModule",{value:!0}),r.TailChain=void 0;var s=function(){function u(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return u.prototype.resetMax=function(h){h=Math.abs(h),h&&(this.max=h)},(0,i.default)(u.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),u.prototype.insertLast=function(h){if(this.isRe){var f;(0,l.default)(f=this.data).call(f,this.point+1),this.isRe=!1}for(this.data.push(h);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},u.prototype.current=function(){return this.data[this.point]},u.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},u.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},u}();r.TailChain=s},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(99)),u=function(h){l.__extends(f,h);function f(g){var p=h.call(this,g.config.historyMaxSize)||this;return p.editor=g,p.last=0,p.target=g.$textElem.elems[0],p}return f.prototype.observe=function(){var g=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){g.last=g.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},f.prototype.save=function(){return h.prototype.save.call(this,[this.last,this.target.scrollTop]),this},f.prototype.revoke=function(){var g=this;return h.prototype.revoke.call(this,function(p){g.target.scrollTop=p[0]})},f.prototype.restore=function(){var g=this;return h.prototype.restore.call(this,function(p){g.target.scrollTop=p[1]})},f}(s.default);r.default=u},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=t(2),s=l.__importDefault(t(99)),u=l.__importDefault(t(3)),h=t(6);function f(p){return{start:[p.startContainer,p.startOffset],end:[p.endContainer,p.endOffset],root:p.commonAncestorContainer,collapsed:p.collapsed}}var g=function(p){l.__extends(d,p);function d(v){var m=p.call(this,v.config.historyMaxSize)||this;return m.editor=v,m.lastRange=f(document.createRange()),m.root=v.$textElem.elems[0],m.updateLastRange=h.debounce(function(){m.lastRange=f(m.rangeHandle)},v.config.onchangeTimeout),m}return(0,i.default)(d.prototype,"rangeHandle",{get:function(){var m=document.getSelection();return m&&m.rangeCount?m.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),d.prototype.observe=function(){var v=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function m(){var y=v.rangeHandle;(v.root===y.commonAncestorContainer||v.root.contains(y.commonAncestorContainer))&&(v.editor.isComposing||v.updateLastRange())}function A(y){(y.key=="Backspace"||y.key=="Delete")&&v.updateLastRange()}u.default(document).on("selectionchange",m),this.editor.beforeDestroy(function(){u.default(document).off("selectionchange",m)}),v.editor.$textElem.on("keydown",A)},d.prototype.save=function(){var v=f(this.rangeHandle);return p.prototype.save.call(this,[this.lastRange,v]),this.lastRange=v,this},d.prototype.set=function(v){try{if(v){var m=this.rangeHandle;return m.setStart.apply(m,v.start),m.setEnd.apply(m,v.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},d.prototype.revoke=function(){var v=this;return p.prototype.revoke.call(this,function(m){v.set(m[0])})},d.prototype.restore=function(){var v=this;return p.prototype.restore.call(this,function(m){v.set(m[1])})},d}(s.default);r.default=g},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(29));(0,i.default)(r,"__esModule",{value:!0});var s=t(2),u=s.__importDefault(t(3));t(438);function h(f){var g=!1,p,d;f.txt.eventHooks.changeEvents.push(function(){g&&(0,l.default)(p).call(p,".w-e-content-preview").html(f.$textElem.html())});function v(){if(!g){f.$textElem.hide();var A=f.zIndex.get("textContainer"),y=f.txt.html();p=u.default('<div class="w-e-content-mantle" style="z-index:'+A+`">
<div class="w-e-content-preview w-e-text">`+y+`</div>
</div>`),f.$textContainerElem.append(p);var C=f.zIndex.get("menu");d=u.default('<div class="w-e-menue-mantle" style="z-index:'+C+'"></div>'),f.$toolbarElem.append(d),g=!0,f.isEnable=!1}}function m(){g&&(p.remove(),d.remove(),f.$textElem.show(),g=!1,f.isEnable=!0)}return{disable:v,enable:m}}r.default=h},function(n,r,t){var a=t(20),i=t(439);i=i.__esModule?i.default:i,typeof i=="string"&&(i=[[n.i,i,""]]);var l={};l.insert="head",l.singleton=!1,a(i,l),n.exports=i.locals||{}},function(n,r,t){var a=t(21);r=a(!1),r.push([n.i,`.w-e-content-mantle {
width: 100%;
height: 100%;
overflow-y: auto;
}
.w-e-content-mantle .w-e-content-preview {
width: 100%;
min-height: 100%;
padding: 0 10px;
line-height: 1.5;
}
.w-e-content-mantle .w-e-content-preview img {
cursor: default;
}
.w-e-content-mantle .w-e-content-preview img:hover {
box-shadow: none;
}
.w-e-menue-mantle {
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
`,""]),n.exports=r},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0});var l=function(){function s(u){var h=this;this.editor=u;var f=function(){var p=document.activeElement;p===u.$textElem.elems[0]&&h.emit()};window.document.addEventListener("selectionchange",f),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",f)})}return s.prototype.emit=function(){var u,h=this.editor.config.onSelectionChange;if(h){var f=this.editor.selection;f.saveRange(),f.isSelectionEmpty()||h({text:f.getSelectionText(),html:(u=f.getSelectionContainerElem())===null||u===void 0?void 0:u.elems[0].innerHTML,selection:f})}},s}();r.default=l},function(n,r,t){var a=t(0),i=a(t(1)),l=a(t(128)),s=a(t(94)),u=a(t(4));(0,i.default)(r,"__esModule",{value:!0}),r.registerPlugin=void 0;var h=t(2),f=h.__importDefault(t(87)),g=t(6);function p(v,m,A){if(!v)throw new TypeError("name is not define");if(!m)throw new TypeError("options is not define");if(!m.intention)throw new TypeError("options.intention is not define");if(m.intention&&typeof m.intention!="function")throw new TypeError("options.intention is not function");A[v]&&console.warn("plugin "+v+" 已存在,已覆盖。"),A[v]=m}r.registerPlugin=p;function d(v){var m=(0,l.default)({},g.deepClone(f.default.globalPluginsFunctionList),g.deepClone(v.pluginsFunctionList)),A=(0,s.default)(m);(0,u.default)(A).call(A,function(y){var C=y[0],E=y[1];console.info("plugin "+C+" initializing");var S=E.intention,w=E.config;S(v,w),console.info("plugin "+C+" initialization complete")})}r.default=d},function(n,r,t){var a=t(0),i=a(t(1));(0,i.default)(r,"__esModule",{value:!0})}]).default})})(nl);var Zd=nl.exports;const rl=Kd(Zd);//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var ol;function K(){return ol.apply(null,arguments)}function Xd(e){ol=e}function Et(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function hn(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Ce(e,o){return Object.prototype.hasOwnProperty.call(e,o)}function Go(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var o;for(o in e)if(Ce(e,o))return!1;return!0}function _e(e){return e===void 0}function Vt(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Jn(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function al(e,o){var n=[],r,t=e.length;for(r=0;r<t;++r)n.push(o(e[r],r));return n}function on(e,o){for(var n in o)Ce(o,n)&&(e[n]=o[n]);return Ce(o,"toString")&&(e.toString=o.toString),Ce(o,"valueOf")&&(e.valueOf=o.valueOf),e}function Nt(e,o,n,r){return Pl(e,o,n,r,!0).utc()}function qd(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function me(e){return e._pf==null&&(e._pf=qd()),e._pf}var Qo;Array.prototype.some?Qo=Array.prototype.some:Qo=function(e){var o=Object(this),n=o.length>>>0,r;for(r=0;r<n;r++)if(r in o&&e.call(this,o[r],r,o))return!0;return!1};function Jo(e){var o=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(o=me(e),n=Qo.call(o.parsedDateParts,function(t){return t!=null}),r=o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&n),e._strict&&(r=r&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Br(e){var o=Nt(NaN);return e!=null?on(me(o),e):me(o).userInvalidated=!0,o}var il=K.momentProperties=[],Ko=!1;function Zo(e,o){var n,r,t,a=il.length;if(_e(o._isAMomentObject)||(e._isAMomentObject=o._isAMomentObject),_e(o._i)||(e._i=o._i),_e(o._f)||(e._f=o._f),_e(o._l)||(e._l=o._l),_e(o._strict)||(e._strict=o._strict),_e(o._tzm)||(e._tzm=o._tzm),_e(o._isUTC)||(e._isUTC=o._isUTC),_e(o._offset)||(e._offset=o._offset),_e(o._pf)||(e._pf=me(o)),_e(o._locale)||(e._locale=o._locale),a>0)for(n=0;n<a;n++)r=il[n],t=o[r],_e(t)||(e[r]=t);return e}function Kn(e){Zo(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Ko===!1&&(Ko=!0,K.updateOffset(this),Ko=!1)}function St(e){return e instanceof Kn||e!=null&&e._isAMomentObject!=null}function ll(e){K.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function ct(e,o){var n=!0;return on(function(){if(K.deprecationHandler!=null&&K.deprecationHandler(null,e),n){var r=[],t,a,i,l=arguments.length;for(a=0;a<l;a++){if(t="",typeof arguments[a]=="object"){t+=`
[`+a+"] ";for(i in arguments[0])Ce(arguments[0],i)&&(t+=i+": "+arguments[0][i]+", ");t=t.slice(0,-2)}else t=arguments[a];r.push(t)}ll(e+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return o.apply(this,arguments)},o)}var sl={};function cl(e,o){K.deprecationHandler!=null&&K.deprecationHandler(e,o),sl[e]||(ll(o),sl[e]=!0)}K.suppressDeprecationWarnings=!1,K.deprecationHandler=null;function Rt(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function _d(e){var o,n;for(n in e)Ce(e,n)&&(o=e[n],Rt(o)?this[n]=o:this["_"+n]=o);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Xo(e,o){var n=on({},e),r;for(r in o)Ce(o,r)&&(hn(e[r])&&hn(o[r])?(n[r]={},on(n[r],e[r]),on(n[r],o[r])):o[r]!=null?n[r]=o[r]:delete n[r]);for(r in e)Ce(e,r)&&!Ce(o,r)&&hn(e[r])&&(n[r]=on({},n[r]));return n}function qo(e){e!=null&&this.set(e)}var _o;Object.keys?_o=Object.keys:_o=function(e){var o,n=[];for(o in e)Ce(e,o)&&n.push(o);return n};var ef={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function tf(e,o,n){var r=this._calendar[e]||this._calendar.sameElse;return Rt(r)?r.call(o,n):r}function It(e,o,n){var r=""+Math.abs(e),t=o-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,t)).toString().substr(1)+r}var ea=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ta={},Nn={};function oe(e,o,n,r){var t=r;typeof r=="string"&&(t=function(){return this[r]()}),e&&(Nn[e]=t),o&&(Nn[o[0]]=function(){return It(t.apply(this,arguments),o[1],o[2])}),n&&(Nn[n]=function(){return this.localeData().ordinal(t.apply(this,arguments),e)})}function nf(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function rf(e){var o=e.match(ea),n,r;for(n=0,r=o.length;n<r;n++)Nn[o[n]]?o[n]=Nn[o[n]]:o[n]=nf(o[n]);return function(t){var a="",i;for(i=0;i<r;i++)a+=Rt(o[i])?o[i].call(t,e):o[i];return a}}function Hr(e,o){return e.isValid()?(o=ul(o,e.localeData()),ta[o]=ta[o]||rf(o),ta[o](e)):e.localeData().invalidDate()}function ul(e,o){var n=5;function r(t){return o.longDateFormat(t)||t}for(Fr.lastIndex=0;n>=0&&Fr.test(e);)e=e.replace(Fr,r),Fr.lastIndex=0,n-=1;return e}var of={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function af(e){var o=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return o||!n?o:(this._longDateFormat[e]=n.match(ea).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var lf="Invalid date";function sf(){return this._invalidDate}var cf="%d",uf=/\d{1,2}/;function df(e){return this._ordinal.replace("%d",e)}var ff={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function hf(e,o,n,r){var t=this._relativeTime[n];return Rt(t)?t(e,o,n,r):t.replace(/%d/i,e)}function mf(e,o){var n=this._relativeTime[e>0?"future":"past"];return Rt(n)?n(o):n.replace(/%s/i,o)}var dl={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ut(e){return typeof e=="string"?dl[e]||dl[e.toLowerCase()]:void 0}function na(e){var o={},n,r;for(r in e)Ce(e,r)&&(n=ut(r),n&&(o[n]=e[r]));return o}var vf={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function pf(e){var o=[],n;for(n in e)Ce(e,n)&&o.push({unit:n,priority:vf[n]});return o.sort(function(r,t){return r.priority-t.priority}),o}var fl=/\d/,rt=/\d\d/,hl=/\d{3}/,ra=/\d{4}/,Vr=/[+-]?\d{6}/,we=/\d\d?/,ml=/\d\d\d\d?/,vl=/\d\d\d\d\d\d?/,kr=/\d{1,3}/,oa=/\d{1,4}/,Ur=/[+-]?\d{1,6}/,Rn=/\d+/,Yr=/[+-]?\d+/,gf=/Z|[+-]\d\d:?\d\d/gi,jr=/Z|[+-]\d\d(?::?\d\d)?/gi,yf=/[+-]?\d+(\.\d{1,3})?/,Zn=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,In=/^[1-9]\d?/,aa=/^([1-9]\d|\d)/,zr;zr={};function te(e,o,n){zr[e]=Rt(o)?o:function(r,t){return r&&n?n:o}}function Af(e,o){return Ce(zr,e)?zr[e](o._strict,o._locale):new RegExp(Cf(e))}function Cf(e){return kt(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(o,n,r,t,a){return n||r||t||a}))}function kt(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function dt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ge(e){var o=+e,n=0;return o!==0&&isFinite(o)&&(n=dt(o)),n}var ia={};function Se(e,o){var n,r=o,t;for(typeof e=="string"&&(e=[e]),Vt(o)&&(r=function(a,i){i[o]=ge(a)}),t=e.length,n=0;n<t;n++)ia[e[n]]=r}function Xn(e,o){Se(e,function(n,r,t,a){t._w=t._w||{},o(n,t._w,t,a)})}function Ef(e,o,n){o!=null&&Ce(ia,e)&&ia[e](o,n._a,n,e)}function $r(e){return e%4===0&&e%100!==0||e%400===0}var Ue=0,Ut=1,Pt=2,Le=3,xt=4,Yt=5,mn=6,Sf=7,xf=8;oe("Y",0,0,function(){var e=this.year();return e<=9999?It(e,4):"+"+e}),oe(0,["YY",2],0,function(){return this.year()%100}),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,!0],0,"year"),te("Y",Yr),te("YY",we,rt),te("YYYY",oa,ra),te("YYYYY",Ur,Vr),te("YYYYYY",Ur,Vr),Se(["YYYYY","YYYYYY"],Ue),Se("YYYY",function(e,o){o[Ue]=e.length===2?K.parseTwoDigitYear(e):ge(e)}),Se("YY",function(e,o){o[Ue]=K.parseTwoDigitYear(e)}),Se("Y",function(e,o){o[Ue]=parseInt(e,10)});function qn(e){return $r(e)?366:365}K.parseTwoDigitYear=function(e){return ge(e)+(ge(e)>68?1900:2e3)};var pl=Pn("FullYear",!0);function wf(){return $r(this.year())}function Pn(e,o){return function(n){return n!=null?(gl(this,e,n),K.updateOffset(this,o),this):_n(this,e)}}function _n(e,o){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(o){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function gl(e,o,n){var r,t,a,i,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,t=e._isUTC,o){case"Milliseconds":return void(t?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(t?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(t?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(t?r.setUTCHours(n):r.setHours(n));case"Date":return void(t?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,i=e.month(),l=e.date(),l=l===29&&i===1&&!$r(a)?28:l,t?r.setUTCFullYear(a,i,l):r.setFullYear(a,i,l)}}function Tf(e){return e=ut(e),Rt(this[e])?this[e]():this}function Df(e,o){if(typeof e=="object"){e=na(e);var n=pf(e),r,t=n.length;for(r=0;r<t;r++)this[n[r].unit](e[n[r].unit])}else if(e=ut(e),Rt(this[e]))return this[e](o);return this}function Mf(e,o){return(e%o+o)%o}var Ie;Array.prototype.indexOf?Ie=Array.prototype.indexOf:Ie=function(e){var o;for(o=0;o<this.length;++o)if(this[o]===e)return o;return-1};function la(e,o){if(isNaN(e)||isNaN(o))return NaN;var n=Mf(o,12);return e+=(o-n)/12,n===1?$r(e)?29:28:31-n%7%2}oe("M",["MM",2],"Mo",function(){return this.month()+1}),oe("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),oe("MMMM",0,0,function(e){return this.localeData().months(this,e)}),te("M",we,In),te("MM",we,rt),te("MMM",function(e,o){return o.monthsShortRegex(e)}),te("MMMM",function(e,o){return o.monthsRegex(e)}),Se(["M","MM"],function(e,o){o[Ut]=ge(e)-1}),Se(["MMM","MMMM"],function(e,o,n,r){var t=n._locale.monthsParse(e,r,n._strict);t!=null?o[Ut]=t:me(n).invalidMonth=e});var bf="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),yl="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Al=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nf=Zn,Rf=Zn;function If(e,o){return e?Et(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Al).test(o)?"format":"standalone"][e.month()]:Et(this._months)?this._months:this._months.standalone}function Pf(e,o){return e?Et(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Al.test(o)?"format":"standalone"][e.month()]:Et(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Of(e,o,n){var r,t,a,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=Nt([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?o==="MMM"?(t=Ie.call(this._shortMonthsParse,i),t!==-1?t:null):(t=Ie.call(this._longMonthsParse,i),t!==-1?t:null):o==="MMM"?(t=Ie.call(this._shortMonthsParse,i),t!==-1?t:(t=Ie.call(this._longMonthsParse,i),t!==-1?t:null)):(t=Ie.call(this._longMonthsParse,i),t!==-1?t:(t=Ie.call(this._shortMonthsParse,i),t!==-1?t:null))}function Lf(e,o,n){var r,t,a;if(this._monthsParseExact)return Of.call(this,e,o,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(t=Nt([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(t,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(t,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(t,"")+"|^"+this.monthsShort(t,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&o==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&o==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function Cl(e,o){if(!e.isValid())return e;if(typeof o=="string"){if(/^\d+$/.test(o))o=ge(o);else if(o=e.localeData().monthsParse(o),!Vt(o))return e}var n=o,r=e.date();return r=r<29?r:Math.min(r,la(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function El(e){return e!=null?(Cl(this,e),K.updateOffset(this,!0),this):_n(this,"Month")}function Bf(){return la(this.year(),this.month())}function Ff(e){return this._monthsParseExact?(Ce(this,"_monthsRegex")||Sl.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(Ce(this,"_monthsShortRegex")||(this._monthsShortRegex=Nf),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function Hf(e){return this._monthsParseExact?(Ce(this,"_monthsRegex")||Sl.call(this),e?this._monthsStrictRegex:this._monthsRegex):(Ce(this,"_monthsRegex")||(this._monthsRegex=Rf),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function Sl(){function e(s,u){return u.length-s.length}var o=[],n=[],r=[],t,a,i,l;for(t=0;t<12;t++)a=Nt([2e3,t]),i=kt(this.monthsShort(a,"")),l=kt(this.months(a,"")),o.push(i),n.push(l),r.push(l),r.push(i);o.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Vf(e,o,n,r,t,a,i){var l;return e<100&&e>=0?(l=new Date(e+400,o,n,r,t,a,i),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,o,n,r,t,a,i),l}function er(e){var o,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,o=new Date(Date.UTC.apply(null,n)),isFinite(o.getUTCFullYear())&&o.setUTCFullYear(e)):o=new Date(Date.UTC.apply(null,arguments)),o}function Wr(e,o,n){var r=7+o-n,t=(7+er(e,0,r).getUTCDay()-o)%7;return-t+r-1}function xl(e,o,n,r,t){var a=(7+n-r)%7,i=Wr(e,r,t),l=1+7*(o-1)+a+i,s,u;return l<=0?(s=e-1,u=qn(s)+l):l>qn(e)?(s=e+1,u=l-qn(e)):(s=e,u=l),{year:s,dayOfYear:u}}function tr(e,o,n){var r=Wr(e.year(),o,n),t=Math.floor((e.dayOfYear()-r-1)/7)+1,a,i;return t<1?(i=e.year()-1,a=t+jt(i,o,n)):t>jt(e.year(),o,n)?(a=t-jt(e.year(),o,n),i=e.year()+1):(i=e.year(),a=t),{week:a,year:i}}function jt(e,o,n){var r=Wr(e,o,n),t=Wr(e+1,o,n);return(qn(e)-r+t)/7}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),te("w",we,In),te("ww",we,rt),te("W",we,In),te("WW",we,rt),Xn(["w","ww","W","WW"],function(e,o,n,r){o[r.substr(0,1)]=ge(e)});function kf(e){return tr(e,this._week.dow,this._week.doy).week}var Uf={dow:0,doy:6};function Yf(){return this._week.dow}function jf(){return this._week.doy}function zf(e){var o=this.localeData().week(this);return e==null?o:this.add((e-o)*7,"d")}function $f(e){var o=tr(this,1,4).week;return e==null?o:this.add((e-o)*7,"d")}oe("d",0,"do","day"),oe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),oe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),oe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),te("d",we),te("e",we),te("E",we),te("dd",function(e,o){return o.weekdaysMinRegex(e)}),te("ddd",function(e,o){return o.weekdaysShortRegex(e)}),te("dddd",function(e,o){return o.weekdaysRegex(e)}),Xn(["dd","ddd","dddd"],function(e,o,n,r){var t=n._locale.weekdaysParse(e,r,n._strict);t!=null?o.d=t:me(n).invalidWeekday=e}),Xn(["d","e","E"],function(e,o,n,r){o[r]=ge(e)});function Wf(e,o){return typeof e!="string"?e:isNaN(e)?(e=o.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Gf(e,o){return typeof e=="string"?o.weekdaysParse(e)%7||7:isNaN(e)?null:e}function sa(e,o){return e.slice(o,7).concat(e.slice(0,o))}var Qf="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),wl="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Jf="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kf=Zn,Zf=Zn,Xf=Zn;function qf(e,o){var n=Et(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(o)?"format":"standalone"];return e===!0?sa(n,this._week.dow):e?n[e.day()]:n}function _f(e){return e===!0?sa(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function eh(e){return e===!0?sa(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function th(e,o,n){var r,t,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Nt([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?o==="dddd"?(t=Ie.call(this._weekdaysParse,i),t!==-1?t:null):o==="ddd"?(t=Ie.call(this._shortWeekdaysParse,i),t!==-1?t:null):(t=Ie.call(this._minWeekdaysParse,i),t!==-1?t:null):o==="dddd"?(t=Ie.call(this._weekdaysParse,i),t!==-1||(t=Ie.call(this._shortWeekdaysParse,i),t!==-1)?t:(t=Ie.call(this._minWeekdaysParse,i),t!==-1?t:null)):o==="ddd"?(t=Ie.call(this._shortWeekdaysParse,i),t!==-1||(t=Ie.call(this._weekdaysParse,i),t!==-1)?t:(t=Ie.call(this._minWeekdaysParse,i),t!==-1?t:null)):(t=Ie.call(this._minWeekdaysParse,i),t!==-1||(t=Ie.call(this._weekdaysParse,i),t!==-1)?t:(t=Ie.call(this._shortWeekdaysParse,i),t!==-1?t:null))}function nh(e,o,n){var r,t,a;if(this._weekdaysParseExact)return th.call(this,e,o,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(t=Nt([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(t,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(t,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(t,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(t,"")+"|^"+this.weekdaysShort(t,"")+"|^"+this.weekdaysMin(t,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&o==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&o==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&o==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function rh(e){if(!this.isValid())return e!=null?this:NaN;var o=_n(this,"Day");return e!=null?(e=Wf(e,this.localeData()),this.add(e-o,"d")):o}function oh(e){if(!this.isValid())return e!=null?this:NaN;var o=(this.day()+7-this.localeData()._week.dow)%7;return e==null?o:this.add(e-o,"d")}function ah(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var o=Gf(e,this.localeData());return this.day(this.day()%7?o:o-7)}else return this.day()||7}function ih(e){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||ca.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Ce(this,"_weekdaysRegex")||(this._weekdaysRegex=Kf),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function lh(e){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||ca.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ce(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zf),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function sh(e){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||ca.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ce(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xf),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ca(){function e(h,f){return f.length-h.length}var o=[],n=[],r=[],t=[],a,i,l,s,u;for(a=0;a<7;a++)i=Nt([2e3,1]).day(a),l=kt(this.weekdaysMin(i,"")),s=kt(this.weekdaysShort(i,"")),u=kt(this.weekdays(i,"")),o.push(l),n.push(s),r.push(u),t.push(l),t.push(s),t.push(u);o.sort(e),n.sort(e),r.sort(e),t.sort(e),this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ua(){return this.hours()%12||12}function ch(){return this.hours()||24}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,ua),oe("k",["kk",2],0,ch),oe("hmm",0,0,function(){return""+ua.apply(this)+It(this.minutes(),2)}),oe("hmmss",0,0,function(){return""+ua.apply(this)+It(this.minutes(),2)+It(this.seconds(),2)}),oe("Hmm",0,0,function(){return""+this.hours()+It(this.minutes(),2)}),oe("Hmmss",0,0,function(){return""+this.hours()+It(this.minutes(),2)+It(this.seconds(),2)});function Tl(e,o){oe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),o)})}Tl("a",!0),Tl("A",!1);function Dl(e,o){return o._meridiemParse}te("a",Dl),te("A",Dl),te("H",we,aa),te("h",we,In),te("k",we,In),te("HH",we,rt),te("hh",we,rt),te("kk",we,rt),te("hmm",ml),te("hmmss",vl),te("Hmm",ml),te("Hmmss",vl),Se(["H","HH"],Le),Se(["k","kk"],function(e,o,n){var r=ge(e);o[Le]=r===24?0:r}),Se(["a","A"],function(e,o,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Se(["h","hh"],function(e,o,n){o[Le]=ge(e),me(n).bigHour=!0}),Se("hmm",function(e,o,n){var r=e.length-2;o[Le]=ge(e.substr(0,r)),o[xt]=ge(e.substr(r)),me(n).bigHour=!0}),Se("hmmss",function(e,o,n){var r=e.length-4,t=e.length-2;o[Le]=ge(e.substr(0,r)),o[xt]=ge(e.substr(r,2)),o[Yt]=ge(e.substr(t)),me(n).bigHour=!0}),Se("Hmm",function(e,o,n){var r=e.length-2;o[Le]=ge(e.substr(0,r)),o[xt]=ge(e.substr(r))}),Se("Hmmss",function(e,o,n){var r=e.length-4,t=e.length-2;o[Le]=ge(e.substr(0,r)),o[xt]=ge(e.substr(r,2)),o[Yt]=ge(e.substr(t))});function uh(e){return(e+"").toLowerCase().charAt(0)==="p"}var dh=/[ap]\.?m?\.?/i,fh=Pn("Hours",!0);function hh(e,o,n){return e>11?n?"pm":"PM":n?"am":"AM"}var Ml={calendar:ef,longDateFormat:of,invalidDate:lf,ordinal:cf,dayOfMonthOrdinalParse:uf,relativeTime:ff,months:bf,monthsShort:yl,week:Uf,weekdays:Qf,weekdaysMin:Jf,weekdaysShort:wl,meridiemParse:dh},Me={},nr={},rr;function mh(e,o){var n,r=Math.min(e.length,o.length);for(n=0;n<r;n+=1)if(e[n]!==o[n])return n;return r}function bl(e){return e&&e.toLowerCase().replace("_","-")}function vh(e){for(var o=0,n,r,t,a;o<e.length;){for(a=bl(e[o]).split("-"),n=a.length,r=bl(e[o+1]),r=r?r.split("-"):null;n>0;){if(t=Gr(a.slice(0,n).join("-")),t)return t;if(r&&r.length>=n&&mh(a,r)>=n-1)break;n--}o++}return rr}function ph(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Gr(e){var o=null,n;if(Me[e]===void 0&&typeof module<"u"&&module&&module.exports&&ph(e))try{o=rr._abbr,n=require,n("./locale/"+e),an(o)}catch{Me[e]=null}return Me[e]}function an(e,o){var n;return e&&(_e(o)?n=zt(e):n=da(e,o),n?rr=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rr._abbr}function da(e,o){if(o!==null){var n,r=Ml;if(o.abbr=e,Me[e]!=null)cl("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Me[e]._config;else if(o.parentLocale!=null)if(Me[o.parentLocale]!=null)r=Me[o.parentLocale]._config;else if(n=Gr(o.parentLocale),n!=null)r=n._config;else return nr[o.parentLocale]||(nr[o.parentLocale]=[]),nr[o.parentLocale].push({name:e,config:o}),null;return Me[e]=new qo(Xo(r,o)),nr[e]&&nr[e].forEach(function(t){da(t.name,t.config)}),an(e),Me[e]}else return delete Me[e],null}function gh(e,o){if(o!=null){var n,r,t=Ml;Me[e]!=null&&Me[e].parentLocale!=null?Me[e].set(Xo(Me[e]._config,o)):(r=Gr(e),r!=null&&(t=r._config),o=Xo(t,o),r==null&&(o.abbr=e),n=new qo(o),n.parentLocale=Me[e],Me[e]=n),an(e)}else Me[e]!=null&&(Me[e].parentLocale!=null?(Me[e]=Me[e].parentLocale,e===an()&&an(e)):Me[e]!=null&&delete Me[e]);return Me[e]}function zt(e){var o;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rr;if(!Et(e)){if(o=Gr(e),o)return o;e=[e]}return vh(e)}function yh(){return _o(Me)}function fa(e){var o,n=e._a;return n&&me(e).overflow===-2&&(o=n[Ut]<0||n[Ut]>11?Ut:n[Pt]<1||n[Pt]>la(n[Ue],n[Ut])?Pt:n[Le]<0||n[Le]>24||n[Le]===24&&(n[xt]!==0||n[Yt]!==0||n[mn]!==0)?Le:n[xt]<0||n[xt]>59?xt:n[Yt]<0||n[Yt]>59?Yt:n[mn]<0||n[mn]>999?mn:-1,me(e)._overflowDayOfYear&&(o<Ue||o>Pt)&&(o=Pt),me(e)._overflowWeeks&&o===-1&&(o=Sf),me(e)._overflowWeekday&&o===-1&&(o=xf),me(e).overflow=o),e}var Ah=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ch=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Eh=/Z|[+-]\d\d(?::?\d\d)?/,Qr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ha=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Sh=/^\/?Date\((-?\d+)/i,xh=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wh={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Nl(e){var o,n,r=e._i,t=Ah.exec(r)||Ch.exec(r),a,i,l,s,u=Qr.length,h=ha.length;if(t){for(me(e).iso=!0,o=0,n=u;o<n;o++)if(Qr[o][1].exec(t[1])){i=Qr[o][0],a=Qr[o][2]!==!1;break}if(i==null){e._isValid=!1;return}if(t[3]){for(o=0,n=h;o<n;o++)if(ha[o][1].exec(t[3])){l=(t[2]||" ")+ha[o][0];break}if(l==null){e._isValid=!1;return}}if(!a&&l!=null){e._isValid=!1;return}if(t[4])if(Eh.exec(t[4]))s="Z";else{e._isValid=!1;return}e._f=i+(l||"")+(s||""),va(e)}else e._isValid=!1}function Th(e,o,n,r,t,a){var i=[Dh(e),yl.indexOf(o),parseInt(n,10),parseInt(r,10),parseInt(t,10)];return a&&i.push(parseInt(a,10)),i}function Dh(e){var o=parseInt(e,10);return o<=49?2e3+o:o<=999?1900+o:o}function Mh(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function bh(e,o,n){if(e){var r=wl.indexOf(e),t=new Date(o[0],o[1],o[2]).getDay();if(r!==t)return me(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function Nh(e,o,n){if(e)return wh[e];if(o)return 0;var r=parseInt(n,10),t=r%100,a=(r-t)/100;return a*60+t}function Rl(e){var o=xh.exec(Mh(e._i)),n;if(o){if(n=Th(o[4],o[3],o[2],o[5],o[6],o[7]),!bh(o[1],n,e))return;e._a=n,e._tzm=Nh(o[8],o[9],o[10]),e._d=er.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),me(e).rfc2822=!0}else e._isValid=!1}function Rh(e){var o=Sh.exec(e._i);if(o!==null){e._d=new Date(+o[1]);return}if(Nl(e),e._isValid===!1)delete e._isValid;else return;if(Rl(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:K.createFromInputFallback(e)}K.createFromInputFallback=ct("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function On(e,o,n){return e??o??n}function Ih(e){var o=new Date(K.now());return e._useUTC?[o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()]:[o.getFullYear(),o.getMonth(),o.getDate()]}function ma(e){var o,n,r=[],t,a,i;if(!e._d){for(t=Ih(e),e._w&&e._a[Pt]==null&&e._a[Ut]==null&&Ph(e),e._dayOfYear!=null&&(i=On(e._a[Ue],t[Ue]),(e._dayOfYear>qn(i)||e._dayOfYear===0)&&(me(e)._overflowDayOfYear=!0),n=er(i,0,e._dayOfYear),e._a[Ut]=n.getUTCMonth(),e._a[Pt]=n.getUTCDate()),o=0;o<3&&e._a[o]==null;++o)e._a[o]=r[o]=t[o];for(;o<7;o++)e._a[o]=r[o]=e._a[o]==null?o===2?1:0:e._a[o];e._a[Le]===24&&e._a[xt]===0&&e._a[Yt]===0&&e._a[mn]===0&&(e._nextDay=!0,e._a[Le]=0),e._d=(e._useUTC?er:Vf).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Le]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(me(e).weekdayMismatch=!0)}}function Ph(e){var o,n,r,t,a,i,l,s,u;o=e._w,o.GG!=null||o.W!=null||o.E!=null?(a=1,i=4,n=On(o.GG,e._a[Ue],tr(Te(),1,4).year),r=On(o.W,1),t=On(o.E,1),(t<1||t>7)&&(s=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=tr(Te(),a,i),n=On(o.gg,e._a[Ue],u.year),r=On(o.w,u.week),o.d!=null?(t=o.d,(t<0||t>6)&&(s=!0)):o.e!=null?(t=o.e+a,(o.e<0||o.e>6)&&(s=!0)):t=a),r<1||r>jt(n,a,i)?me(e)._overflowWeeks=!0:s!=null?me(e)._overflowWeekday=!0:(l=xl(n,r,t,a,i),e._a[Ue]=l.year,e._dayOfYear=l.dayOfYear)}K.ISO_8601=function(){},K.RFC_2822=function(){};function va(e){if(e._f===K.ISO_8601){Nl(e);return}if(e._f===K.RFC_2822){Rl(e);return}e._a=[],me(e).empty=!0;var o=""+e._i,n,r,t,a,i,l=o.length,s=0,u,h;for(t=ul(e._f,e._locale).match(ea)||[],h=t.length,n=0;n<h;n++)a=t[n],r=(o.match(Af(a,e))||[])[0],r&&(i=o.substr(0,o.indexOf(r)),i.length>0&&me(e).unusedInput.push(i),o=o.slice(o.indexOf(r)+r.length),s+=r.length),Nn[a]?(r?me(e).empty=!1:me(e).unusedTokens.push(a),Ef(a,r,e)):e._strict&&!r&&me(e).unusedTokens.push(a);me(e).charsLeftOver=l-s,o.length>0&&me(e).unusedInput.push(o),e._a[Le]<=12&&me(e).bigHour===!0&&e._a[Le]>0&&(me(e).bigHour=void 0),me(e).parsedDateParts=e._a.slice(0),me(e).meridiem=e._meridiem,e._a[Le]=Oh(e._locale,e._a[Le],e._meridiem),u=me(e).era,u!==null&&(e._a[Ue]=e._locale.erasConvertYear(u,e._a[Ue])),ma(e),fa(e)}function Oh(e,o,n){var r;return n==null?o:e.meridiemHour!=null?e.meridiemHour(o,n):(e.isPM!=null&&(r=e.isPM(n),r&&o<12&&(o+=12),!r&&o===12&&(o=0)),o)}function Lh(e){var o,n,r,t,a,i,l=!1,s=e._f.length;if(s===0){me(e).invalidFormat=!0,e._d=new Date(NaN);return}for(t=0;t<s;t++)a=0,i=!1,o=Zo({},e),e._useUTC!=null&&(o._useUTC=e._useUTC),o._f=e._f[t],va(o),Jo(o)&&(i=!0),a+=me(o).charsLeftOver,a+=me(o).unusedTokens.length*10,me(o).score=a,l?a<r&&(r=a,n=o):(r==null||a<r||i)&&(r=a,n=o,i&&(l=!0));on(e,n||o)}function Bh(e){if(!e._d){var o=na(e._i),n=o.day===void 0?o.date:o.day;e._a=al([o.year,o.month,n,o.hour,o.minute,o.second,o.millisecond],function(r){return r&&parseInt(r,10)}),ma(e)}}function Fh(e){var o=new Kn(fa(Il(e)));return o._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Il(e){var o=e._i,n=e._f;return e._locale=e._locale||zt(e._l),o===null||n===void 0&&o===""?Br({nullInput:!0}):(typeof o=="string"&&(e._i=o=e._locale.preparse(o)),St(o)?new Kn(fa(o)):(Jn(o)?e._d=o:Et(n)?Lh(e):n?va(e):Hh(e),Jo(e)||(e._d=null),e))}function Hh(e){var o=e._i;_e(o)?e._d=new Date(K.now()):Jn(o)?e._d=new Date(o.valueOf()):typeof o=="string"?Rh(e):Et(o)?(e._a=al(o.slice(0),function(n){return parseInt(n,10)}),ma(e)):hn(o)?Bh(e):Vt(o)?e._d=new Date(o):K.createFromInputFallback(e)}function Pl(e,o,n,r,t){var a={};return(o===!0||o===!1)&&(r=o,o=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(hn(e)&&Go(e)||Et(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=t,a._l=n,a._i=e,a._f=o,a._strict=r,Fh(a)}function Te(e,o,n,r){return Pl(e,o,n,r,!1)}var Vh=ct("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Te.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Br()}),kh=ct("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Te.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Br()});function Ol(e,o){var n,r;if(o.length===1&&Et(o[0])&&(o=o[0]),!o.length)return Te();for(n=o[0],r=1;r<o.length;++r)(!o[r].isValid()||o[r][e](n))&&(n=o[r]);return n}function Uh(){var e=[].slice.call(arguments,0);return Ol("isBefore",e)}function Yh(){var e=[].slice.call(arguments,0);return Ol("isAfter",e)}var jh=function(){return Date.now?Date.now():+new Date},or=["year","quarter","month","week","day","hour","minute","second","millisecond"];function zh(e){var o,n=!1,r,t=or.length;for(o in e)if(Ce(e,o)&&!(Ie.call(or,o)!==-1&&(e[o]==null||!isNaN(e[o]))))return!1;for(r=0;r<t;++r)if(e[or[r]]){if(n)return!1;parseFloat(e[or[r]])!==ge(e[or[r]])&&(n=!0)}return!0}function $h(){return this._isValid}function Wh(){return wt(NaN)}function Jr(e){var o=na(e),n=o.year||0,r=o.quarter||0,t=o.month||0,a=o.week||o.isoWeek||0,i=o.day||0,l=o.hour||0,s=o.minute||0,u=o.second||0,h=o.millisecond||0;this._isValid=zh(o),this._milliseconds=+h+u*1e3+s*6e4+l*1e3*60*60,this._days=+i+a*7,this._months=+t+r*3+n*12,this._data={},this._locale=zt(),this._bubble()}function Kr(e){return e instanceof Jr}function pa(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Gh(e,o,n){var r=Math.min(e.length,o.length),t=Math.abs(e.length-o.length),a=0,i;for(i=0;i<r;i++)ge(e[i])!==ge(o[i])&&a++;return a+t}function Ll(e,o){oe(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+It(~~(n/60),2)+o+It(~~n%60,2)})}Ll("Z",":"),Ll("ZZ",""),te("Z",jr),te("ZZ",jr),Se(["Z","ZZ"],function(e,o,n){n._useUTC=!0,n._tzm=ga(jr,e)});var Qh=/([\+\-]|\d\d)/gi;function ga(e,o){var n=(o||"").match(e),r,t,a;return n===null?null:(r=n[n.length-1]||[],t=(r+"").match(Qh)||["-",0,0],a=+(t[1]*60)+ge(t[2]),a===0?0:t[0]==="+"?a:-a)}function ya(e,o){var n,r;return o._isUTC?(n=o.clone(),r=(St(e)||Jn(e)?e.valueOf():Te(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),K.updateOffset(n,!1),n):Te(e).local()}function Aa(e){return-Math.round(e._d.getTimezoneOffset())}K.updateOffset=function(){};function Jh(e,o,n){var r=this._offset||0,t;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=ga(jr,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&o&&(t=Aa(this)),this._offset=e,this._isUTC=!0,t!=null&&this.add(t,"m"),r!==e&&(!o||this._changeInProgress?Vl(this,wt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,K.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:Aa(this)}function Kh(e,o){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,o),this):-this.utcOffset()}function Zh(e){return this.utcOffset(0,e)}function Xh(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Aa(this),"m")),this}function qh(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=ga(gf,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _h(e){return this.isValid()?(e=e?Te(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function em(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tm(){if(!_e(this._isDSTShifted))return this._isDSTShifted;var e={},o;return Zo(e,this),e=Il(e),e._a?(o=e._isUTC?Nt(e._a):Te(e._a),this._isDSTShifted=this.isValid()&&Gh(e._a,o.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nm(){return this.isValid()?!this._isUTC:!1}function rm(){return this.isValid()?this._isUTC:!1}function Bl(){return this.isValid()?this._isUTC&&this._offset===0:!1}var om=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,am=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function wt(e,o){var n=e,r=null,t,a,i;return Kr(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Vt(e)||!isNaN(+e)?(n={},o?n[o]=+e:n.milliseconds=+e):(r=om.exec(e))?(t=r[1]==="-"?-1:1,n={y:0,d:ge(r[Pt])*t,h:ge(r[Le])*t,m:ge(r[xt])*t,s:ge(r[Yt])*t,ms:ge(pa(r[mn]*1e3))*t}):(r=am.exec(e))?(t=r[1]==="-"?-1:1,n={y:vn(r[2],t),M:vn(r[3],t),w:vn(r[4],t),d:vn(r[5],t),h:vn(r[6],t),m:vn(r[7],t),s:vn(r[8],t)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(i=im(Te(n.from),Te(n.to)),n={},n.ms=i.milliseconds,n.M=i.months),a=new Jr(n),Kr(e)&&Ce(e,"_locale")&&(a._locale=e._locale),Kr(e)&&Ce(e,"_isValid")&&(a._isValid=e._isValid),a}wt.fn=Jr.prototype,wt.invalid=Wh;function vn(e,o){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*o}function Fl(e,o){var n={};return n.months=o.month()-e.month()+(o.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(o)&&--n.months,n.milliseconds=+o-+e.clone().add(n.months,"M"),n}function im(e,o){var n;return e.isValid()&&o.isValid()?(o=ya(o,e),e.isBefore(o)?n=Fl(e,o):(n=Fl(o,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Hl(e,o){return function(n,r){var t,a;return r!==null&&!isNaN(+r)&&(cl(o,"moment()."+o+"(period, number) is deprecated. Please use moment()."+o+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),t=wt(n,r),Vl(this,t,e),this}}function Vl(e,o,n,r){var t=o._milliseconds,a=pa(o._days),i=pa(o._months);e.isValid()&&(r=r??!0,i&&Cl(e,_n(e,"Month")+i*n),a&&gl(e,"Date",_n(e,"Date")+a*n),t&&e._d.setTime(e._d.valueOf()+t*n),r&&K.updateOffset(e,a||i))}var lm=Hl(1,"add"),sm=Hl(-1,"subtract");function kl(e){return typeof e=="string"||e instanceof String}function cm(e){return St(e)||Jn(e)||kl(e)||Vt(e)||dm(e)||um(e)||e===null||e===void 0}function um(e){var o=hn(e)&&!Go(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],t,a,i=r.length;for(t=0;t<i;t+=1)a=r[t],n=n||Ce(e,a);return o&&n}function dm(e){var o=Et(e),n=!1;return o&&(n=e.filter(function(r){return!Vt(r)&&kl(e)}).length===0),o&&n}function fm(e){var o=hn(e)&&!Go(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],t,a;for(t=0;t<r.length;t+=1)a=r[t],n=n||Ce(e,a);return o&&n}function hm(e,o){var n=e.diff(o,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function mm(e,o){arguments.length===1&&(arguments[0]?cm(arguments[0])?(e=arguments[0],o=void 0):fm(arguments[0])&&(o=arguments[0],e=void 0):(e=void 0,o=void 0));var n=e||Te(),r=ya(n,this).startOf("day"),t=K.calendarFormat(this,r)||"sameElse",a=o&&(Rt(o[t])?o[t].call(this,n):o[t]);return this.format(a||this.localeData().calendar(t,this,Te(n)))}function vm(){return new Kn(this)}function pm(e,o){var n=St(e)?e:Te(e);return this.isValid()&&n.isValid()?(o=ut(o)||"millisecond",o==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(o).valueOf()):!1}function gm(e,o){var n=St(e)?e:Te(e);return this.isValid()&&n.isValid()?(o=ut(o)||"millisecond",o==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(o).valueOf()<n.valueOf()):!1}function ym(e,o,n,r){var t=St(e)?e:Te(e),a=St(o)?o:Te(o);return this.isValid()&&t.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(t,n):!this.isBefore(t,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function Am(e,o){var n=St(e)?e:Te(e),r;return this.isValid()&&n.isValid()?(o=ut(o)||"millisecond",o==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(o).valueOf()<=r&&r<=this.clone().endOf(o).valueOf())):!1}function Cm(e,o){return this.isSame(e,o)||this.isAfter(e,o)}function Em(e,o){return this.isSame(e,o)||this.isBefore(e,o)}function Sm(e,o,n){var r,t,a;if(!this.isValid())return NaN;if(r=ya(e,this),!r.isValid())return NaN;switch(t=(r.utcOffset()-this.utcOffset())*6e4,o=ut(o),o){case"year":a=Zr(this,r)/12;break;case"month":a=Zr(this,r);break;case"quarter":a=Zr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-t)/864e5;break;case"week":a=(this-r-t)/6048e5;break;default:a=this-r}return n?a:dt(a)}function Zr(e,o){if(e.date()<o.date())return-Zr(o,e);var n=(o.year()-e.year())*12+(o.month()-e.month()),r=e.clone().add(n,"months"),t,a;return o-r<0?(t=e.clone().add(n-1,"months"),a=(o-r)/(r-t)):(t=e.clone().add(n+1,"months"),a=(o-r)/(t-r)),-(n+a)||0}K.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",K.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function xm(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function wm(e){if(!this.isValid())return null;var o=e!==!0,n=o?this.clone().utc():this;return n.year()<0||n.year()>9999?Hr(n,o?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Rt(Date.prototype.toISOString)?o?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Hr(n,"Z")):Hr(n,o?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Tm(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",o="",n,r,t,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",o="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",t="-MM-DD[T]HH:mm:ss.SSS",a=o+'[")]',this.format(n+r+t+a)}function Dm(e){e||(e=this.isUtc()?K.defaultFormatUtc:K.defaultFormat);var o=Hr(this,e);return this.localeData().postformat(o)}function Mm(e,o){return this.isValid()&&(St(e)&&e.isValid()||Te(e).isValid())?wt({to:this,from:e}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function bm(e){return this.from(Te(),e)}function Nm(e,o){return this.isValid()&&(St(e)&&e.isValid()||Te(e).isValid())?wt({from:this,to:e}).locale(this.locale()).humanize(!o):this.localeData().invalidDate()}function Rm(e){return this.to(Te(),e)}function Ul(e){var o;return e===void 0?this._locale._abbr:(o=zt(e),o!=null&&(this._locale=o),this)}var Yl=ct("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function jl(){return this._locale}var Xr=1e3,Ln=60*Xr,qr=60*Ln,zl=(365*400+97)*24*qr;function Bn(e,o){return(e%o+o)%o}function $l(e,o,n){return e<100&&e>=0?new Date(e+400,o,n)-zl:new Date(e,o,n).valueOf()}function Wl(e,o,n){return e<100&&e>=0?Date.UTC(e+400,o,n)-zl:Date.UTC(e,o,n)}function Im(e){var o,n;if(e=ut(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wl:$l,e){case"year":o=n(this.year(),0,1);break;case"quarter":o=n(this.year(),this.month()-this.month()%3,1);break;case"month":o=n(this.year(),this.month(),1);break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":o=n(this.year(),this.month(),this.date());break;case"hour":o=this._d.valueOf(),o-=Bn(o+(this._isUTC?0:this.utcOffset()*Ln),qr);break;case"minute":o=this._d.valueOf(),o-=Bn(o,Ln);break;case"second":o=this._d.valueOf(),o-=Bn(o,Xr);break}return this._d.setTime(o),K.updateOffset(this,!0),this}function Pm(e){var o,n;if(e=ut(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Wl:$l,e){case"year":o=n(this.year()+1,0,1)-1;break;case"quarter":o=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":o=n(this.year(),this.month()+1,1)-1;break;case"week":o=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":o=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":o=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":o=this._d.valueOf(),o+=qr-Bn(o+(this._isUTC?0:this.utcOffset()*Ln),qr)-1;break;case"minute":o=this._d.valueOf(),o+=Ln-Bn(o,Ln)-1;break;case"second":o=this._d.valueOf(),o+=Xr-Bn(o,Xr)-1;break}return this._d.setTime(o),K.updateOffset(this,!0),this}function Om(){return this._d.valueOf()-(this._offset||0)*6e4}function Lm(){return Math.floor(this.valueOf()/1e3)}function Bm(){return new Date(this.valueOf())}function Fm(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Hm(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Vm(){return this.isValid()?this.toISOString():null}function km(){return Jo(this)}function Um(){return on({},me(this))}function Ym(){return me(this).overflow}function jm(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}oe("N",0,0,"eraAbbr"),oe("NN",0,0,"eraAbbr"),oe("NNN",0,0,"eraAbbr"),oe("NNNN",0,0,"eraName"),oe("NNNNN",0,0,"eraNarrow"),oe("y",["y",1],"yo","eraYear"),oe("y",["yy",2],0,"eraYear"),oe("y",["yyy",3],0,"eraYear"),oe("y",["yyyy",4],0,"eraYear"),te("N",Ca),te("NN",Ca),te("NNN",Ca),te("NNNN",_m),te("NNNNN",ev),Se(["N","NN","NNN","NNNN","NNNNN"],function(e,o,n,r){var t=n._locale.erasParse(e,r,n._strict);t?me(n).era=t:me(n).invalidEra=e}),te("y",Rn),te("yy",Rn),te("yyy",Rn),te("yyyy",Rn),te("yo",tv),Se(["y","yy","yyy","yyyy"],Ue),Se(["yo"],function(e,o,n,r){var t;n._locale._eraYearOrdinalRegex&&(t=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?o[Ue]=n._locale.eraYearOrdinalParse(e,t):o[Ue]=parseInt(e,10)});function zm(e,o){var n,r,t,a=this._eras||zt("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":t=K(a[n].since).startOf("day"),a[n].since=t.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":t=K(a[n].until).startOf("day").valueOf(),a[n].until=t.valueOf();break}}return a}function $m(e,o,n){var r,t,a=this.eras(),i,l,s;for(e=e.toUpperCase(),r=0,t=a.length;r<t;++r)if(i=a[r].name.toUpperCase(),l=a[r].abbr.toUpperCase(),s=a[r].narrow.toUpperCase(),n)switch(o){case"N":case"NN":case"NNN":if(l===e)return a[r];break;case"NNNN":if(i===e)return a[r];break;case"NNNNN":if(s===e)return a[r];break}else if([i,l,s].indexOf(e)>=0)return a[r]}function Wm(e,o){var n=e.since<=e.until?1:-1;return o===void 0?K(e.since).year():K(e.since).year()+(o-e.offset)*n}function Gm(){var e,o,n,r=this.localeData().eras();for(e=0,o=r.length;e<o;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function Qm(){var e,o,n,r=this.localeData().eras();for(e=0,o=r.length;e<o;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function Jm(){var e,o,n,r=this.localeData().eras();for(e=0,o=r.length;e<o;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function Km(){var e,o,n,r,t=this.localeData().eras();for(e=0,o=t.length;e<o;++e)if(n=t[e].since<=t[e].until?1:-1,r=this.clone().startOf("day").valueOf(),t[e].since<=r&&r<=t[e].until||t[e].until<=r&&r<=t[e].since)return(this.year()-K(t[e].since).year())*n+t[e].offset;return this.year()}function Zm(e){return Ce(this,"_erasNameRegex")||Ea.call(this),e?this._erasNameRegex:this._erasRegex}function Xm(e){return Ce(this,"_erasAbbrRegex")||Ea.call(this),e?this._erasAbbrRegex:this._erasRegex}function qm(e){return Ce(this,"_erasNarrowRegex")||Ea.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ca(e,o){return o.erasAbbrRegex(e)}function _m(e,o){return o.erasNameRegex(e)}function ev(e,o){return o.erasNarrowRegex(e)}function tv(e,o){return o._eraYearOrdinalRegex||Rn}function Ea(){var e=[],o=[],n=[],r=[],t,a,i,l,s,u=this.eras();for(t=0,a=u.length;t<a;++t)i=kt(u[t].name),l=kt(u[t].abbr),s=kt(u[t].narrow),o.push(i),e.push(l),n.push(s),r.push(i),r.push(l),r.push(s);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}oe(0,["gg",2],0,function(){return this.weekYear()%100}),oe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function _r(e,o){oe(0,[e,e.length],0,o)}_r("gggg","weekYear"),_r("ggggg","weekYear"),_r("GGGG","isoWeekYear"),_r("GGGGG","isoWeekYear"),te("G",Yr),te("g",Yr),te("GG",we,rt),te("gg",we,rt),te("GGGG",oa,ra),te("gggg",oa,ra),te("GGGGG",Ur,Vr),te("ggggg",Ur,Vr),Xn(["gggg","ggggg","GGGG","GGGGG"],function(e,o,n,r){o[r.substr(0,2)]=ge(e)}),Xn(["gg","GG"],function(e,o,n,r){o[r]=K.parseTwoDigitYear(e)});function nv(e){return Gl.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function rv(e){return Gl.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function ov(){return jt(this.year(),1,4)}function av(){return jt(this.isoWeekYear(),1,4)}function iv(){var e=this.localeData()._week;return jt(this.year(),e.dow,e.doy)}function lv(){var e=this.localeData()._week;return jt(this.weekYear(),e.dow,e.doy)}function Gl(e,o,n,r,t){var a;return e==null?tr(this,r,t).year:(a=jt(e,r,t),o>a&&(o=a),sv.call(this,e,o,n,r,t))}function sv(e,o,n,r,t){var a=xl(e,o,n,r,t),i=er(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}oe("Q",0,"Qo","quarter"),te("Q",fl),Se("Q",function(e,o){o[Ut]=(ge(e)-1)*3});function cv(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}oe("D",["DD",2],"Do","date"),te("D",we,In),te("DD",we,rt),te("Do",function(e,o){return e?o._dayOfMonthOrdinalParse||o._ordinalParse:o._dayOfMonthOrdinalParseLenient}),Se(["D","DD"],Pt),Se("Do",function(e,o){o[Pt]=ge(e.match(we)[0])});var Ql=Pn("Date",!0);oe("DDD",["DDDD",3],"DDDo","dayOfYear"),te("DDD",kr),te("DDDD",hl),Se(["DDD","DDDD"],function(e,o,n){n._dayOfYear=ge(e)});function uv(e){var o=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?o:this.add(e-o,"d")}oe("m",["mm",2],0,"minute"),te("m",we,aa),te("mm",we,rt),Se(["m","mm"],xt);var dv=Pn("Minutes",!1);oe("s",["ss",2],0,"second"),te("s",we,aa),te("ss",we,rt),Se(["s","ss"],Yt);var fv=Pn("Seconds",!1);oe("S",0,0,function(){return~~(this.millisecond()/100)}),oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),te("S",kr,fl),te("SS",kr,rt),te("SSS",kr,hl);var ln,Jl;for(ln="SSSS";ln.length<=9;ln+="S")te(ln,Rn);function hv(e,o){o[mn]=ge(("0."+e)*1e3)}for(ln="S";ln.length<=9;ln+="S")Se(ln,hv);Jl=Pn("Milliseconds",!1),oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");function mv(){return this._isUTC?"UTC":""}function vv(){return this._isUTC?"Coordinated Universal Time":""}var Q=Kn.prototype;Q.add=lm,Q.calendar=mm,Q.clone=vm,Q.diff=Sm,Q.endOf=Pm,Q.format=Dm,Q.from=Mm,Q.fromNow=bm,Q.to=Nm,Q.toNow=Rm,Q.get=Tf,Q.invalidAt=Ym,Q.isAfter=pm,Q.isBefore=gm,Q.isBetween=ym,Q.isSame=Am,Q.isSameOrAfter=Cm,Q.isSameOrBefore=Em,Q.isValid=km,Q.lang=Yl,Q.locale=Ul,Q.localeData=jl,Q.max=kh,Q.min=Vh,Q.parsingFlags=Um,Q.set=Df,Q.startOf=Im,Q.subtract=sm,Q.toArray=Fm,Q.toObject=Hm,Q.toDate=Bm,Q.toISOString=wm,Q.inspect=Tm,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=Vm,Q.toString=xm,Q.unix=Lm,Q.valueOf=Om,Q.creationData=jm,Q.eraName=Gm,Q.eraNarrow=Qm,Q.eraAbbr=Jm,Q.eraYear=Km,Q.year=pl,Q.isLeapYear=wf,Q.weekYear=nv,Q.isoWeekYear=rv,Q.quarter=Q.quarters=cv,Q.month=El,Q.daysInMonth=Bf,Q.week=Q.weeks=zf,Q.isoWeek=Q.isoWeeks=$f,Q.weeksInYear=iv,Q.weeksInWeekYear=lv,Q.isoWeeksInYear=ov,Q.isoWeeksInISOWeekYear=av,Q.date=Ql,Q.day=Q.days=rh,Q.weekday=oh,Q.isoWeekday=ah,Q.dayOfYear=uv,Q.hour=Q.hours=fh,Q.minute=Q.minutes=dv,Q.second=Q.seconds=fv,Q.millisecond=Q.milliseconds=Jl,Q.utcOffset=Jh,Q.utc=Zh,Q.local=Xh,Q.parseZone=qh,Q.hasAlignedHourOffset=_h,Q.isDST=em,Q.isLocal=nm,Q.isUtcOffset=rm,Q.isUtc=Bl,Q.isUTC=Bl,Q.zoneAbbr=mv,Q.zoneName=vv,Q.dates=ct("dates accessor is deprecated. Use date instead.",Ql),Q.months=ct("months accessor is deprecated. Use month instead",El),Q.years=ct("years accessor is deprecated. Use year instead",pl),Q.zone=ct("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Kh),Q.isDSTShifted=ct("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",tm);function pv(e){return Te(e*1e3)}function gv(){return Te.apply(null,arguments).parseZone()}function Kl(e){return e}var Ee=qo.prototype;Ee.calendar=tf,Ee.longDateFormat=af,Ee.invalidDate=sf,Ee.ordinal=df,Ee.preparse=Kl,Ee.postformat=Kl,Ee.relativeTime=hf,Ee.pastFuture=mf,Ee.set=_d,Ee.eras=zm,Ee.erasParse=$m,Ee.erasConvertYear=Wm,Ee.erasAbbrRegex=Xm,Ee.erasNameRegex=Zm,Ee.erasNarrowRegex=qm,Ee.months=If,Ee.monthsShort=Pf,Ee.monthsParse=Lf,Ee.monthsRegex=Hf,Ee.monthsShortRegex=Ff,Ee.week=kf,Ee.firstDayOfYear=jf,Ee.firstDayOfWeek=Yf,Ee.weekdays=qf,Ee.weekdaysMin=eh,Ee.weekdaysShort=_f,Ee.weekdaysParse=nh,Ee.weekdaysRegex=ih,Ee.weekdaysShortRegex=lh,Ee.weekdaysMinRegex=sh,Ee.isPM=uh,Ee.meridiem=hh;function eo(e,o,n,r){var t=zt(),a=Nt().set(r,o);return t[n](a,e)}function Zl(e,o,n){if(Vt(e)&&(o=e,e=void 0),e=e||"",o!=null)return eo(e,o,n,"month");var r,t=[];for(r=0;r<12;r++)t[r]=eo(e,r,n,"month");return t}function Sa(e,o,n,r){typeof e=="boolean"?(Vt(o)&&(n=o,o=void 0),o=o||""):(o=e,n=o,e=!1,Vt(o)&&(n=o,o=void 0),o=o||"");var t=zt(),a=e?t._week.dow:0,i,l=[];if(n!=null)return eo(o,(n+a)%7,r,"day");for(i=0;i<7;i++)l[i]=eo(o,(i+a)%7,r,"day");return l}function yv(e,o){return Zl(e,o,"months")}function Av(e,o){return Zl(e,o,"monthsShort")}function Cv(e,o,n){return Sa(e,o,n,"weekdays")}function Ev(e,o,n){return Sa(e,o,n,"weekdaysShort")}function Sv(e,o,n){return Sa(e,o,n,"weekdaysMin")}an("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var o=e%10,n=ge(e%100/10)===1?"th":o===1?"st":o===2?"nd":o===3?"rd":"th";return e+n}}),K.lang=ct("moment.lang is deprecated. Use moment.locale instead.",an),K.langData=ct("moment.langData is deprecated. Use moment.localeData instead.",zt);var $t=Math.abs;function xv(){var e=this._data;return this._milliseconds=$t(this._milliseconds),this._days=$t(this._days),this._months=$t(this._months),e.milliseconds=$t(e.milliseconds),e.seconds=$t(e.seconds),e.minutes=$t(e.minutes),e.hours=$t(e.hours),e.months=$t(e.months),e.years=$t(e.years),this}function Xl(e,o,n,r){var t=wt(o,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function wv(e,o){return Xl(this,e,o,1)}function Tv(e,o){return Xl(this,e,o,-1)}function ql(e){return e<0?Math.floor(e):Math.ceil(e)}function Dv(){var e=this._milliseconds,o=this._days,n=this._months,r=this._data,t,a,i,l,s;return e>=0&&o>=0&&n>=0||e<=0&&o<=0&&n<=0||(e+=ql(xa(n)+o)*864e5,o=0,n=0),r.milliseconds=e%1e3,t=dt(e/1e3),r.seconds=t%60,a=dt(t/60),r.minutes=a%60,i=dt(a/60),r.hours=i%24,o+=dt(i/24),s=dt(_l(o)),n+=s,o-=ql(xa(s)),l=dt(n/12),n%=12,r.days=o,r.months=n,r.years=l,this}function _l(e){return e*4800/146097}function xa(e){return e*146097/4800}function Mv(e){if(!this.isValid())return NaN;var o,n,r=this._milliseconds;if(e=ut(e),e==="month"||e==="quarter"||e==="year")switch(o=this._days+r/864e5,n=this._months+_l(o),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(o=this._days+Math.round(xa(this._months)),e){case"week":return o/7+r/6048e5;case"day":return o+r/864e5;case"hour":return o*24+r/36e5;case"minute":return o*1440+r/6e4;case"second":return o*86400+r/1e3;case"millisecond":return Math.floor(o*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Wt(e){return function(){return this.as(e)}}var es=Wt("ms"),bv=Wt("s"),Nv=Wt("m"),Rv=Wt("h"),Iv=Wt("d"),Pv=Wt("w"),Ov=Wt("M"),Lv=Wt("Q"),Bv=Wt("y"),Fv=es;function Hv(){return wt(this)}function Vv(e){return e=ut(e),this.isValid()?this[e+"s"]():NaN}function pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var kv=pn("milliseconds"),Uv=pn("seconds"),Yv=pn("minutes"),jv=pn("hours"),zv=pn("days"),$v=pn("months"),Wv=pn("years");function Gv(){return dt(this.days()/7)}var Gt=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qv(e,o,n,r,t){return t.relativeTime(o||1,!!n,e,r)}function Jv(e,o,n,r){var t=wt(e).abs(),a=Gt(t.as("s")),i=Gt(t.as("m")),l=Gt(t.as("h")),s=Gt(t.as("d")),u=Gt(t.as("M")),h=Gt(t.as("w")),f=Gt(t.as("y")),g=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||i<=1&&["m"]||i<n.m&&["mm",i]||l<=1&&["h"]||l<n.h&&["hh",l]||s<=1&&["d"]||s<n.d&&["dd",s];return n.w!=null&&(g=g||h<=1&&["w"]||h<n.w&&["ww",h]),g=g||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f],g[2]=o,g[3]=+e>0,g[4]=r,Qv.apply(null,g)}function Kv(e){return e===void 0?Gt:typeof e=="function"?(Gt=e,!0):!1}function Zv(e,o){return Fn[e]===void 0?!1:o===void 0?Fn[e]:(Fn[e]=o,e==="s"&&(Fn.ss=o-1),!0)}function Xv(e,o){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Fn,t,a;return typeof e=="object"&&(o=e,e=!1),typeof e=="boolean"&&(n=e),typeof o=="object"&&(r=Object.assign({},Fn,o),o.s!=null&&o.ss==null&&(r.ss=o.s-1)),t=this.localeData(),a=Jv(this,!n,r,t),n&&(a=t.pastFuture(+this,a)),t.postformat(a)}var wa=Math.abs;function Hn(e){return(e>0)-(e<0)||+e}function to(){if(!this.isValid())return this.localeData().invalidDate();var e=wa(this._milliseconds)/1e3,o=wa(this._days),n=wa(this._months),r,t,a,i,l=this.asSeconds(),s,u,h,f;return l?(r=dt(e/60),t=dt(r/60),e%=60,r%=60,a=dt(n/12),n%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=l<0?"-":"",u=Hn(this._months)!==Hn(l)?"-":"",h=Hn(this._days)!==Hn(l)?"-":"",f=Hn(this._milliseconds)!==Hn(l)?"-":"",s+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(o?h+o+"D":"")+(t||r||e?"T":"")+(t?f+t+"H":"")+(r?f+r+"M":"")+(e?f+i+"S":"")):"P0D"}var ye=Jr.prototype;ye.isValid=$h,ye.abs=xv,ye.add=wv,ye.subtract=Tv,ye.as=Mv,ye.asMilliseconds=es,ye.asSeconds=bv,ye.asMinutes=Nv,ye.asHours=Rv,ye.asDays=Iv,ye.asWeeks=Pv,ye.asMonths=Ov,ye.asQuarters=Lv,ye.asYears=Bv,ye.valueOf=Fv,ye._bubble=Dv,ye.clone=Hv,ye.get=Vv,ye.milliseconds=kv,ye.seconds=Uv,ye.minutes=Yv,ye.hours=jv,ye.days=zv,ye.weeks=Gv,ye.months=$v,ye.years=Wv,ye.humanize=Xv,ye.toISOString=to,ye.toString=to,ye.toJSON=to,ye.locale=Ul,ye.localeData=jl,ye.toIsoString=ct("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",to),ye.lang=Yl,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),te("x",Yr),te("X",yf),Se("X",function(e,o,n){n._d=new Date(parseFloat(e)*1e3)}),Se("x",function(e,o,n){n._d=new Date(ge(e))});//! moment.js
K.version="2.30.1",Xd(Te),K.fn=Q,K.min=Uh,K.max=Yh,K.now=jh,K.utc=Nt,K.unix=pv,K.months=yv,K.isDate=Jn,K.locale=an,K.invalid=Br,K.duration=wt,K.isMoment=St,K.weekdays=Cv,K.parseZone=gv,K.localeData=zt,K.isDuration=Kr,K.monthsShort=Av,K.weekdaysMin=Sv,K.defineLocale=da,K.updateLocale=gh,K.locales=yh,K.weekdaysShort=Ev,K.normalizeUnits=ut,K.relativeTimeRounding=Kv,K.relativeTimeThreshold=Zv,K.calendarFormat=hm,K.prototype=Q,K.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const no=(e,o)=>{const n=e.__vccOpts||e;for(const[r,t]of o)n[r]=t;return n},qv={name:"Loading"},_v={class:"loading-spinner"};function e1(e,o,n,r,t,a){return c.openBlock(),c.createElementBlock("div",_v,o[0]||(o[0]=[c.createElementVNode("svg",{viewBox:"25 25 50 50",class:"circular"},[c.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",class:"path"})],-1)]))}const ts=no(qv,[["render",e1],["__scopeId","data-v-867655f8"]]);/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */const{entries:ns,setPrototypeOf:rs,isFrozen:t1,getPrototypeOf:n1,getOwnPropertyDescriptor:r1}=Object;let{freeze:ze,seal:ft,create:os}=Object,{apply:Ta,construct:Da}=typeof Reflect<"u"&&Reflect;ze||(ze=function(o){return o}),ft||(ft=function(o){return o}),Ta||(Ta=function(o,n,r){return o.apply(n,r)}),Da||(Da=function(o,n){return new o(...n)});const ro=We(Array.prototype.forEach),o1=We(Array.prototype.lastIndexOf),as=We(Array.prototype.pop),ar=We(Array.prototype.push),a1=We(Array.prototype.splice),oo=We(String.prototype.toLowerCase),Ma=We(String.prototype.toString),is=We(String.prototype.match),ir=We(String.prototype.replace),i1=We(String.prototype.indexOf),l1=We(String.prototype.trim),Tt=We(Object.prototype.hasOwnProperty),$e=We(RegExp.prototype.test),lr=s1(TypeError);function We(e){return function(o){for(var n=arguments.length,r=new Array(n>1?n-1:0),t=1;t<n;t++)r[t-1]=arguments[t];return Ta(e,o,r)}}function s1(e){return function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];return Da(e,n)}}function ve(e,o){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oo;rs&&rs(e,null);let r=o.length;for(;r--;){let t=o[r];if(typeof t=="string"){const a=n(t);a!==t&&(t1(o)||(o[r]=a),t=a)}e[t]=!0}return e}function c1(e){for(let o=0;o<e.length;o++)Tt(e,o)||(e[o]=null);return e}function gn(e){const o=os(null);for(const[n,r]of ns(e))Tt(e,n)&&(Array.isArray(r)?o[n]=c1(r):r&&typeof r=="object"&&r.constructor===Object?o[n]=gn(r):o[n]=r);return o}function sr(e,o){for(;e!==null;){const r=r1(e,o);if(r){if(r.get)return We(r.get);if(typeof r.value=="function")return We(r.value)}e=n1(e)}function n(){return null}return n}const ls=ze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ba=ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Na=ze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),u1=ze(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ra=ze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),d1=ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ss=ze(["#text"]),cs=ze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ia=ze(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),us=ze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ao=ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),f1=ft(/\{\{[\w\W]*|[\w\W]*\}\}/gm),h1=ft(/<%[\w\W]*|[\w\W]*%>/gm),m1=ft(/\$\{[\w\W]*/gm),v1=ft(/^data-[\-\w.\u00B7-\uFFFF]+$/),p1=ft(/^aria-[\-\w]+$/),ds=ft(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),g1=ft(/^(?:\w+script|data):/i),y1=ft(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fs=ft(/^html$/i),A1=ft(/^[a-z][.\w]*(-[.\w]+)+$/i);var hs=Object.freeze({__proto__:null,ARIA_ATTR:p1,ATTR_WHITESPACE:y1,CUSTOM_ELEMENT:A1,DATA_ATTR:v1,DOCTYPE_NAME:fs,ERB_EXPR:h1,IS_ALLOWED_URI:ds,IS_SCRIPT_OR_DATA:g1,MUSTACHE_EXPR:f1,TMPLIT_EXPR:m1});const cr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},C1=function(){return typeof window>"u"?null:window},E1=function(o,n){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let r=null;const t="data-tt-policy-suffix";n&&n.hasAttribute(t)&&(r=n.getAttribute(t));const a="dompurify"+(r?"#"+r:"");try{return o.createPolicy(a,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},ms=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function vs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C1();const o=ie=>vs(ie);if(o.version="3.2.4",o.removed=[],!e||!e.document||e.document.nodeType!==cr.document||!e.Element)return o.isSupported=!1,o;let{document:n}=e;const r=n,t=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:i,Node:l,Element:s,NodeFilter:u,NamedNodeMap:h=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:g,trustedTypes:p}=e,d=s.prototype,v=sr(d,"cloneNode"),m=sr(d,"remove"),A=sr(d,"nextSibling"),y=sr(d,"childNodes"),C=sr(d,"parentNode");if(typeof i=="function"){const ie=n.createElement("template");ie.content&&ie.content.ownerDocument&&(n=ie.content.ownerDocument)}let E,S="";const{implementation:w,createNodeIterator:T,createDocumentFragment:b,getElementsByTagName:N}=n,{importNode:M}=r;let x=ms();o.isSupported=typeof ns=="function"&&typeof C=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:R,TMPLIT_EXPR:P,DATA_ATTR:I,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:H,CUSTOM_ELEMENT:k}=hs;let{IS_ALLOWED_URI:B}=hs,F=null;const Y=ve({},[...ls,...ba,...Na,...Ra,...ss]);let $=null;const W=ve({},[...cs,...Ia,...us,...ao]);let G=Object.seal(os(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),j=null,z=null,Z=!0,ee=!0,se=!1,pe=!0,xe=!1,Je=!0,mt=!1,Ye=!1,Xt=!1,it=!1,Ve=!1,et=!1,qt=!0,vt=!1;const xr="user-content-";let Lt=!0,lt=!1,st={},pt=null;const _t=ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let en=null;const gt=ve({},["audio","video","img","source","image","track"]);let yt=null;const Bt=ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",X="http://www.w3.org/2000/svg",le="http://www.w3.org/1999/xhtml";let de=le,_=!1,q=null;const ae=ve({},[ne,X,le],Ma);let ue=ve({},["mi","mo","mn","ms","mtext"]),he=ve({},["annotation-xml"]);const Pe=ve({},["title","style","font","a","script"]);let Fe=null;const At=["application/xhtml+xml","text/html"],Ke="text/html";let be=null,bt=null;const ui=n.createElement("form"),cu=function(V){return V instanceof RegExp||V instanceof Function},di=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(bt&&bt===V)){if((!V||typeof V!="object")&&(V={}),V=gn(V),Fe=At.indexOf(V.PARSER_MEDIA_TYPE)===-1?Ke:V.PARSER_MEDIA_TYPE,be=Fe==="application/xhtml+xml"?Ma:oo,F=Tt(V,"ALLOWED_TAGS")?ve({},V.ALLOWED_TAGS,be):Y,$=Tt(V,"ALLOWED_ATTR")?ve({},V.ALLOWED_ATTR,be):W,q=Tt(V,"ALLOWED_NAMESPACES")?ve({},V.ALLOWED_NAMESPACES,Ma):ae,yt=Tt(V,"ADD_URI_SAFE_ATTR")?ve(gn(Bt),V.ADD_URI_SAFE_ATTR,be):Bt,en=Tt(V,"ADD_DATA_URI_TAGS")?ve(gn(gt),V.ADD_DATA_URI_TAGS,be):gt,pt=Tt(V,"FORBID_CONTENTS")?ve({},V.FORBID_CONTENTS,be):_t,j=Tt(V,"FORBID_TAGS")?ve({},V.FORBID_TAGS,be):{},z=Tt(V,"FORBID_ATTR")?ve({},V.FORBID_ATTR,be):{},st=Tt(V,"USE_PROFILES")?V.USE_PROFILES:!1,Z=V.ALLOW_ARIA_ATTR!==!1,ee=V.ALLOW_DATA_ATTR!==!1,se=V.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=V.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xe=V.SAFE_FOR_TEMPLATES||!1,Je=V.SAFE_FOR_XML!==!1,mt=V.WHOLE_DOCUMENT||!1,it=V.RETURN_DOM||!1,Ve=V.RETURN_DOM_FRAGMENT||!1,et=V.RETURN_TRUSTED_TYPE||!1,Xt=V.FORCE_BODY||!1,qt=V.SANITIZE_DOM!==!1,vt=V.SANITIZE_NAMED_PROPS||!1,Lt=V.KEEP_CONTENT!==!1,lt=V.IN_PLACE||!1,B=V.ALLOWED_URI_REGEXP||ds,de=V.NAMESPACE||le,ue=V.MATHML_TEXT_INTEGRATION_POINTS||ue,he=V.HTML_INTEGRATION_POINTS||he,G=V.CUSTOM_ELEMENT_HANDLING||{},V.CUSTOM_ELEMENT_HANDLING&&cu(V.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=V.CUSTOM_ELEMENT_HANDLING.tagNameCheck),V.CUSTOM_ELEMENT_HANDLING&&cu(V.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=V.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),V.CUSTOM_ELEMENT_HANDLING&&typeof V.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(G.allowCustomizedBuiltInElements=V.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),xe&&(ee=!1),Ve&&(it=!0),st&&(F=ve({},ss),$=[],st.html===!0&&(ve(F,ls),ve($,cs)),st.svg===!0&&(ve(F,ba),ve($,Ia),ve($,ao)),st.svgFilters===!0&&(ve(F,Na),ve($,Ia),ve($,ao)),st.mathMl===!0&&(ve(F,Ra),ve($,us),ve($,ao))),V.ADD_TAGS&&(F===Y&&(F=gn(F)),ve(F,V.ADD_TAGS,be)),V.ADD_ATTR&&($===W&&($=gn($)),ve($,V.ADD_ATTR,be)),V.ADD_URI_SAFE_ATTR&&ve(yt,V.ADD_URI_SAFE_ATTR,be),V.FORBID_CONTENTS&&(pt===_t&&(pt=gn(pt)),ve(pt,V.FORBID_CONTENTS,be)),Lt&&(F["#text"]=!0),mt&&ve(F,["html","head","body"]),F.table&&(ve(F,["tbody"]),delete j.tbody),V.TRUSTED_TYPES_POLICY){if(typeof V.TRUSTED_TYPES_POLICY.createHTML!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof V.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw lr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');E=V.TRUSTED_TYPES_POLICY,S=E.createHTML("")}else E===void 0&&(E=E1(p,t)),E!==null&&typeof S=="string"&&(S=E.createHTML(""));ze&&ze(V),bt=V}},uu=ve({},[...ba,...Na,...u1]),du=ve({},[...Ra,...d1]),o2=function(V){let J=C(V);(!J||!J.tagName)&&(J={namespaceURI:de,tagName:"template"});const re=oo(V.tagName),Ne=oo(J.tagName);return q[V.namespaceURI]?V.namespaceURI===X?J.namespaceURI===le?re==="svg":J.namespaceURI===ne?re==="svg"&&(Ne==="annotation-xml"||ue[Ne]):!!uu[re]:V.namespaceURI===ne?J.namespaceURI===le?re==="math":J.namespaceURI===X?re==="math"&&he[Ne]:!!du[re]:V.namespaceURI===le?J.namespaceURI===X&&!he[Ne]||J.namespaceURI===ne&&!ue[Ne]?!1:!du[re]&&(Pe[re]||!uu[re]):!!(Fe==="application/xhtml+xml"&&q[V.namespaceURI]):!1},Ft=function(V){ar(o.removed,{element:V});try{C(V).removeChild(V)}catch{m(V)}},bo=function(V,J){try{ar(o.removed,{attribute:J.getAttributeNode(V),from:J})}catch{ar(o.removed,{attribute:null,from:J})}if(J.removeAttribute(V),V==="is")if(it||Ve)try{Ft(J)}catch{}else try{J.setAttribute(V,"")}catch{}},fu=function(V){let J=null,re=null;if(Xt)V="<remove></remove>"+V;else{const ke=is(V,/^[\r\n\t ]+/);re=ke&&ke[0]}Fe==="application/xhtml+xml"&&de===le&&(V='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+V+"</body></html>");const Ne=E?E.createHTML(V):V;if(de===le)try{J=new g().parseFromString(Ne,Fe)}catch{}if(!J||!J.documentElement){J=w.createDocument(de,"template",null);try{J.documentElement.innerHTML=_?S:Ne}catch{}}const je=J.body||J.documentElement;return V&&re&&je.insertBefore(n.createTextNode(re),je.childNodes[0]||null),de===le?N.call(J,mt?"html":"body")[0]:mt?J.documentElement:je},hu=function(V){return T.call(V.ownerDocument||V,V,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},fi=function(V){return V instanceof f&&(typeof V.nodeName!="string"||typeof V.textContent!="string"||typeof V.removeChild!="function"||!(V.attributes instanceof h)||typeof V.removeAttribute!="function"||typeof V.setAttribute!="function"||typeof V.namespaceURI!="string"||typeof V.insertBefore!="function"||typeof V.hasChildNodes!="function")},mu=function(V){return typeof l=="function"&&V instanceof l};function tn(ie,V,J){ro(ie,re=>{re.call(o,V,J,bt)})}const vu=function(V){let J=null;if(tn(x.beforeSanitizeElements,V,null),fi(V))return Ft(V),!0;const re=be(V.nodeName);if(tn(x.uponSanitizeElement,V,{tagName:re,allowedTags:F}),V.hasChildNodes()&&!mu(V.firstElementChild)&&$e(/<[/\w]/g,V.innerHTML)&&$e(/<[/\w]/g,V.textContent)||V.nodeType===cr.progressingInstruction||Je&&V.nodeType===cr.comment&&$e(/<[/\w]/g,V.data))return Ft(V),!0;if(!F[re]||j[re]){if(!j[re]&&gu(re)&&(G.tagNameCheck instanceof RegExp&&$e(G.tagNameCheck,re)||G.tagNameCheck instanceof Function&&G.tagNameCheck(re)))return!1;if(Lt&&!pt[re]){const Ne=C(V)||V.parentNode,je=y(V)||V.childNodes;if(je&&Ne){const ke=je.length;for(let tt=ke-1;tt>=0;--tt){const Ht=v(je[tt],!0);Ht.__removalCount=(V.__removalCount||0)+1,Ne.insertBefore(Ht,A(V))}}}return Ft(V),!0}return V instanceof s&&!o2(V)||(re==="noscript"||re==="noembed"||re==="noframes")&&$e(/<\/no(script|embed|frames)/i,V.innerHTML)?(Ft(V),!0):(xe&&V.nodeType===cr.text&&(J=V.textContent,ro([D,R,P],Ne=>{J=ir(J,Ne," ")}),V.textContent!==J&&(ar(o.removed,{element:V.cloneNode()}),V.textContent=J)),tn(x.afterSanitizeElements,V,null),!1)},pu=function(V,J,re){if(qt&&(J==="id"||J==="name")&&(re in n||re in ui))return!1;if(!(ee&&!z[J]&&$e(I,J))){if(!(Z&&$e(O,J))){if(!$[J]||z[J]){if(!(gu(V)&&(G.tagNameCheck instanceof RegExp&&$e(G.tagNameCheck,V)||G.tagNameCheck instanceof Function&&G.tagNameCheck(V))&&(G.attributeNameCheck instanceof RegExp&&$e(G.attributeNameCheck,J)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(J))||J==="is"&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&$e(G.tagNameCheck,re)||G.tagNameCheck instanceof Function&&G.tagNameCheck(re))))return!1}else if(!yt[J]){if(!$e(B,ir(re,H,""))){if(!((J==="src"||J==="xlink:href"||J==="href")&&V!=="script"&&i1(re,"data:")===0&&en[V])){if(!(se&&!$e(L,ir(re,H,"")))){if(re)return!1}}}}}}return!0},gu=function(V){return V!=="annotation-xml"&&is(V,k)},yu=function(V){tn(x.beforeSanitizeAttributes,V,null);const{attributes:J}=V;if(!J||fi(V))return;const re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$,forceKeepAttr:void 0};let Ne=J.length;for(;Ne--;){const je=J[Ne],{name:ke,namespaceURI:tt,value:Ht}=je,wr=be(ke);let Ze=ke==="value"?Ht:l1(Ht);if(re.attrName=wr,re.attrValue=Ze,re.keepAttr=!0,re.forceKeepAttr=void 0,tn(x.uponSanitizeAttribute,V,re),Ze=re.attrValue,vt&&(wr==="id"||wr==="name")&&(bo(ke,V),Ze=xr+Ze),Je&&$e(/((--!?|])>)|<\/(style|title)/i,Ze)){bo(ke,V);continue}if(re.forceKeepAttr||(bo(ke,V),!re.keepAttr))continue;if(!pe&&$e(/\/>/i,Ze)){bo(ke,V);continue}xe&&ro([D,R,P],Cu=>{Ze=ir(Ze,Cu," ")});const Au=be(V.nodeName);if(pu(Au,wr,Ze)){if(E&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!tt)switch(p.getAttributeType(Au,wr)){case"TrustedHTML":{Ze=E.createHTML(Ze);break}case"TrustedScriptURL":{Ze=E.createScriptURL(Ze);break}}try{tt?V.setAttributeNS(tt,ke,Ze):V.setAttribute(ke,Ze),fi(V)?Ft(V):as(o.removed)}catch{}}}tn(x.afterSanitizeAttributes,V,null)},a2=function ie(V){let J=null;const re=hu(V);for(tn(x.beforeSanitizeShadowDOM,V,null);J=re.nextNode();)tn(x.uponSanitizeShadowNode,J,null),vu(J),yu(J),J.content instanceof a&&ie(J.content);tn(x.afterSanitizeShadowDOM,V,null)};return o.sanitize=function(ie){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,re=null,Ne=null,je=null;if(_=!ie,_&&(ie="<!-->"),typeof ie!="string"&&!mu(ie))if(typeof ie.toString=="function"){if(ie=ie.toString(),typeof ie!="string")throw lr("dirty is not a string, aborting")}else throw lr("toString is not a function");if(!o.isSupported)return ie;if(Ye||di(V),o.removed=[],typeof ie=="string"&&(lt=!1),lt){if(ie.nodeName){const Ht=be(ie.nodeName);if(!F[Ht]||j[Ht])throw lr("root node is forbidden and cannot be sanitized in-place")}}else if(ie instanceof l)J=fu("<!---->"),re=J.ownerDocument.importNode(ie,!0),re.nodeType===cr.element&&re.nodeName==="BODY"||re.nodeName==="HTML"?J=re:J.appendChild(re);else{if(!it&&!xe&&!mt&&ie.indexOf("<")===-1)return E&&et?E.createHTML(ie):ie;if(J=fu(ie),!J)return it?null:et?S:""}J&&Xt&&Ft(J.firstChild);const ke=hu(lt?ie:J);for(;Ne=ke.nextNode();)vu(Ne),yu(Ne),Ne.content instanceof a&&a2(Ne.content);if(lt)return ie;if(it){if(Ve)for(je=b.call(J.ownerDocument);J.firstChild;)je.appendChild(J.firstChild);else je=J;return($.shadowroot||$.shadowrootmode)&&(je=M.call(r,je,!0)),je}let tt=mt?J.outerHTML:J.innerHTML;return mt&&F["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&$e(fs,J.ownerDocument.doctype.name)&&(tt="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
`+tt),xe&&ro([D,R,P],Ht=>{tt=ir(tt,Ht," ")}),E&&et?E.createHTML(tt):tt},o.setConfig=function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};di(ie),Ye=!0},o.clearConfig=function(){bt=null,Ye=!1},o.isValidAttribute=function(ie,V,J){bt||di({});const re=be(ie),Ne=be(V);return pu(re,Ne,J)},o.addHook=function(ie,V){typeof V=="function"&&ar(x[ie],V)},o.removeHook=function(ie,V){if(V!==void 0){const J=o1(x[ie],V);return J===-1?void 0:a1(x[ie],J,1)[0]}return as(x[ie])},o.removeHooks=function(ie){x[ie]=[]},o.removeAllHooks=function(){x=ms()},o}var Vn=vs();const Ge=typeof window<"u",Pa=Ge&&"IntersectionObserver"in window;function io(e,o){if(e===o)return!0;if(e instanceof Date&&o instanceof Date&&e.getTime()!==o.getTime()||e!==Object(e)||o!==Object(o))return!1;const n=Object.keys(e);return n.length!==Object.keys(o).length?!1:n.every(r=>io(e[r],o[r]))}function Ae(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${o}`:void 0}function S1(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function ps(e){let o;return e!==null&&typeof e=="object"&&((o=Object.getPrototypeOf(e))===Object.prototype||o===null)}function gs(e){if(e&&"$el"in e){const o=e.$el;return(o==null?void 0:o.nodeType)===Node.TEXT_NODE?o.nextElementSibling:o}return e}const ys=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function Oa(e,o){return o.every(n=>e.hasOwnProperty(n))}function As(e,o){const n={},r=new Set(Object.keys(e));for(const t of o)r.has(t)&&(n[t]=e[t]);return n}function Cs(e,o,n){const r=Object.create(null),t=Object.create(null);for(const a in e)o.some(i=>i instanceof RegExp?i.test(a):i===a)&&!(n!=null&&n.some(i=>i===a))?r[a]=e[a]:t[a]=e[a];return[r,t]}function Es(e,o){const n={...e};return o.forEach(r=>delete n[r]),n}function x1(e,o){const n={};return o.forEach(r=>n[r]=e[r]),n}const Ss=/^on[^a-z]/,La=e=>Ss.test(e),w1=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function T1(e){const[o,n]=Cs(e,[Ss]),r=Es(o,w1),[t,a]=Cs(n,["class","style","id",/^data-/]);return Object.assign(t,o),Object.assign(a,r),[t,a]}function yn(e){return e==null?[]:Array.isArray(e)?e:[e]}function ur(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(o,Math.min(n,e))}function xs(e,o){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+n.repeat(Math.max(0,o-e.length))}function D1(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,o)),r+=o;return n}function ws(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(e<o)return`${e} B`;const n=o===1024?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;for(;Math.abs(e)>=o&&r<n.length-1;)e/=o,++r;return`${e.toFixed(1)} ${n[r]}B`}function Qt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const t in e)r[t]=e[t];for(const t in o){const a=e[t],i=o[t];if(ps(a)&&ps(i)){r[t]=Qt(a,i,n);continue}if(n&&Array.isArray(a)&&Array.isArray(i)){r[t]=n(a,i);continue}r[t]=i}return r}function Ts(e){return e.map(o=>o.type===c.Fragment?Ts(o.children):o).flat()}function An(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(An.cache.has(e))return An.cache.get(e);const o=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return An.cache.set(e,o),o}An.cache=new Map;function dr(e,o){if(!o||typeof o!="object")return[];if(Array.isArray(o))return o.map(n=>dr(e,n)).flat(1);if(o.suspense)return dr(e,o.ssContent);if(Array.isArray(o.children))return o.children.map(n=>dr(e,n)).flat(1);if(o.component){if(Object.getOwnPropertySymbols(o.component.provides).includes(e))return[o.component];if(o.component.subTree)return dr(e,o.component.subTree).flat(1)}return[]}function Ba(e){const o=c.reactive({}),n=c.computed(e);return c.watchEffect(()=>{for(const r in n.value)o[r]=n.value[r]},{flush:"sync"}),c.toRefs(o)}function lo(e,o){return e.includes(o)}function Ds(e){return e[2].toLowerCase()+e.slice(3)}const Jt=()=>[Function,Array];function Ms(e,o){return o="on"+c.capitalize(o),!!(e[o]||e[`${o}Once`]||e[`${o}Capture`]||e[`${o}OnceCapture`]||e[`${o}CaptureOnce`])}function M1(e){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const t of e)t(...n);else typeof e=="function"&&e(...n)}function b1(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(r=>`${r}${o?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(n)]}function N1(e,o){if(!(Ge&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${o})`)))return null;try{return!!e&&e.matches(o)}catch{return null}}function R1(e,o){if(!Ge||e===0)return o(),()=>{};const n=window.setTimeout(o,e);return()=>window.clearTimeout(n)}function Fa(){const e=c.shallowRef(),o=n=>{e.value=n};return Object.defineProperty(o,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(o,"el",{enumerable:!0,get:()=>gs(e.value)}),o}const bs=["top","bottom"],I1=["start","end","left","right"];function Ha(e,o){let[n,r]=e.split(" ");return r||(r=lo(bs,n)?"start":lo(I1,n)?"top":"center"),{side:Ns(n,o),align:Ns(r,o)}}function Ns(e,o){return e==="start"?o?"right":"left":e==="end"?o?"left":"right":e}function Va(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function ka(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function Rs(e){return{side:e.align,align:e.side}}function Is(e){return lo(bs,e.side)?"y":"x"}class Cn{constructor(o){let{x:n,y:r,width:t,height:a}=o;this.x=n,this.y=r,this.width=t,this.height=a}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function Ps(e,o){return{x:{before:Math.max(0,o.left-e.left),after:Math.max(0,e.right-o.right)},y:{before:Math.max(0,o.top-e.top),after:Math.max(0,e.bottom-o.bottom)}}}function P1(e){return Array.isArray(e)?new Cn({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Os(e){const o=e.getBoundingClientRect(),n=getComputedStyle(e),r=n.transform;if(r){let t,a,i,l,s;if(r.startsWith("matrix3d("))t=r.slice(9,-1).split(/, /),a=+t[0],i=+t[5],l=+t[12],s=+t[13];else if(r.startsWith("matrix("))t=r.slice(7,-1).split(/, /),a=+t[0],i=+t[3],l=+t[4],s=+t[5];else return new Cn(o);const u=n.transformOrigin,h=o.x-l-(1-a)*parseFloat(u),f=o.y-s-(1-i)*parseFloat(u.slice(u.indexOf(" ")+1)),g=a?o.width/a:e.offsetWidth+1,p=i?o.height/i:e.offsetHeight+1;return new Cn({x:h,y:f,width:g,height:p})}else return new Cn(o)}function Ls(e,o,n){if(typeof e.animate>"u")return{finished:Promise.resolve()};let r;try{r=e.animate(o,n)}catch{return{finished:Promise.resolve()}}return typeof r.finished>"u"&&(r.finished=new Promise(t=>{r.onfinish=()=>{t(r)}})),r}const so=new WeakMap;function O1(e,o){Object.keys(o).forEach(n=>{if(La(n)){const r=Ds(n),t=so.get(e);if(o[n]==null)t==null||t.forEach(a=>{const[i,l]=a;i===r&&(e.removeEventListener(r,l),t.delete(a))});else if(!t||![...t].some(a=>a[0]===r&&a[1]===o[n])){e.addEventListener(r,o[n]);const a=t||new Set;a.add([r,o[n]]),so.has(e)||so.set(e,a)}}else o[n]==null?e.removeAttribute(n):e.setAttribute(n,o[n])})}function L1(e,o){Object.keys(o).forEach(n=>{if(La(n)){const r=Ds(n),t=so.get(e);t==null||t.forEach(a=>{const[i,l]=a;i===r&&(e.removeEventListener(r,l),t.delete(a))})}else e.removeAttribute(n)})}const kn=2.4,Bs=.2126729,Fs=.7151522,Hs=.072175,B1=.55,F1=.58,H1=.57,V1=.62,co=.03,Vs=1.45,k1=5e-4,U1=1.25,Y1=1.25,ks=.078,Us=12.82051282051282,uo=.06,Ys=.001;function js(e,o){const n=(e.r/255)**kn,r=(e.g/255)**kn,t=(e.b/255)**kn,a=(o.r/255)**kn,i=(o.g/255)**kn,l=(o.b/255)**kn;let s=n*Bs+r*Fs+t*Hs,u=a*Bs+i*Fs+l*Hs;if(s<=co&&(s+=(co-s)**Vs),u<=co&&(u+=(co-u)**Vs),Math.abs(u-s)<k1)return 0;let h;if(u>s){const f=(u**B1-s**F1)*U1;h=f<Ys?0:f<ks?f-f*Us*uo:f-uo}else{const f=(u**V1-s**H1)*Y1;h=f>-Ys?0:f>-ks?f-f*Us*uo:f+uo}return h*100}function En(e){c.warn(`Vuetify: ${e}`)}function j1(e){c.warn(`Vuetify error: ${e}`)}function Ua(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function z1(e){return Ua(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const zs=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,$1={rgb:(e,o,n,r)=>({r:e,g:o,b:n,a:r}),rgba:(e,o,n,r)=>({r:e,g:o,b:n,a:r}),hsl:(e,o,n,r)=>$s({h:e,s:o,l:n,a:r}),hsla:(e,o,n,r)=>$s({h:e,s:o,l:n,a:r}),hsv:(e,o,n,r)=>hr({h:e,s:o,v:n,a:r}),hsva:(e,o,n,r)=>hr({h:e,s:o,v:n,a:r})};function fr(e){if(typeof e=="number")return(isNaN(e)||e<0||e>16777215)&&En(`'${e}' is not a valid hex color`),{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&zs.test(e)){const{groups:o}=e.match(zs),{fn:n,values:r}=o,t=r.split(/,\s*/).map(a=>a.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return $1[n](...t)}else if(typeof e=="string"){let o=e.startsWith("#")?e.slice(1):e;[3,4].includes(o.length)?o=o.split("").map(r=>r+r).join(""):[6,8].includes(o.length)||En(`'${e}' is not a valid hex(a) color`);const n=parseInt(o,16);return(isNaN(n)||n<0||n>4294967295)&&En(`'${e}' is not a valid hex(a) color`),W1(o)}else if(typeof e=="object"){if(Oa(e,["r","g","b"]))return e;if(Oa(e,["h","s","l"]))return hr(Ws(e));if(Oa(e,["h","s","v"]))return hr(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function hr(e){const{h:o,s:n,v:r,a:t}=e,a=l=>{const s=(l+o/60)%6;return r-r*n*Math.max(Math.min(s,4-s,1),0)},i=[a(5),a(3),a(1)].map(l=>Math.round(l*255));return{r:i[0],g:i[1],b:i[2],a:t}}function $s(e){return hr(Ws(e))}function Ws(e){const{h:o,s:n,l:r,a:t}=e,a=r+n*Math.min(r,1-r),i=a===0?0:2-2*r/a;return{h:o,s:i,v:a,a:t}}function W1(e){e=G1(e);let[o,n,r,t]=D1(e,2).map(a=>parseInt(a,16));return t=t===void 0?t:t/255,{r:o,g:n,b:r,a:t}}function G1(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(o=>o+o).join("")),e.length!==6&&(e=xs(xs(e,6),8,"F")),e}function Q1(e){const o=Math.abs(js(fr(0),fr(e)));return Math.abs(js(fr(16777215),fr(e)))>Math.min(o,50)?"#fff":"#000"}function ce(e,o){return n=>Object.keys(e).reduce((r,t)=>{const i=typeof e[t]=="object"&&e[t]!=null&&!Array.isArray(e[t])?e[t]:{type:e[t]};return n&&t in n?r[t]={...i,default:n[t]}:r[t]=i,o&&!r[t].source&&(r[t].source=o),r},{})}const Be=ce({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function He(e,o){const n=c.getCurrentInstance();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Ot(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const o=He(e).type;return An((o==null?void 0:o.aliasName)||(o==null?void 0:o.name))}let Gs=0,fo=new WeakMap;function Un(){const e=He("getUid");if(fo.has(e))return fo.get(e);{const o=Gs++;return fo.set(e,o),o}}Un.reset=()=>{Gs=0,fo=new WeakMap};function J1(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:He("injectSelf");const{provides:n}=o;if(n&&e in n)return n[e]}const ho=Symbol.for("vuetify:defaults");function Ya(){const e=c.inject(ho);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function ja(e,o){const n=Ya(),r=c.ref(e),t=c.computed(()=>{if(c.unref(o==null?void 0:o.disabled))return n.value;const i=c.unref(o==null?void 0:o.scoped),l=c.unref(o==null?void 0:o.reset),s=c.unref(o==null?void 0:o.root);if(r.value==null&&!(i||l||s))return n.value;let u=Qt(r.value,{prev:n.value});if(i)return u;if(l||s){const h=Number(l||1/0);for(let f=0;f<=h&&!(!u||!("prev"in u));f++)u=u.prev;return u&&typeof s=="string"&&s in u&&(u=Qt(Qt(u,{prev:u}),u[s])),u}return u.prev?Qt(u.prev,u):u});return c.provide(ho,t),t}function K1(e,o){var n,r;return typeof((n=e.props)==null?void 0:n[o])<"u"||typeof((r=e.props)==null?void 0:r[An(o)])<"u"}function Z1(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ya();const r=He("useDefaults");if(o=o??r.type.name??r.type.__name,!o)throw new Error("[Vuetify] Could not determine component name");const t=c.computed(()=>{var s;return(s=n.value)==null?void 0:s[e._as??o]}),a=new Proxy(e,{get(s,u){var f,g,p,d,v,m,A;const h=Reflect.get(s,u);return u==="class"||u==="style"?[(f=t.value)==null?void 0:f[u],h].filter(y=>y!=null):typeof u=="string"&&!K1(r.vnode,u)?((g=t.value)==null?void 0:g[u])!==void 0?(p=t.value)==null?void 0:p[u]:((v=(d=n.value)==null?void 0:d.global)==null?void 0:v[u])!==void 0?(A=(m=n.value)==null?void 0:m.global)==null?void 0:A[u]:h:h}}),i=c.shallowRef();c.watchEffect(()=>{if(t.value){const s=Object.entries(t.value).filter(u=>{let[h]=u;return h.startsWith(h[0].toUpperCase())});i.value=s.length?Object.fromEntries(s):void 0}else i.value=void 0});function l(){const s=J1(ho,r);c.provide(ho,c.computed(()=>i.value?Qt((s==null?void 0:s.value)??{},i.value):s==null?void 0:s.value))}return{props:a,provideSubDefaults:l}}function mo(e){if(e._setup=e._setup??e.setup,!e.name)return En("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=ce(e.props??{},e.name)();const o=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return As(r,o)},e.props._as=String,e.setup=function(r,t){const a=Ya();if(!a.value)return e._setup(r,t);const{props:i,provideSubDefaults:l}=Z1(r,r._as??e.name,a),s=e._setup(i,t);return l(),s}}return e}function De(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return o=>(e?mo:c.defineComponent)(o)}function Qs(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const o=e.getRootNode();return o!==document&&o.getRootNode({composed:!0})!==document?null:o}const Js="cubic-bezier(0.4, 0, 0.2, 1)";function X1(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(o?q1(e):za(e))return e;e=e.parentElement}return document.scrollingElement}function vo(e,o){const n=[];if(o&&e&&!o.contains(e))return n;for(;e&&(za(e)&&n.push(e),e!==o);)e=e.parentElement;return n}function za(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const o=window.getComputedStyle(e);return o.overflowY==="scroll"||o.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function q1(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const o=window.getComputedStyle(e);return["scroll","auto"].includes(o.overflowY)}function _1(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function Oe(e){const o=He("useRender");o.render=e}const po=ce({border:[Boolean,Number,String]},"border");function go(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return{borderClasses:c.computed(()=>{const r=c.isRef(e)?e.value:e.border,t=[];if(r===!0||r==="")t.push(`${o}--border`);else if(typeof r=="string"||r===0)for(const a of String(r).split(" "))t.push(`border-${a}`);return t})}}const ep=[null,"default","comfortable","compact"],mr=ce({density:{type:String,default:"default",validator:e=>ep.includes(e)}},"density");function vr(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return{densityClasses:c.computed(()=>`${o}--density-${e.density}`)}}const $a=ce({elevation:{type:[Number,String],validator(e){const o=parseInt(e);return!isNaN(o)&&o>=0&&o<=24}}},"elevation");function Wa(e){return{elevationClasses:c.computed(()=>{const n=c.isRef(e)?e.value:e.elevation,r=[];return n==null||r.push(`elevation-${n}`),r})}}const Sn=ce({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function xn(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return{roundedClasses:c.computed(()=>{const r=c.isRef(e)?e.value:e.rounded,t=c.isRef(e)?e.value:e.tile,a=[];if(r===!0||r==="")a.push(`${o}--rounded`);else if(typeof r=="string"||r===0)for(const i of String(r).split(" "))a.push(`rounded-${i}`);else(t||r===!1)&&a.push("rounded-0");return a})}}const Kt=ce({tag:{type:String,default:"div"}},"tag"),Ks=Symbol.for("vuetify:theme"),ht=ce({theme:String},"theme");function Dt(e){He("provideTheme");const o=c.inject(Ks,null);if(!o)throw new Error("Could not find Vuetify theme injection");const n=c.computed(()=>e.theme??o.name.value),r=c.computed(()=>o.themes.value[n.value]),t=c.computed(()=>o.isDisabled?void 0:`v-theme--${n.value}`),a={...o,name:n,current:r,themeClasses:t};return c.provide(Ks,a),a}function Ga(e){return Ba(()=>{const o=[],n={};if(e.value.background)if(Ua(e.value.background)){if(n.backgroundColor=e.value.background,!e.value.text&&z1(e.value.background)){const r=fr(e.value.background);if(r.a==null||r.a===1){const t=Q1(r);n.color=t,n.caretColor=t}}}else o.push(`bg-${e.value.background}`);return e.value.text&&(Ua(e.value.text)?(n.color=e.value.text,n.caretColor=e.value.text):o.push(`text-${e.value.text}`)),{colorClasses:o,colorStyles:n}})}function Yn(e,o){const n=c.computed(()=>({text:c.isRef(e)?e.value:o?e[o]:null})),{colorClasses:r,colorStyles:t}=Ga(n);return{textColorClasses:r,textColorStyles:t}}function jn(e,o){const n=c.computed(()=>({background:c.isRef(e)?e.value:o?e[o]:null})),{colorClasses:r,colorStyles:t}=Ga(n);return{backgroundColorClasses:r,backgroundColorStyles:t}}const tp=["elevated","flat","tonal","outlined","text","plain"];function Qa(e,o){return c.createVNode(c.Fragment,null,[e&&c.createVNode("span",{key:"overlay",class:`${o}__overlay`},null),c.createVNode("span",{key:"underlay",class:`${o}__underlay`},null)])}const pr=ce({color:String,variant:{type:String,default:"elevated",validator:e=>tp.includes(e)}},"variant");function Ja(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();const n=c.computed(()=>{const{variant:a}=c.unref(e);return`${o}--variant-${a}`}),{colorClasses:r,colorStyles:t}=Ga(c.computed(()=>{const{variant:a,color:i}=c.unref(e);return{[["elevated","flat"].includes(a)?"background":"text"]:i}}));return{colorClasses:r,colorStyles:t,variantClasses:n}}const Zs=ce({baseColor:String,divided:Boolean,...po(),...Be(),...mr(),...$a(),...Sn(),...Kt(),...ht(),...pr()},"VBtnGroup"),Xs=De()({name:"VBtnGroup",props:Zs(),setup(e,o){let{slots:n}=o;const{themeClasses:r}=Dt(e),{densityClasses:t}=vr(e),{borderClasses:a}=go(e),{elevationClasses:i}=Wa(e),{roundedClasses:l}=xn(e);ja({VBtn:{height:"auto",baseColor:c.toRef(e,"baseColor"),color:c.toRef(e,"color"),density:c.toRef(e,"density"),flat:!0,variant:c.toRef(e,"variant")}}),Oe(()=>c.createVNode(e.tag,{class:["v-btn-group",{"v-btn-group--divided":e.divided},r.value,a.value,t.value,i.value,l.value,e.class],style:e.style},n))}});function zn(e,o){let n;function r(){n=c.effectScope(),n.run(()=>o.length?o(()=>{n==null||n.stop(),r()}):o())}c.watch(e,t=>{t&&!n?r():t||(n==null||n.stop(),n=void 0)},{immediate:!0}),c.onScopeDispose(()=>{n==null||n.stop()})}function sn(e,o,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:f=>f,t=arguments.length>4&&arguments[4]!==void 0?arguments[4]:f=>f;const a=He("useProxiedModel"),i=c.ref(e[o]!==void 0?e[o]:n),l=An(o),u=l!==o?c.computed(()=>{var f,g,p,d;return e[o],!!(((f=a.vnode.props)!=null&&f.hasOwnProperty(o)||(g=a.vnode.props)!=null&&g.hasOwnProperty(l))&&((p=a.vnode.props)!=null&&p.hasOwnProperty(`onUpdate:${o}`)||(d=a.vnode.props)!=null&&d.hasOwnProperty(`onUpdate:${l}`)))}):c.computed(()=>{var f,g;return e[o],!!((f=a.vnode.props)!=null&&f.hasOwnProperty(o)&&((g=a.vnode.props)!=null&&g.hasOwnProperty(`onUpdate:${o}`)))});zn(()=>!u.value,()=>{c.watch(()=>e[o],f=>{i.value=f})});const h=c.computed({get(){const f=e[o];return r(u.value?f:i.value)},set(f){const g=t(f),p=c.toRaw(u.value?e[o]:i.value);p===g||r(p)===f||(i.value=g,a==null||a.emit(`update:${o}`,g))}});return Object.defineProperty(h,"externalValue",{get:()=>u.value?e[o]:i.value}),h}const Ka=ce({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),qs=ce({value:null,disabled:Boolean,selectedClass:String},"group-item");function _s(e,o){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=He("useGroupItem");if(!r)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const t=Un();c.provide(Symbol.for(`${o.description}:id`),t);const a=c.inject(o,null);if(!a){if(!n)return a;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${o.description}`)}const i=c.toRef(e,"value"),l=c.computed(()=>!!(a.disabled.value||e.disabled));a.register({id:t,value:i,disabled:l},r),c.onBeforeUnmount(()=>{a.unregister(t)});const s=c.computed(()=>a.isSelected(t)),u=c.computed(()=>a.items.value[0].id===t),h=c.computed(()=>a.items.value[a.items.value.length-1].id===t),f=c.computed(()=>s.value&&[a.selectedClass.value,e.selectedClass]);return c.watch(s,g=>{r.emit("group:selected",{value:g})},{flush:"sync"}),{id:t,isSelected:s,isFirst:u,isLast:h,toggle:()=>a.select(t,!s.value),select:g=>a.select(t,g),selectedClass:f,value:i,disabled:l,group:a}}function Za(e,o){let n=!1;const r=c.reactive([]),t=sn(e,"modelValue",[],g=>g==null?[]:ec(r,yn(g)),g=>{const p=rp(r,g);return e.multiple?p:p[0]}),a=He("useGroup");function i(g,p){const d=g,v=Symbol.for(`${o.description}:id`),A=dr(v,a==null?void 0:a.vnode).indexOf(p);c.unref(d.value)==null&&(d.value=A,d.useIndexAsValue=!0),A>-1?r.splice(A,0,d):r.push(d)}function l(g){if(n)return;s();const p=r.findIndex(d=>d.id===g);r.splice(p,1)}function s(){const g=r.find(p=>!p.disabled);g&&e.mandatory==="force"&&!t.value.length&&(t.value=[g.id])}c.onMounted(()=>{s()}),c.onBeforeUnmount(()=>{n=!0}),c.onUpdated(()=>{for(let g=0;g<r.length;g++)r[g].useIndexAsValue&&(r[g].value=g)});function u(g,p){const d=r.find(v=>v.id===g);if(!(p&&(d!=null&&d.disabled)))if(e.multiple){const v=t.value.slice(),m=v.findIndex(y=>y===g),A=~m;if(p=p??!A,A&&e.mandatory&&v.length<=1||!A&&e.max!=null&&v.length+1>e.max)return;m<0&&p?v.push(g):m>=0&&!p&&v.splice(m,1),t.value=v}else{const v=t.value.includes(g);if(e.mandatory&&v)return;t.value=p??!v?[g]:[]}}function h(g){if(e.multiple&&En('This method is not supported when using "multiple" prop'),t.value.length){const p=t.value[0],d=r.findIndex(A=>A.id===p);let v=(d+g)%r.length,m=r[v];for(;m.disabled&&v!==d;)v=(v+g)%r.length,m=r[v];if(m.disabled)return;t.value=[r[v].id]}else{const p=r.find(d=>!d.disabled);p&&(t.value=[p.id])}}const f={register:i,unregister:l,selected:t,select:u,disabled:c.toRef(e,"disabled"),prev:()=>h(r.length-1),next:()=>h(1),isSelected:g=>t.value.includes(g),selectedClass:c.computed(()=>e.selectedClass),items:c.computed(()=>r),getItemIndex:g=>np(r,g)};return c.provide(o,f),f}function np(e,o){const n=ec(e,[o]);return n.length?e.findIndex(r=>r.id===n[0]):-1}function ec(e,o){const n=[];return o.forEach(r=>{const t=e.find(i=>io(r,i.value)),a=e[r];(t==null?void 0:t.value)!=null?n.push(t.id):a!=null&&n.push(a.id)}),n}function rp(e,o){const n=[];return o.forEach(r=>{const t=e.findIndex(a=>a.id===r);if(~t){const a=e[t];n.push(a.value!=null?a.value:t)}}),n}const tc=Symbol.for("vuetify:v-btn-toggle"),op=ce({...Zs(),...Ka()},"VBtnToggle");De()({name:"VBtnToggle",props:op(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const{isSelected:r,next:t,prev:a,select:i,selected:l}=Za(e,tc);return Oe(()=>{const s=Xs.filterProps(e);return c.createVNode(Xs,c.mergeProps({class:["v-btn-toggle",e.class]},s,{style:e.style}),{default:()=>{var u;return[(u=n.default)==null?void 0:u.call(n,{isSelected:r,next:t,prev:a,select:i,selected:l})]}})}),{next:t,prev:a,select:i}}});const ap=ce({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),Zt=De(!1)({name:"VDefaultsProvider",props:ap(),setup(e,o){let{slots:n}=o;const{defaults:r,disabled:t,reset:a,root:i,scoped:l}=c.toRefs(e);return ja(r,{reset:a,root:i,scoped:l,disabled:t}),()=>{var s;return(s=n.default)==null?void 0:s.call(n)}}}),Qe=[String,Function,Object,Array],ip=Symbol.for("vuetify:icons"),yo=ce({icon:{type:Qe},tag:{type:String,required:!0}},"icon"),nc=De()({name:"VComponentIcon",props:yo(),setup(e,o){let{slots:n}=o;return()=>{const r=e.icon;return c.createVNode(e.tag,null,{default:()=>{var t;return[e.icon?c.createVNode(r,null,null):(t=n.default)==null?void 0:t.call(n)]}})}}}),lp=mo({name:"VSvgIcon",inheritAttrs:!1,props:yo(),setup(e,o){let{attrs:n}=o;return()=>c.createVNode(e.tag,c.mergeProps(n,{style:null}),{default:()=>[c.createVNode("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(r=>Array.isArray(r)?c.createVNode("path",{d:r[0],"fill-opacity":r[1]},null):c.createVNode("path",{d:r},null)):c.createVNode("path",{d:e.icon},null)])]})}});mo({name:"VLigatureIcon",props:yo(),setup(e){return()=>c.createVNode(e.tag,null,{default:()=>[e.icon]})}}),mo({name:"VClassIcon",props:yo(),setup(e){return()=>c.createVNode(e.tag,{class:e.icon},null)}});const sp=e=>{const o=c.inject(ip);if(!o)throw new Error("Missing Vuetify Icons provide!");return{iconData:c.computed(()=>{var s;const r=c.unref(e);if(!r)return{component:nc};let t=r;if(typeof t=="string"&&(t=t.trim(),t.startsWith("$")&&(t=(s=o.aliases)==null?void 0:s[t.slice(1)])),t||En(`Could not find aliased icon "${r}"`),Array.isArray(t))return{component:lp,icon:t};if(typeof t!="string")return{component:nc,icon:t};const a=Object.keys(o.sets).find(u=>typeof t=="string"&&t.startsWith(`${u}:`)),i=a?t.slice(a.length+1):t;return{component:o.sets[a??o.defaultSet].component,icon:i}})}},cp=["x-small","small","default","large","x-large"],gr=ce({size:{type:[String,Number],default:"default"}},"size");function yr(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return Ba(()=>{let n,r;return lo(cp,e.size)?n=`${o}--size-${e.size}`:e.size&&(r={width:Ae(e.size),height:Ae(e.size)}),{sizeClasses:n,sizeStyles:r}})}const up=ce({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:Qe,...Be(),...gr(),...Kt({tag:"i"}),...ht()},"VIcon"),Mt=De()({name:"VIcon",props:up(),setup(e,o){let{attrs:n,slots:r}=o;const t=c.ref(),{themeClasses:a}=Dt(e),{iconData:i}=sp(c.computed(()=>t.value||e.icon)),{sizeClasses:l}=yr(e),{textColorClasses:s,textColorStyles:u}=Yn(c.toRef(e,"color"));return Oe(()=>{var g,p;const h=(g=r.default)==null?void 0:g.call(r);h&&(t.value=(p=Ts(h).filter(d=>d.type===c.Text&&d.children&&typeof d.children=="string")[0])==null?void 0:p.children);const f=!!(n.onClick||n.onClickOnce);return c.createVNode(i.value.component,{tag:e.tag,icon:i.value.icon,class:["v-icon","notranslate",a.value,l.value,s.value,{"v-icon--clickable":f,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class],style:[l.value?void 0:{fontSize:Ae(e.size),height:Ae(e.size),width:Ae(e.size)},u.value,e.style],role:f?"button":void 0,"aria-hidden":!f,tabindex:f?e.disabled?-1:0:void 0},{default:()=>[h]})}),{}}});function rc(e,o){const n=c.ref(),r=c.shallowRef(!1);if(Pa){const t=new IntersectionObserver(a=>{r.value=!!a.find(i=>i.isIntersecting)},o);c.onBeforeUnmount(()=>{t.disconnect()}),c.watch(n,(a,i)=>{i&&(t.unobserve(i),r.value=!1),a&&t.observe(a)},{flush:"post"})}return{intersectionRef:n,isIntersecting:r}}function Xa(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const n=Fa(),r=c.ref();if(Ge){const t=new ResizeObserver(a=>{a.length&&(o==="content"?r.value=a[0].contentRect:r.value=a[0].target.getBoundingClientRect())});c.onBeforeUnmount(()=>{t.disconnect()}),c.watch(()=>n.el,(a,i)=>{i&&(t.unobserve(i),r.value=void 0),a&&t.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:c.readonly(r)}}const dp=ce({bgColor:String,color:String,indeterminate:[Boolean,String],modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...Be(),...gr(),...Kt({tag:"div"}),...ht()},"VProgressCircular"),fp=De()({name:"VProgressCircular",props:dp(),setup(e,o){let{slots:n}=o;const r=20,t=2*Math.PI*r,a=c.ref(),{themeClasses:i}=Dt(e),{sizeClasses:l,sizeStyles:s}=yr(e),{textColorClasses:u,textColorStyles:h}=Yn(c.toRef(e,"color")),{textColorClasses:f,textColorStyles:g}=Yn(c.toRef(e,"bgColor")),{intersectionRef:p,isIntersecting:d}=rc(),{resizeRef:v,contentRect:m}=Xa(),A=c.computed(()=>Math.max(0,Math.min(100,parseFloat(e.modelValue)))),y=c.computed(()=>Number(e.width)),C=c.computed(()=>s.value?Number(e.size):m.value?m.value.width:Math.max(y.value,32)),E=c.computed(()=>r/(1-y.value/C.value)*2),S=c.computed(()=>y.value/C.value*E.value),w=c.computed(()=>Ae((100-A.value)/100*t));return c.watchEffect(()=>{p.value=a.value,v.value=a.value}),Oe(()=>c.createVNode(e.tag,{ref:a,class:["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":d.value,"v-progress-circular--disable-shrink":e.indeterminate==="disable-shrink"},i.value,l.value,u.value,e.class],style:[s.value,h.value,e.style],role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:A.value},{default:()=>[c.createVNode("svg",{style:{transform:`rotate(calc(-90deg + ${Number(e.rotate)}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${E.value} ${E.value}`},[c.createVNode("circle",{class:["v-progress-circular__underlay",f.value],style:g.value,fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":S.value,"stroke-dasharray":t,"stroke-dashoffset":0},null),c.createVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r,"stroke-width":S.value,"stroke-dasharray":t,"stroke-dashoffset":w.value},null)]),n.default&&c.createVNode("div",{class:"v-progress-circular__content"},[n.default({value:A.value})])]})),{}}}),Ao=ce({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Co(e){return{dimensionStyles:c.computed(()=>{const n={},r=Ae(e.height),t=Ae(e.maxHeight),a=Ae(e.maxWidth),i=Ae(e.minHeight),l=Ae(e.minWidth),s=Ae(e.width);return r!=null&&(n.height=r),t!=null&&(n.maxHeight=t),a!=null&&(n.maxWidth=a),i!=null&&(n.minHeight=i),l!=null&&(n.minWidth=l),s!=null&&(n.width=s),n})}}const oc=Symbol.for("vuetify:locale");function qa(){const e=c.inject(oc);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function wn(){const e=c.inject(oc);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const ac={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},ic=ce({location:String},"location");function lc(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2?arguments[2]:void 0;const{isRtl:r}=wn();return{locationStyles:c.computed(()=>{if(!e.location)return{};const{side:a,align:i}=Ha(e.location.split(" ").length>1?e.location:`${e.location} center`,r.value);function l(u){return n?n(u):0}const s={};return a!=="center"&&(o?s[ac[a]]=`calc(100% - ${l(a)}px)`:s[a]=0),i!=="center"?o?s[ac[i]]=`calc(100% - ${l(i)}px)`:s[i]=0:(a==="center"?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[a]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[a]),s})}}const hp=ce({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...Be(),...ic({location:"top"}),...Sn(),...Kt(),...ht()},"VProgressLinear"),mp=De()({name:"VProgressLinear",props:hp(),emits:{"update:modelValue":e=>!0},setup(e,o){var x;let{slots:n}=o;const r=sn(e,"modelValue"),{isRtl:t,rtlClasses:a}=wn(),{themeClasses:i}=Dt(e),{locationStyles:l}=lc(e),{textColorClasses:s,textColorStyles:u}=Yn(e,"color"),{backgroundColorClasses:h,backgroundColorStyles:f}=jn(c.computed(()=>e.bgColor||e.color)),{backgroundColorClasses:g,backgroundColorStyles:p}=jn(c.computed(()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:d,backgroundColorStyles:v}=jn(e,"color"),{roundedClasses:m}=xn(e),{intersectionRef:A,isIntersecting:y}=rc(),C=c.computed(()=>parseFloat(e.max)),E=c.computed(()=>parseFloat(e.height)),S=c.computed(()=>ur(parseFloat(e.bufferValue)/C.value*100,0,100)),w=c.computed(()=>ur(parseFloat(r.value)/C.value*100,0,100)),T=c.computed(()=>t.value!==e.reverse),b=c.computed(()=>e.indeterminate?"fade-transition":"slide-x-transition"),N=Ge&&((x=window.matchMedia)==null?void 0:x.call(window,"(forced-colors: active)").matches);function M(D){if(!A.value)return;const{left:R,right:P,width:I}=A.value.getBoundingClientRect(),O=T.value?I-D.clientX+(P-I):D.clientX-R;r.value=Math.round(O/I*C.value)}return Oe(()=>c.createVNode(e.tag,{ref:A,class:["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&y.value,"v-progress-linear--reverse":T.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped},m.value,i.value,a.value,e.class],style:[{bottom:e.location==="bottom"?0:void 0,top:e.location==="top"?0:void 0,height:e.active?Ae(E.value):0,"--v-progress-linear-height":Ae(E.value),...e.absolute?l.value:{}},e.style],role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:w.value,onClick:e.clickable&&M},{default:()=>[e.stream&&c.createVNode("div",{key:"stream",class:["v-progress-linear__stream",s.value],style:{...u.value,[T.value?"left":"right"]:Ae(-E.value),borderTop:`${Ae(E.value/2)} dotted`,opacity:parseFloat(e.bufferOpacity),top:`calc(50% - ${Ae(E.value/4)})`,width:Ae(100-S.value,"%"),"--v-progress-linear-stream-to":Ae(E.value*(T.value?1:-1))}},null),c.createVNode("div",{class:["v-progress-linear__background",N?void 0:h.value],style:[f.value,{opacity:parseFloat(e.bgOpacity),width:e.stream?0:void 0}]},null),c.createVNode("div",{class:["v-progress-linear__buffer",N?void 0:g.value],style:[p.value,{opacity:parseFloat(e.bufferOpacity),width:Ae(S.value,"%")}]},null),c.createVNode(c.Transition,{name:b.value},{default:()=>[e.indeterminate?c.createVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(D=>c.createVNode("div",{key:D,class:["v-progress-linear__indeterminate",D,N?void 0:d.value],style:v.value},null))]):c.createVNode("div",{class:["v-progress-linear__determinate",N?void 0:d.value],style:[v.value,{width:Ae(w.value,"%")}]},null)]}),n.default&&c.createVNode("div",{class:"v-progress-linear__content"},[n.default({value:w.value,buffer:S.value})])]})),{}}}),sc=ce({loading:[Boolean,String]},"loader");function cc(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return{loaderClasses:c.computed(()=>({[`${o}--loading`]:e.loading}))}}function vp(e,o){var r;let{slots:n}=o;return c.createVNode("div",{class:`${e.name}__loader`},[((r=n.default)==null?void 0:r.call(n,{color:e.color,isActive:e.active}))||c.createVNode(mp,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const pp=["static","relative","fixed","absolute","sticky"],gp=ce({position:{type:String,validator:e=>pp.includes(e)}},"position");function yp(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();return{positionClasses:c.computed(()=>e.position?`${o}--${e.position}`:void 0)}}function Ap(){const e=He("useRoute");return c.computed(()=>{var o;return(o=e==null?void 0:e.proxy)==null?void 0:o.$route})}function Cp(){var e,o;return(o=(e=He("useRouter"))==null?void 0:e.proxy)==null?void 0:o.$router}function uc(e,o){var u,h;const n=c.resolveDynamicComponent("RouterLink"),r=c.computed(()=>!!(e.href||e.to)),t=c.computed(()=>(r==null?void 0:r.value)||Ms(o,"click")||Ms(e,"click"));if(typeof n=="string"||!("useLink"in n))return{isLink:r,isClickable:t,href:c.toRef(e,"href")};const a=c.computed(()=>({...e,to:c.toRef(()=>e.to||"")})),i=n.useLink(a.value),l=c.computed(()=>e.to?i:void 0),s=Ap();return{isLink:r,isClickable:t,route:(u=l.value)==null?void 0:u.route,navigate:(h=l.value)==null?void 0:h.navigate,isActive:c.computed(()=>{var f,g,p;return l.value?e.exact?s.value?((p=l.value.isExactActive)==null?void 0:p.value)&&io(l.value.route.value.query,s.value.query):((g=l.value.isExactActive)==null?void 0:g.value)??!1:((f=l.value.isActive)==null?void 0:f.value)??!1:!1}),href:c.computed(()=>{var f;return e.to?(f=l.value)==null?void 0:f.route.value.href:e.href})}}const dc=ce({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let _a=!1;function Ep(e,o){let n=!1,r,t;Ge&&(c.nextTick(()=>{window.addEventListener("popstate",a),r=e==null?void 0:e.beforeEach((i,l,s)=>{_a?n?o(s):s():setTimeout(()=>n?o(s):s()),_a=!0}),t=e==null?void 0:e.afterEach(()=>{_a=!1})}),c.onScopeDispose(()=>{window.removeEventListener("popstate",a),r==null||r(),t==null||t()}));function a(i){var l;(l=i.state)!=null&&l.replaced||(n=!0,setTimeout(()=>n=!1))}}function Sp(e,o){c.watch(()=>{var n;return(n=e.isActive)==null?void 0:n.value},n=>{e.isLink.value&&n&&o&&c.nextTick(()=>{o(!0)})},{immediate:!0})}const ei=Symbol("rippleStop"),xp=80;function fc(e,o){e.style.transform=o,e.style.webkitTransform=o}function ti(e){return e.constructor.name==="TouchEvent"}function hc(e){return e.constructor.name==="KeyboardEvent"}const wp=function(e,o){var f;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=0,t=0;if(!hc(e)){const g=o.getBoundingClientRect(),p=ti(e)?e.touches[e.touches.length-1]:e;r=p.clientX-g.left,t=p.clientY-g.top}let a=0,i=.3;(f=o._ripple)!=null&&f.circle?(i=.15,a=o.clientWidth/2,a=n.center?a:a+Math.sqrt((r-a)**2+(t-a)**2)/4):a=Math.sqrt(o.clientWidth**2+o.clientHeight**2)/2;const l=`${(o.clientWidth-a*2)/2}px`,s=`${(o.clientHeight-a*2)/2}px`,u=n.center?l:`${r-a}px`,h=n.center?s:`${t-a}px`;return{radius:a,scale:i,x:u,y:h,centerX:l,centerY:s}},Eo={show(e,o){var p;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!((p=o==null?void 0:o._ripple)!=null&&p.enabled))return;const r=document.createElement("span"),t=document.createElement("span");r.appendChild(t),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:a,scale:i,x:l,y:s,centerX:u,centerY:h}=wp(e,o,n),f=`${a*2}px`;t.className="v-ripple__animation",t.style.width=f,t.style.height=f,o.appendChild(r);const g=window.getComputedStyle(o);g&&g.position==="static"&&(o.style.position="relative",o.dataset.previousPosition="static"),t.classList.add("v-ripple__animation--enter"),t.classList.add("v-ripple__animation--visible"),fc(t,`translate(${l}, ${s}) scale3d(${i},${i},${i})`),t.dataset.activated=String(performance.now()),setTimeout(()=>{t.classList.remove("v-ripple__animation--enter"),t.classList.add("v-ripple__animation--in"),fc(t,`translate(${u}, ${h}) scale3d(1,1,1)`)},0)},hide(e){var a;if(!((a=e==null?void 0:e._ripple)!=null&&a.enabled))return;const o=e.getElementsByClassName("v-ripple__animation");if(o.length===0)return;const n=o[o.length-1];if(n.dataset.isHiding)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),t=Math.max(250-r,0);setTimeout(()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout(()=>{var l;e.getElementsByClassName("v-ripple__animation").length===1&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),((l=n.parentNode)==null?void 0:l.parentNode)===e&&e.removeChild(n.parentNode)},300)},t)}};function mc(e){return typeof e>"u"||!!e}function Ar(e){const o={},n=e.currentTarget;if(!(!(n!=null&&n._ripple)||n._ripple.touched||e[ei])){if(e[ei]=!0,ti(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(o.center=n._ripple.centered||hc(e),n._ripple.class&&(o.class=n._ripple.class),ti(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{Eo.show(e,n,o)},n._ripple.showTimer=window.setTimeout(()=>{var r;(r=n==null?void 0:n._ripple)!=null&&r.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)},xp)}else Eo.show(e,n,o)}}function vc(e){e[ei]=!0}function ot(e){const o=e.currentTarget;if(o!=null&&o._ripple){if(window.clearTimeout(o._ripple.showTimer),e.type==="touchend"&&o._ripple.showTimerCommit){o._ripple.showTimerCommit(),o._ripple.showTimerCommit=null,o._ripple.showTimer=window.setTimeout(()=>{ot(e)});return}window.setTimeout(()=>{o._ripple&&(o._ripple.touched=!1)}),Eo.hide(o)}}function pc(e){const o=e.currentTarget;o!=null&&o._ripple&&(o._ripple.showTimerCommit&&(o._ripple.showTimerCommit=null),window.clearTimeout(o._ripple.showTimer))}let Cr=!1;function gc(e){!Cr&&(e.keyCode===ys.enter||e.keyCode===ys.space)&&(Cr=!0,Ar(e))}function yc(e){Cr=!1,ot(e)}function Ac(e){Cr&&(Cr=!1,ot(e))}function Cc(e,o,n){const{value:r,modifiers:t}=o,a=mc(r);if(a||Eo.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=a,e._ripple.centered=t.center,e._ripple.circle=t.circle,S1(r)&&r.class&&(e._ripple.class=r.class),a&&!n){if(t.stop){e.addEventListener("touchstart",vc,{passive:!0}),e.addEventListener("mousedown",vc);return}e.addEventListener("touchstart",Ar,{passive:!0}),e.addEventListener("touchend",ot,{passive:!0}),e.addEventListener("touchmove",pc,{passive:!0}),e.addEventListener("touchcancel",ot),e.addEventListener("mousedown",Ar),e.addEventListener("mouseup",ot),e.addEventListener("mouseleave",ot),e.addEventListener("keydown",gc),e.addEventListener("keyup",yc),e.addEventListener("blur",Ac),e.addEventListener("dragstart",ot,{passive:!0})}else!a&&n&&Ec(e)}function Ec(e){e.removeEventListener("mousedown",Ar),e.removeEventListener("touchstart",Ar),e.removeEventListener("touchend",ot),e.removeEventListener("touchmove",pc),e.removeEventListener("touchcancel",ot),e.removeEventListener("mouseup",ot),e.removeEventListener("mouseleave",ot),e.removeEventListener("keydown",gc),e.removeEventListener("keyup",yc),e.removeEventListener("dragstart",ot),e.removeEventListener("blur",Ac)}function Tp(e,o){Cc(e,o,!1)}function Dp(e){delete e._ripple,Ec(e)}function Mp(e,o){if(o.value===o.oldValue)return;const n=mc(o.oldValue);Cc(e,o,n)}const Sc={mounted:Tp,unmounted:Dp,updated:Mp},bp=ce({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:tc},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:Qe,appendIcon:Qe,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,ripple:{type:[Boolean,Object],default:!0},text:String,...po(),...Be(),...mr(),...Ao(),...$a(),...qs(),...sc(),...ic(),...gp(),...Sn(),...dc(),...gr(),...Kt({tag:"button"}),...ht(),...pr({variant:"elevated"})},"VBtn"),So=De()({name:"VBtn",props:bp(),emits:{"group:selected":e=>!0},setup(e,o){let{attrs:n,slots:r}=o;const{themeClasses:t}=Dt(e),{borderClasses:a}=go(e),{densityClasses:i}=vr(e),{dimensionStyles:l}=Co(e),{elevationClasses:s}=Wa(e),{loaderClasses:u}=cc(e),{locationStyles:h}=lc(e),{positionClasses:f}=yp(e),{roundedClasses:g}=xn(e),{sizeClasses:p,sizeStyles:d}=yr(e),v=_s(e,e.symbol,!1),m=uc(e,n),A=c.computed(()=>{var x;return e.active!==void 0?e.active:m.isLink.value?(x=m.isActive)==null?void 0:x.value:v==null?void 0:v.isSelected.value}),y=c.computed(()=>A.value?e.activeColor??e.color:e.color),C=c.computed(()=>{var D,R;return{color:(v==null?void 0:v.isSelected.value)&&(!m.isLink.value||((D=m.isActive)==null?void 0:D.value))||!v||((R=m.isActive)==null?void 0:R.value)?y.value??e.baseColor:e.baseColor,variant:e.variant}}),{colorClasses:E,colorStyles:S,variantClasses:w}=Ja(C),T=c.computed(()=>(v==null?void 0:v.disabled.value)||e.disabled),b=c.computed(()=>e.variant==="elevated"&&!(e.disabled||e.flat||e.border)),N=c.computed(()=>{if(!(e.value===void 0||typeof e.value=="symbol"))return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value});function M(x){var D;T.value||m.isLink.value&&(x.metaKey||x.ctrlKey||x.shiftKey||x.button!==0||n.target==="_blank")||((D=m.navigate)==null||D.call(m,x),v==null||v.toggle())}return Sp(m,v==null?void 0:v.select),Oe(()=>{const x=m.isLink.value?"a":e.tag,D=!!(e.prependIcon||r.prepend),R=!!(e.appendIcon||r.append),P=!!(e.icon&&e.icon!==!0);return c.withDirectives(c.createVNode(x,{type:x==="a"?void 0:"button",class:["v-btn",v==null?void 0:v.selectedClass.value,{"v-btn--active":A.value,"v-btn--block":e.block,"v-btn--disabled":T.value,"v-btn--elevated":b.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},t.value,a.value,E.value,i.value,s.value,u.value,f.value,g.value,p.value,w.value,e.class],style:[S.value,l.value,h.value,d.value,e.style],"aria-busy":e.loading?!0:void 0,disabled:T.value||void 0,href:m.href.value,tabindex:e.loading||e.readonly?-1:void 0,onClick:M,value:N.value},{default:()=>{var I;return[Qa(!0,"v-btn"),!e.icon&&D&&c.createVNode("span",{key:"prepend",class:"v-btn__prepend"},[r.prepend?c.createVNode(Zt,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},r.prepend):c.createVNode(Mt,{key:"prepend-icon",icon:e.prependIcon},null)]),c.createVNode("span",{class:"v-btn__content","data-no-activator":""},[!r.default&&P?c.createVNode(Mt,{key:"content-icon",icon:e.icon},null):c.createVNode(Zt,{key:"content-defaults",disabled:!P,defaults:{VIcon:{icon:e.icon}}},{default:()=>{var O;return[((O=r.default)==null?void 0:O.call(r))??e.text]}})]),!e.icon&&R&&c.createVNode("span",{key:"append",class:"v-btn__append"},[r.append?c.createVNode(Zt,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},r.append):c.createVNode(Mt,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&c.createVNode("span",{key:"loader",class:"v-btn__loader"},[((I=r.loader)==null?void 0:I.call(r))??c.createVNode(fp,{color:typeof e.loading=="boolean"?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}}),[[Sc,!T.value&&e.ripple,"",{center:!!e.icon}]])}),{group:v}}}),Np=ce({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function at(e,o,n){return De()({name:e,props:Np({mode:n,origin:o}),setup(r,t){let{slots:a}=t;const i={onBeforeEnter(l){r.origin&&(l.style.transformOrigin=r.origin)},onLeave(l){if(r.leaveAbsolute){const{offsetTop:s,offsetLeft:u,offsetWidth:h,offsetHeight:f}=l;l._transitionInitialStyles={position:l.style.position,top:l.style.top,left:l.style.left,width:l.style.width,height:l.style.height},l.style.position="absolute",l.style.top=`${s}px`,l.style.left=`${u}px`,l.style.width=`${h}px`,l.style.height=`${f}px`}r.hideOnLeave&&l.style.setProperty("display","none","important")},onAfterLeave(l){if(r.leaveAbsolute&&(l!=null&&l._transitionInitialStyles)){const{position:s,top:u,left:h,width:f,height:g}=l._transitionInitialStyles;delete l._transitionInitialStyles,l.style.position=s||"",l.style.top=u||"",l.style.left=h||"",l.style.width=f||"",l.style.height=g||""}}};return()=>{const l=r.group?c.TransitionGroup:c.Transition;return c.h(l,{name:r.disabled?"":e,css:!r.disabled,...r.group?void 0:{mode:r.mode},...r.disabled?{}:i},a.default)}}})}function xc(e,o){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return De()({name:e,props:{mode:{type:String,default:n},disabled:Boolean,group:Boolean},setup(r,t){let{slots:a}=t;const i=r.group?c.TransitionGroup:c.Transition;return()=>c.h(i,{name:r.disabled?"":e,css:!r.disabled,...r.disabled?{}:o},a.default)}})}function wc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",r=c.camelize(`offset-${n}`);return{onBeforeEnter(i){i._parent=i.parentNode,i._initialStyle={transition:i.style.transition,overflow:i.style.overflow,[n]:i.style[n]}},onEnter(i){const l=i._initialStyle;i.style.setProperty("transition","none","important"),i.style.overflow="hidden";const s=`${i[r]}px`;i.style[n]="0",i.offsetHeight,i.style.transition=l.transition,e&&i._parent&&i._parent.classList.add(e),requestAnimationFrame(()=>{i.style[n]=s})},onAfterEnter:a,onEnterCancelled:a,onLeave(i){i._initialStyle={transition:"",overflow:i.style.overflow,[n]:i.style[n]},i.style.overflow="hidden",i.style[n]=`${i[r]}px`,i.offsetHeight,requestAnimationFrame(()=>i.style[n]="0")},onAfterLeave:t,onLeaveCancelled:t};function t(i){e&&i._parent&&i._parent.classList.remove(e),a(i)}function a(i){const l=i._initialStyle[n];i.style.overflow=i._initialStyle.overflow,l!=null&&(i.style[n]=l),delete i._initialStyle}}at("fab-transition","center center","out-in"),at("dialog-bottom-transition"),at("dialog-top-transition");const Tc=at("fade-transition");at("scale-transition"),at("scroll-x-transition"),at("scroll-x-reverse-transition"),at("scroll-y-transition"),at("scroll-y-reverse-transition"),at("slide-x-transition"),at("slide-x-reverse-transition");const Dc=at("slide-y-transition");at("slide-y-reverse-transition"),xc("expand-transition",wc());const Mc=xc("expand-x-transition",wc("",!0));function Rp(e){return{aspectStyles:c.computed(()=>{const o=Number(e.aspectRatio);return o?{paddingBottom:String(1/o*100)+"%"}:void 0})}}const bc=ce({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Be(),...Ao()},"VResponsive"),Nc=De()({name:"VResponsive",props:bc(),setup(e,o){let{slots:n}=o;const{aspectStyles:r}=Rp(e),{dimensionStyles:t}=Co(e);return Oe(()=>{var a;return c.createVNode("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[t.value,e.style]},[c.createVNode("div",{class:"v-responsive__sizer",style:r.value},null),(a=n.additional)==null?void 0:a.call(n),n.default&&c.createVNode("div",{class:["v-responsive__content",e.contentClass]},[n.default()])])}),{}}}),xo=ce({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Tn=(e,o)=>{let{slots:n}=o;const{transition:r,disabled:t,group:a,...i}=e,{component:l=a?c.TransitionGroup:c.Transition,...s}=typeof r=="object"?r:{};return c.h(l,c.mergeProps(typeof r=="string"?{name:t?"":r}:s,typeof r=="string"?{}:Object.fromEntries(Object.entries({disabled:t,group:a}).filter(u=>{let[h,f]=u;return f!==void 0})),i),n)};function Ip(e,o){if(!Pa)return;const n=o.modifiers||{},r=o.value,{handler:t,options:a}=typeof r=="object"?r:{handler:r,options:{}},i=new IntersectionObserver(function(){var f;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const u=(f=e._observe)==null?void 0:f[o.instance.$.uid];if(!u)return;const h=l.some(g=>g.isIntersecting);t&&(!n.quiet||u.init)&&(!n.once||h||u.init)&&t(h,l,s),h&&n.once?Rc(e,o):u.init=!0},a);e._observe=Object(e._observe),e._observe[o.instance.$.uid]={init:!1,observer:i},i.observe(e)}function Rc(e,o){var r;const n=(r=e._observe)==null?void 0:r[o.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[o.instance.$.uid])}const Pp={mounted:Ip,unmounted:Rc},Op=ce({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...bc(),...Be(),...Sn(),...xo()},"VImg"),Lp=De()({name:"VImg",directives:{intersect:Pp},props:Op(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,o){let{emit:n,slots:r}=o;const{backgroundColorClasses:t,backgroundColorStyles:a}=jn(c.toRef(e,"color")),{roundedClasses:i}=xn(e),l=He("VImg"),s=c.shallowRef(""),u=c.ref(),h=c.shallowRef(e.eager?"loading":"idle"),f=c.shallowRef(),g=c.shallowRef(),p=c.computed(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),d=c.computed(()=>p.value.aspect||f.value/g.value||0);c.watch(()=>e.src,()=>{v(h.value!=="idle")}),c.watch(d,(D,R)=>{!D&&R&&u.value&&E(u.value)}),c.onBeforeMount(()=>v());function v(D){if(!(e.eager&&D)&&!(Pa&&!D&&!e.eager)){if(h.value="loading",p.value.lazySrc){const R=new Image;R.src=p.value.lazySrc,E(R,null)}p.value.src&&c.nextTick(()=>{var R;n("loadstart",((R=u.value)==null?void 0:R.currentSrc)||p.value.src),setTimeout(()=>{var P;if(!l.isUnmounted)if((P=u.value)!=null&&P.complete){if(u.value.naturalWidth||A(),h.value==="error")return;d.value||E(u.value,null),h.value==="loading"&&m()}else d.value||E(u.value),y()})})}}function m(){var D;l.isUnmounted||(y(),E(u.value),h.value="loaded",n("load",((D=u.value)==null?void 0:D.currentSrc)||p.value.src))}function A(){var D;l.isUnmounted||(h.value="error",n("error",((D=u.value)==null?void 0:D.currentSrc)||p.value.src))}function y(){const D=u.value;D&&(s.value=D.currentSrc||D.src)}let C=-1;c.onBeforeUnmount(()=>{clearTimeout(C)});function E(D){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const P=()=>{if(clearTimeout(C),l.isUnmounted)return;const{naturalHeight:I,naturalWidth:O}=D;I||O?(f.value=O,g.value=I):!D.complete&&h.value==="loading"&&R!=null?C=window.setTimeout(P,R):(D.currentSrc.endsWith(".svg")||D.currentSrc.startsWith("data:image/svg+xml"))&&(f.value=1,g.value=1)};P()}const S=c.computed(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),w=()=>{var P;if(!p.value.src||h.value==="idle")return null;const D=c.createVNode("img",{class:["v-img__img",S.value],style:{objectPosition:e.position},src:p.value.src,srcset:p.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:u,onLoad:m,onError:A},null),R=(P=r.sources)==null?void 0:P.call(r);return c.createVNode(Tn,{transition:e.transition,appear:!0},{default:()=>[c.withDirectives(R?c.createVNode("picture",{class:"v-img__picture"},[R,D]):D,[[c.vShow,h.value==="loaded"]])]})},T=()=>c.createVNode(Tn,{transition:e.transition},{default:()=>[p.value.lazySrc&&h.value!=="loaded"&&c.createVNode("img",{class:["v-img__img","v-img__img--preload",S.value],style:{objectPosition:e.position},src:p.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),b=()=>r.placeholder?c.createVNode(Tn,{transition:e.transition,appear:!0},{default:()=>[(h.value==="loading"||h.value==="error"&&!r.error)&&c.createVNode("div",{class:"v-img__placeholder"},[r.placeholder()])]}):null,N=()=>r.error?c.createVNode(Tn,{transition:e.transition,appear:!0},{default:()=>[h.value==="error"&&c.createVNode("div",{class:"v-img__error"},[r.error()])]}):null,M=()=>e.gradient?c.createVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,x=c.shallowRef(!1);{const D=c.watch(d,R=>{R&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{x.value=!0})}),D())})}return Oe(()=>{const D=Nc.filterProps(e);return c.withDirectives(c.createVNode(Nc,c.mergeProps({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!x.value},t.value,i.value,e.class],style:[{width:Ae(e.width==="auto"?f.value:e.width)},a.value,e.style]},D,{aspectRatio:d.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>c.createVNode(c.Fragment,null,[c.createVNode(w,null,null),c.createVNode(T,null,null),c.createVNode(M,null,null),c.createVNode(b,null,null),c.createVNode(N,null,null)]),default:r.default}),[[c.resolveDirective("intersect"),{handler:v,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:u,state:h,naturalWidth:f,naturalHeight:g}}}),Bp=ce({start:Boolean,end:Boolean,icon:Qe,image:String,text:String,...po(),...Be(),...mr(),...Sn(),...gr(),...Kt(),...ht(),...pr({variant:"flat"})},"VAvatar"),Ic=De()({name:"VAvatar",props:Bp(),setup(e,o){let{slots:n}=o;const{themeClasses:r}=Dt(e),{borderClasses:t}=go(e),{colorClasses:a,colorStyles:i,variantClasses:l}=Ja(e),{densityClasses:s}=vr(e),{roundedClasses:u}=xn(e),{sizeClasses:h,sizeStyles:f}=yr(e);return Oe(()=>c.createVNode(e.tag,{class:["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},r.value,t.value,a.value,s.value,u.value,h.value,l.value,e.class],style:[i.value,f.value,e.style]},{default:()=>[n.default?c.createVNode(Zt,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?c.createVNode(Lp,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?c.createVNode(Mt,{key:"icon",icon:e.icon},null):e.text,Qa(!1,"v-avatar")]})),{}}}),Fp=Symbol.for("vuetify:display"),Hp=ce({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Pc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();const n=c.inject(Fp);if(!n)throw new Error("Could not find Vuetify display injection");const r=c.computed(()=>{if(e.mobile!=null)return e.mobile;if(!e.mobileBreakpoint)return n.mobile.value;const a=typeof e.mobileBreakpoint=="number"?e.mobileBreakpoint:n.thresholds.value[e.mobileBreakpoint];return n.width.value<a}),t=c.computed(()=>o?{[`${o}--mobile`]:r.value}:{});return{...n,displayClasses:t,mobile:r}}const Vp=Symbol.for("vuetify:goto");function kp(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:{linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5}}}function Up(e){return ni(e)??(document.scrollingElement||document.body)}function ni(e){return typeof e=="string"?document.querySelector(e):gs(e)}function ri(e,o,n){if(typeof e=="number")return o&&n?-e:e;let r=ni(e),t=0;for(;r;)t+=o?r.offsetLeft:r.offsetTop,r=r.offsetParent;return t}async function Oc(e,o,n,r){const t=n?"scrollLeft":"scrollTop",a=Qt((r==null?void 0:r.options)??kp(),o),i=r==null?void 0:r.rtl.value,l=(typeof e=="number"?e:ni(e))??0,s=a.container==="parent"&&l instanceof HTMLElement?l.parentElement:Up(a.container),u=typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!u)throw new TypeError(`Easing function "${a.easing}" not found.`);let h;if(typeof l=="number")h=ri(l,n,i);else if(h=ri(l,n,i)-ri(s,n,i),a.layout){const d=window.getComputedStyle(l).getPropertyValue("--v-layout-top");d&&(h-=parseInt(d,10))}h+=a.offset,h=jp(s,h,!!i,!!n);const f=s[t]??0;if(h===f)return Promise.resolve(h);const g=performance.now();return new Promise(p=>requestAnimationFrame(function d(v){const A=(v-g)/a.duration,y=Math.floor(f+(h-f)*u(ur(A,0,1)));if(s[t]=y,A>=1&&Math.abs(y-s[t])<10)return p(h);if(A>2)return En("Scroll target is not reachable"),p(s[t]);requestAnimationFrame(d)}))}function Yp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=c.inject(Vp),{isRtl:n}=wn();if(!o)throw new Error("[Vuetify] Could not find injected goto instance");const r={...o,rtl:c.computed(()=>o.rtl.value||n.value)};async function t(a,i){return Oc(a,Qt(e,i),!1,r)}return t.horizontal=async(a,i)=>Oc(a,Qt(e,i),!0,r),t}function jp(e,o,n,r){const{scrollWidth:t,scrollHeight:a}=e,[i,l]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let s,u;return r?n?(s=-(t-i),u=0):(s=0,u=t-i):(s=0,u=a+-l),Math.max(Math.min(o,u),s)}function zp(e){let{selectedElement:o,containerElement:n,isRtl:r,isHorizontal:t}=e;const a=Er(t,n),i=Bc(t,r,n),l=Er(t,o),s=Fc(t,o),u=l*.4;return i>s?s-u:i+a<s+l?s-a+l+u:i}function $p(e){let{selectedElement:o,containerElement:n,isHorizontal:r}=e;const t=Er(r,n),a=Fc(r,o),i=Er(r,o);return a-t/2+i/2}function Lc(e,o){const n=e?"scrollWidth":"scrollHeight";return(o==null?void 0:o[n])||0}function Wp(e,o){const n=e?"clientWidth":"clientHeight";return(o==null?void 0:o[n])||0}function Bc(e,o,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:t,scrollWidth:a}=n;return e?o?a-t+r:r:n.scrollTop}function Er(e,o){const n=e?"offsetWidth":"offsetHeight";return(o==null?void 0:o[n])||0}function Fc(e,o){const n=e?"offsetLeft":"offsetTop";return(o==null?void 0:o[n])||0}const Gp=Symbol.for("vuetify:v-slide-group"),Hc=ce({centerActive:Boolean,direction:{type:String,default:"horizontal"},symbol:{type:null,default:Gp},nextIcon:{type:Qe,default:"$next"},prevIcon:{type:Qe,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>typeof e=="boolean"||["always","desktop","mobile"].includes(e)},...Be(),...Hp({mobile:null}),...Kt(),...Ka({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Vc=De()({name:"VSlideGroup",props:Hc(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const{isRtl:r}=wn(),{displayClasses:t,mobile:a}=Pc(e),i=Za(e,e.symbol),l=c.shallowRef(!1),s=c.shallowRef(0),u=c.shallowRef(0),h=c.shallowRef(0),f=c.computed(()=>e.direction==="horizontal"),{resizeRef:g,contentRect:p}=Xa(),{resizeRef:d,contentRect:v}=Xa(),m=Yp(),A=c.computed(()=>({container:g.el,duration:200,easing:"easeOutQuart"})),y=c.computed(()=>i.selected.value.length?i.items.value.findIndex(B=>B.id===i.selected.value[0]):-1),C=c.computed(()=>i.selected.value.length?i.items.value.findIndex(B=>B.id===i.selected.value[i.selected.value.length-1]):-1);if(Ge){let B=-1;c.watch(()=>[i.selected.value,p.value,v.value,f.value],()=>{cancelAnimationFrame(B),B=requestAnimationFrame(()=>{if(p.value&&v.value){const F=f.value?"width":"height";u.value=p.value[F],h.value=v.value[F],l.value=u.value+1<h.value}if(y.value>=0&&d.el){const F=d.el.children[C.value];S(F,e.centerActive)}})})}const E=c.shallowRef(!1);function S(B,F){let Y=0;F?Y=$p({containerElement:g.el,isHorizontal:f.value,selectedElement:B}):Y=zp({containerElement:g.el,isHorizontal:f.value,isRtl:r.value,selectedElement:B}),w(Y)}function w(B){if(!Ge||!g.el)return;const F=Er(f.value,g.el),Y=Bc(f.value,r.value,g.el);if(!(Lc(f.value,g.el)<=F||Math.abs(B-Y)<16)){if(f.value&&r.value&&g.el){const{scrollWidth:W,offsetWidth:G}=g.el;B=W-G-B}f.value?m.horizontal(B,A.value):m(B,A.value)}}function T(B){const{scrollTop:F,scrollLeft:Y}=B.target;s.value=f.value?Y:F}function b(B){if(E.value=!0,!(!l.value||!d.el)){for(const F of B.composedPath())for(const Y of d.el.children)if(Y===F){S(Y);return}}}function N(B){E.value=!1}let M=!1;function x(B){var F;!M&&!E.value&&!(B.relatedTarget&&((F=d.el)!=null&&F.contains(B.relatedTarget)))&&P(),M=!1}function D(){M=!0}function R(B){if(!d.el)return;function F(Y){B.preventDefault(),P(Y)}f.value?B.key==="ArrowRight"?F(r.value?"prev":"next"):B.key==="ArrowLeft"&&F(r.value?"next":"prev"):B.key==="ArrowDown"?F("next"):B.key==="ArrowUp"&&F("prev"),B.key==="Home"?F("first"):B.key==="End"&&F("last")}function P(B){var Y,$;if(!d.el)return;let F;if(!B)F=b1(d.el)[0];else if(B==="next"){if(F=(Y=d.el.querySelector(":focus"))==null?void 0:Y.nextElementSibling,!F)return P("first")}else if(B==="prev"){if(F=($=d.el.querySelector(":focus"))==null?void 0:$.previousElementSibling,!F)return P("last")}else B==="first"?F=d.el.firstElementChild:B==="last"&&(F=d.el.lastElementChild);F&&F.focus({preventScroll:!0})}function I(B){const F=f.value&&r.value?-1:1,Y=(B==="prev"?-F:F)*u.value;let $=s.value+Y;if(f.value&&r.value&&g.el){const{scrollWidth:W,offsetWidth:G}=g.el;$+=W-G}w($)}const O=c.computed(()=>({next:i.next,prev:i.prev,select:i.select,isSelected:i.isSelected})),L=c.computed(()=>{switch(e.showArrows){case"always":return!0;case"desktop":return!a.value;case!0:return l.value||Math.abs(s.value)>0;case"mobile":return a.value||l.value||Math.abs(s.value)>0;default:return!a.value&&(l.value||Math.abs(s.value)>0)}}),H=c.computed(()=>Math.abs(s.value)>1),k=c.computed(()=>{if(!g.value)return!1;const B=Lc(f.value,g.el),F=Wp(f.value,g.el);return B-F-Math.abs(s.value)>1});return Oe(()=>c.createVNode(e.tag,{class:["v-slide-group",{"v-slide-group--vertical":!f.value,"v-slide-group--has-affixes":L.value,"v-slide-group--is-overflowing":l.value},t.value,e.class],style:e.style,tabindex:E.value||i.selected.value.length?-1:0,onFocus:x},{default:()=>{var B,F,Y;return[L.value&&c.createVNode("div",{key:"prev",class:["v-slide-group__prev",{"v-slide-group__prev--disabled":!H.value}],onMousedown:D,onClick:()=>H.value&&I("prev")},[((B=n.prev)==null?void 0:B.call(n,O.value))??c.createVNode(Tc,null,{default:()=>[c.createVNode(Mt,{icon:r.value?e.nextIcon:e.prevIcon},null)]})]),c.createVNode("div",{key:"container",ref:g,class:"v-slide-group__container",onScroll:T},[c.createVNode("div",{ref:d,class:"v-slide-group__content",onFocusin:b,onFocusout:N,onKeydown:R},[(F=n.default)==null?void 0:F.call(n,O.value)])]),L.value&&c.createVNode("div",{key:"next",class:["v-slide-group__next",{"v-slide-group__next--disabled":!k.value}],onMousedown:D,onClick:()=>k.value&&I("next")},[((Y=n.next)==null?void 0:Y.call(n,O.value))??c.createVNode(Tc,null,{default:()=>[c.createVNode(Mt,{icon:r.value?e.prevIcon:e.nextIcon},null)]})])]}})),{selected:i.selected,scrollTo:I,scrollOffset:s,focus:P,hasPrev:H,hasNext:k}}}),kc=Symbol.for("vuetify:v-chip-group"),Qp=ce({column:Boolean,filter:Boolean,valueComparator:{type:Function,default:io},...Hc(),...Be(),...Ka({selectedClass:"v-chip--selected"}),...Kt(),...ht(),...pr({variant:"tonal"})},"VChipGroup");De()({name:"VChipGroup",props:Qp(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const{themeClasses:r}=Dt(e),{isSelected:t,select:a,next:i,prev:l,selected:s}=Za(e,kc);return ja({VChip:{color:c.toRef(e,"color"),disabled:c.toRef(e,"disabled"),filter:c.toRef(e,"filter"),variant:c.toRef(e,"variant")}}),Oe(()=>{const u=Vc.filterProps(e);return c.createVNode(Vc,c.mergeProps(u,{class:["v-chip-group",{"v-chip-group--column":e.column},r.value,e.class],style:e.style}),{default:()=>{var h;return[(h=n.default)==null?void 0:h.call(n,{isSelected:t,select:a,next:i,prev:l,selected:s.value})]}})}),{}}});const Jp=ce({activeClass:String,appendAvatar:String,appendIcon:Qe,closable:Boolean,closeIcon:{type:Qe,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:Qe,ripple:{type:[Boolean,Object],default:!0},text:String,modelValue:{type:Boolean,default:!0},onClick:Jt(),onClickOnce:Jt(),...po(),...Be(),...mr(),...$a(),...qs(),...Sn(),...dc(),...gr(),...Kt({tag:"span"}),...ht(),...pr({variant:"tonal"})},"VChip"),Kp=De()({name:"VChip",directives:{Ripple:Sc},props:Jp(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,o){let{attrs:n,emit:r,slots:t}=o;const{t:a}=qa(),{borderClasses:i}=go(e),{colorClasses:l,colorStyles:s,variantClasses:u}=Ja(e),{densityClasses:h}=vr(e),{elevationClasses:f}=Wa(e),{roundedClasses:g}=xn(e),{sizeClasses:p}=yr(e),{themeClasses:d}=Dt(e),v=sn(e,"modelValue"),m=_s(e,kc,!1),A=uc(e,n),y=c.computed(()=>e.link!==!1&&A.isLink.value),C=c.computed(()=>!e.disabled&&e.link!==!1&&(!!m||e.link||A.isClickable.value)),E=c.computed(()=>({"aria-label":a(e.closeLabel),onClick(T){T.preventDefault(),T.stopPropagation(),v.value=!1,r("click:close",T)}}));function S(T){var b;r("click",T),C.value&&((b=A.navigate)==null||b.call(A,T),m==null||m.toggle())}function w(T){(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),S(T))}return()=>{const T=A.isLink.value?"a":e.tag,b=!!(e.appendIcon||e.appendAvatar),N=!!(b||t.append),M=!!(t.close||e.closable),x=!!(t.filter||e.filter)&&m,D=!!(e.prependIcon||e.prependAvatar),R=!!(D||t.prepend),P=!m||m.isSelected.value;return v.value&&c.withDirectives(c.createVNode(T,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":C.value,"v-chip--filter":x,"v-chip--pill":e.pill},d.value,i.value,P?l.value:void 0,h.value,f.value,g.value,p.value,u.value,m==null?void 0:m.selectedClass.value,e.class],style:[P?s.value:void 0,e.style],disabled:e.disabled||void 0,draggable:e.draggable,href:A.href.value,tabindex:C.value?0:void 0,onClick:S,onKeydown:C.value&&!y.value&&w},{default:()=>{var I;return[Qa(C.value,"v-chip"),x&&c.createVNode(Mc,{key:"filter"},{default:()=>[c.withDirectives(c.createVNode("div",{class:"v-chip__filter"},[t.filter?c.createVNode(Zt,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},t.filter):c.createVNode(Mt,{key:"filter-icon",icon:e.filterIcon},null)]),[[c.vShow,m.isSelected.value]])]}),R&&c.createVNode("div",{key:"prepend",class:"v-chip__prepend"},[t.prepend?c.createVNode(Zt,{key:"prepend-defaults",disabled:!D,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},t.prepend):c.createVNode(c.Fragment,null,[e.prependIcon&&c.createVNode(Mt,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&c.createVNode(Ic,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),c.createVNode("div",{class:"v-chip__content","data-no-activator":""},[((I=t.default)==null?void 0:I.call(t,{isSelected:m==null?void 0:m.isSelected.value,selectedClass:m==null?void 0:m.selectedClass.value,select:m==null?void 0:m.select,toggle:m==null?void 0:m.toggle,value:m==null?void 0:m.value.value,disabled:e.disabled}))??e.text]),N&&c.createVNode("div",{key:"append",class:"v-chip__append"},[t.append?c.createVNode(Zt,{key:"append-defaults",disabled:!b,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},t.append):c.createVNode(c.Fragment,null,[e.appendIcon&&c.createVNode(Mt,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&c.createVNode(Ic,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),M&&c.createVNode("button",c.mergeProps({key:"close",class:"v-chip__close",type:"button"},E.value),[t.close?c.createVNode(Zt,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},t.close):c.createVNode(Mt,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}}),[[c.resolveDirective("ripple"),C.value&&e.ripple,null]])}}}),Zp=ce({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...Be(),...xo({transition:{component:Dc}})},"VCounter"),Xp=De()({name:"VCounter",functional:!0,props:Zp(),setup(e,o){let{slots:n}=o;const r=c.computed(()=>e.max?`${e.value} / ${e.max}`:String(e.value));return Oe(()=>c.createVNode(Tn,{transition:e.transition},{default:()=>[c.withDirectives(c.createVNode("div",{class:["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class],style:e.style},[n.default?n.default({counter:r.value,max:e.max,value:e.value}):r.value]),[[c.vShow,e.active]])]})),{}}}),qp=ce({text:String,onClick:Jt(),...Be(),...ht()},"VLabel"),_p=De()({name:"VLabel",props:qp(),setup(e,o){let{slots:n}=o;return Oe(()=>{var r;return c.createVNode("label",{class:["v-label",{"v-label--clickable":!!e.onClick},e.class],style:e.style,onClick:e.onClick},[e.text,(r=n.default)==null?void 0:r.call(n)])}),{}}}),eg=ce({floating:Boolean,...Be()},"VFieldLabel"),wo=De()({name:"VFieldLabel",props:eg(),setup(e,o){let{slots:n}=o;return Oe(()=>c.createVNode(_p,{class:["v-field-label",{"v-field-label--floating":e.floating},e.class],style:e.style,"aria-hidden":e.floating||void 0},n)),{}}});function Uc(e){const{t:o}=qa();function n(r){let{name:t}=r;const a={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[t],i=e[`onClick:${t}`],l=i&&a?o(`$vuetify.input.${a}`,e.label??""):void 0;return c.createVNode(Mt,{icon:e[`${t}Icon`],"aria-label":l,onClick:i},null)}return{InputIcon:n}}const Yc=ce({focused:Boolean,"onUpdate:focused":Jt()},"focus");function jc(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot();const n=sn(e,"focused"),r=c.computed(()=>({[`${o}--focused`]:n.value}));function t(){n.value=!0}function a(){n.value=!1}return{focusClasses:r,isFocused:n,focus:t,blur:a}}const tg=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],zc=ce({appendInnerIcon:Qe,bgColor:String,clearable:Boolean,clearIcon:{type:Qe,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},error:Boolean,flat:Boolean,label:String,persistentClear:Boolean,prependInnerIcon:Qe,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>tg.includes(e)},"onClick:clear":Jt(),"onClick:appendInner":Jt(),"onClick:prependInner":Jt(),...Be(),...sc(),...Sn(),...ht()},"VField"),$c=De()({name:"VField",inheritAttrs:!1,props:{id:String,...Yc(),...zc()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:n,emit:r,slots:t}=o;const{themeClasses:a}=Dt(e),{loaderClasses:i}=cc(e),{focusClasses:l,isFocused:s,focus:u,blur:h}=jc(e),{InputIcon:f}=Uc(e),{roundedClasses:g}=xn(e),{rtlClasses:p}=wn(),d=c.computed(()=>e.dirty||e.active),v=c.computed(()=>!e.singleLine&&!!(e.label||t.label)),m=Un(),A=c.computed(()=>e.id||`input-${m}`),y=c.computed(()=>`${A.value}-messages`),C=c.ref(),E=c.ref(),S=c.ref(),w=c.computed(()=>["plain","underlined"].includes(e.variant)),{backgroundColorClasses:T,backgroundColorStyles:b}=jn(c.toRef(e,"bgColor")),{textColorClasses:N,textColorStyles:M}=Yn(c.computed(()=>e.error||e.disabled?void 0:d.value&&s.value?e.color:e.baseColor));c.watch(d,P=>{if(v.value){const I=C.value.$el,O=E.value.$el;requestAnimationFrame(()=>{const L=Os(I),H=O.getBoundingClientRect(),k=H.x-L.x,B=H.y-L.y-(L.height/2-H.height/2),F=H.width/.75,Y=Math.abs(F-L.width)>1?{maxWidth:Ae(F)}:void 0,$=getComputedStyle(I),W=getComputedStyle(O),G=parseFloat($.transitionDuration)*1e3||150,j=parseFloat(W.getPropertyValue("--v-field-label-scale")),z=W.getPropertyValue("color");I.style.visibility="visible",O.style.visibility="hidden",Ls(I,{transform:`translate(${k}px, ${B}px) scale(${j})`,color:z,...Y},{duration:G,easing:Js,direction:P?"normal":"reverse"}).finished.then(()=>{I.style.removeProperty("visibility"),O.style.removeProperty("visibility")})})}},{flush:"post"});const x=c.computed(()=>({isActive:d,isFocused:s,controlRef:S,blur:h,focus:u}));function D(P){P.target!==document.activeElement&&P.preventDefault()}function R(P){var I;P.key!=="Enter"&&P.key!==" "||(P.preventDefault(),P.stopPropagation(),(I=e["onClick:clear"])==null||I.call(e,new MouseEvent("click")))}return Oe(()=>{var k,B,F;const P=e.variant==="outlined",I=!!(t["prepend-inner"]||e.prependInnerIcon),O=!!(e.clearable||t.clear),L=!!(t["append-inner"]||e.appendInnerIcon||O),H=()=>t.label?t.label({...x.value,label:e.label,props:{for:A.value}}):e.label;return c.createVNode("div",c.mergeProps({class:["v-field",{"v-field--active":d.value,"v-field--appended":L,"v-field--center-affix":e.centerAffix??!w.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":I,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!H(),[`v-field--variant-${e.variant}`]:!0},a.value,T.value,l.value,i.value,g.value,p.value,e.class],style:[b.value,e.style],onClick:D},n),[c.createVNode("div",{class:"v-field__overlay"},null),c.createVNode(vp,{name:"v-field",active:!!e.loading,color:e.error?"error":typeof e.loading=="string"?e.loading:e.color},{default:t.loader}),I&&c.createVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[e.prependInnerIcon&&c.createVNode(f,{key:"prepend-icon",name:"prependInner"},null),(k=t["prepend-inner"])==null?void 0:k.call(t,x.value)]),c.createVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&v.value&&c.createVNode(wo,{key:"floating-label",ref:E,class:[N.value],floating:!0,for:A.value,style:M.value},{default:()=>[H()]}),c.createVNode(wo,{ref:C,for:A.value},{default:()=>[H()]}),(B=t.default)==null?void 0:B.call(t,{...x.value,props:{id:A.value,class:"v-field__input","aria-describedby":y.value},focus:u,blur:h})]),O&&c.createVNode(Mc,{key:"clear"},{default:()=>[c.withDirectives(c.createVNode("div",{class:"v-field__clearable",onMousedown:Y=>{Y.preventDefault(),Y.stopPropagation()}},[c.createVNode(Zt,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[t.clear?t.clear({...x.value,props:{onKeydown:R,onFocus:u,onBlur:h,onClick:e["onClick:clear"]}}):c.createVNode(f,{name:"clear",onKeydown:R,onFocus:u,onBlur:h},null)]})]),[[c.vShow,e.dirty]])]}),L&&c.createVNode("div",{key:"append",class:"v-field__append-inner"},[(F=t["append-inner"])==null?void 0:F.call(t,x.value),e.appendInnerIcon&&c.createVNode(f,{key:"append-icon",name:"appendInner"},null)]),c.createVNode("div",{class:["v-field__outline",N.value],style:M.value},[P&&c.createVNode(c.Fragment,null,[c.createVNode("div",{class:"v-field__outline__start"},null),v.value&&c.createVNode("div",{class:"v-field__outline__notch"},[c.createVNode(wo,{ref:E,floating:!0,for:A.value},{default:()=>[H()]})]),c.createVNode("div",{class:"v-field__outline__end"},null)]),w.value&&v.value&&c.createVNode(wo,{ref:E,floating:!0,for:A.value},{default:()=>[H()]})])])}),{controlRef:S}}});function ng(e){const o=Object.keys($c.props).filter(n=>!La(n)&&n!=="class"&&n!=="style");return As(e,o)}const rg=ce({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...Be(),...xo({transition:{component:Dc,leaveAbsolute:!0,group:!0}})},"VMessages"),og=De()({name:"VMessages",props:rg(),setup(e,o){let{slots:n}=o;const r=c.computed(()=>yn(e.messages)),{textColorClasses:t,textColorStyles:a}=Yn(c.computed(()=>e.color));return Oe(()=>c.createVNode(Tn,{transition:e.transition,tag:"div",class:["v-messages",t.value,e.class],style:[a.value,e.style],role:"alert","aria-live":"polite"},{default:()=>[e.active&&r.value.map((i,l)=>c.createVNode("div",{class:"v-messages__message",key:`${l}-${r.value}`},[n.message?n.message({message:i}):i]))]})),{}}}),ag=Symbol.for("vuetify:form");function ig(){return c.inject(ag,null)}const lg=ce({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Yc()},"validation");function sg(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ot(),n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Un();const r=sn(e,"modelValue"),t=c.computed(()=>e.validationValue===void 0?r.value:e.validationValue),a=ig(),i=c.ref([]),l=c.shallowRef(!0),s=c.computed(()=>!!(yn(r.value===""?null:r.value).length||yn(t.value===""?null:t.value).length)),u=c.computed(()=>!!(e.disabled??(a==null?void 0:a.isDisabled.value))),h=c.computed(()=>!!(e.readonly??(a==null?void 0:a.isReadonly.value))),f=c.computed(()=>{var S;return(S=e.errorMessages)!=null&&S.length?yn(e.errorMessages).concat(i.value).slice(0,Math.max(0,+e.maxErrors)):i.value}),g=c.computed(()=>{let S=(e.validateOn??(a==null?void 0:a.validateOn.value))||"input";S==="lazy"&&(S="input lazy"),S==="eager"&&(S="input eager");const w=new Set((S==null?void 0:S.split(" "))??[]);return{input:w.has("input"),blur:w.has("blur")||w.has("input")||w.has("invalid-input"),invalidInput:w.has("invalid-input"),lazy:w.has("lazy"),eager:w.has("eager")}}),p=c.computed(()=>{var S;return e.error||(S=e.errorMessages)!=null&&S.length?!1:e.rules.length?l.value?i.value.length||g.value.lazy?null:!0:!i.value.length:!0}),d=c.shallowRef(!1),v=c.computed(()=>({[`${o}--error`]:p.value===!1,[`${o}--dirty`]:s.value,[`${o}--disabled`]:u.value,[`${o}--readonly`]:h.value})),m=He("validation"),A=c.computed(()=>e.name??c.unref(n));c.onBeforeMount(()=>{a==null||a.register({id:A.value,vm:m,validate:E,reset:y,resetValidation:C})}),c.onBeforeUnmount(()=>{a==null||a.unregister(A.value)}),c.onMounted(async()=>{g.value.lazy||await E(!g.value.eager),a==null||a.update(A.value,p.value,f.value)}),zn(()=>g.value.input||g.value.invalidInput&&p.value===!1,()=>{c.watch(t,()=>{if(t.value!=null)E();else if(e.focused){const S=c.watch(()=>e.focused,w=>{w||E(),S()})}})}),zn(()=>g.value.blur,()=>{c.watch(()=>e.focused,S=>{S||E()})}),c.watch([p,f],()=>{a==null||a.update(A.value,p.value,f.value)});async function y(){r.value=null,await c.nextTick(),await C()}async function C(){l.value=!0,g.value.lazy?i.value=[]:await E(!g.value.eager)}async function E(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const w=[];d.value=!0;for(const T of e.rules){if(w.length>=+(e.maxErrors??1))break;const N=await(typeof T=="function"?T:()=>T)(t.value);if(N!==!0){if(N!==!1&&typeof N!="string"){console.warn(`${N} is not a valid value. Rule functions must return boolean true or a string.`);continue}w.push(N||"")}}return i.value=w,d.value=!1,l.value=S,i.value}return{errorMessages:f,isDirty:s,isDisabled:u,isReadonly:h,isPristine:l,isValid:p,isValidating:d,reset:y,resetValidation:C,validate:E,validationClasses:v}}const Wc=ce({id:String,appendIcon:Qe,centerAffix:{type:Boolean,default:!0},prependIcon:Qe,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":Jt(),"onClick:append":Jt(),...Be(),...mr(),...x1(Ao(),["maxWidth","minWidth","width"]),...ht(),...lg()},"VInput"),Gc=De()({name:"VInput",props:{...Wc()},emits:{"update:modelValue":e=>!0},setup(e,o){let{attrs:n,slots:r,emit:t}=o;const{densityClasses:a}=vr(e),{dimensionStyles:i}=Co(e),{themeClasses:l}=Dt(e),{rtlClasses:s}=wn(),{InputIcon:u}=Uc(e),h=Un(),f=c.computed(()=>e.id||`input-${h}`),g=c.computed(()=>`${f.value}-messages`),{errorMessages:p,isDirty:d,isDisabled:v,isReadonly:m,isPristine:A,isValid:y,isValidating:C,reset:E,resetValidation:S,validate:w,validationClasses:T}=sg(e,"v-input",f),b=c.computed(()=>({id:f,messagesId:g,isDirty:d,isDisabled:v,isReadonly:m,isPristine:A,isValid:y,isValidating:C,reset:E,resetValidation:S,validate:w})),N=c.computed(()=>{var M;return(M=e.errorMessages)!=null&&M.length||!A.value&&p.value.length?p.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages});return Oe(()=>{var P,I,O,L;const M=!!(r.prepend||e.prependIcon),x=!!(r.append||e.appendIcon),D=N.value.length>0,R=!e.hideDetails||e.hideDetails==="auto"&&(D||!!r.details);return c.createVNode("div",{class:["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--hide-spin-buttons":e.hideSpinButtons},a.value,l.value,s.value,T.value,e.class],style:[i.value,e.style]},[M&&c.createVNode("div",{key:"prepend",class:"v-input__prepend"},[(P=r.prepend)==null?void 0:P.call(r,b.value),e.prependIcon&&c.createVNode(u,{key:"prepend-icon",name:"prepend"},null)]),r.default&&c.createVNode("div",{class:"v-input__control"},[(I=r.default)==null?void 0:I.call(r,b.value)]),x&&c.createVNode("div",{key:"append",class:"v-input__append"},[e.appendIcon&&c.createVNode(u,{key:"append-icon",name:"append"},null),(O=r.append)==null?void 0:O.call(r,b.value)]),R&&c.createVNode("div",{class:"v-input__details"},[c.createVNode(og,{id:g.value,active:D,messages:N.value},{message:r.message}),(L=r.details)==null?void 0:L.call(r,b.value)])])}),{reset:E,resetValidation:S,validate:w,isValid:y,errorMessages:p}}}),oi=Symbol("Forwarded refs");function ai(e,o){let n=e;for(;n;){const r=Reflect.getOwnPropertyDescriptor(n,o);if(r)return r;n=Object.getPrototypeOf(n)}}function Qc(e){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];return e[oi]=n,new Proxy(e,{get(t,a){if(Reflect.has(t,a))return Reflect.get(t,a);if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const i of n)if(i.value&&Reflect.has(i.value,a)){const l=Reflect.get(i.value,a);return typeof l=="function"?l.bind(i.value):l}}},has(t,a){if(Reflect.has(t,a))return!0;if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,a))return!0;return!1},set(t,a,i){if(Reflect.has(t,a))return Reflect.set(t,a,i);if(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))return!1;for(const l of n)if(l.value&&Reflect.has(l.value,a))return Reflect.set(l.value,a,i);return!1},getOwnPropertyDescriptor(t,a){var l;const i=Reflect.getOwnPropertyDescriptor(t,a);if(i)return i;if(!(typeof a=="symbol"||a.startsWith("$")||a.startsWith("__"))){for(const s of n){if(!s.value)continue;const u=ai(s.value,a)??("_"in s.value?ai((l=s.value._)==null?void 0:l.setupState,a):void 0);if(u)return u}for(const s of n){const u=s.value&&s.value[oi];if(!u)continue;const h=u.slice();for(;h.length;){const f=h.shift(),g=ai(f.value,a);if(g)return g;const p=f.value&&f.value[oi];p&&h.push(...p)}}}}})}const cg=ce({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>typeof e=="boolean"||[1e3,1024].includes(Number(e))},...Wc({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>yn(e).every(o=>o!=null&&typeof o=="object")},...zc({clearable:!0})},"VFileInput"),Jc=De()({name:"VFileInput",inheritAttrs:!1,props:cg(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,o){let{attrs:n,emit:r,slots:t}=o;const{t:a}=qa(),i=sn(e,"modelValue",e.modelValue,N=>yn(N),N=>!e.multiple&&Array.isArray(N)?N[0]:N),{isFocused:l,focus:s,blur:u}=jc(e),h=c.computed(()=>typeof e.showSize!="boolean"?e.showSize:void 0),f=c.computed(()=>(i.value??[]).reduce((N,M)=>{let{size:x=0}=M;return N+x},0)),g=c.computed(()=>ws(f.value,h.value)),p=c.computed(()=>(i.value??[]).map(N=>{const{name:M="",size:x=0}=N;return e.showSize?`${M} (${ws(x,h.value)})`:M})),d=c.computed(()=>{var M;const N=((M=i.value)==null?void 0:M.length)??0;return e.showSize?a(e.counterSizeString,N,g.value):a(e.counterString,N)}),v=c.ref(),m=c.ref(),A=c.ref(),y=c.computed(()=>l.value||e.active),C=c.computed(()=>["plain","underlined"].includes(e.variant));function E(){var N;A.value!==document.activeElement&&((N=A.value)==null||N.focus()),l.value||s()}function S(N){var M;(M=A.value)==null||M.click()}function w(N){r("mousedown:control",N)}function T(N){var M;(M=A.value)==null||M.click(),r("click:control",N)}function b(N){N.stopPropagation(),E(),c.nextTick(()=>{i.value=[],M1(e["onClick:clear"],N)})}return c.watch(i,N=>{(!Array.isArray(N)||!N.length)&&A.value&&(A.value.value="")}),Oe(()=>{const N=!!(t.counter||e.counter),M=!!(N||t.details),[x,D]=T1(n),{modelValue:R,...P}=Gc.filterProps(e),I=ng(e);return c.createVNode(Gc,c.mergeProps({ref:v,modelValue:i.value,"onUpdate:modelValue":O=>i.value=O,class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":C.value},e.class],style:e.style,"onClick:prepend":S},x,P,{centerAffix:!C.value,focused:l.value}),{...t,default:O=>{let{id:L,isDisabled:H,isDirty:k,isReadonly:B,isValid:F}=O;return c.createVNode($c,c.mergeProps({ref:m,"prepend-icon":e.prependIcon,onMousedown:w,onClick:T,"onClick:clear":b,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},I,{id:L.value,active:y.value||k.value,dirty:k.value||e.dirty,disabled:H.value,focused:l.value,error:F.value===!1}),{...t,default:Y=>{var G;let{props:{class:$,...W}}=Y;return c.createVNode(c.Fragment,null,[c.createVNode("input",c.mergeProps({ref:A,type:"file",readonly:B.value,disabled:H.value,multiple:e.multiple,name:e.name,onClick:j=>{j.stopPropagation(),B.value&&j.preventDefault(),E()},onChange:j=>{if(!j.target)return;const z=j.target;i.value=[...z.files??[]]},onFocus:E,onBlur:u},W,D),null),c.createVNode("div",{class:$},[!!((G=i.value)!=null&&G.length)&&!e.hideInput&&(t.selection?t.selection({fileNames:p.value,totalBytes:f.value,totalBytesReadable:g.value}):e.chips?p.value.map(j=>c.createVNode(Kp,{key:j,size:"small",text:j},null)):p.value.join(", "))])])}})},details:M?O=>{var L,H;return c.createVNode(c.Fragment,null,[(L=t.details)==null?void 0:L.call(t,O),N&&c.createVNode(c.Fragment,null,[c.createVNode("span",null,null),c.createVNode(Xp,{active:!!((H=i.value)!=null&&H.length),value:d.value,disabled:e.disabled},t.counter)])])}:void 0})}),Qc({},v,m,A)}});function ii(e,o){return{x:e.x+o.x,y:e.y+o.y}}function ug(e,o){return{x:e.x-o.x,y:e.y-o.y}}function Kc(e,o){if(e.side==="top"||e.side==="bottom"){const{side:n,align:r}=e,t=r==="left"?0:r==="center"?o.width/2:r==="right"?o.width:r,a=n==="top"?0:n==="bottom"?o.height:n;return ii({x:t,y:a},o)}else if(e.side==="left"||e.side==="right"){const{side:n,align:r}=e,t=n==="left"?0:n==="right"?o.width:n,a=r==="top"?0:r==="center"?o.height/2:r==="bottom"?o.height:r;return ii({x:t,y:a},o)}return ii({x:o.width/2,y:o.height/2},o)}const Zc={static:hg,connected:vg},dg=ce({locationStrategy:{type:[String,Function],default:"static",validator:e=>typeof e=="function"||e in Zc},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array]},"VOverlay-location-strategies");function fg(e,o){const n=c.ref({}),r=c.ref();Ge&&zn(()=>!!(o.isActive.value&&e.locationStrategy),a=>{var i,l;c.watch(()=>e.locationStrategy,a),c.onScopeDispose(()=>{window.removeEventListener("resize",t),r.value=void 0}),window.addEventListener("resize",t,{passive:!0}),typeof e.locationStrategy=="function"?r.value=(i=e.locationStrategy(o,e,n))==null?void 0:i.updateLocation:r.value=(l=Zc[e.locationStrategy](o,e,n))==null?void 0:l.updateLocation});function t(a){var i;(i=r.value)==null||i.call(r,a)}return{contentStyles:n,updateLocation:r}}function hg(){}function mg(e,o){const n=Os(e);return o?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function vg(e,o,n){(Array.isArray(e.target.value)||_1(e.target.value))&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:t,preferredOrigin:a}=Ba(()=>{const d=Ha(o.location,e.isRtl.value),v=o.origin==="overlap"?d:o.origin==="auto"?Va(d):Ha(o.origin,e.isRtl.value);return d.side===v.side&&d.align===ka(v).align?{preferredAnchor:Rs(d),preferredOrigin:Rs(v)}:{preferredAnchor:d,preferredOrigin:v}}),[i,l,s,u]=["minWidth","minHeight","maxWidth","maxHeight"].map(d=>c.computed(()=>{const v=parseFloat(o[d]);return isNaN(v)?1/0:v})),h=c.computed(()=>{if(Array.isArray(o.offset))return o.offset;if(typeof o.offset=="string"){const d=o.offset.split(" ").map(parseFloat);return d.length<2&&d.push(0),d}return typeof o.offset=="number"?[o.offset,0]:[0,0]});let f=!1;const g=new ResizeObserver(()=>{f&&p()});c.watch([e.target,e.contentEl],(d,v)=>{let[m,A]=d,[y,C]=v;y&&!Array.isArray(y)&&g.unobserve(y),m&&!Array.isArray(m)&&g.observe(m),C&&g.unobserve(C),A&&g.observe(A)},{immediate:!0}),c.onScopeDispose(()=>{g.disconnect()});function p(){if(f=!1,requestAnimationFrame(()=>f=!0),!e.target.value||!e.contentEl.value)return;const d=P1(e.target.value),v=mg(e.contentEl.value,e.isRtl.value),m=vo(e.contentEl.value),A=12;m.length||(m.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(v.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),v.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const y=m.reduce((x,D)=>{const R=D.getBoundingClientRect(),P=new Cn({x:D===document.documentElement?0:R.x,y:D===document.documentElement?0:R.y,width:D.clientWidth,height:D.clientHeight});return x?new Cn({x:Math.max(x.left,P.left),y:Math.max(x.top,P.top),width:Math.min(x.right,P.right)-Math.max(x.left,P.left),height:Math.min(x.bottom,P.bottom)-Math.max(x.top,P.top)}):P},void 0);y.x+=A,y.y+=A,y.width-=A*2,y.height-=A*2;let C={anchor:t.value,origin:a.value};function E(x){const D=new Cn(v),R=Kc(x.anchor,d),P=Kc(x.origin,D);let{x:I,y:O}=ug(R,P);switch(x.anchor.side){case"top":O-=h.value[0];break;case"bottom":O+=h.value[0];break;case"left":I-=h.value[0];break;case"right":I+=h.value[0];break}switch(x.anchor.align){case"top":O-=h.value[1];break;case"bottom":O+=h.value[1];break;case"left":I-=h.value[1];break;case"right":I+=h.value[1];break}return D.x+=I,D.y+=O,D.width=Math.min(D.width,s.value),D.height=Math.min(D.height,u.value),{overflows:Ps(D,y),x:I,y:O}}let S=0,w=0;const T={x:0,y:0},b={x:!1,y:!1};let N=-1;for(;;){if(N++>10){j1("Infinite loop detected in connectedLocationStrategy");break}const{x,y:D,overflows:R}=E(C);S+=x,w+=D,v.x+=x,v.y+=D;{const P=Is(C.anchor),I=R.x.before||R.x.after,O=R.y.before||R.y.after;let L=!1;if(["x","y"].forEach(H=>{if(H==="x"&&I&&!b.x||H==="y"&&O&&!b.y){const k={anchor:{...C.anchor},origin:{...C.origin}},B=H==="x"?P==="y"?ka:Va:P==="y"?Va:ka;k.anchor=B(k.anchor),k.origin=B(k.origin);const{overflows:F}=E(k);(F[H].before<=R[H].before&&F[H].after<=R[H].after||F[H].before+F[H].after<(R[H].before+R[H].after)/2)&&(C=k,L=b[H]=!0)}}),L)continue}R.x.before&&(S+=R.x.before,v.x+=R.x.before),R.x.after&&(S-=R.x.after,v.x-=R.x.after),R.y.before&&(w+=R.y.before,v.y+=R.y.before),R.y.after&&(w-=R.y.after,v.y-=R.y.after);{const P=Ps(v,y);T.x=y.width-P.x.before-P.x.after,T.y=y.height-P.y.before-P.y.after,S+=P.x.before,v.x+=P.x.before,w+=P.y.before,v.y+=P.y.before}break}const M=Is(C.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${C.anchor.side} ${C.anchor.align}`,transformOrigin:`${C.origin.side} ${C.origin.align}`,top:Ae(li(w)),left:e.isRtl.value?void 0:Ae(li(S)),right:e.isRtl.value?Ae(li(-S)):void 0,minWidth:Ae(M==="y"?Math.min(i.value,d.width):i.value),maxWidth:Ae(Xc(ur(T.x,i.value===1/0?0:i.value,s.value))),maxHeight:Ae(Xc(ur(T.y,l.value===1/0?0:l.value,u.value)))}),{available:T,contentBox:v}}return c.watch(()=>[t.value,a.value,o.offset,o.minWidth,o.minHeight,o.maxWidth,o.maxHeight],()=>p()),c.nextTick(()=>{const d=p();if(!d)return;const{available:v,contentBox:m}=d;m.height>v.y&&requestAnimationFrame(()=>{p(),requestAnimationFrame(()=>{p()})})}),{updateLocation:p}}function li(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function Xc(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let si=!0;const To=[];function pg(e){!si||To.length?(To.push(e),ci()):(si=!1,e(),ci())}let qc=-1;function ci(){cancelAnimationFrame(qc),qc=requestAnimationFrame(()=>{const e=To.shift();e&&e(),To.length?ci():si=!0})}const Do={none:null,close:Ag,block:Cg,reposition:Eg},gg=ce({scrollStrategy:{type:[String,Function],default:"block",validator:e=>typeof e=="function"||e in Do}},"VOverlay-scroll-strategies");function yg(e,o){if(!Ge)return;let n;c.watchEffect(async()=>{n==null||n.stop(),o.isActive.value&&e.scrollStrategy&&(n=c.effectScope(),await new Promise(r=>setTimeout(r)),n.active&&n.run(()=>{var r;typeof e.scrollStrategy=="function"?e.scrollStrategy(o,e,n):(r=Do[e.scrollStrategy])==null||r.call(Do,o,e,n)}))}),c.onScopeDispose(()=>{n==null||n.stop()})}function Ag(e){function o(n){e.isActive.value=!1}_c(e.targetEl.value??e.contentEl.value,o)}function Cg(e,o){var i;const n=(i=e.root.value)==null?void 0:i.offsetParent,r=[...new Set([...vo(e.targetEl.value,o.contained?n:void 0),...vo(e.contentEl.value,o.contained?n:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),t=window.innerWidth-document.documentElement.offsetWidth,a=(l=>za(l)&&l)(n||document.documentElement);a&&e.root.value.classList.add("v-overlay--scroll-blocked"),r.forEach((l,s)=>{l.style.setProperty("--v-body-scroll-x",Ae(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",Ae(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",Ae(t)),l.classList.add("v-overlay-scroll-blocked")}),c.onScopeDispose(()=>{r.forEach((l,s)=>{const u=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),h=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),f=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-u,l.scrollTop=-h,l.style.scrollBehavior=f}),a&&e.root.value.classList.remove("v-overlay--scroll-blocked")})}function Eg(e,o,n){let r=!1,t=-1,a=-1;function i(l){pg(()=>{var h,f;const s=performance.now();(f=(h=e.updateLocation).value)==null||f.call(h,l),r=(performance.now()-s)/(1e3/60)>2})}a=(typeof requestIdleCallback>"u"?l=>l():requestIdleCallback)(()=>{n.run(()=>{_c(e.targetEl.value??e.contentEl.value,l=>{r?(cancelAnimationFrame(t),t=requestAnimationFrame(()=>{t=requestAnimationFrame(()=>{i(l)})})):i(l)})})}),c.onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(a),cancelAnimationFrame(t)})}function _c(e,o){const n=[document,...vo(e)];n.forEach(r=>{r.addEventListener("scroll",o,{passive:!0})}),c.onScopeDispose(()=>{n.forEach(r=>{r.removeEventListener("scroll",o)})})}const Sg=Symbol.for("vuetify:v-menu"),xg=ce({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function wg(e,o){let n=()=>{};function r(i){n==null||n();const l=Number(i?e.openDelay:e.closeDelay);return new Promise(s=>{n=R1(l,()=>{o==null||o(i),s(i)})})}function t(){return r(!0)}function a(){return r(!1)}return{clearDelay:n,runOpenDelay:t,runCloseDelay:a}}const Tg=ce({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...xg()},"VOverlay-activator");function Dg(e,o){let{isActive:n,isTop:r,contentEl:t}=o;const a=He("useActivator"),i=c.ref();let l=!1,s=!1,u=!0;const h=c.computed(()=>e.openOnFocus||e.openOnFocus==null&&e.openOnHover),f=c.computed(()=>e.openOnClick||e.openOnClick==null&&!e.openOnHover&&!h.value),{runOpenDelay:g,runCloseDelay:p}=wg(e,b=>{b===(e.openOnHover&&l||h.value&&s)&&!(e.openOnHover&&n.value&&!r.value)&&(n.value!==b&&(u=!0),n.value=b)}),d=c.ref(),v={onClick:b=>{b.stopPropagation(),i.value=b.currentTarget||b.target,n.value||(d.value=[b.clientX,b.clientY]),n.value=!n.value},onMouseenter:b=>{var N;(N=b.sourceCapabilities)!=null&&N.firesTouchEvents||(l=!0,i.value=b.currentTarget||b.target,g())},onMouseleave:b=>{l=!1,p()},onFocus:b=>{N1(b.target,":focus-visible")!==!1&&(s=!0,b.stopPropagation(),i.value=b.currentTarget||b.target,g())},onBlur:b=>{s=!1,b.stopPropagation(),p()}},m=c.computed(()=>{const b={};return f.value&&(b.onClick=v.onClick),e.openOnHover&&(b.onMouseenter=v.onMouseenter,b.onMouseleave=v.onMouseleave),h.value&&(b.onFocus=v.onFocus,b.onBlur=v.onBlur),b}),A=c.computed(()=>{const b={};if(e.openOnHover&&(b.onMouseenter=()=>{l=!0,g()},b.onMouseleave=()=>{l=!1,p()}),h.value&&(b.onFocusin=()=>{s=!0,g()},b.onFocusout=()=>{s=!1,p()}),e.closeOnContentClick){const N=c.inject(Sg,null);b.onClick=()=>{n.value=!1,N==null||N.closeParents()}}return b}),y=c.computed(()=>{const b={};return e.openOnHover&&(b.onMouseenter=()=>{u&&(l=!0,u=!1,g())},b.onMouseleave=()=>{l=!1,p()}),b});c.watch(r,b=>{var N;b&&(e.openOnHover&&!l&&(!h.value||!s)||h.value&&!s&&(!e.openOnHover||!l))&&!((N=t.value)!=null&&N.contains(document.activeElement))&&(n.value=!1)}),c.watch(n,b=>{b||setTimeout(()=>{d.value=void 0})},{flush:"post"});const C=Fa();c.watchEffect(()=>{C.value&&c.nextTick(()=>{i.value=C.el})});const E=Fa(),S=c.computed(()=>e.target==="cursor"&&d.value?d.value:E.value?E.el:eu(e.target,a)||i.value),w=c.computed(()=>Array.isArray(S.value)?void 0:S.value);let T;return c.watch(()=>!!e.activator,b=>{b&&Ge?(T=c.effectScope(),T.run(()=>{Mg(e,a,{activatorEl:i,activatorEvents:m})})):T&&T.stop()},{flush:"post",immediate:!0}),c.onScopeDispose(()=>{T==null||T.stop()}),{activatorEl:i,activatorRef:C,target:S,targetEl:w,targetRef:E,activatorEvents:m,contentEvents:A,scrimEvents:y}}function Mg(e,o,n){let{activatorEl:r,activatorEvents:t}=n;c.watch(()=>e.activator,(s,u)=>{if(u&&s!==u){const h=l(u);h&&i(h)}s&&c.nextTick(()=>a())},{immediate:!0}),c.watch(()=>e.activatorProps,()=>{a()}),c.onScopeDispose(()=>{i()});function a(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&O1(s,c.mergeProps(t.value,u))}function i(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.activatorProps;s&&L1(s,c.mergeProps(t.value,u))}function l(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activator;const u=eu(s,o);return r.value=(u==null?void 0:u.nodeType)===Node.ELEMENT_NODE?u:void 0,r.value}}function eu(e,o){var r,t;if(!e)return;let n;if(e==="parent"){let a=(t=(r=o==null?void 0:o.proxy)==null?void 0:r.$el)==null?void 0:t.parentNode;for(;a!=null&&a.hasAttribute("data-no-activator");)a=a.parentNode;n=a}else typeof e=="string"?n=document.querySelector(e):"$el"in e?n=e.$el:n=e;return n}function bg(){if(!Ge)return c.shallowRef(!1);const{ssr:e}=Pc();if(e){const o=c.shallowRef(!1);return c.onMounted(()=>{o.value=!0}),o}else return c.shallowRef(!0)}const Ng=ce({eager:Boolean},"lazy");function Rg(e,o){const n=c.shallowRef(!1),r=c.computed(()=>n.value||e.eager||o.value);c.watch(o,()=>n.value=!0);function t(){e.eager||(n.value=!1)}return{isBooted:n,hasContent:r,onAfterLeave:t}}function tu(){const o=He("useScopeId").vnode.scopeId;return{scopeId:o?{[o]:""}:void 0}}const nu=Symbol.for("vuetify:stack"),Sr=c.reactive([]);function Ig(e,o,n){const r=He("useStack"),t=!n,a=c.inject(nu,void 0),i=c.reactive({activeChildren:new Set});c.provide(nu,i);const l=c.shallowRef(+o.value);zn(e,()=>{var f;const h=(f=Sr.at(-1))==null?void 0:f[1];l.value=h?h+10:+o.value,t&&Sr.push([r.uid,l.value]),a==null||a.activeChildren.add(r.uid),c.onScopeDispose(()=>{if(t){const g=c.toRaw(Sr).findIndex(p=>p[0]===r.uid);Sr.splice(g,1)}a==null||a.activeChildren.delete(r.uid)})});const s=c.shallowRef(!0);t&&c.watchEffect(()=>{var f;const h=((f=Sr.at(-1))==null?void 0:f[0])===r.uid;setTimeout(()=>s.value=h)});const u=c.computed(()=>!i.activeChildren.size);return{globalTop:c.readonly(s),localTop:u,stackStyles:c.computed(()=>({zIndex:l.value}))}}function Pg(e){return{teleportTarget:c.computed(()=>{const n=e();if(n===!0||!Ge)return;const r=n===!1?document.body:typeof n=="string"?document.querySelector(n):n;if(r==null){c.warn(`Unable to locate target ${n}`);return}let t=[...r.children].find(a=>a.matches(".v-overlay-container"));return t||(t=document.createElement("div"),t.className="v-overlay-container",r.appendChild(t)),t})}}function Og(){return!0}function ru(e,o,n){if(!e||ou(e,n)===!1)return!1;const r=Qs(o);if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&r.host===e.target)return!1;const t=(typeof n.value=="object"&&n.value.include||(()=>[]))();return t.push(o),!t.some(a=>a==null?void 0:a.contains(e.target))}function ou(e,o){return(typeof o.value=="object"&&o.value.closeConditional||Og)(e)}function Lg(e,o,n){const r=typeof n.value=="function"?n.value:n.value.handler;e.shadowTarget=e.target,o._clickOutside.lastMousedownWasOutside&&ru(e,o,n)&&setTimeout(()=>{ou(e,n)&&r&&r(e)},0)}function au(e,o){const n=Qs(e);o(document),typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&o(n)}const Bg={mounted(e,o){const n=t=>Lg(t,e,o),r=t=>{e._clickOutside.lastMousedownWasOutside=ru(t,e,o)};au(e,t=>{t.addEventListener("click",n,!0),t.addEventListener("mousedown",r,!0)}),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[o.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,o){e._clickOutside&&(au(e,n=>{var a;if(!n||!((a=e._clickOutside)!=null&&a[o.instance.$.uid]))return;const{onClick:r,onMousedown:t}=e._clickOutside[o.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",t,!0)}),delete e._clickOutside[o.instance.$.uid])}};function Fg(e){const{modelValue:o,color:n,...r}=e;return c.createVNode(c.Transition,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&c.createVNode("div",c.mergeProps({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},r),null)]})}const iu=ce({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Tg(),...Be(),...Ao(),...Ng(),...dg(),...gg(),...ht(),...xo()},"VOverlay"),lu=De()({name:"VOverlay",directives:{ClickOutside:Bg},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...iu()},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,o){let{slots:n,attrs:r,emit:t}=o;const a=He("VOverlay"),i=c.ref(),l=c.ref(),s=c.ref(),u=sn(e,"modelValue"),h=c.computed({get:()=>u.value,set:j=>{j&&e.disabled||(u.value=j)}}),{themeClasses:f}=Dt(e),{rtlClasses:g,isRtl:p}=wn(),{hasContent:d,onAfterLeave:v}=Rg(e,h),m=jn(c.computed(()=>typeof e.scrim=="string"?e.scrim:null)),{globalTop:A,localTop:y,stackStyles:C}=Ig(h,c.toRef(e,"zIndex"),e._disableGlobalStack),{activatorEl:E,activatorRef:S,target:w,targetEl:T,targetRef:b,activatorEvents:N,contentEvents:M,scrimEvents:x}=Dg(e,{isActive:h,isTop:y,contentEl:s}),{teleportTarget:D}=Pg(()=>{var Z,ee,se;const j=e.attach||e.contained;if(j)return j;const z=((Z=E==null?void 0:E.value)==null?void 0:Z.getRootNode())||((se=(ee=a.proxy)==null?void 0:ee.$el)==null?void 0:se.getRootNode());return z instanceof ShadowRoot?z:!1}),{dimensionStyles:R}=Co(e),P=bg(),{scopeId:I}=tu();c.watch(()=>e.disabled,j=>{j&&(h.value=!1)});const{contentStyles:O,updateLocation:L}=fg(e,{isRtl:p,contentEl:s,target:w,isActive:h});yg(e,{root:i,contentEl:s,targetEl:T,isActive:h,updateLocation:L});function H(j){t("click:outside",j),e.persistent?$():h.value=!1}function k(j){return h.value&&A.value&&(!e.scrim||j.target===l.value||j instanceof MouseEvent&&j.shadowTarget===l.value)}Ge&&c.watch(h,j=>{j?window.addEventListener("keydown",B):window.removeEventListener("keydown",B)},{immediate:!0}),c.onBeforeUnmount(()=>{Ge&&window.removeEventListener("keydown",B)});function B(j){var z,Z;j.key==="Escape"&&A.value&&(e.persistent?$():(h.value=!1,(z=s.value)!=null&&z.contains(document.activeElement)&&((Z=E.value)==null||Z.focus())))}const F=Cp();zn(()=>e.closeOnBack,()=>{Ep(F,j=>{A.value&&h.value?(j(!1),e.persistent?$():h.value=!1):j()})});const Y=c.ref();c.watch(()=>h.value&&(e.absolute||e.contained)&&D.value==null,j=>{if(j){const z=X1(i.value);z&&z!==document.scrollingElement&&(Y.value=z.scrollTop)}});function $(){e.noClickAnimation||s.value&&Ls(s.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:Js})}function W(){t("afterEnter")}function G(){v(),t("afterLeave")}return Oe(()=>{var j;return c.createVNode(c.Fragment,null,[(j=n.activator)==null?void 0:j.call(n,{isActive:h.value,targetRef:b,props:c.mergeProps({ref:S},N.value,e.activatorProps)}),P.value&&d.value&&c.createVNode(c.Teleport,{disabled:!D.value,to:D.value},{default:()=>[c.createVNode("div",c.mergeProps({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":h.value,"v-overlay--contained":e.contained},f.value,g.value,e.class],style:[C.value,{"--v-overlay-opacity":e.opacity,top:Ae(Y.value)},e.style],ref:i},I,r),[c.createVNode(Fg,c.mergeProps({color:m,modelValue:h.value&&!!e.scrim,ref:l},x.value),null),c.createVNode(Tn,{appear:!0,persisted:!0,transition:e.transition,target:w.value,onAfterEnter:W,onAfterLeave:G},{default:()=>{var z;return[c.withDirectives(c.createVNode("div",c.mergeProps({ref:s,class:["v-overlay__content",e.contentClass],style:[R.value,O.value]},M.value,e.contentProps),[(z=n.default)==null?void 0:z.call(n,{isActive:h})]),[[c.vShow,h.value],[c.resolveDirective("click-outside"),{handler:H,closeConditional:k,include:()=>[E.value]}]])]}})])]})])}),{activatorEl:E,scrimEl:l,target:w,animateClick:$,contentEl:s,globalTop:A,localTop:y,updateLocation:L}}}),Hg=ce({id:String,text:String,...Es(iu({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:!1}),["absolute","persistent"])},"VTooltip"),Mo=De()({name:"VTooltip",props:Hg(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const r=sn(e,"modelValue"),{scopeId:t}=tu(),a=Un(),i=c.computed(()=>e.id||`v-tooltip-${a}`),l=c.ref(),s=c.computed(()=>e.location.split(" ").length>1?e.location:e.location+" center"),u=c.computed(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),h=c.computed(()=>e.transition?e.transition:r.value?"scale-transition":"fade-transition"),f=c.computed(()=>c.mergeProps({"aria-describedby":i.value},e.activatorProps));return Oe(()=>{const g=lu.filterProps(e);return c.createVNode(lu,c.mergeProps({ref:l,class:["v-tooltip",e.class],style:e.style,id:i.value},g,{modelValue:r.value,"onUpdate:modelValue":p=>r.value=p,transition:h.value,absolute:!0,location:s.value,origin:u.value,persistent:!0,role:"tooltip",activatorProps:f.value,_disableGlobalStack:!0},t),{activator:n.activator,default:function(){var m;for(var p=arguments.length,d=new Array(p),v=0;v<p;v++)d[v]=arguments[v];return((m=n.default)==null?void 0:m.call(n,...d))??e.text}})}),Qc({},l)}}),Vg={props:{sendAvatar:{type:String,default:""},isHedgehood:{type:Boolean,default:!1},uploadUrl:{type:String,default:"https://jsonplaceholder.typicode.com/posts/"},token:{type:String,default:""},profileUrl:{type:String,default:""},baseUrl:{type:String,default:""},translateLists:{type:Array},unreadCount:{type:Number,default:0},ticketAdd:{type:Number,default:0},ticketId:{type:Number,default:0},inHelpCenter:{type:Boolean,default:!1}},components:{Loading:ts},data(){return{isOpen:!1,conversationLoading:!1,demoContent:[],content:"",fileList:[],compFileList:[],ticketLists:[],submitLoading:!1,currentRecord:{id:""},loadingContent:!1,successUploadList:[],successCompUploadList:[],sendLoading:!1,quoteMessage:null,socket:null,total:0,timer:null,hasAddId:[],sendingId:0,errid:0,editor:null,editorComplaint:null,expandImgUrl:"",showImgDialog:!1,clientId:null,chatBoxHeight:78,showYesOrNo:!1,currentActive:""}},created(){this.getTicketId()},mounted(){this.init()},watch:{ticketAdd(){this.isOpen&&(this.currentRecord.id?(this.$emit("resetUnreadCount"),this.getHistoryExtra(!0)):(this.currentRecord.id=this.ticketId,this.$emit("resetUnreadCount"),this.getHistoryExtra(!0)))},ticketId(){this.currentRecord.id==""&&(this.currentRecord.id=this.ticketId,this.getHistoryByPage(!1))},inHelpCenter(){this.inHelpCenter&&(this.isOpen=!1)}},methods:{escapeHTML(e){return Vn.sanitize(e)},checkCameraPermission(){this.$refs.chatFileRef.click()},setIsShowFalse(){tl(this.baseUrl,this.token,{ticketId:this.currentRecord.id}).then(e=>{console.log(e)})},async changeActive(e){if(this.sendLoading)return;this.currentActive=e,this.showYesOrNo=!1,this.setIsShowFalse(),this.sendLoading=!0;let o=`<p>${this.translate(e)}</p>`,n;n={attachments:[],content:`<p>${this.translate(e)}</p>`,ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg(!1,!1,!1,o);let r=this.sendingId;bn(this.baseUrl,this.token,n).then(t=>{if(this.sendLoading=!1,t.code===200)this.changeMsgStatus(r,t.data);else{let a=new Date().getTime(),i={attachments:[],content:`<p>${this.translate(e)}</p>`,quote:null,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i),this.scrollToNew(),this.$message.error(t.msg)}}).catch(t=>{this.sendLoading=!1;let a=new Date().getTime(),i={attachments:[],content:`<p>${this.translate(e)}</p>`,quote:null,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i),this.scrollToNew()})},openChatBox(){this.inHelpCenter||(this.isOpen=!this.isOpen,this.isOpen&&(this.currentRecord.id?this.getHistoryExtra(!0):(this.currentRecord.id=this.ticketId,this.getHistoryExtra(!0)),window.localStorage.getItem("_selfChatContent")&&!this.content&&(this.content=window.localStorage.getItem("_selfChatContent"),this.editor.txt.html(this.content)),this.$emit("resetUnreadCount")))},toHelpCenter(){this.$emit("toHelpCenter")},handleScroll(e){const{scrollTop:o,clientHeight:n,scrollHeight:r}=e.target;Math.abs(o)+n+20>=r&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.getHistoryByPage(!0,!0)},500))},translate(e){let o=this.translateLists;if(o){for(let n in o)if(o[n].key==e&&o[n].value!==null&&o[n].value!=="")return o[n].value;return e}else return e},init(){this.editor=new rl("#chat-box-editor"),this.editor.config.placeholder=this.translate("Write a message"),this.editor.config.onchange=e=>{this.content=e;let o=document.querySelector(".cbp-content .cbp-content-opt");this.chatBoxHeight=o.clientHeight,window.localStorage.setItem("_selfChatContent",this.content)},setInterval(()=>{let e=document.querySelector(".cbp-content .cbp-content-opt");this.chatBoxHeight=e.clientHeight},1e3),this.editor.config.customUploadImg=async(e,o)=>{for(let n of e){const r=new FormData;r.append("file",n);const t=await Re({url:this.profileUrl+"/upload",method:"post",data:r,headers:{authorization:"Bearer "+this.token,"content-type":"multipart/formdata"}});o(this.profileUrl+"/upload/download/"+t.data.content.id)}},this.editor.config.uploadImgShowBase64=!0,this.editor.config.showLinkImg=!1,this.editor.config.showFullScreen=!1,this.editor.create()},handleRequestComp(e){if(!e)return;let o=e.name.split("."),n=!0;["pdf","png","jpg","svg","jpeg","bmp","xls","xlsx","doc","docx"].includes(o[o.length-1])||(n=!1,this.$message.error(this.translate("Upload file type error")));const r=e.size/1024/1024<50;r||this.$message.error(this.translate("The size of the uploaded file cannot exceed 50 MB")),n&&r&&this.receiveImageFromFlutter(e)},beforeAvatarUpload(e){let o=e.name.split("."),n=!0;["pdf","png","jpg","svg","jpeg","bmp","xls","xlsx","doc","docx"].includes(o[o.length-1])||(n=!1,this.$message.error(this.translate("Upload file type error")));const r=e.size/1024/1024<50;return r||this.$message.error(this.translate("The size of the uploaded file cannot exceed 50 MB")),n&&r},timeFormat(e,o=!0,n=!1,r=!1){let t=new Date().getTimezoneOffset();t=-Math.round(t/60);let a=navigator.language||navigator.userLanguage;return a.indexOf("zh")>-1||a.indexOf("ko")>-1?n?K(e).utcOffset(t).format("YYYY/MM/DD HH:mm"):r?K(e).utcOffset(t).format("HH:mm"):o?K(e).utcOffset(t).format("YYYY/MM/DD HH:mm:ss"):K(e).utcOffset(t).format("YYYY/MM/DD"):n?K(e).utcOffset(t).format("DD/MM/YYYY HH:mm"):r?K(e).utcOffset(t).format("HH:mm"):o?K(e).utcOffset(t).format("DD/MM/YYYY HH:mm:ss"):K(e).utcOffset(t).format("DD/MM/YYYY")},initTimeStamp(e,o){let n=o<this.demoContent.length-1?this.demoContent[o+1].created:0;if(Math.abs(new Date(e).setHours(0,0,0,0)-new Date(n).setHours(0,0,0,0))<36e5*24)return"";let r=new Date().setHours(0,0,0,0),t=new Date(e);if(e){let i=this.timeFormat(e,!0,!0).split(" ").reverse();return t.setHours(0,0,0,0)===r?this.translate("Today"):i[1]}},receiveImageFromFlutter(e){console.log("fileSize",e);let o=e.name;if(!(e.size/1024/1024<50)){this.$message.error(this.translate("Maximum file size is 50MB"));return}let r=["jpg","jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(o.split(".")[1]),t=new FormData;t.append("file",e,o),this.showBottomOpt=!1,this.sendLoading=!0,qi(this.profileUrl,this.token,t).then(a=>{if(a.code==200){let i=a.content[0];this.successUploadList=r?[]:[{id:i.id,filename:i.filename,fileRecordId:i.id,fileSize:e.size}];let l;l=r?{attachments:[],content:`<p><img src="${this.profileUrl}/upload/download/${i.id}" style="max-width:100%;" data-set="%noPaddingParent%" contenteditable="false"/></p>`,ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0}:{attachments:[{id:i.id,filename:i.filename,fileRecordId:i.id}],content:"",ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.content=`<p><img src="${this.profileUrl}/upload/download/${i.id}" style="max-width:100%;" data-set="%noPaddingParent%" contenteditable="false"/></p>`,this.showYesOrNo&&this.setIsShowFalse(),this.showYesOrNo=!1,this.addMsg(!1,!1,!r);let s=this.sendingId;bn(this.baseUrl,this.token,l).then(u=>{var h=document.querySelector(".cbp-content-chat");if(h&&h.scrollTop&&(h.scrollTop=0),this.sendLoading=!1,u.code===200)this.content="",this.editor.txt.clear(),window.localStorage.setItem("_selfChatContent",""),this.quoteMessage=null,this.fileList=[],this.successUploadList=[],this.changeMsgStatus(s,u.data);else{let f=new Date().getTime(),g={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:f,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,g):this.demoContent.unshift(g),this.scrollToNew()}}).catch(()=>{if(this.sendLoading=!1,resend){let u=new Date().getTime(),h={attachments:errEl.attachments,content:errEl.content,quote:errEl.quote,self:!0,contentIsHtml:!0,created:u,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,h):this.demoContent.unshift(h)}else{let u=new Date().getTime(),h={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:u,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,h):this.demoContent.unshift(h)}this.scrollToNew()})}}).catch(()=>{this.sendLoading=!1})},expandImg(e){const o=e.target;if(o.tagName.toLowerCase()==="img"){const n=o.getAttribute("src");this.expandImgUrl=n,this.showImgDialog=!0}},showNameImg(e){return this.isHedgehood?`https://ui-avatars.com/api/?background=4b087a&color=fff&name=${e}&rounded=true&format=svg`:`https://ui-avatars.com/api/?background=0A853B&color=fff&name=${e}&rounded=true&format=svg`},parseJwt(e){const o=e.split("."),n=this.decodeBase64Url(o[1]);return JSON.parse(n)},decodeBase64Url(e){let o=e.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Invalid base64 string"}return decodeURIComponent(atob(o))},getHistoryByPage(e,o,n){let r={ticketId:this.currentRecord.id,pageSize:20,isClient:!0,t:new Date().getTime()};o&&(r.messageId=this.demoContent[this.demoContent.length-1].id),e||(this.conversationLoading=!0),Lr(this.baseUrl,this.token,r).then(t=>{if(this.conversationLoading=!1,t.code===200){if(!e&&t.data.length>0){let a=!1;t.data.forEach(i=>{i.isShow&&(a=!0)}),this.showYesOrNo=a,a&&n&&this.openChatBox()}if(this.total=t.totalElements,this.isFirstScroll&&(setTimeout(()=>{window.scrollTo(0,document.body.scrollHeight)},100),this.isFirstScroll=!1),this.total<=this.demoContent.length)return;this.demoContent.push(...t.data),o||this.scrollToNew(),this.$emit("setUnreadNum",0)}else this.$message.error(this.translate(t.msg))}).catch(()=>{this.conversationLoading=!1})},getHistoryExtra(e){if(this.currentRecord.id==0||this.currentRecord.id=="")return;let o={ticketId:this.currentRecord.id,pageSize:20,isClient:!0,t:new Date().getTime()};e||(this.conversationLoading=!0),Lr(this.baseUrl,this.token,o).then(n=>{if(this.conversationLoading=!1,n.code===200){let r=!1;n.data.forEach(t=>{t.isShow&&(r=!0)}),this.showYesOrNo=r,this.total=n.totalElements,this.demoContent=n.data,this.scrollToNew()}else this.$message.error(this.translate(n.msg))}).catch(()=>{this.conversationLoading=!1})},getTicketId(){this.conversationLoading=!0;let e={id:this.parseJwt(this.token)["custom:user_id"]};el(this.baseUrl,this.token,e).then(o=>{o.code==200?(this.currentRecord.id=o.data,this.currentRecord.id?this.getHistoryByPage(!1,!1,!0):this.conversationLoading=!1):this.conversationLoading=!1}).catch(()=>{this.conversationLoading=!1})},changeMsgStatus(e,o){let n=o.id;if(!this.hasAddId.includes(n)){this.hasAddId.push(n);for(let r of this.demoContent)r.sendingId==e&&(r.sendingMsg=!1,r.sender={name:o.sender.name,avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]},r.id=n)}},addMsg(e,o,n,r){this.sendingId++;let t;e?t={attachments:o.attachments,content:o.content,quote:o.quote,self:!0,contentIsHtml:!0,created:new Date().getTime(),sendingId:this.sendingId,sendingMsg:!0,sender:{avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]}}:t={attachments:this.successUploadList,content:r||(n?"":this.content),quote:n?null:this.quoteMessage,self:!0,contentIsHtml:!0,created:new Date().getTime(),sendingId:this.sendingId,sendingMsg:!0,sender:{avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]}},this.demoContent.unshift(t)},download(e){if(this.isApp){let o=`${this.profileUrl}/upload/download/${e.fileRecordId}`;try{window.flutter_inappwebview.callHandler("postMessage",`download:${o}`)}catch{}return}_i(this.profileUrl,this.token,e.fileRecordId).then(o=>{let n=o.data;const r=o.headers["content-disposition"];let t="file";if(r&&(t=decodeURIComponent(r.split("utf-8''")[1])),n)this.$message.success(this.translate("Download Successfully"));else{this.$message.error(this.translate("Download failed"));return}if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(new Blob([n]),t);else{let a=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=a,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(a)}})},async sendMessage(e,o){if(console.log(e,o),this.content.trim()==="")return;this.sendLoading=!0;let n;if(this.showYesOrNo&&this.setIsShowFalse(),this.showYesOrNo=!1,!e)this.fileList.length>0&&await this.uploadFile(),n={attachments:this.successUploadList,content:Vn.sanitize(this.content),ticketId:this.currentRecord.id,quoteId:this.quoteMessage?this.quoteMessage.id:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg();else{for(let t in this.demoContent){let a=this.demoContent[t];a.isError&&a.errid==o.errid&&this.demoContent.splice(t,1)}n={attachments:o.attachments,content:Vn.sanitize(o.content),ticketId:this.currentRecord.id,quoteId:o.quoteId,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg(!0,o)}let r=this.sendingId;this.editor.txt.clear(),bn(this.baseUrl,this.token,n).then(t=>{if(this.sendLoading=!1,t.code===200)this.content="",this.editor.txt.clear(),window.localStorage.setItem("_selfChatContent",""),this.quoteMessage=null,this.fileList=[],this.successUploadList=[],this.changeMsgStatus(r,t.data);else{if(e){let a=new Date().getTime(),i={attachments:o.attachments,content:o.content,quote:o.quoteMessage,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}else{let a=new Date().getTime(),i={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}this.scrollToNew(),this.$message.error(t.msg)}}).catch(t=>{if(this.sendLoading=!1,e){let a=new Date().getTime(),i={attachments:o.attachments,content:o.content,quote:o.quoteMessage,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}else{let a=new Date().getTime(),i={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}this.scrollToNew()})},scrollToNew(){setTimeout(()=>{document.querySelector(".cbp-content-chat")&&(document.querySelector(".cbp-content-chat").scrollTop=document.querySelector(".cbp-content-chat").scrollHeight)},10)}}},kg={class:"chat-box-pc"},Ug={class:"cbp-content"},Yg={class:"cbp-content-head flex align-center space-bt"},jg={key:0,class:"head-img-hh",src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/hh-chat-logo.png",alt:""},zg={key:1,class:"head-img-zero",src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/zero-chat-logo.png",alt:""},$g={key:0,class:"common-check-container"},Wg={key:0,class:"common-li self-li"},Gg={class:"flex relative"},Qg={class:"common-li-tool"},Jg=["onClick"],Kg={key:1,class:"msg-loading-wrap"},Zg={class:"flex flex-end"},Xg={class:"mgr-16"},qg=["innerHTML"],_g={key:1,class:"word-break font-14 space-pre-line medium line-30"},e0={key:0,class:"attach"},t0={key:0,class:"file-list"},n0=["onClick"],r0={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},o0={key:0,class:"_font-12 w-100"},a0={key:1,class:"file-list"},i0=["onClick"],l0={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},s0={class:"font-12 text-right"},c0={key:1,class:"common-li other-li"},u0={key:0,class:"replay-role"},d0={class:"name font-12"},f0={key:1,class:"replay-role"},h0=["src"],m0=["src"],v0={class:"name font-12"},p0={class:"flex"},g0={class:"flex flex-end"},y0={class:"mgr-16"},A0=["innerHTML"],C0={key:1,class:"word-break font-14 space-pre-line medium line-30"},E0={key:0,class:"attach"},S0={key:0,class:"file-list"},x0=["onClick"],w0={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},T0={key:0,class:"_font-12 w-100"},D0={key:1,class:"file-list"},M0=["onClick"],b0={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},N0={class:"extra"},R0={key:0,src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/no-chat-hh.png",class:"no-chat-img",alt:""},I0={key:1,src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/no-chat-zero.png",class:"no-chat-img",alt:""},P0={key:2,class:"font-16 medium mgt-4 _emptyTitleColor"},O0={key:3,class:"font-16 medium mgt-4 _emptyTitleColor"},L0={class:"font-14 mt-1 _emptyDescColor"},B0={class:"cbp-content-opt _lineBgColor"},F0={class:"cbp-content-btn flex align-center"},H0={key:1,class:"h-24 cursor"},V0={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor"},k0=["src"],U0={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},Y0=["src"],j0={class:"flex"},z0={key:0,xmlns:"http://www.w3.org/2000/svg",width:"40",height:"27",viewBox:"0 0 40 27",fill:"none"},$0={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"27",viewBox:"0 0 18 20",fill:"none"};function W0(e,o,n,r,t,a){const i=c.resolveComponent("Loading"),l=c.resolveComponent("font-awesome-icon");return c.openBlock(),c.createElementBlock("div",kg,[c.withDirectives(c.createElementVNode("div",null,[c.createElementVNode("div",Ug,[c.withDirectives(c.createVNode(i,null,null,512),[[c.vShow,t.conversationLoading]]),c.createElementVNode("div",Yg,[n.isHedgehood?(c.openBlock(),c.createElementBlock("img",jg)):(c.openBlock(),c.createElementBlock("img",zg)),c.createElementVNode("div",null,[(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor mgr-24",onClick:o[0]||(o[0]=(...s)=>a.toHelpCenter&&a.toHelpCenter(...s))},o[10]||(o[10]=[c.createElementVNode("path",{d:"M20.4375 3H14.8125C14.5031 3 14.25 3.25158 14.25 3.5625C14.25 3.87342 14.5031 4.125 14.8125 4.125H19.0805L13.2902 9.91523C13.0705 10.135 13.0705 10.4911 13.2902 10.7105C13.51 10.9298 13.8661 10.9302 14.0855 10.7105L19.875 4.92059V9.1875C19.875 9.49687 20.1281 9.75 20.4375 9.75C20.7469 9.75 21 9.49687 21 9.1875V3.5625C21 3.25158 20.7469 3 20.4375 3ZM9.91523 13.2902L4.125 19.0805V14.8125C4.125 14.5031 3.87328 14.25 3.5625 14.25C3.25172 14.25 3 14.5031 3 14.8125V20.4375C3 20.7469 3.25158 21 3.5625 21H9.1875C9.49687 21 9.75 20.7469 9.75 20.4375C9.75 20.1281 9.49687 19.875 9.1875 19.875H4.92059L10.7108 14.0848C10.9305 13.865 10.9305 13.5089 10.7108 13.2895C10.4911 13.0702 10.1332 13.0688 9.91523 13.2902Z",fill:"#222C30"},null,-1)]))),(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor",onClick:o[1]||(o[1]=s=>t.isOpen=!1)},o[11]||(o[11]=[c.createElementVNode("path",{d:"M21.3111 7.25195L21.01 6.94688C20.8107 6.74492 20.4883 6.74492 20.289 6.94688L12.002 15.3473L3.71066 6.94688C3.51133 6.74492 3.18901 6.74492 2.98968 6.94688L2.68856 7.25195C2.48923 7.45391 2.48923 7.78047 2.68856 7.98242L11.6372 17.0531C11.8366 17.2551 12.1589 17.2551 12.3582 17.0531L21.3069 7.98242C21.5104 7.78047 21.5104 7.45391 21.3111 7.25195Z",fill:"#222C30"},null,-1)])))])]),t.demoContent.length>0?(c.openBlock(),c.createElementBlock("div",{key:0,class:"_lineBgColor",style:c.normalizeStyle({height:"calc(100% - 64px - "+t.chatBoxHeight*1+"px)"})},[c.createElementVNode("ul",{class:"_lineBgColor cbp-content-chat",style:{maxHeight:"100%"},onScroll:o[6]||(o[6]=(...s)=>a.handleScroll&&a.handleScroll(...s))},[t.showYesOrNo?(c.openBlock(),c.createElementBlock("li",$g,[c.createElementVNode("span",{class:c.normalizeClass(["cursor common-check font-16 bold mgr-16",t.currentActive=="Now"?"_activeWhiteBgColor":"_whiteBgColor"]),onClick:o[2]||(o[2]=s=>a.changeActive("Now"))},c.toDisplayString(a.translate("Now")),3),c.createElementVNode("span",{class:c.normalizeClass(["cursor common-check font-16 bold",t.currentActive=="Maybe later"?"_activeWhiteBgColor":"_whiteBgColor"]),onClick:o[3]||(o[3]=s=>a.changeActive("Maybe later"))},c.toDisplayString(a.translate("Maybe later")),3)])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.demoContent,(s,u)=>(c.openBlock(),c.createElementBlock("li",{key:s.id},[c.withDirectives(c.createElementVNode("div",{class:"flex space-center _font-14 _timeColor medium"},c.toDisplayString(a.initTimeStamp(s.created,u)),513),[[c.vShow,a.initTimeStamp(s.created,u)!=""]]),s.self?(c.openBlock(),c.createElementBlock("div",Wg,[c.createElementVNode("div",Gg,[c.createElementVNode("div",Qg,[s.isError?(c.openBlock(),c.createElementBlock("div",{key:0,class:"retry",onClick:h=>a.sendMessage(!0,s)},o[12]||(o[12]=[c.createElementVNode("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM11 17V15H13V17H11ZM11 7V13H13V7H11Z",fill:"#BC2B35"})],-1)]),8,Jg)):c.createCommentVNode("",!0),s.sendingMsg?(c.openBlock(),c.createElementBlock("div",Kg,[c.createVNode(l,{class:"loading-icon",icon:"fal fa-spinner-third"})])):c.createCommentVNode("",!0)]),c.createElementVNode("div",{class:c.normalizeClass(["replay-content _chatGreenBgColor",s.content.indexOf("%noPaddingParent%")!==-1&&s.quote==null?"no-padding-bd":""]),onClick:o[4]||(o[4]=(...h)=>a.expandImg&&a.expandImg(...h))},[c.createElementVNode("div",Zg,[c.createElementVNode("div",Xg,[c.createElementVNode("div",null,[s.content&&s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",{key:0,class:"word-break font-14 space-pre-line medium line-30",innerHTML:a.escapeHTML(s.content)},null,8,qg)):c.createCommentVNode("",!0),s.content&&!s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",_g,c.toDisplayString(s.content),1)):c.createCommentVNode("",!0)]),s.attachments&&s.attachments.length>0?(c.openBlock(),c.createElementBlock("div",e0,[s.content==""&&s.attachments.length==1?(c.openBlock(),c.createElementBlock("div",t0,[c.createElementVNode("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:h=>a.download(s.attachments[0])},[c.createElementVNode("span",r0,c.toDisplayString(s.attachments[0].filename),1),o[13]||(o[13]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,n0),["jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(s.attachments[0].filename.split(".")[1])?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",o0,c.toDisplayString((s.attachments[0].fileSize/1024/1024).toFixed(2))+"MB",1))])):(c.openBlock(),c.createElementBlock("div",a0,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.attachments,(h,f)=>(c.openBlock(),c.createElementBlock("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:g=>a.download(h),key:f},[c.createElementVNode("span",l0,c.toDisplayString(h.filename),1),o[14]||(o[14]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,i0))),128))]))])):c.createCommentVNode("",!0)]),c.createElementVNode("div",s0,c.toDisplayString(a.timeFormat(s.created,!0,!1,!0)),1)])],2)])])):(c.openBlock(),c.createElementBlock("div",c0,[s.sender.name==="Support"&&(s.sender.id==1||s.sender.id==2)?(c.openBlock(),c.createElementBlock("div",u0,[o[15]||(o[15]=c.createElementVNode("div",{class:"role-icon _chatGreenBgColor"},[c.createElementVNode("div",{style:{width:"24px",height:"24px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%"}},[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},[c.createElementVNode("path",{d:"M13.7502 11.0417C12.8426 11.0417 12.4062 11.5626 10.9168 11.5626C9.42743 11.5626 8.99421 11.0417 8.0835 11.0417C5.73714 11.0417 3.8335 13.0014 3.8335 15.4167V16.7709C3.8335 17.6335 4.51337 18.3334 5.35135 18.3334H16.4823C17.3203 18.3334 18.0002 17.6335 18.0002 16.7709V15.4167C18.0002 13.0014 16.0965 11.0417 13.7502 11.0417ZM16.9883 16.7709C16.9883 17.0574 16.7606 17.2917 16.4823 17.2917H5.35135C5.07308 17.2917 4.8454 17.0574 4.8454 16.7709V15.4167C4.8454 13.5776 6.29685 12.0834 8.0835 12.0834C8.70329 12.0834 9.31992 12.6042 10.9168 12.6042C12.5106 12.6042 13.1304 12.0834 13.7502 12.0834C15.5368 12.0834 16.9883 13.5776 16.9883 15.4167V16.7709ZM10.9168 10.0001C13.1525 10.0001 14.9644 8.13485 14.9644 5.83342C14.9644 3.53198 13.1525 1.66675 10.9168 1.66675C8.68115 1.66675 6.86921 3.53198 6.86921 5.83342C6.86921 8.13485 8.68115 10.0001 10.9168 10.0001ZM10.9168 2.70841C12.5896 2.70841 13.9525 4.11141 13.9525 5.83342C13.9525 7.55542 12.5896 8.95842 10.9168 8.95842C9.24402 8.95842 7.88112 7.55542 7.88112 5.83342C7.88112 4.11141 9.24402 2.70841 10.9168 2.70841Z",class:"_supportFill"})])])],-1)),c.createElementVNode("div",d0,c.toDisplayString(s.sender.name),1)])):(c.openBlock(),c.createElementBlock("div",f0,[s.sender.avatar===null?(c.openBlock(),c.createElementBlock("img",{key:0,class:"role-icon",src:a.showNameImg(s.sender.name)},null,8,h0)):c.createCommentVNode("",!0),s.sender.avatar?(c.openBlock(),c.createElementBlock("img",{key:1,class:"role-icon",src:s.sender.avatar},null,8,m0)):c.createCommentVNode("",!0),c.createElementVNode("div",v0,c.toDisplayString(s.sender.name),1)])),c.createElementVNode("div",p0,[c.createElementVNode("div",{class:c.normalizeClass(["replay-content refresh",s.content.indexOf("%noPaddingParent%")!==-1&&s.quote==null?"no-padding-bd":""]),onClick:o[5]||(o[5]=(...h)=>a.expandImg&&a.expandImg(...h))},[c.createElementVNode("div",g0,[c.createElementVNode("div",y0,[c.createElementVNode("div",null,[s.content&&s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",{key:0,class:"word-break font-14 space-pre-line medium line-30",innerHTML:a.escapeHTML(s.content)},null,8,A0)):c.createCommentVNode("",!0),s.content&&!s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",C0,c.toDisplayString(s.content),1)):c.createCommentVNode("",!0)]),s.attachments&&s.attachments.length>0?(c.openBlock(),c.createElementBlock("div",E0,[s.content==""&&s.attachments.length==1?(c.openBlock(),c.createElementBlock("div",S0,[c.createElementVNode("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:h=>a.download(s.attachments[0])},[c.createElementVNode("span",w0,c.toDisplayString(s.attachments[0].filename),1),o[16]||(o[16]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,x0),["jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(s.attachments[0].filename.split(".")[1])?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",T0,c.toDisplayString((s.attachments[0].fileSize/1024/1024).toFixed(2))+"MB",1))])):(c.openBlock(),c.createElementBlock("div",D0,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.attachments,(h,f)=>(c.openBlock(),c.createElementBlock("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:g=>a.download(h),key:f},[c.createElementVNode("span",b0,c.toDisplayString(h.filename),1),o[17]||(o[17]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,M0))),128))]))])):c.createCommentVNode("",!0)]),c.createElementVNode("div",N0,c.toDisplayString(a.timeFormat(s.created,!0,!1,!0)),1)])],2)])]))]))),128))],32)],4)):(c.openBlock(),c.createElementBlock("div",{key:1,class:"no-chat-container _lineBgColor",style:c.normalizeStyle({height:"calc(100% - 64px - "+t.chatBoxHeight*1+"px)"})},[n.isHedgehood?(c.openBlock(),c.createElementBlock("img",R0)):(c.openBlock(),c.createElementBlock("img",I0)),n.isHedgehood?(c.openBlock(),c.createElementBlock("div",P0,c.toDisplayString(a.translate("Welcome to Hedgehood.")),1)):(c.openBlock(),c.createElementBlock("div",O0,c.toDisplayString(a.translate("Welcome to Zero Markets.")),1)),c.createElementVNode("div",L0,c.toDisplayString(a.translate("We’re online 24/5!")),1)],4)),c.createElementVNode("div",B0,[o[20]||(o[20]=c.createElementVNode("div",{id:"chat-box-editor"},null,-1)),c.createElementVNode("div",F0,[t.sendLoading?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(So,{key:0,variant:"text",size:"small",class:"semi-bold h-24",height:"24","max-width":"24","min-width":"24",onClick:a.checkCameraPermission},{default:c.withCtx(()=>[c.createVNode(Mo,{text:a.translate("The file can’t be larger than 50 MB."),location:"top",attach:""},{activator:c.withCtx(({props:s})=>[c.createElementVNode("span",c.mergeProps({class:"_extraHover"},s),o[18]||(o[18]=[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M17 11.7656V12.2344C17 12.4922 16.7891 12.7031 16.5312 12.7031H12.7031V16.5312C12.7031 16.7891 12.4922 17 12.2344 17H11.7656C11.5078 17 11.2969 16.7891 11.2969 16.5312V12.7031H7.46875C7.21094 12.7031 7 12.4922 7 12.2344V11.7656C7 11.5078 7.21094 11.2969 7.46875 11.2969H11.2969V7.46875C11.2969 7.21094 11.5078 7 11.7656 7H12.2344C12.4922 7 12.7031 7.21094 12.7031 7.46875V11.2969H16.5312C16.7891 11.2969 17 11.5078 17 11.7656ZM21.6875 12C21.6875 17.3516 17.3516 21.6875 12 21.6875C6.64844 21.6875 2.3125 17.3516 2.3125 12C2.3125 6.64844 6.64844 2.3125 12 2.3125C17.3516 2.3125 21.6875 6.64844 21.6875 12ZM20.4375 12C20.4375 7.31641 16.6367 3.5625 12 3.5625C7.31641 3.5625 3.5625 7.36328 3.5625 12C3.5625 16.6836 7.36328 20.4375 12 20.4375C16.6836 20.4375 20.4375 16.6367 20.4375 12Z"})],-1)]),16)]),_:1},8,["text"])]),_:1},8,["onClick"])),t.sendLoading?(c.openBlock(),c.createElementBlock("div",H0,[c.createVNode(Mo,{text:a.translate("The file can’t be larger than 50 MB."),location:"top",attach:""},{activator:c.withCtx(({props:s})=>[c.createElementVNode("span",c.mergeProps({class:"_extraHover"},s),o[19]||(o[19]=[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M17 11.7656V12.2344C17 12.4922 16.7891 12.7031 16.5312 12.7031H12.7031V16.5312C12.7031 16.7891 12.4922 17 12.2344 17H11.7656C11.5078 17 11.2969 16.7891 11.2969 16.5312V12.7031H7.46875C7.21094 12.7031 7 12.4922 7 12.2344V11.7656C7 11.5078 7.21094 11.2969 7.46875 11.2969H11.2969V7.46875C11.2969 7.21094 11.5078 7 11.7656 7H12.2344C12.4922 7 12.7031 7.21094 12.7031 7.46875V11.2969H16.5312C16.7891 11.2969 17 11.5078 17 11.7656ZM21.6875 12C21.6875 17.3516 17.3516 21.6875 12 21.6875C6.64844 21.6875 2.3125 17.3516 2.3125 12C2.3125 6.64844 6.64844 2.3125 12 2.3125C17.3516 2.3125 21.6875 6.64844 21.6875 12ZM20.4375 12C20.4375 7.31641 16.6367 3.5625 12 3.5625C7.31641 3.5625 3.5625 7.36328 3.5625 12C3.5625 16.6836 7.36328 20.4375 12 20.4375C16.6836 20.4375 20.4375 16.6367 20.4375 12Z"})],-1)]),16)]),_:1},8,["text"])])):c.createCommentVNode("",!0),c.withDirectives(c.createVNode(Jc,{label:"File input",ref:"chatFileRef","onUpdate:modelValue":a.handleRequestComp},null,8,["onUpdate:modelValue"]),[[c.vShow,!1]]),c.createVNode(So,{variant:"text",loading:t.sendLoading,class:"special-btn mgl-12",onClick:o[7]||(o[7]=s=>a.sendMessage(!1)),height:"24","max-width":"24","min-width":"24",flat:""},{default:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createElementBlock("svg",V0,[c.createElementVNode("path",{d:"M20.5943 2.12419L2.48887 12.5695C1.78183 12.9757 1.87168 13.9601 2.5748 14.257L6.72715 15.9992L17.9498 6.10856C18.1646 5.91715 18.4693 6.21012 18.2857 6.43278L8.87558 17.8976V21.0422C8.87558 21.964 9.98887 22.3273 10.5357 21.6593L13.0162 18.6398L17.8834 20.6789C18.4381 20.9132 19.0709 20.5656 19.1725 19.9679L21.985 3.09294C22.1178 2.30387 21.2701 1.73356 20.5943 2.12419Z",class:c.normalizeClass(t.content==""?"_CCCCCCFill":"_0A853BFill")},null,2)],512)),[[c.vShow,!t.sendLoading]])]),_:1},8,["loading"])])])])],512),[[c.vShow,t.isOpen]]),c.withDirectives(c.createElementVNode("div",{class:"expand-img-container",onClick:o[8]||(o[8]=s=>t.showImgDialog=!1)},[o[21]||(o[21]=c.createElementVNode("div",{class:"eic-header"},[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M12 2.3125C6.64844 2.3125 2.3125 6.64844 2.3125 12C2.3125 17.3516 6.64844 21.6875 12 21.6875C17.3516 21.6875 21.6875 17.3516 21.6875 12C21.6875 6.64844 17.3516 2.3125 12 2.3125ZM12 20.4375C7.36328 20.4375 3.5625 16.6836 3.5625 12C3.5625 7.36328 7.31641 3.5625 12 3.5625C16.6367 3.5625 20.4375 7.31641 20.4375 12C20.4375 16.6367 16.6836 20.4375 12 20.4375ZM15.7031 9.29297L12.9961 12L15.7031 14.707C15.8867 14.8906 15.8867 15.1875 15.7031 15.3711L15.3711 15.7031C15.1875 15.8867 14.8906 15.8867 14.707 15.7031L12 12.9961L9.29297 15.7031C9.10938 15.8867 8.8125 15.8867 8.62891 15.7031L8.29688 15.3711C8.11328 15.1875 8.11328 14.8906 8.29688 14.707L11.0039 12L8.29688 9.29297C8.11328 9.10938 8.11328 8.8125 8.29688 8.62891L8.62891 8.29688C8.8125 8.11328 9.10938 8.11328 9.29297 8.29688L12 11.0039L14.707 8.29688C14.8906 8.11328 15.1875 8.11328 15.3711 8.29688L15.7031 8.62891C15.8828 8.8125 15.8828 9.10938 15.7031 9.29297Z",fill:"#FFFFFF"})])],-1)),c.createElementVNode("img",{class:"eic-img",src:t.expandImgUrl,alt:""},null,8,k0)],512),[[c.vShow,t.showImgDialog]]),c.createElementVNode("div",{class:"cbp-icon",onClick:o[9]||(o[9]=(...s)=>a.openChatBox&&a.openChatBox(...s))},[c.withDirectives((c.openBlock(),c.createElementBlock("svg",U0,o[22]||(o[22]=[c.createElementVNode("path",{d:"M16.6532 14.9745L25.9795 5.6732C26.1638 5.45856 26.2601 5.18246 26.2492 4.90008C26.2382 4.61771 26.1209 4.34984 25.9205 4.15002C25.7201 3.9502 25.4516 3.83314 25.1684 3.82223C24.8853 3.81133 24.6085 3.90738 24.3932 4.09119L15.067 13.3925L5.74074 4.07997C5.52889 3.86869 5.24158 3.75 4.94199 3.75C4.6424 3.75 4.35508 3.86869 4.14324 4.07997C3.93139 4.29124 3.81238 4.57779 3.81238 4.87658C3.81238 5.17537 3.93139 5.46192 4.14324 5.6732L13.4807 14.9745L4.14324 24.2758C4.02547 24.3764 3.92982 24.5002 3.8623 24.6394C3.79477 24.7786 3.75682 24.9302 3.75084 25.0847C3.74485 25.2392 3.77096 25.3933 3.82752 25.5373C3.88408 25.6813 3.96987 25.812 4.0795 25.9214C4.18914 26.0307 4.32026 26.1163 4.46462 26.1727C4.60899 26.2291 4.76349 26.2551 4.91842 26.2492C5.07336 26.2432 5.22538 26.2054 5.36495 26.138C5.50453 26.0707 5.62863 25.9753 5.72949 25.8578L15.067 16.5565L24.3932 25.8578C24.6085 26.0416 24.8853 26.1377 25.1684 26.1268C25.4516 26.1159 25.7201 25.9988 25.9205 25.799C26.1209 25.5992 26.2382 25.3313 26.2492 25.0489C26.2601 24.7665 26.1638 24.4904 25.9795 24.2758L16.6532 14.9745Z",fill:"#B2B2B2",stroke:"#B2B2B2","stroke-width":"1.2"},null,-1)]),512)),[[c.vShow,t.isOpen]]),c.withDirectives(c.createElementVNode("img",{src:n.sendAvatar,class:"icon-img",alt:""},null,8,Y0),[[c.vShow,!t.isOpen&&n.sendAvatar]]),c.withDirectives(c.createElementVNode("div",j0,[n.isHedgehood?(c.openBlock(),c.createElementBlock("svg",$0,o[24]||(o[24]=[c.createStaticVNode('<mask id="mask0_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="4" y="0" width="5" height="14" data-v-51881f21><path d="M4.91803 0V13.8108L8.99903 10V0H4.91803Z" fill="white" data-v-51881f21></path></mask><g mask="url(#mask0_760_3317)" data-v-51881f21><path d="M8.04563 -1.74824L-0.856567 3.22998L5.87403 15.5607L14.7762 10.5825L8.04563 -1.74824Z" fill="url(#paint0_linear_760_3317)" data-v-51881f21></path></g><mask id="mask1_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="13" width="5" height="7" data-v-51881f21><path d="M0.837036 17.6236V19.9999H4.91803V13.8127L0.837036 17.6236Z" fill="white" data-v-51881f21></path></mask><g mask="url(#mask1_760_3317)" data-v-51881f21><path d="M3.98733 12.0792L-1.7283 15.2217L1.7659 21.7329L7.48153 18.5904L3.98733 12.0792Z" fill="url(#paint1_linear_760_3317)" data-v-51881f21></path></g><mask id="mask2_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="8" y="6" width="6" height="14" data-v-51881f21><path d="M8.99902 10V20H9.00096H13.082V6.18921L8.99902 10Z" fill="white" data-v-51881f21></path></mask><g mask="url(#mask2_760_3317)" data-v-51881f21><path d="M11.6654 4.22329L2.50513 10.9819L10.4158 21.9664L19.5761 15.2077L11.6654 4.22329Z" fill="url(#paint2_linear_760_3317)" data-v-51881f21></path></g><mask id="mask3_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="13" y="0" width="5" height="7" data-v-51881f21><path d="M13.082 0V6.18721L17.163 2.37637V0H13.082Z" fill="white" data-v-51881f21></path></mask><g mask="url(#mask3_760_3317)" data-v-51881f21><path d="M15.996 -1.86959L10.3194 1.76978L14.2521 8.05435L19.9288 4.41498L15.996 -1.86959Z" fill="url(#paint3_linear_760_3317)" data-v-51881f21></path></g><defs data-v-51881f21><linearGradient id="paint0_linear_760_3317" x1="10.4709" y1="13.3712" x2="2.50304" y2="-0.877201" gradientUnits="userSpaceOnUse" data-v-51881f21><stop stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.14" stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.45" stop-color="#830AD1" data-v-51881f21></stop><stop offset="0.54" stop-color="#7C09C6" data-v-51881f21></stop><stop offset="0.68" stop-color="#6909A9" data-v-51881f21></stop><stop offset="0.86" stop-color="#4B077B" data-v-51881f21></stop><stop offset="1" stop-color="#330756" data-v-51881f21></stop></linearGradient><linearGradient id="paint1_linear_760_3317" x1="5.28472" y1="21.4" x2="1.53543" y2="14.5805" gradientUnits="userSpaceOnUse" data-v-51881f21><stop stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.14" stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.45" stop-color="#830AD1" data-v-51881f21></stop><stop offset="0.55" stop-color="#7809C1" data-v-51881f21></stop><stop offset="0.74" stop-color="#5D0897" data-v-51881f21></stop><stop offset="1" stop-color="#330756" data-v-51881f21></stop></linearGradient><linearGradient id="paint2_linear_760_3317" x1="17.4236" y1="21.9112" x2="7.14598" y2="7.98153" gradientUnits="userSpaceOnUse" data-v-51881f21><stop stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.14" stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.41" stop-color="#830AD1" data-v-51881f21></stop><stop offset="0.5" stop-color="#7D09C9" data-v-51881f21></stop><stop offset="0.63" stop-color="#6F09B3" data-v-51881f21></stop><stop offset="0.78" stop-color="#590890" data-v-51881f21></stop><stop offset="0.97" stop-color="#390760" data-v-51881f21></stop><stop offset="1" stop-color="#330756" data-v-51881f21></stop></linearGradient><linearGradient id="paint3_linear_760_3317" x1="18.2517" y1="8.11781" x2="11.8057" y2="-1.93666" gradientUnits="userSpaceOnUse" data-v-51881f21><stop stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.14" stop-color="#8F00FF" data-v-51881f21></stop><stop offset="0.45" stop-color="#830AD1" data-v-51881f21></stop><stop offset="0.92" stop-color="#330756" data-v-51881f21></stop><stop offset="1" stop-color="#330756" data-v-51881f21></stop></linearGradient></defs>',9)]))):(c.openBlock(),c.createElementBlock("svg",z0,o[23]||(o[23]=[c.createElementVNode("path",{d:"M6.66663 0V27H33.3333V0H6.66663ZM27.998 21.598H12.0019V19.7984L18.667 10.8007H12.0019V5.40033H27.998V7.20321L21.333 16.1993H27.998V21.598Z",fill:"#222C30"},null,-1),c.createElementVNode("path",{d:"M21.333 16.1993H27.998L40 0H33.3334L21.333 16.1993Z",fill:"#0BA347"},null,-1),c.createElementVNode("path",{d:"M18.667 10.8007H12.002L0 27H6.66667L18.667 10.8007Z",fill:"#0BA347"},null,-1)])))],512),[[c.vShow,!t.isOpen&&!n.sendAvatar]]),c.withDirectives(c.createElementVNode("div",{class:"unread-count _chatGreenBgColor"},c.toDisplayString(n.unreadCount>99?"99+":n.unreadCount),513),[[c.vShow,n.unreadCount>0&&!t.isOpen]])])])}const G0=no(Vg,[["render",W0],["__scopeId","data-v-51881f21"]]),Q0={props:{sendAvatar:{type:String,default:""},isHedgehood:{type:Boolean,default:!1},uploadUrl:{type:String,default:"https://jsonplaceholder.typicode.com/posts/"},token:{type:String,default:""},profileUrl:{type:String,default:""},baseUrl:{type:String,default:""},translateLists:{type:Array},unreadCount:{type:Number,default:0},ticketAdd:{type:Number,default:0},ticketId:{type:Number,default:0},inHelpCenter:{type:Boolean,default:!1}},components:{Loading:ts},data(){return{isOpen:!1,conversationLoading:!1,demoContent:[],content:"",fileList:[],compFileList:[],ticketLists:[],submitLoading:!1,currentRecord:{id:""},loadingContent:!1,successUploadList:[],successCompUploadList:[],sendLoading:!1,quoteMessage:null,socket:null,total:0,timer:null,hasAddId:[],sendingId:0,errid:0,editor:null,editorComplaint:null,expandImgUrl:"",showImgDialog:!1,clientId:null,chatBoxHeight:78,showYesOrNo:!1,currentActive:"",viewHeight:window.visualViewport.height}},created(){this.getTicketId()},mounted(){this.init(),this.updateViewport(),window.addEventListener("resize",this.updateViewport)},beforeDestroy(){window.removeEventListener("resize",this.updateViewport)},watch:{ticketAdd(){this.isOpen&&(this.currentRecord.id?(this.$emit("resetUnreadCount"),this.getHistoryExtra(!0)):(this.currentRecord.id=this.ticketId,this.$emit("resetUnreadCount"),this.getHistoryExtra(!0)))},ticketId(){this.currentRecord.id==""&&(this.currentRecord.id=this.ticketId,this.getHistoryByPage(!1))},inHelpCenter(){this.inHelpCenter&&(this.isOpen=!1)}},methods:{escapeHTML(e){return Vn.sanitize(e)},checkCameraPermission(){this.$refs.chatFileRef.click()},updateViewport(){this.viewHeight=window.visualViewport.height},setIsShowFalse(){tl(this.baseUrl,this.token,{ticketId:this.currentRecord.id}).then(e=>{console.log(e)})},async changeActive(e){if(this.sendLoading)return;this.currentActive=e,this.showYesOrNo=!1,this.setIsShowFalse(),this.sendLoading=!0;let o=`<p>${this.translate(e)}</p>`,n;n={attachments:[],content:`<p>${this.translate(e)}</p>`,ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg(!1,!1,!1,o);let r=this.sendingId;bn(this.baseUrl,this.token,n).then(t=>{if(this.sendLoading=!1,t.code===200)this.changeMsgStatus(r,t.data);else{let a=new Date().getTime(),i={attachments:[],content:`<p>${this.translate(e)}</p>`,quote:null,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i),this.scrollToNew(),this.$message.error(t.msg)}}).catch(t=>{this.sendLoading=!1;let a=new Date().getTime(),i={attachments:[],content:`<p>${this.translate(e)}</p>`,quote:null,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i),this.scrollToNew()})},openChatBox(){this.inHelpCenter||(this.updateViewport(),this.isOpen=!this.isOpen,this.isOpen&&(this.currentRecord.id?this.getHistoryExtra(!0):(this.currentRecord.id=this.ticketId,this.getHistoryExtra(!0)),window.localStorage.getItem("_selfChatContent")&&!this.content&&(this.content=window.localStorage.getItem("_selfChatContent"),this.editor.txt.html(this.content)),this.$emit("resetUnreadCount")))},toHelpCenter(){this.$emit("toHelpCenter")},handleScroll(e){const{scrollTop:o,clientHeight:n,scrollHeight:r}=e.target;Math.abs(o)+n+20>=r&&(this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout(()=>{this.getHistoryByPage(!0,!0)},500))},translate(e){let o=this.translateLists;if(o){for(let n in o)if(o[n].key==e&&o[n].value!==null&&o[n].value!=="")return o[n].value;return e}else return e},init(){this.editor=new rl("#chat-box-editor"),this.editor.config.placeholder=this.translate("Write a message"),this.editor.config.onchange=e=>{this.content=e;let o=document.querySelector(".cbp-content .cbp-content-opt");this.chatBoxHeight=o.clientHeight,window.localStorage.setItem("_selfChatContent",this.content)},setInterval(()=>{let e=document.querySelector(".cbp-content .cbp-content-opt");this.chatBoxHeight=e.clientHeight},1e3),this.editor.config.customUploadImg=async(e,o)=>{for(let n of e){const r=new FormData;r.append("file",n);const t=await Re({url:this.profileUrl+"/upload",method:"post",data:r,headers:{authorization:"Bearer "+this.token,"content-type":"multipart/formdata"}});o(this.profileUrl+"/upload/download/"+t.data.content.id)}},this.editor.config.uploadImgShowBase64=!0,this.editor.config.showLinkImg=!1,this.editor.config.showFullScreen=!1,this.editor.create()},handleRequestComp(e){if(!e)return;let o=e.name.split("."),n=!0;["pdf","png","jpg","svg","jpeg","bmp","xls","xlsx","doc","docx"].includes(o[o.length-1])||(n=!1,this.$message.error(this.translate("Upload file type error")));const r=e.size/1024/1024<50;r||this.$message.error(this.translate("The size of the uploaded file cannot exceed 50 MB")),n&&r&&this.receiveImageFromFlutter(e)},beforeAvatarUpload(e){let o=e.name.split("."),n=!0;["pdf","png","jpg","svg","jpeg","bmp","xls","xlsx","doc","docx"].includes(o[o.length-1])||(n=!1,this.$message.error(this.translate("Upload file type error")));const r=e.size/1024/1024<50;return r||this.$message.error(this.translate("The size of the uploaded file cannot exceed 50 MB")),n&&r},timeFormat(e,o=!0,n=!1,r=!1){let t=new Date().getTimezoneOffset();t=-Math.round(t/60);let a=navigator.language||navigator.userLanguage;return a.indexOf("zh")>-1||a.indexOf("ko")>-1?n?K(e).utcOffset(t).format("YYYY/MM/DD HH:mm"):r?K(e).utcOffset(t).format("HH:mm"):o?K(e).utcOffset(t).format("YYYY/MM/DD HH:mm:ss"):K(e).utcOffset(t).format("YYYY/MM/DD"):n?K(e).utcOffset(t).format("DD/MM/YYYY HH:mm"):r?K(e).utcOffset(t).format("HH:mm"):o?K(e).utcOffset(t).format("DD/MM/YYYY HH:mm:ss"):K(e).utcOffset(t).format("DD/MM/YYYY")},initTimeStamp(e,o){let n=o<this.demoContent.length-1?this.demoContent[o+1].created:0;if(Math.abs(new Date(e).setHours(0,0,0,0)-new Date(n).setHours(0,0,0,0))<36e5*24)return"";let r=new Date().setHours(0,0,0,0),t=new Date(e);if(e){let i=this.timeFormat(e,!0,!0).split(" ").reverse();return t.setHours(0,0,0,0)===r?this.translate("Today"):i[1]}},receiveImageFromFlutter(e){console.log("fileSize",e);let o=e.name;if(!(e.size/1024/1024<50)){this.$message.error(this.translate("Maximum file size is 50MB"));return}let r=["jpg","jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(o.split(".")[1]),t=new FormData;t.append("file",e,o),this.showBottomOpt=!1,this.sendLoading=!0,qi(this.profileUrl,this.token,t).then(a=>{if(a.code==200){let i=a.content[0];this.successUploadList=r?[]:[{id:i.id,filename:i.filename,fileRecordId:i.id,fileSize:e.size}];let l;l=r?{attachments:[],content:`<p><img src="${this.profileUrl}/upload/download/${i.id}" style="max-width:100%;" data-set="%noPaddingParent%" contenteditable="false"/></p>`,ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0}:{attachments:[{id:i.id,filename:i.filename,fileRecordId:i.id}],content:"",ticketId:this.currentRecord.id,quoteId:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.content=`<p><img src="${this.profileUrl}/upload/download/${i.id}" style="max-width:100%;" data-set="%noPaddingParent%" contenteditable="false"/></p>`,this.showYesOrNo&&this.setIsShowFalse(),this.showYesOrNo=!1,this.addMsg(!1,!1,!r);let s=this.sendingId;this.editor.txt.clear(),bn(this.baseUrl,this.token,l).then(u=>{var h=document.querySelector(".cbp-content-chat");if(h&&h.scrollTop&&(h.scrollTop=0),this.sendLoading=!1,u.code===200)this.content="",this.editor.txt.clear(),window.localStorage.setItem("_selfChatContent",""),this.quoteMessage=null,this.fileList=[],this.successUploadList=[],this.changeMsgStatus(s,u.data);else{let f=new Date().getTime(),g={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:f,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,g):this.demoContent.unshift(g),this.scrollToNew()}}).catch(()=>{if(this.sendLoading=!1,resend){let u=new Date().getTime(),h={attachments:errEl.attachments,content:errEl.content,quote:errEl.quote,self:!0,contentIsHtml:!0,created:u,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,h):this.demoContent.unshift(h)}else{let u=new Date().getTime(),h={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:u,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,h):this.demoContent.unshift(h)}this.scrollToNew()})}}).catch(()=>{this.sendLoading=!1})},expandImg(e){const o=e.target;if(o.tagName.toLowerCase()==="img"){const n=o.getAttribute("src");this.expandImgUrl=n,this.showImgDialog=!0}},showNameImg(e){return this.isHedgehood?`https://ui-avatars.com/api/?background=4b087a&color=fff&name=${e}&rounded=true&format=svg`:`https://ui-avatars.com/api/?background=0A853B&color=fff&name=${e}&rounded=true&format=svg`},parseJwt(e){const o=e.split("."),n=this.decodeBase64Url(o[1]);return JSON.parse(n)},decodeBase64Url(e){let o=e.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Invalid base64 string"}return decodeURIComponent(atob(o))},getHistoryByPage(e,o,n){let r={ticketId:this.currentRecord.id,pageSize:20,isClient:!0,t:new Date().getTime()};o&&(r.messageId=this.demoContent[this.demoContent.length-1].id),e||(this.conversationLoading=!0),Lr(this.baseUrl,this.token,r).then(t=>{if(this.conversationLoading=!1,t.code===200){if(!e&&t.data.length>0){let a=!1;t.data.forEach(i=>{i.isShow&&(a=!0)}),this.showYesOrNo=a,a&&n&&this.openChatBox()}if(this.total=t.totalElements,this.isFirstScroll&&(setTimeout(()=>{window.scrollTo(0,document.body.scrollHeight)},100),this.isFirstScroll=!1),this.total<=this.demoContent.length)return;this.demoContent.push(...t.data),o||this.scrollToNew(),this.$emit("setUnreadNum",0)}else this.$message.error(this.translate(t.msg))}).catch(()=>{this.conversationLoading=!1})},getHistoryExtra(e){if(this.currentRecord.id==0||this.currentRecord.id=="")return;let o={ticketId:this.currentRecord.id,pageSize:20,isClient:!0,t:new Date().getTime()};e||(this.conversationLoading=!0),Lr(this.baseUrl,this.token,o).then(n=>{if(this.conversationLoading=!1,n.code===200){let r=!1;n.data.forEach(t=>{t.isShow&&(r=!0)}),this.showYesOrNo=r,this.total=n.totalElements,this.demoContent=n.data,this.scrollToNew()}else this.$message.error(this.translate(n.msg))}).catch(()=>{this.conversationLoading=!1})},getTicketId(){this.conversationLoading=!0;let e={id:this.parseJwt(this.token)["custom:user_id"]};el(this.baseUrl,this.token,e).then(o=>{o.code==200?(this.currentRecord.id=o.data,this.currentRecord.id?this.getHistoryByPage(!1,!1,!0):this.conversationLoading=!1):this.conversationLoading=!1}).catch(()=>{this.conversationLoading=!1})},changeMsgStatus(e,o){let n=o.id;if(!this.hasAddId.includes(n)){this.hasAddId.push(n);for(let r of this.demoContent)r.sendingId==e&&(r.sendingMsg=!1,r.sender={name:o.sender.name,avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]},r.id=n)}},addMsg(e,o,n,r){this.sendingId++;let t;e?t={attachments:o.attachments,content:o.content,quote:o.quote,self:!0,contentIsHtml:!0,created:new Date().getTime(),sendingId:this.sendingId,sendingMsg:!0,sender:{avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]}}:t={attachments:this.successUploadList,content:r||(n?"":this.content),quote:n?null:this.quoteMessage,self:!0,contentIsHtml:!0,created:new Date().getTime(),sendingId:this.sendingId,sendingMsg:!0,sender:{avatar:this.senderAvator,id:this.parseJwt(this.token)["custom:user_id"]}},this.demoContent.unshift(t)},download(e){if(this.isApp){let o=`${this.profileUrl}/upload/download/${e.fileRecordId}`;try{window.flutter_inappwebview.callHandler("postMessage",`download:${o}`)}catch{}return}_i(this.profileUrl,this.token,e.fileRecordId).then(o=>{let n=o.data;const r=o.headers["content-disposition"];let t="file";if(r&&(t=decodeURIComponent(r.split("utf-8''")[1])),n)this.$message.success(this.translate("Download Successfully"));else{this.$message.error(this.translate("Download failed"));return}if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(new Blob([n]),t);else{let a=window.URL.createObjectURL(new Blob([n])),i=document.createElement("a");i.style.display="none",i.href=a,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(a)}})},async sendMessage(e,o){if(console.log(e,o),this.content.trim()==="")return;this.sendLoading=!0;let n;if(this.showYesOrNo&&this.setIsShowFalse(),this.showYesOrNo=!1,!e)this.fileList.length>0&&await this.uploadFile(),n={attachments:this.successUploadList,content:Vn.sanitize(this.content),ticketId:this.currentRecord.id,quoteId:this.quoteMessage?this.quoteMessage.id:null,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg();else{for(let t in this.demoContent){let a=this.demoContent[t];a.isError&&a.errid==o.errid&&this.demoContent.splice(t,1)}n={attachments:o.attachments,content:Vn.sanitize(o.content),ticketId:this.currentRecord.id,quoteId:o.quoteId,clientId:this.parseJwt(this.token)["custom:user_id"],contentIsHtml:!0},this.addMsg(!0,o)}let r=this.sendingId;this.editor.txt.clear(),bn(this.baseUrl,this.token,n).then(t=>{if(this.sendLoading=!1,t.code===200)this.content="",this.editor.txt.clear(),window.localStorage.setItem("_selfChatContent",""),this.quoteMessage=null,this.fileList=[],this.successUploadList=[],this.changeMsgStatus(r,t.data);else{if(e){let a=new Date().getTime(),i={attachments:o.attachments,content:o.content,quote:o.quoteMessage,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}else{let a=new Date().getTime(),i={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,created:a,contentIsHtml:!0,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}this.scrollToNew(),this.$message.error(t.msg)}}).catch(t=>{if(this.sendLoading=!1,e){let a=new Date().getTime(),i={attachments:o.attachments,content:o.content,quote:o.quoteMessage,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}else{let a=new Date().getTime(),i={attachments:this.successUploadList,content:this.content,quote:this.quoteMessage,self:!0,contentIsHtml:!0,created:a,sender:{avatar:this.senderAvator,name:"Me"},isError:!0,errid:this.errid++};this.demoContent[0].sendingMsg?this.demoContent.splice(0,1,i):this.demoContent.unshift(i)}this.scrollToNew()})},scrollToNew(){setTimeout(()=>{document.querySelector(".cbp-content-chat")&&(document.querySelector(".cbp-content-chat").scrollTop=document.querySelector(".cbp-content-chat").scrollHeight)},10)}}},J0={class:"chat-box-mobile"},K0={class:"cbp-content-head flex align-center space-bt"},Z0={key:0,class:"head-img-hh",src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/hh-chat-logo.png",alt:""},X0={key:1,class:"head-img-zero",src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/zero-chat-logo.png",alt:""},q0={key:0,class:"common-check-container"},_0={key:0,class:"common-li self-li"},ey={class:"flex relative"},ty={class:"common-li-tool"},ny=["onClick"],ry={key:1,class:"msg-loading-wrap"},oy={class:"flex flex-end"},ay={class:"mgr-16"},iy=["innerHTML"],ly={key:1,class:"word-break font-14 space-pre-line medium line-30"},sy={key:0,class:"attach"},cy={key:0,class:"file-list"},uy=["onClick"],dy={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},fy={key:0,class:"_font-12 w-100"},hy={key:1,class:"file-list"},my=["onClick"],vy={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},py={class:"font-12 text-right"},gy={key:1,class:"common-li other-li"},yy={key:0,class:"replay-role"},Ay={class:"name font-12"},Cy={key:1,class:"replay-role"},Ey=["src"],Sy=["src"],xy={class:"name font-12"},wy={class:"flex"},Ty={class:"flex flex-end"},Dy={class:"mgr-16"},My=["innerHTML"],by={key:1,class:"word-break font-14 space-pre-line medium line-30"},Ny={key:0,class:"attach"},Ry={key:0,class:"file-list"},Iy=["onClick"],Py={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},Oy={key:0,class:"_font-12 w-100"},Ly={key:1,class:"file-list"},By=["onClick"],Fy={class:"_medium mgr-4 _underline _1E333BFontColor attachment_wrap line-30"},Hy={class:"extra"},Vy={key:0,src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/no-chat-hh.png",class:"no-chat-img",alt:""},ky={key:1,src:"https://main.d1dqfa1gmgshev.amplifyapp.com/imgs/logo/no-chat-zero.png",class:"no-chat-img",alt:""},Uy={key:2,class:"font-16 medium mgt-4 _emptyTitleColor"},Yy={key:3,class:"font-16 medium mgt-4 _emptyTitleColor"},jy={class:"font-14 mt-1 _emptyDescColor"},zy={class:"cbp-content-opt _lineBgColor"},$y={class:"cbp-content-btn flex align-center"},Wy={key:1,class:"h-24 cursor"},Gy={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor"},Qy=["src"],Jy={xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30",fill:"none"},Ky=["src"],Zy={class:"flex"},Xy={key:0,xmlns:"http://www.w3.org/2000/svg",width:"40",height:"27",viewBox:"0 0 40 27",fill:"none",style:{transform:"scale(0.7)"}},qy={key:1,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"27",viewBox:"0 0 18 20",fill:"none",style:{transform:"scale(0.7)"}};function _y(e,o,n,r,t,a){const i=c.resolveComponent("Loading"),l=c.resolveComponent("font-awesome-icon");return c.openBlock(),c.createElementBlock("div",J0,[c.withDirectives(c.createElementVNode("div",null,[c.createElementVNode("div",{class:"cbp-content",style:c.normalizeStyle({height:t.viewHeight+"px"})},[c.withDirectives(c.createVNode(i,null,null,512),[[c.vShow,t.conversationLoading]]),c.createElementVNode("div",K0,[n.isHedgehood?(c.openBlock(),c.createElementBlock("img",Z0)):(c.openBlock(),c.createElementBlock("img",X0)),c.createElementVNode("div",null,[(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor mgr-24",onClick:o[0]||(o[0]=(...s)=>a.toHelpCenter&&a.toHelpCenter(...s))},o[10]||(o[10]=[c.createElementVNode("path",{d:"M20.4375 3H14.8125C14.5031 3 14.25 3.25158 14.25 3.5625C14.25 3.87342 14.5031 4.125 14.8125 4.125H19.0805L13.2902 9.91523C13.0705 10.135 13.0705 10.4911 13.2902 10.7105C13.51 10.9298 13.8661 10.9302 14.0855 10.7105L19.875 4.92059V9.1875C19.875 9.49687 20.1281 9.75 20.4375 9.75C20.7469 9.75 21 9.49687 21 9.1875V3.5625C21 3.25158 20.7469 3 20.4375 3ZM9.91523 13.2902L4.125 19.0805V14.8125C4.125 14.5031 3.87328 14.25 3.5625 14.25C3.25172 14.25 3 14.5031 3 14.8125V20.4375C3 20.7469 3.25158 21 3.5625 21H9.1875C9.49687 21 9.75 20.7469 9.75 20.4375C9.75 20.1281 9.49687 19.875 9.1875 19.875H4.92059L10.7108 14.0848C10.9305 13.865 10.9305 13.5089 10.7108 13.2895C10.4911 13.0702 10.1332 13.0688 9.91523 13.2902Z",fill:"#222C30"},null,-1)]))),(c.openBlock(),c.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",class:"cursor",onClick:o[1]||(o[1]=s=>t.isOpen=!1)},o[11]||(o[11]=[c.createElementVNode("path",{d:"M21.3111 7.25195L21.01 6.94688C20.8107 6.74492 20.4883 6.74492 20.289 6.94688L12.002 15.3473L3.71066 6.94688C3.51133 6.74492 3.18901 6.74492 2.98968 6.94688L2.68856 7.25195C2.48923 7.45391 2.48923 7.78047 2.68856 7.98242L11.6372 17.0531C11.8366 17.2551 12.1589 17.2551 12.3582 17.0531L21.3069 7.98242C21.5104 7.78047 21.5104 7.45391 21.3111 7.25195Z",fill:"#222C30"},null,-1)])))])]),t.demoContent.length>0?(c.openBlock(),c.createElementBlock("div",{key:0,class:"_lineBgColor",style:c.normalizeStyle({height:"calc(100% - 64px - "+t.chatBoxHeight*1+"px)"})},[c.createElementVNode("ul",{class:"_lineBgColor cbp-content-chat",style:{maxHeight:"100%"},onScroll:o[6]||(o[6]=(...s)=>a.handleScroll&&a.handleScroll(...s))},[t.showYesOrNo?(c.openBlock(),c.createElementBlock("li",q0,[c.createElementVNode("span",{class:c.normalizeClass(["cursor common-check font-16 bold mgr-16",t.currentActive=="Now"?"_activeWhiteBgColor":"_whiteBgColor"]),onClick:o[2]||(o[2]=s=>a.changeActive("Now"))},c.toDisplayString(a.translate("Now")),3),c.createElementVNode("span",{class:c.normalizeClass(["cursor common-check font-16 bold _whiteBgColor",t.currentActive=="Maybe later"?"_activeWhiteBgColor":"_whiteBgColor"]),onClick:o[3]||(o[3]=s=>a.changeActive("Maybe later"))},c.toDisplayString(a.translate("Maybe later")),3)])):c.createCommentVNode("",!0),(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(t.demoContent,(s,u)=>(c.openBlock(),c.createElementBlock("li",{key:s.id},[c.withDirectives(c.createElementVNode("div",{class:"flex space-center _font-14 _timeColor medium"},c.toDisplayString(a.initTimeStamp(s.created,u)),513),[[c.vShow,a.initTimeStamp(s.created,u)!=""]]),s.self?(c.openBlock(),c.createElementBlock("div",_0,[c.createElementVNode("div",ey,[c.createElementVNode("div",ty,[s.isError?(c.openBlock(),c.createElementBlock("div",{key:0,class:"retry",onClick:h=>a.sendMessage(!0,s)},o[12]||(o[12]=[c.createElementVNode("svg",{class:"error-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM11 17V15H13V17H11ZM11 7V13H13V7H11Z",fill:"#BC2B35"})],-1)]),8,ny)):c.createCommentVNode("",!0),s.sendingMsg?(c.openBlock(),c.createElementBlock("div",ry,[c.createVNode(l,{class:"loading-icon",icon:"fal fa-spinner-third"})])):c.createCommentVNode("",!0)]),c.createElementVNode("div",{class:c.normalizeClass(["replay-content _chatGreenBgColor",s.content.indexOf("%noPaddingParent%")!==-1&&s.quote==null?"no-padding-bd":""]),onClick:o[4]||(o[4]=(...h)=>a.expandImg&&a.expandImg(...h))},[c.createElementVNode("div",oy,[c.createElementVNode("div",ay,[c.createElementVNode("div",null,[s.content&&s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",{key:0,class:"word-break font-14 space-pre-line medium line-30",innerHTML:a.escapeHTML(s.content)},null,8,iy)):c.createCommentVNode("",!0),s.content&&!s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",ly,c.toDisplayString(s.content),1)):c.createCommentVNode("",!0)]),s.attachments&&s.attachments.length>0?(c.openBlock(),c.createElementBlock("div",sy,[s.content==""&&s.attachments.length==1?(c.openBlock(),c.createElementBlock("div",cy,[c.createElementVNode("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:h=>a.download(s.attachments[0])},[c.createElementVNode("span",dy,c.toDisplayString(s.attachments[0].filename),1),o[13]||(o[13]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,uy),["jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(s.attachments[0].filename.split(".")[1])?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",fy,c.toDisplayString((s.attachments[0].fileSize/1024/1024).toFixed(2))+"MB",1))])):(c.openBlock(),c.createElementBlock("div",hy,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.attachments,(h,f)=>(c.openBlock(),c.createElementBlock("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:g=>a.download(h),key:f},[c.createElementVNode("span",vy,c.toDisplayString(h.filename),1),o[14]||(o[14]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,my))),128))]))])):c.createCommentVNode("",!0)]),c.createElementVNode("div",py,c.toDisplayString(a.timeFormat(s.created,!0,!1,!0)),1)])],2)])])):(c.openBlock(),c.createElementBlock("div",gy,[s.sender.name==="Support"&&(s.sender.id==1||s.sender.id==2)?(c.openBlock(),c.createElementBlock("div",yy,[o[15]||(o[15]=c.createElementVNode("div",{class:"role-icon _chatGreenBgColor"},[c.createElementVNode("div",{style:{width:"24px",height:"24px",display:"flex","align-items":"center","justify-content":"center","border-radius":"50%"}},[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none"},[c.createElementVNode("path",{d:"M13.7502 11.0417C12.8426 11.0417 12.4062 11.5626 10.9168 11.5626C9.42743 11.5626 8.99421 11.0417 8.0835 11.0417C5.73714 11.0417 3.8335 13.0014 3.8335 15.4167V16.7709C3.8335 17.6335 4.51337 18.3334 5.35135 18.3334H16.4823C17.3203 18.3334 18.0002 17.6335 18.0002 16.7709V15.4167C18.0002 13.0014 16.0965 11.0417 13.7502 11.0417ZM16.9883 16.7709C16.9883 17.0574 16.7606 17.2917 16.4823 17.2917H5.35135C5.07308 17.2917 4.8454 17.0574 4.8454 16.7709V15.4167C4.8454 13.5776 6.29685 12.0834 8.0835 12.0834C8.70329 12.0834 9.31992 12.6042 10.9168 12.6042C12.5106 12.6042 13.1304 12.0834 13.7502 12.0834C15.5368 12.0834 16.9883 13.5776 16.9883 15.4167V16.7709ZM10.9168 10.0001C13.1525 10.0001 14.9644 8.13485 14.9644 5.83342C14.9644 3.53198 13.1525 1.66675 10.9168 1.66675C8.68115 1.66675 6.86921 3.53198 6.86921 5.83342C6.86921 8.13485 8.68115 10.0001 10.9168 10.0001ZM10.9168 2.70841C12.5896 2.70841 13.9525 4.11141 13.9525 5.83342C13.9525 7.55542 12.5896 8.95842 10.9168 8.95842C9.24402 8.95842 7.88112 7.55542 7.88112 5.83342C7.88112 4.11141 9.24402 2.70841 10.9168 2.70841Z",class:"_supportFill"})])])],-1)),c.createElementVNode("div",Ay,c.toDisplayString(s.sender.name),1)])):(c.openBlock(),c.createElementBlock("div",Cy,[s.sender.avatar===null?(c.openBlock(),c.createElementBlock("img",{key:0,class:"role-icon",src:a.showNameImg(s.sender.name)},null,8,Ey)):c.createCommentVNode("",!0),s.sender.avatar?(c.openBlock(),c.createElementBlock("img",{key:1,class:"role-icon",src:s.sender.avatar},null,8,Sy)):c.createCommentVNode("",!0),c.createElementVNode("div",xy,c.toDisplayString(s.sender.name),1)])),c.createElementVNode("div",wy,[c.createElementVNode("div",{class:c.normalizeClass(["replay-content refresh",s.content.indexOf("%noPaddingParent%")!==-1&&s.quote==null?"no-padding-bd":""]),onClick:o[5]||(o[5]=(...h)=>a.expandImg&&a.expandImg(...h))},[c.createElementVNode("div",Ty,[c.createElementVNode("div",Dy,[c.createElementVNode("div",null,[s.content&&s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",{key:0,class:"word-break font-14 space-pre-line medium line-30",innerHTML:a.escapeHTML(s.content)},null,8,My)):c.createCommentVNode("",!0),s.content&&!s.contentIsHtml?(c.openBlock(),c.createElementBlock("div",by,c.toDisplayString(s.content),1)):c.createCommentVNode("",!0)]),s.attachments&&s.attachments.length>0?(c.openBlock(),c.createElementBlock("div",Ny,[s.content==""&&s.attachments.length==1?(c.openBlock(),c.createElementBlock("div",Ry,[c.createElementVNode("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:h=>a.download(s.attachments[0])},[c.createElementVNode("span",Py,c.toDisplayString(s.attachments[0].filename),1),o[16]||(o[16]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,Iy),["jpeg","png","gif","webp","bmp","apng","ico","avif","svg"].includes(s.attachments[0].filename.split(".")[1])?c.createCommentVNode("",!0):(c.openBlock(),c.createElementBlock("div",Oy,c.toDisplayString((s.attachments[0].fileSize/1024/1024).toFixed(2))+"MB",1))])):(c.openBlock(),c.createElementBlock("div",Ly,[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(s.attachments,(h,f)=>(c.openBlock(),c.createElementBlock("a",{class:"self-c-a _medium flex align-center",href:"javascript:;",onClick:g=>a.download(h),key:f},[c.createElementVNode("span",Fy,c.toDisplayString(h.filename),1),o[17]||(o[17]=c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[c.createElementVNode("path",{d:"M13.3538 5.14625L9.85375 1.64625C9.80728 1.59983 9.75212 1.56303 9.69143 1.53793C9.63073 1.51284 9.56568 1.49995 9.5 1.5H3.5C3.23478 1.5 2.98043 1.60536 2.79289 1.79289C2.60536 1.98043 2.5 2.23478 2.5 2.5V13.5C2.5 13.7652 2.60536 14.0196 2.79289 14.2071C2.98043 14.3946 3.23478 14.5 3.5 14.5H12.5C12.7652 14.5 13.0196 14.3946 13.2071 14.2071C13.3946 14.0196 13.5 13.7652 13.5 13.5V5.5C13.5001 5.43432 13.4872 5.36927 13.4621 5.30858C13.437 5.24788 13.4002 5.19272 13.3538 5.14625ZM10 3.20688L11.7931 5H10V3.20688ZM12.5 13.5H3.5V2.5H9V5.5C9 5.63261 9.05268 5.75979 9.14645 5.85355C9.24021 5.94732 9.36739 6 9.5 6H12.5V13.5ZM9.85375 8.64625C9.90021 8.6927 9.93706 8.74786 9.9622 8.80855C9.98734 8.86925 10.0003 8.9343 10.0003 9C10.0003 9.0657 9.98734 9.13075 9.9622 9.19145C9.93706 9.25214 9.90021 9.3073 9.85375 9.35375C9.8073 9.40021 9.75214 9.43706 9.69145 9.4622C9.63075 9.48734 9.5657 9.50028 9.5 9.50028C9.4343 9.50028 9.36925 9.48734 9.30855 9.4622C9.24786 9.43706 9.1927 9.40021 9.14625 9.35375L8.5 8.70687V11.5C8.5 11.6326 8.44732 11.7598 8.35355 11.8536C8.25979 11.9473 8.13261 12 8 12C7.86739 12 7.74021 11.9473 7.64645 11.8536C7.55268 11.7598 7.5 11.6326 7.5 11.5V8.70687L6.85375 9.35375C6.8073 9.40021 6.75214 9.43706 6.69145 9.4622C6.63075 9.48734 6.5657 9.50028 6.5 9.50028C6.4343 9.50028 6.36925 9.48734 6.30855 9.4622C6.24786 9.43706 6.1927 9.40021 6.14625 9.35375C6.09979 9.3073 6.06294 9.25214 6.0378 9.19145C6.01266 9.13075 5.99972 9.0657 5.99972 9C5.99972 8.9343 6.01266 8.86925 6.0378 8.80855C6.06294 8.74786 6.09979 8.6927 6.14625 8.64625L7.64625 7.14625C7.69269 7.09976 7.74783 7.06288 7.80853 7.03772C7.86923 7.01256 7.93429 6.99961 8 6.99961C8.06571 6.99961 8.13077 7.01256 8.19147 7.03772C8.25217 7.06288 8.30731 7.09976 8.35375 7.14625L9.85375 8.64625Z",class:"_034F21Fill"})],-1))],8,By))),128))]))])):c.createCommentVNode("",!0)]),c.createElementVNode("div",Hy,c.toDisplayString(a.timeFormat(s.created,!0,!1,!0)),1)])],2)])]))]))),128))],32)],4)):(c.openBlock(),c.createElementBlock("div",{key:1,class:"no-chat-container _lineBgColor",style:c.normalizeStyle({height:"calc(100% - 64px - "+t.chatBoxHeight*1+"px)"})},[n.isHedgehood?(c.openBlock(),c.createElementBlock("img",Vy)):(c.openBlock(),c.createElementBlock("img",ky)),n.isHedgehood?(c.openBlock(),c.createElementBlock("div",Uy,c.toDisplayString(a.translate("Welcome to Hedgehood.")),1)):(c.openBlock(),c.createElementBlock("div",Yy,c.toDisplayString(a.translate("Welcome to Zero Markets.")),1)),c.createElementVNode("div",jy,c.toDisplayString(a.translate("We’re online 24/5!")),1)],4)),c.createElementVNode("div",zy,[o[20]||(o[20]=c.createElementVNode("div",{id:"chat-box-editor"},null,-1)),c.createElementVNode("div",$y,[t.sendLoading?c.createCommentVNode("",!0):(c.openBlock(),c.createBlock(So,{key:0,variant:"text",size:"small",class:"semi-bold h-24",height:"24","max-width":"24","min-width":"24",onClick:a.checkCameraPermission},{default:c.withCtx(()=>[c.createVNode(Mo,{text:a.translate("The file can’t be larger than 50 MB."),location:"top",attach:""},{activator:c.withCtx(({props:s})=>[c.createElementVNode("span",c.mergeProps({class:"_extraHover"},s),o[18]||(o[18]=[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M17 11.7656V12.2344C17 12.4922 16.7891 12.7031 16.5312 12.7031H12.7031V16.5312C12.7031 16.7891 12.4922 17 12.2344 17H11.7656C11.5078 17 11.2969 16.7891 11.2969 16.5312V12.7031H7.46875C7.21094 12.7031 7 12.4922 7 12.2344V11.7656C7 11.5078 7.21094 11.2969 7.46875 11.2969H11.2969V7.46875C11.2969 7.21094 11.5078 7 11.7656 7H12.2344C12.4922 7 12.7031 7.21094 12.7031 7.46875V11.2969H16.5312C16.7891 11.2969 17 11.5078 17 11.7656ZM21.6875 12C21.6875 17.3516 17.3516 21.6875 12 21.6875C6.64844 21.6875 2.3125 17.3516 2.3125 12C2.3125 6.64844 6.64844 2.3125 12 2.3125C17.3516 2.3125 21.6875 6.64844 21.6875 12ZM20.4375 12C20.4375 7.31641 16.6367 3.5625 12 3.5625C7.31641 3.5625 3.5625 7.36328 3.5625 12C3.5625 16.6836 7.36328 20.4375 12 20.4375C16.6836 20.4375 20.4375 16.6367 20.4375 12Z"})],-1)]),16)]),_:1},8,["text"])]),_:1},8,["onClick"])),t.sendLoading?(c.openBlock(),c.createElementBlock("div",Wy,[c.createVNode(Mo,{text:a.translate("The file can’t be larger than 50 MB."),location:"top",attach:""},{activator:c.withCtx(({props:s})=>[c.createElementVNode("span",c.mergeProps({class:"_extraHover"},s),o[19]||(o[19]=[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M17 11.7656V12.2344C17 12.4922 16.7891 12.7031 16.5312 12.7031H12.7031V16.5312C12.7031 16.7891 12.4922 17 12.2344 17H11.7656C11.5078 17 11.2969 16.7891 11.2969 16.5312V12.7031H7.46875C7.21094 12.7031 7 12.4922 7 12.2344V11.7656C7 11.5078 7.21094 11.2969 7.46875 11.2969H11.2969V7.46875C11.2969 7.21094 11.5078 7 11.7656 7H12.2344C12.4922 7 12.7031 7.21094 12.7031 7.46875V11.2969H16.5312C16.7891 11.2969 17 11.5078 17 11.7656ZM21.6875 12C21.6875 17.3516 17.3516 21.6875 12 21.6875C6.64844 21.6875 2.3125 17.3516 2.3125 12C2.3125 6.64844 6.64844 2.3125 12 2.3125C17.3516 2.3125 21.6875 6.64844 21.6875 12ZM20.4375 12C20.4375 7.31641 16.6367 3.5625 12 3.5625C7.31641 3.5625 3.5625 7.36328 3.5625 12C3.5625 16.6836 7.36328 20.4375 12 20.4375C16.6836 20.4375 20.4375 16.6367 20.4375 12Z"})],-1)]),16)]),_:1},8,["text"])])):c.createCommentVNode("",!0),c.withDirectives(c.createVNode(Jc,{label:"File input",ref:"chatFileRef","onUpdate:modelValue":a.handleRequestComp},null,8,["onUpdate:modelValue"]),[[c.vShow,!1]]),c.createVNode(So,{variant:"text",loading:t.sendLoading,class:"special-btn mgl-12",onClick:o[7]||(o[7]=s=>a.sendMessage(!1)),height:"24","max-width":"24","min-width":"24",flat:""},{default:c.withCtx(()=>[c.withDirectives((c.openBlock(),c.createElementBlock("svg",Gy,[c.createElementVNode("path",{d:"M20.5943 2.12419L2.48887 12.5695C1.78183 12.9757 1.87168 13.9601 2.5748 14.257L6.72715 15.9992L17.9498 6.10856C18.1646 5.91715 18.4693 6.21012 18.2857 6.43278L8.87558 17.8976V21.0422C8.87558 21.964 9.98887 22.3273 10.5357 21.6593L13.0162 18.6398L17.8834 20.6789C18.4381 20.9132 19.0709 20.5656 19.1725 19.9679L21.985 3.09294C22.1178 2.30387 21.2701 1.73356 20.5943 2.12419Z",class:c.normalizeClass(t.content==""?"_CCCCCCFill":"_0A853BFill")},null,2)],512)),[[c.vShow,!t.sendLoading]])]),_:1},8,["loading"])])])],4)],512),[[c.vShow,t.isOpen]]),c.withDirectives(c.createElementVNode("div",{class:"expand-img-container",onClick:o[8]||(o[8]=s=>t.showImgDialog=!1)},[o[21]||(o[21]=c.createElementVNode("div",{class:"eic-header"},[c.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[c.createElementVNode("path",{d:"M12 2.3125C6.64844 2.3125 2.3125 6.64844 2.3125 12C2.3125 17.3516 6.64844 21.6875 12 21.6875C17.3516 21.6875 21.6875 17.3516 21.6875 12C21.6875 6.64844 17.3516 2.3125 12 2.3125ZM12 20.4375C7.36328 20.4375 3.5625 16.6836 3.5625 12C3.5625 7.36328 7.31641 3.5625 12 3.5625C16.6367 3.5625 20.4375 7.31641 20.4375 12C20.4375 16.6367 16.6836 20.4375 12 20.4375ZM15.7031 9.29297L12.9961 12L15.7031 14.707C15.8867 14.8906 15.8867 15.1875 15.7031 15.3711L15.3711 15.7031C15.1875 15.8867 14.8906 15.8867 14.707 15.7031L12 12.9961L9.29297 15.7031C9.10938 15.8867 8.8125 15.8867 8.62891 15.7031L8.29688 15.3711C8.11328 15.1875 8.11328 14.8906 8.29688 14.707L11.0039 12L8.29688 9.29297C8.11328 9.10938 8.11328 8.8125 8.29688 8.62891L8.62891 8.29688C8.8125 8.11328 9.10938 8.11328 9.29297 8.29688L12 11.0039L14.707 8.29688C14.8906 8.11328 15.1875 8.11328 15.3711 8.29688L15.7031 8.62891C15.8828 8.8125 15.8828 9.10938 15.7031 9.29297Z",fill:"#FFFFFF"})])],-1)),c.createElementVNode("img",{class:"eic-img",src:t.expandImgUrl,alt:""},null,8,Qy)],512),[[c.vShow,t.showImgDialog]]),c.createElementVNode("div",{class:"cbp-icon",onClick:o[9]||(o[9]=(...s)=>a.openChatBox&&a.openChatBox(...s))},[c.withDirectives((c.openBlock(),c.createElementBlock("svg",Jy,o[22]||(o[22]=[c.createElementVNode("path",{d:"M16.6532 14.9745L25.9795 5.6732C26.1638 5.45856 26.2601 5.18246 26.2492 4.90008C26.2382 4.61771 26.1209 4.34984 25.9205 4.15002C25.7201 3.9502 25.4516 3.83314 25.1684 3.82223C24.8853 3.81133 24.6085 3.90738 24.3932 4.09119L15.067 13.3925L5.74074 4.07997C5.52889 3.86869 5.24158 3.75 4.94199 3.75C4.6424 3.75 4.35508 3.86869 4.14324 4.07997C3.93139 4.29124 3.81238 4.57779 3.81238 4.87658C3.81238 5.17537 3.93139 5.46192 4.14324 5.6732L13.4807 14.9745L4.14324 24.2758C4.02547 24.3764 3.92982 24.5002 3.8623 24.6394C3.79477 24.7786 3.75682 24.9302 3.75084 25.0847C3.74485 25.2392 3.77096 25.3933 3.82752 25.5373C3.88408 25.6813 3.96987 25.812 4.0795 25.9214C4.18914 26.0307 4.32026 26.1163 4.46462 26.1727C4.60899 26.2291 4.76349 26.2551 4.91842 26.2492C5.07336 26.2432 5.22538 26.2054 5.36495 26.138C5.50453 26.0707 5.62863 25.9753 5.72949 25.8578L15.067 16.5565L24.3932 25.8578C24.6085 26.0416 24.8853 26.1377 25.1684 26.1268C25.4516 26.1159 25.7201 25.9988 25.9205 25.799C26.1209 25.5992 26.2382 25.3313 26.2492 25.0489C26.2601 24.7665 26.1638 24.4904 25.9795 24.2758L16.6532 14.9745Z",fill:"#B2B2B2",stroke:"#B2B2B2","stroke-width":"1.2"},null,-1)]),512)),[[c.vShow,t.isOpen]]),c.withDirectives(c.createElementVNode("img",{src:n.sendAvatar,class:"icon-img",alt:""},null,8,Ky),[[c.vShow,!t.isOpen&&n.sendAvatar]]),c.withDirectives(c.createElementVNode("div",Zy,[n.isHedgehood?(c.openBlock(),c.createElementBlock("svg",qy,o[24]||(o[24]=[c.createStaticVNode('<mask id="mask0_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="4" y="0" width="5" height="14" data-v-2a418628><path d="M4.91803 0V13.8108L8.99903 10V0H4.91803Z" fill="white" data-v-2a418628></path></mask><g mask="url(#mask0_760_3317)" data-v-2a418628><path d="M8.04563 -1.74824L-0.856567 3.22998L5.87403 15.5607L14.7762 10.5825L8.04563 -1.74824Z" fill="url(#paint0_linear_760_3317)" data-v-2a418628></path></g><mask id="mask1_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="0" y="13" width="5" height="7" data-v-2a418628><path d="M0.837036 17.6236V19.9999H4.91803V13.8127L0.837036 17.6236Z" fill="white" data-v-2a418628></path></mask><g mask="url(#mask1_760_3317)" data-v-2a418628><path d="M3.98733 12.0792L-1.7283 15.2217L1.7659 21.7329L7.48153 18.5904L3.98733 12.0792Z" fill="url(#paint1_linear_760_3317)" data-v-2a418628></path></g><mask id="mask2_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="8" y="6" width="6" height="14" data-v-2a418628><path d="M8.99902 10V20H9.00096H13.082V6.18921L8.99902 10Z" fill="white" data-v-2a418628></path></mask><g mask="url(#mask2_760_3317)" data-v-2a418628><path d="M11.6654 4.22329L2.50513 10.9819L10.4158 21.9664L19.5761 15.2077L11.6654 4.22329Z" fill="url(#paint2_linear_760_3317)" data-v-2a418628></path></g><mask id="mask3_760_3317" style="mask-type:luminance;" maskUnits="userSpaceOnUse" x="13" y="0" width="5" height="7" data-v-2a418628><path d="M13.082 0V6.18721L17.163 2.37637V0H13.082Z" fill="white" data-v-2a418628></path></mask><g mask="url(#mask3_760_3317)" data-v-2a418628><path d="M15.996 -1.86959L10.3194 1.76978L14.2521 8.05435L19.9288 4.41498L15.996 -1.86959Z" fill="url(#paint3_linear_760_3317)" data-v-2a418628></path></g><defs data-v-2a418628><linearGradient id="paint0_linear_760_3317" x1="10.4709" y1="13.3712" x2="2.50304" y2="-0.877201" gradientUnits="userSpaceOnUse" data-v-2a418628><stop stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.14" stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.45" stop-color="#830AD1" data-v-2a418628></stop><stop offset="0.54" stop-color="#7C09C6" data-v-2a418628></stop><stop offset="0.68" stop-color="#6909A9" data-v-2a418628></stop><stop offset="0.86" stop-color="#4B077B" data-v-2a418628></stop><stop offset="1" stop-color="#330756" data-v-2a418628></stop></linearGradient><linearGradient id="paint1_linear_760_3317" x1="5.28472" y1="21.4" x2="1.53543" y2="14.5805" gradientUnits="userSpaceOnUse" data-v-2a418628><stop stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.14" stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.45" stop-color="#830AD1" data-v-2a418628></stop><stop offset="0.55" stop-color="#7809C1" data-v-2a418628></stop><stop offset="0.74" stop-color="#5D0897" data-v-2a418628></stop><stop offset="1" stop-color="#330756" data-v-2a418628></stop></linearGradient><linearGradient id="paint2_linear_760_3317" x1="17.4236" y1="21.9112" x2="7.14598" y2="7.98153" gradientUnits="userSpaceOnUse" data-v-2a418628><stop stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.14" stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.41" stop-color="#830AD1" data-v-2a418628></stop><stop offset="0.5" stop-color="#7D09C9" data-v-2a418628></stop><stop offset="0.63" stop-color="#6F09B3" data-v-2a418628></stop><stop offset="0.78" stop-color="#590890" data-v-2a418628></stop><stop offset="0.97" stop-color="#390760" data-v-2a418628></stop><stop offset="1" stop-color="#330756" data-v-2a418628></stop></linearGradient><linearGradient id="paint3_linear_760_3317" x1="18.2517" y1="8.11781" x2="11.8057" y2="-1.93666" gradientUnits="userSpaceOnUse" data-v-2a418628><stop stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.14" stop-color="#8F00FF" data-v-2a418628></stop><stop offset="0.45" stop-color="#830AD1" data-v-2a418628></stop><stop offset="0.92" stop-color="#330756" data-v-2a418628></stop><stop offset="1" stop-color="#330756" data-v-2a418628></stop></linearGradient></defs>',9)]))):(c.openBlock(),c.createElementBlock("svg",Xy,o[23]||(o[23]=[c.createElementVNode("path",{d:"M6.66663 0V27H33.3333V0H6.66663ZM27.998 21.598H12.0019V19.7984L18.667 10.8007H12.0019V5.40033H27.998V7.20321L21.333 16.1993H27.998V21.598Z",fill:"#222C30"},null,-1),c.createElementVNode("path",{d:"M21.333 16.1993H27.998L40 0H33.3334L21.333 16.1993Z",fill:"#0BA347"},null,-1),c.createElementVNode("path",{d:"M18.667 10.8007H12.002L0 27H6.66667L18.667 10.8007Z",fill:"#0BA347"},null,-1)])))],512),[[c.vShow,!t.isOpen&&!n.sendAvatar]]),c.withDirectives(c.createElementVNode("div",{class:"unread-count _chatGreenBgColor"},c.toDisplayString(n.unreadCount>99?"99+":n.unreadCount),513),[[c.vShow,n.unreadCount>0&&!t.isOpen]])])])}const e2={name:"ChatBox",props:{token:{type:String,default:""},profileUrl:{type:String,default:""},baseUrl:{type:String,default:""},translateLists:{type:Array},isHedgehood:{type:Boolean,default:!1},sendAvatar:{type:String,default:""},unreadCount:{type:Number,default:0},ticketAdd:{type:Number,default:0},ticketId:{type:Number,default:0},inHelpCenter:{type:Boolean,default:!1}},components:{PC:G0,Mobile:no(Q0,[["render",_y],["__scopeId","data-v-2a418628"]])},data(){return{isPc:!1}},created(){this.IsPC()?this.isPc=!0:this.isPc=!1,console.log(this.isPc)},methods:{toHelpCenter(){this.$emit("toHelpCenter")},resetUnreadCount(){this.$emit("resetUnreadCount")},showMask(e){this.$emit("showMask",e)},IsPC(){for(var e=navigator.userAgent,o=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],n=!0,r=0;r<o.length;r++)if(e.indexOf(o[r])>0){n=!1;break}return n}}};function t2(e,o,n,r,t,a){const i=c.resolveComponent("PC"),l=c.resolveComponent("Mobile");return c.openBlock(),c.createElementBlock("div",null,[t.isPc?(c.openBlock(),c.createBlock(i,{key:0,token:n.token,profileUrl:n.profileUrl,baseUrl:n.baseUrl,onShowMask:a.showMask,translateLists:n.translateLists,isHedgehood:n.isHedgehood,sendAvatar:n.sendAvatar,unreadCount:n.unreadCount,ticketAdd:n.ticketAdd,ticketId:n.ticketId,inHelpCenter:n.inHelpCenter,onToHelpCenter:a.toHelpCenter,onResetUnreadCount:a.resetUnreadCount},null,8,["token","profileUrl","baseUrl","onShowMask","translateLists","isHedgehood","sendAvatar","unreadCount","ticketAdd","ticketId","inHelpCenter","onToHelpCenter","onResetUnreadCount"])):(c.openBlock(),c.createBlock(l,{key:1,token:n.token,profileUrl:n.profileUrl,baseUrl:n.baseUrl,onShowMask:a.showMask,translateLists:n.translateLists,isHedgehood:n.isHedgehood,sendAvatar:n.sendAvatar,unreadCount:n.unreadCount,ticketAdd:n.ticketAdd,ticketId:n.ticketId,inHelpCenter:n.inHelpCenter,onToHelpCenter:a.toHelpCenter,onResetUnreadCount:a.resetUnreadCount},null,8,["token","profileUrl","baseUrl","onShowMask","translateLists","isHedgehood","sendAvatar","unreadCount","ticketAdd","ticketId","inHelpCenter","onToHelpCenter","onResetUnreadCount"]))])}const su=no(e2,[["render",t2]]),n2=[su],r2={install(e){n2.forEach(o=>{e.component(o.name,o)})}};nn.ChatBox=su,nn.default=r2,Object.defineProperties(nn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});