From ac123387fdbd825efbf88a0309a10ef09b2df62c Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 14 Feb 2023 07:45:07 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/DialogController.php | 1 + .../Controllers/Api/ProjectController.php | 11 ++++++++ package.json | 2 +- public/js/app.js | 2 +- public/js/hash | 2 +- resources/assets/js/store/actions.js | 25 +++++++++++++------ resources/assets/js/store/state.js | 1 + 7 files changed, 34 insertions(+), 10 deletions(-) diff --git a/app/Http/Controllers/Api/DialogController.php b/app/Http/Controllers/Api/DialogController.php index e8aeaa76d..41a10dcd5 100755 --- a/app/Http/Controllers/Api/DialogController.php +++ b/app/Http/Controllers/Api/DialogController.php @@ -71,6 +71,7 @@ class DialogController extends AbstractController ->join('web_socket_dialog_users as u', 'web_socket_dialogs.id', '=', 'u.dialog_id') ->where('u.userid', $user->userid) ->where('web_socket_dialogs.deleted_at', '>=', Carbon::parse(Request::input('deleted_at'))) + ->orderByDesc('web_socket_dialogs.deleted_at') ->take(100) ->pluck('id'); } diff --git a/app/Http/Controllers/Api/ProjectController.php b/app/Http/Controllers/Api/ProjectController.php index 04d13a1a2..8458ef973 100755 --- a/app/Http/Controllers/Api/ProjectController.php +++ b/app/Http/Controllers/Api/ProjectController.php @@ -58,6 +58,7 @@ class ProjectController extends AbstractController * - yes:取列表 * @apiParam {Object} [keys] 搜索条件 * - keys.name: 项目名称 + * @apiParam {String} [deleted_at] 读取在这个时间之后删除的项目ID,返回数据: deleted_data * * @apiParam {Number} [page] 当前页,默认:1 * @apiParam {Number} [pagesize] 每页显示数量,默认:50,最大:100 @@ -148,6 +149,16 @@ class ProjectController extends AbstractController $data['total_all'] = $data['total']; } // + if (Request::exists('deleted_at')) { + $data['deleted_at'] = date("Y-m-d H:i:s"); + $data['deleted_data'] = Project::authData() + ->withTrashed() + ->where('projects.deleted_at', '>=', Carbon::parse(Request::input('deleted_at'))) + ->orderByDesc('projects.deleted_at') + ->take(100) + ->pluck('id'); + } + // return Base::retSuccess('success', $data); } diff --git a/package.json b/package.json index cfa5afd65..7b650b1b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "DooTask", - "version": "0.22.84", + "version": "0.22.88", "description": "DooTask is task management system.", "scripts": { "start": "./cmd dev", diff --git a/public/js/app.js b/public/js/app.js index 6c0994d75..aaf6f6470 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(()=>{var e,t,n,i,r,o={36890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>S});var i=n(88239),r=n(72444),o=/%[sdj%]/g;function a(){for(var e=arguments.length,t=Array(e),n=0;n=a)return e;switch(e){case"%s":return String(t[i++]);case"%d":return Number(t[i++]);case"%j":try{return JSON.stringify(t[i++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[i];i()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},m={integer:function(e){return m.number(e)&&parseInt(e,10)===e},float:function(e){return m.number(e)&&!m.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":(0,r.Z)(e))&&!m.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(p.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(p.url)},hex:function(e){return"string"==typeof e&&!!e.match(p.hex)}};const v=function(e,t,n,i,o){if(e.required&&void 0===t)h(e,t,n,i,o);else{var s=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(s)>-1?m[s](t)||i.push(a(o.messages.types[s],e.fullField,e.type)):s&&(void 0===t?"undefined":(0,r.Z)(t))!==e.type&&i.push(a(o.messages.types[s],e.fullField,e.type))}};var g="enum";const b={required:h,whitespace:f,type:v,range:function(e,t,n,i,r){var o="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,d="number"==typeof t,h="string"==typeof t,f=Array.isArray(t);if(d?c="number":h?c="string":f&&(c="array"),!c)return!1;f&&(u=t.length),h&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?u!==e.len&&i.push(a(r.messages[c].len,e.fullField,e.len)):s&&!l&&ue.max?i.push(a(r.messages[c].max,e.fullField,e.max)):s&&l&&(ue.max)&&i.push(a(r.messages[c].range,e.fullField,e.min,e.max))},enum:function(e,t,n,i,r){e[g]=Array.isArray(e[g])?e[g]:[],-1===e[g].indexOf(t)&&i.push(a(r.messages[g],e.fullField,e[g].join(", ")))},pattern:function(e,t,n,i,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||i.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"==typeof e.pattern){new RegExp(e.pattern).test(t)||i.push(a(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const y=function(e,t,n,i,o){var a=[],s=Array.isArray(t)?"array":void 0===t?"undefined":(0,r.Z)(t);b.required(e,t,i,a,o,s),n(a)};const w=function(e,t,n,i,r){var o=e.type,a=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,o)&&!e.required)return n();b.required(e,t,i,a,r,o),s(t,o)||b.type(e,t,i,a,r)}n(a)},_={string:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"string")&&!e.required)return n();b.required(e,t,i,o,r,"string"),s(t,"string")||(b.type(e,t,i,o,r),b.range(e,t,i,o,r),b.pattern(e,t,i,o,r),!0===e.whitespace&&b.whitespace(e,t,i,o,r))}n(o)},method:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&b.type(e,t,i,o,r)}n(o)},number:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&(b.type(e,t,i,o,r),b.range(e,t,i,o,r))}n(o)},boolean:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&b.type(e,t,i,o,r)}n(o)},regexp:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),s(t)||b.type(e,t,i,o,r)}n(o)},integer:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&(b.type(e,t,i,o,r),b.range(e,t,i,o,r))}n(o)},float:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&(b.type(e,t,i,o,r),b.range(e,t,i,o,r))}n(o)},array:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"array")&&!e.required)return n();b.required(e,t,i,o,r,"array"),s(t,"array")||(b.type(e,t,i,o,r),b.range(e,t,i,o,r))}n(o)},object:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),void 0!==t&&b.type(e,t,i,o,r)}n(o)},enum:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();b.required(e,t,i,o,r),t&&b.enum(e,t,i,o,r)}n(o)},pattern:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t,"string")&&!e.required)return n();b.required(e,t,i,o,r),s(t,"string")||b.pattern(e,t,i,o,r)}n(o)},date:function(e,t,n,i,r){var o=[];if(e.required||!e.required&&i.hasOwnProperty(e.field)){if(s(t)&&!e.required)return n();if(b.required(e,t,i,o,r),!s(t)){var a=void 0;a="number"==typeof t?new Date(t):t,b.type(e,a,i,o,r),a&&b.range(e,a.getTime(),i,o,r)}}n(o)},url:w,hex:w,email:w,required:y};function x(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=x();function C(e){this.rules=null,this._messages=k,this.define(e)}C.prototype={messages:function(e){return e&&(this._messages=d(x(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":(0,r.Z)(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments[2],s=e,l=n,h=o;if("function"==typeof l&&(h=l,l={}),this.rules&&0!==Object.keys(this.rules).length){if(l.messages){var f=this.messages();f===k&&(f=x()),d(f,l.messages),l.messages=f}else l.messages=this.messages();var p=void 0,m=void 0,v={},g=l.keys||Object.keys(this.rules);g.forEach((function(n){p=t.rules[n],m=s[n],p.forEach((function(r){var o=r;"function"==typeof o.transform&&(s===e&&(s=(0,i.Z)({},s)),m=s[n]=o.transform(m)),(o="function"==typeof o?{validator:o}:(0,i.Z)({},o)).validator=t.getValidationMethod(o),o.field=n,o.fullField=o.fullField||n,o.type=t.getType(o),o.validator&&(v[n]=v[n]||[],v[n].push({rule:o,value:m,source:s,field:n}))}))}));var b={};u(v,l,(function(e,t){var n=e.rule,o=!("object"!==n.type&&"array"!==n.type||"object"!==(0,r.Z)(n.fields)&&"object"!==(0,r.Z)(n.defaultField));function s(e,t){return(0,i.Z)({},t,{fullField:n.fullField+"."+e})}function u(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=r;if(Array.isArray(u)||(u=[u]),u.length,u.length&&n.message&&(u=[].concat(n.message)),u=u.map(c(n)),l.first&&u.length)return b[n.field]=1,t(u);if(o){if(n.required&&!e.value)return u=n.message?[].concat(n.message).map(c(n)):l.error?[l.error(n,a(l.messages.required,n.field))]:[],t(u);var d={};if(n.defaultField)for(var h in e.value)e.value.hasOwnProperty(h)&&(d[h]=n.defaultField);for(var f in d=(0,i.Z)({},d,e.rule.fields))if(d.hasOwnProperty(f)){var p=Array.isArray(d[f])?d[f]:[d[f]];d[f]=p.map(s.bind(null,f))}var m=new C(d);m.messages(l.messages),e.rule.options&&(e.rule.options.messages=l.messages,e.rule.options.error=l.error),m.validate(e.value,e.rule.options||l,(function(e){t(e&&e.length?u.concat(e):e)}))}else t(u)}o=o&&(n.required||!n.required&&e.value),n.field=e.field;var d=n.validator(n,e.value,u,e.source,l);d&&d.then&&d.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){y(e)}))}else h&&h();function y(e){var t,n=void 0,i=void 0,r=[],o={};for(n=0;n{e.exports=n(51609)},55448:(e,t,n)=>{"use strict";var i=n(64867),r=n(36026),o=n(4372),a=n(15327),s=n(94097),l=n(84109),u=n(67985),c=n(85061),d=n(45655),h=n(65263);e.exports=function(e){return new Promise((function(t,n){var f,p=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}i.isFormData(p)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+w)}var _=s(e.baseURL,e.url);function x(){if(b){var i="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null,o={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b};r((function(e){t(e),g()}),(function(e){n(e),g()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=x:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(x)},b.onabort=function(){b&&(n(c("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(c("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,i.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},i.isStandardBrowserEnv()){var k=(e.withCredentials||u(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;k&&(m[e.xsrfHeaderName]=k)}"setRequestHeader"in b&&i.forEach(m,(function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){b&&(n(!e||e&&e.type?new h("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),b.send(p)}))}},51609:(e,t,n)=>{"use strict";var i=n(64867),r=n(91849),o=n(30321),a=n(47185);var s=function e(t){var n=new o(t),s=r(o.prototype.request,n);return i.extend(s,o.prototype,n),i.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(45655));s.Axios=o,s.Cancel=n(65263),s.CancelToken=n(14972),s.isCancel=n(26502),s.VERSION=n(97288).version,s.all=function(e){return Promise.all(e)},s.spread=n(8713),s.isAxiosError=n(16268),e.exports=s,e.exports.default=s},65263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},14972:(e,t,n)=>{"use strict";var i=n(65263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},30321:(e,t,n)=>{"use strict";var i=n(64867),r=n(15327),o=n(80782),a=n(13572),s=n(47185),l=n(54875),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!i){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),r=Promise.resolve(e);c.length;)r=r.then(c.shift(),c.shift());return r}for(var d=e;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(e){f(e);break}}try{r=a(d)}catch(e){return Promise.reject(e)}for(;o.length;)r=r.then(o.shift(),o.shift());return r},c.prototype.getUri=function(e){return e=s(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(s(i||{},{method:e,url:t,data:n}))}})),e.exports=c},80782:(e,t,n)=>{"use strict";var i=n(64867);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},94097:(e,t,n)=>{"use strict";var i=n(91793),r=n(7303);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},85061:(e,t,n)=>{"use strict";var i=n(80481);e.exports=function(e,t,n,r,o){var a=new Error(e);return i(a,t,n,r,o)}},13572:(e,t,n)=>{"use strict";var i=n(64867),r=n(18527),o=n(26502),a=n(45655),s=n(65263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},80481:e=>{"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},47185:(e,t,n)=>{"use strict";var i=n(64867);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function o(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function a(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function l(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,r=t(e);i.isUndefined(r)&&t!==l||(n[e]=r)})),n}},36026:(e,t,n)=>{"use strict";var i=n(85061);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},18527:(e,t,n)=>{"use strict";var i=n(64867),r=n(45655);e.exports=function(e,t,n){var o=this||r;return i.forEach(n,(function(n){e=n.call(o,e,t)})),e}},45655:(e,t,n)=>{"use strict";var i=n(34155),r=n(64867),o=n(16016),a=n(80481),s={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(u=n(55448)),u),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c},97288:e=>{e.exports={version:"0.24.0"}},91849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i{"use strict";var i=n(64867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var i=n(64867);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},91793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},16268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},67985:(e,t,n)=>{"use strict";var i=n(64867);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(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 e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},16016:(e,t,n)=>{"use strict";var i=n(64867);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},84109:(e,t,n)=>{"use strict";var i=n(64867),r=["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"];e.exports=function(e){var t,n,o,a={};return e?(i.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=i.trim(e.substr(0,o)).toLowerCase(),n=i.trim(e.substr(o+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},54875:(e,t,n)=>{"use strict";var i=n(97288).version,r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};r.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new Error(r(i," has been removed"+(t?" in "+t:"")));return t&&!o[i]&&(o[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var i=Object.keys(e),r=i.length;r-- >0;){var o=i[r],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:r}},64867:(e,t,n)=>{"use strict";var i=n(91849),r=Object.prototype.toString;function o(e){return"[object Array]"===r.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===r.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,i=e.length;n{var t=/^(attrs|props|on|nativeOn|class|style|hook)$/;function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}e.exports=function(e){return e.reduce((function(e,i){var r,o,a,s,l;for(a in i)if(r=e[a],o=i[a],r&&t.test(a))if("class"===a&&("string"==typeof r&&(l=r,e[a]=r={},r[l]=!0),"string"==typeof o&&(l=o,i[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)r[s]=n(r[s],o[s]);else if(Array.isArray(r))e[a]=r.concat(o);else if(Array.isArray(o))e[a]=[r].concat(o);else for(s in o)r[s]=o[s];else e[a]=i[a];return e}),{})}},88965:(e,t,n)=>{"use strict";var i=n(33875),r=(n(26029),n(8480),n(71878),n(70538)),o=n(20629);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u={name:"FloatSpinner",computed:function(e){for(var t=1;t0?t("div",{staticClass:"common-float-spinner"},[t("Loading",{staticClass:"common-float-circular"})],1):e._e()])}),[],!1,null,null,null).exports;var h=n(54556),f=n(9669),p=n.n(f),m=n(80641);function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(){g=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),s=new T(r||[]);return i(a,"_invoke",{value:k(e,n,s)}),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(E([])));y&&y!==t&&n.call(y,o)&&(m=y);var w=p.prototype=h.prototype=Object.create(m);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(i,o,a,s){var l=c(e[i],e,o);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==v(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function k(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=c(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=c(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function b(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}const y={name:"RightBottom",components:{MarkdownPreview:h.Z},data:function(){return{loadIng:0,subscribe:null,apiVersion:"",systemVersion:window.systemInfo.version,updateVersion:"",updateNote:"",updateShow:!1,updateBottomShow:!1,updateIng:!1,downloadUrl:""}},mounted:function(){var e=this;this.checkVersion(),this.$Electron&&(this.subscribe=m.Store.subscribe("updateNotification",(function(t){e.updateShow=!0})),this.$Electron.registerMsgListener("updateDownloaded",(function(t){e.$store.state.clientNewVersion=t.version,e.updateVersion=t.version,e.updateNote=t.releaseNotes||e.$L("没有更新描述。"),e.updateShow=$A.strExists(e.updateNote,"[".concat(e.updateVersion,"-Release]"))})))},beforeDestroy:function(){this.subscribe&&(this.subscribe.unsubscribe(),this.subscribe=null)},watch:{updateShow:function(e){e&&(this.updateBottomShow=!0)}},computed:{isSoftware:function(){return this.$Electron||this.$isEEUiApp},showSSO:function(){return this.isSoftware&&["login"].includes(this.$route.name)},showDown:function(){return!this.$isEEUiApp&&this.windowLarge&&["login","index","manage-dashboard"].includes(this.$route.name)},showPrivacy:function(){return["127.0.0.1:2222","192.168.100.88:2222","dootask.com","www.dootask.com","t.hitosea.com"].includes($A.getDomain($A.apiUrl("../")))&&this.$isEEUiApp&&["login"].includes(this.$route.name)}},methods:{isNotServer:function(){var e=$A.getDomain(window.systemInfo.apiUrl);return this.isSoftware&&(""==e||"public"==e)},checkVersion:function(){var e=this;this.isNotServer()||(p().get($A.apiUrl("system/version")).then((function(t){var n=t.status,i=t.data;200===n&&(e.apiVersion=i.version||"",-1===e.compareVersion(e.apiVersion,"0.19.0")&&$A.modalWarning({title:"温馨提示",message:"服务器接口版本过低,部分功能可能无法正常使用。"}),e.$Electron?e.$Electron.sendMessage("updateCheckAndDownload",{apiVersion:e.apiVersion}):e.getDownloadUrl(i.publish))})).catch((function(e){})),this.__checkVersion&&clearTimeout(this.__checkVersion),this.__checkVersion=setTimeout(this.checkVersion,6e5))},getDownloadUrl:function(e){var t,n,i=this;if($A.isJson(e))switch(e.provider){case"generic":this.downloadUrl="".concat(e.url,"/latest");break;case"github":(t=g().mark((function t(n){var r,o;return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="cacheAppdown::"+i.apiVersion,t.next=3,$A.IDBJson(r);case 3:if(!((o=t.sent).time&&o.time+600>Math.round((new Date).getTime()/1e3))){t.next=8;break}return i.downloadUrl=o.data.html_url,t.abrupt("return");case 8:if(!(i.loadIng>0)){t.next=10;break}return t.abrupt("return");case 10:i.loadIng++,p().get("https://api.github.com/repos/".concat(e.owner,"/").concat(e.repo,"/releases")).then((function(e){var t=e.status,n=e.data;i.loadIng--,200===t&&$A.isArray(n)&&(o.time=Math.round((new Date).getTime()/1e3),o.data=n.find((function(e){var t=e.tag_name;return 0===i.compareVersion(i.tagVersion(t),i.apiVersion)}))||{},$A.IDBSave(r,o),i.downloadUrl=o.data.html_url)})).catch((function(){i.loadIng--}));case 12:case"end":return t.stop()}}),t)})),n=function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(e){b(o,i,r,a,s,"next",e)}function s(e){b(o,i,r,a,s,"throw",e)}a(void 0)}))},function(e){return n.apply(this,arguments)})()}},updateQuitAndInstall:function(){var e=this;this.updateIng=!0,setTimeout((function(){e.$Electron.sendMessage("updateQuitAndInstall")}),301)},useSSOLogin:function(){m.Store.set("useSSOLogin",!0)},tagVersion:function(e){return e?$A.leftDelete(e.toLowerCase(),"v"):""},compareVersion:function(e,t){var n=0,i=0;if(e===t)return 0;for(var r=function(e,t){for(var n=t;"."!==e[n]&&nl?1:-1;n=o+1,i=a+1}for(;n0)return 1;n=u+1}for(;i0)return-1;i=c+1}return 0}}};const w=(0,c.Z)(y,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"common-right-bottom"},[e.showSSO?t("div",{staticClass:"common-right-bottom-link",on:{click:e.useSSOLogin}},[t("Icon",{attrs:{type:"ios-globe-outline"}}),e._v("\n "+e._s(e.$L("使用 SSO 登录"))+"\n ")],1):e._e(),e._v(" "),e.showDown?[e.downloadUrl?t("a",{staticClass:"common-right-bottom-link",attrs:{href:e.downloadUrl,target:"_blank"}},[t("Icon",{attrs:{type:"md-download"}}),e._v("\n "+e._s(e.$L("客户端下载"))+"\n ")],1):e.updateVersion&&e.updateBottomShow&&e.$Electron?t("div",{staticClass:"common-right-bottom-link",on:{click:function(t){e.updateShow=!0}}},[t("Icon",{attrs:{type:"md-download"}}),e._v("\n "+e._s(e.$L("更新客户端"))+"\n ")],1):e._e()]:e._e(),e._v(" "),e.showPrivacy?t("a",{staticClass:"common-right-bottom-link",attrs:{target:"_blank",href:e.$A.apiUrl("privacy")}},[e._v("\n 《"+e._s(e.$L("隐私政策"))+"》\n ")]):e._e(),e._v(" "),t("Modal",{attrs:{closable:!1,"mask-closable":!1,"class-name":"common-right-bottom-notification"},model:{value:e.updateShow,callback:function(t){e.updateShow=t},expression:"updateShow"}},[t("div",{attrs:{slot:"header"},slot:"header"},[t("div",{staticClass:"notification-head"},[t("div",{staticClass:"notification-title"},[e._v(e._s(e.$L("发现新版本")))]),e._v(" "),t("Tag",{attrs:{color:"volcano"}},[e._v("v"+e._s(e.systemVersion)+" -> v"+e._s(e.updateVersion))])],1),e._v(" "),"mac"===e.$Platform?t("div",{staticClass:"notification-tip"},[e._v(e._s(e.$L("离最新版本只有一步之遥了!重新启动应用即可完成更新。")))]):e._e()]),e._v(" "),t("MarkdownPreview",{staticClass:"notification-body scrollbar-overlay",attrs:{initialValue:e.updateNote}}),e._v(" "),t("div",{staticClass:"adaption",attrs:{slot:"footer"},slot:"footer"},[t("Button",{attrs:{type:"default"},on:{click:function(t){e.updateShow=!1}}},[e._v(e._s(e.$L("稍后")))]),e._v(" "),t("Button",{attrs:{type:"primary",loading:e.updateIng},on:{click:e.updateQuitAndInstall}},[e._v(e._s(e.$L("mac"===e.$Platform?"重新启动":"立即升级")))])],1)],1)],2)}),[],!1,null,null,null).exports;function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C={name:"PreviewImageState",components:{PreviewImage:n(82478).Z},computed:function(e){for(var t=1;t0)if($A.isEEUiApp){var t=Math.max(this.$store.state.previewImageIndex,0);t=Math.min(t,this.$store.state.previewImageList.length-1);var n=e.map((function(e){return $A.isJson(e)?$A.rightDelete(e.src,"_thumb.jpg"):$A.rightDelete(e,"_thumb.jpg")}));$A.eeuiAppSendMessage({action:"picturePreview",position:t,paths:n})}else this.show=!0}}};const S=(0,c.Z)(C,(function(){var e=this;return(0,e._self._c)("PreviewImage",{attrs:{index:e.previewImageIndex,list:e.previewImageList},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}})}),[],!1,null,null,null).exports;var O=n(65121);const T={name:"AudioManager",data:function(){return{audioSubscribe:null,audioPlay:!1,audioTimer:null,audioId:0,audioSrc:null}},mounted:function(){this.audioSubscribe=m.Store.subscribe("audioSubscribe",this.setAudioPlay)},beforeDestroy:function(){this.audioSubscribe&&(this.audioSubscribe.unsubscribe(),this.audioSubscribe=null)},watch:{audioPlay:function(e){var t=this;this.updateState(),this.audioTimer&&clearTimeout(this.audioTimer),e||(this.audioTimer=setTimeout((function(n){e||(t.$refs.audio.src=null,t.audioSrc=null)}),3e3))},audioSrc:function(){this.updateState()}},methods:{setAudioPlay:function(e){var t=this.$refs.audio,n=t.ended||t.paused;if(t.controls=!1,t.loop=!1,t.volume=1,/^\d+$/.test(e)&&(e=e==this.audioId),"boolean"!=typeof e){var i=e,r=i.id,o=i.src;o===this.audioSrc?n?t.play():t.pause():(this.audioId=r,this.audioSrc=o,n||t.pause(),t.src=o,t.play())}else e&&!n&&t.pause()},updateState:function(){this.$store.state.audioPlaying=this.audioPlay&&this.audioSrc?this.audioSrc:null},overAudio:function(){this.audioPlay=!1},onPause:function(){this.audioPlay=!1},onPlay:function(){this.audioPlay=!0}}};var E=n(93379),D=n.n(E),$=n(14538),M={insert:"head",singleton:!1};D()($.Z,M);$.Z.locals;const P=(0,c.Z)(T,(function(){var e=this;return(0,e._self._c)("audio",{ref:"audio",staticClass:"common-audio",on:{ended:e.overAudio,pause:e.onPause,play:e.onPlay}})}),[],!1,null,"369e1cce",null).exports;function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function A(e){for(var t=1;t0?"子任务":"任务";"archived"==e&&(n="archivedTask",i="归档",this.task.archived_at&&(i="还原归档",r={task_id:this.task.id,type:"recovery"})),$A.modalConfirm({title:i+o,content:"你确定要"+i+o+"【"+this.task.name+"】吗?",loading:!0,onOk:function(){if(!t.loadIng)return new Promise((function(e,i){t.$store.dispatch(n,r).then((function(n){var i=n.msg;e(i),t.$store.dispatch("saveTaskBrowse",r.task_id)})).catch((function(e){var t=e.msg;i(t)}))}))}})},visibleChange:function(e){this.visible=e},updatePopper:function(){this.$nextTick(this.$refs.dropdownMenu.updatePopper)},setupEventListeners:function(e){this.element=e.target;var t=this.getScrollParent(this.element);if(t!==window.document.body&&t!==window.document.documentElement||(t=window),this.target){if(this.target===t)return;this.target.removeEventListener("scroll",this.handlerEventListeners)}this.target=t,this.target.addEventListener("scroll",this.handlerEventListeners)},handlerEventListeners:function(e){if(this.visible&&this.element){var t=e.target.getBoundingClientRect(),n=this.element.getBoundingClientRect();n.topt.top+t.height?this.hide():(this.styles={left:"".concat(n.left,"px"),top:"".concat(n.top,"px"),width:"".concat(n.width,"px"),height:"".concat(n.height,"px")},this.updatePopper())}},getScrollParent:function(e){var t=e.parentNode;return t?t===window.document?window.document.body.scrollTop||window.document.body.scrollLeft?window.document.body:window.document.documentElement:-1!==["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow"))||-1!==["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-x"))||-1!==["scroll","auto"].indexOf(this.getStyleComputedProperty(t,"overflow-y"))?t:this.getScrollParent(e.parentNode):e},getStyleComputedProperty:function(e,t){return window.getComputedStyle(e,null)[t]}}};function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t0?e._l(e.turns,(function(n){return t("EDropdownItem",{key:n.id,attrs:{command:"turn::".concat(n.id)}},[t("div",{staticClass:"item flow"},[n.id==e.task.flow_item_id&&!0!==e.flow.auto_assign?t("Icon",{staticClass:"check",attrs:{type:"md-checkmark-circle-outline"}}):t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(" "),t("div",{staticClass:"flow-name",class:n.status},[e._v(e._s(n.name))])],1)])})):[e.task.complete_at?t("EDropdownItem",{attrs:{command:"uncomplete"}},[t("div",{staticClass:"item red"},[t("Icon",{attrs:{type:"md-checkmark-circle-outline"}}),e._v(e._s(e.$L("标记未完成"))+"\n ")],1)]):t("EDropdownItem",{attrs:{command:"complete"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-radio-button-off"}}),e._v(e._s(e.$L("完成"))+"\n ")],1)])]:t("EDropdownItem",{staticClass:"load-flow",attrs:{disabled:""}},[t("div",{staticClass:"load-flow-warp"},[t("Loading")],1)]),e._v(" "),0===e.task.parent_id?[t("EDropdownItem",{attrs:{divided:e.turns.length>0,command:"archived"}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"ios-filing"}}),e._v(e._s(e.$L(e.task.archived_at?"还原归档":"归档"))+"\n ")],1)]),e._v(" "),t("EDropdownItem",{attrs:{command:"remove"}},[t("div",{staticClass:"item hover-del"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("删除"))+"\n ")],1)]),e._v(" "),e.colorShow?e._l(e.taskColorList,(function(n,i){return t("EDropdownItem",{key:"c_"+i,attrs:{divided:0==i,command:n}},[t("div",{staticClass:"item"},[t("i",{staticClass:"taskfont",style:{color:n.color||"#f9f9f9"},domProps:{innerHTML:e._s(n.color==e.task.color?"":"")}}),e._v(e._s(e.$L(n.name))+"\n ")])])})):e._e()]:t("EDropdownItem",{attrs:{command:"remove",divided:e.turns.length>0}},[t("div",{staticClass:"item"},[t("Icon",{attrs:{type:"md-trash"}}),e._v(e._s(e.$L("删除"))+"\n ")],1)])],2)])])],1)}),[],!1,null,null,null).exports,AudioManager:P,NetworkException:O.Z,PreviewImageState:S,RightBottom:w,FloatSpinner:d},data:function(){return{routePath:null,searchInter:null,iframes:[]}},created:function(){this.electronEvents(),this.eeuiEvents(),this.otherEvents(),this.synchThemeLanguage()},mounted:function(){window.addEventListener("resize",this.windowSizeListener),window.addEventListener("scroll",this.windowScrollListener),this.searchInter=setInterval(this.searchEnter,1e3)},beforeDestroy:function(){window.removeEventListener("resize",this.windowSizeListener),window.removeEventListener("scroll",this.windowScrollListener),this.searchInter&&clearInterval(this.searchInter)},computed:B(B({},(0,o.rn)(["ws","themeMode"])),{},{isSoftware:function(){return this.$Electron||this.$isEEUiApp}}),watch:{$route:{handler:function(e){this.routePath=e.path},immediate:!0},routePath:{handler:function(e){e&&this.userId>0&&(e=e.replace(/^\/manage\/file\/\d+\/(\d+)$/,"/single/file/$1"),this.$store.dispatch("websocketPath",e))},immediate:!0},userId:{handler:function(){var e=this;this.$store.dispatch("websocketConnection"),this.userId>0&&(this.$isEEUiApp&&($A.eeuiAppSendMessage({action:"intiUmeng"}),setTimeout((function(t){$A.eeuiAppSendMessage({action:"setUmengAlias",userid:e.userId,token:e.userToken,url:$A.apiUrl("users/umeng/alias")})}),6e3)),$A.IDBString("logOpen").then((function(e){$A.openLog="open"===e,$A.openLog&&$A.loadScript("js/vconsole.min.js",(function(e){null===e&&"function"==typeof window.VConsole?window.vConsole=new window.VConsole({onReady:function(){console.log("vConsole: onReady")},onClearLog:function(){console.log("vConsole: onClearLog")}}):$A.modalError("vConsole 组件加载失败!")}))})))},immediate:!0},windowActive:function(e){var t=this;e&&(this.__windowTimer&&clearTimeout(this.__windowTimer),this.__windowTimer=setTimeout((function(e){t.$store.dispatch("websocketSend",{type:"handshake"}).catch((function(e){t.$store.dispatch("websocketConnection")})),"auto"===t.themeMode&&$A.dark.autoDarkMode()}),600))},themeMode:function(){this.synchThemeLanguage()}},methods:{searchEnter:function(){var e=$A(".sreachBox");if(0!==e.length&&"init"!==e.attr("data-enter-init")){e.attr("data-enter-init","init");var t=e.find("button[type='button']"),n=null;0!==t.length&&(t.each((function(e,t){$A(t).text().indexOf("搜索")&&(n=$A(t))})),null!==n&&e.find("input.ivu-input").keydown((function(e){13==e.keyCode&&(n.hasClass("ivu-btn-loading")||n.click())})))}},synchThemeLanguage:function(){this.isSoftware&&(this.iframes=this.iframes.filter((function(e){return"synchThemeLanguage"!=e.key})),this.iframes.push({key:"synchThemeLanguage",url:$A.apiUrl("../setting/theme_language?theme=".concat(this.themeMode,"&language=").concat(i.AX))}))},windowSizeListener:function(){this.$store.state.windowWidth=$A(window).width(),this.$store.state.windowHeight=$A(window).height(),this.$store.state.windowLarge=this.$store.state.windowWidth>768,this.$store.state.windowSmall=this.$store.state.windowWidth<=768},windowScrollListener:function(){this.$store.state.windowScrollY=window.scrollY},electronEvents:function(){var e=this;this.$Electron&&(window.__onBeforeUnload=function(){if(e.$Modal.removeLast())return!0},this.$Electron.registerMsgListener("dispatch",(function(t){if($A.isJson(t)){var n=t.action,i=t.data;e.$store.dispatch(n,i)}})),this.$Electron.registerMsgListener("browserWindowBlur",(function(t){e.$store.state.windowActive=!1})),this.$Electron.registerMsgListener("browserWindowFocus",(function(t){e.$store.state.windowActive=!0})),this.iframes.push({key:"manifest",url:$A.apiUrl("../manifest")}),$A.bindScreenshotKey($A.jsonParse(window.localStorage.getItem("__keyboard:data__"))||{}))},eeuiEvents:function(){var e=this;this.$isEEUiApp&&(window.__onPagePause=function(){e.$store.state.windowActive=!1,e.$store.dispatch("getBasicData",-1)},window.__onPageResume=function(t){e.$store.state.windowActive=!0,t>0&&e.$store.dispatch("getBasicData",600)},window.__onNotificationPermissionStatus=function(t){e.$store.state.appNotificationPermission=1==$A.runNum(t)})},otherEvents:function(){var e=this;if(!this.isSoftware){var t="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null,n=t.replace(/hidden/i,"visibilitychange");document.addEventListener(n,(function(){e.$store.state.windowActive=!document[t]}))}}}};var H=n(13220),W={insert:"head",singleton:!1};D()(H.Z,W);H.Z.locals;const q=(0,c.Z)(z,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("keep-alive",[t("router-view",{staticClass:"child-view"})],1),e._v(" "),t("TaskOperation"),e._v(" "),t("FloatSpinner"),e._v(" "),t("RightBottom"),e._v(" "),e.windowLarge?t("NetworkException"):e._e(),e._v(" "),t("PreviewImageState"),e._v(" "),t("AudioManager"),e._v(" "),e._l(e.iframes,(function(n){return n.url?t("iframe",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],key:n.key,attrs:{src:n.url}}):e._e()}))],2)}),[],!1,null,"f329d7aa",null).exports,U=[{name:"index",path:"/",component:function(){return n.e(651).then(n.bind(n,73651))}},{name:"pro",path:"/pro",component:function(){return n.e(172).then(n.bind(n,20172))}},{name:"manage",path:"/manage",component:function(){return n.e(121).then(n.bind(n,29121))},children:[{name:"manage-dashboard",path:"dashboard",component:function(){return n.e(978).then(n.bind(n,64978))}},{name:"manage-calendar",path:"calendar",component:function(){return n.e(940).then(n.bind(n,72940))}},{name:"manage-messenger",path:"messenger/:dialogAction?",component:function(){return n.e(656).then(n.bind(n,13656))}},{name:"manage-setting",path:"setting",component:function(){return n.e(191).then(n.bind(n,61191))},children:[{name:"manage-setting-personal",path:"personal",component:function(){return n.e(249).then(n.bind(n,49249))}},{name:"manage-setting-checkin",path:"checkin",component:function(){return n.e(43).then(n.bind(n,29043))}},{name:"manage-setting-language",path:"language",component:function(){return n.e(29).then(n.bind(n,65029))}},{name:"manage-setting-theme",path:"theme",component:function(){return n.e(414).then(n.bind(n,93414))}},{name:"manage-setting-keyboard",path:"keyboard",component:function(){return n.e(32).then(n.bind(n,97121))}},{name:"manage-setting-password",path:"password",component:function(){return n.e(804).then(n.bind(n,65804))}},{name:"manage-setting-email",path:"email",component:function(){return n.e(580).then(n.bind(n,63580))}},{name:"manage-setting-system",path:"system",component:function(){return n.e(947).then(n.bind(n,7947))}},{name:"manage-setting-delete",path:"delete",component:function(){return n.e(834).then(n.bind(n,71834))}}]},{name:"manage-project-invite",path:"project/invite",component:function(){return n.e(73).then(n.bind(n,40073))}},{name:"manage-project",path:"project/:projectId",component:function(){return n.e(420).then(n.bind(n,61420))}},{name:"manage-file",path:"file/:folderId?/:fileId?",component:function(){return n.e(380).then(n.bind(n,80380))}}]},{name:"single-file-msg",path:"/single/file/msg/:msgId",component:function(){return n.e(920).then(n.bind(n,97920))}},{name:"single-file-task",path:"/single/file/task/:fileId",component:function(){return n.e(203).then(n.bind(n,80203))}},{name:"single-file",path:"/single/file/:codeOrFileId",component:function(){return n.e(506).then(n.bind(n,25506))}},{name:"single-task",path:"/single/task/:taskId",component:function(){return n.e(382).then(n.bind(n,67382))}},{name:"valid-email",path:"/single/valid/email",component:function(){return n.e(725).then(n.bind(n,16725))}},{name:"report-edit",path:"/single/report/edit/:reportEditId",component:function(){return n.e(781).then(n.bind(n,38781))}},{name:"report-detail",path:"/single/report/detail/:reportDetailId",component:function(){return n.e(228).then(n.bind(n,95228))}},{name:"token",path:"/token",component:function(){return n.e(499).then(n.bind(n,86499))}},{name:"login",path:"/login",component:function(){return n.e(72).then(n.bind(n,90072))}},{name:"404",path:"*",component:function(){return n.e(724).then(n.bind(n,57724))}}];function K(e,t){for(var n in t)e[n]=t[n];return e}var G=/[!'()*]/g,Y=function(e){return"%"+e.charCodeAt(0).toString(16)},J=/%2C/g,Z=function(e){return encodeURIComponent(e).replace(G,Y).replace(J,",")};function X(e){try{return decodeURIComponent(e)}catch(e){0}return e}var Q=function(e){return null==e||"object"==typeof e?e:String(e)};function ee(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),i=X(n.shift()),r=n.length>0?X(n.join("=")):null;void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}function te(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return Z(t);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(Z(t)):i.push(Z(t)+"="+Z(e)))})),i.join("&")}return Z(t)+"="+Z(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var ne=/\/?$/;function ie(e,t,n,i){var r=i&&i.options.stringifyQuery,o=t.query||{};try{o=re(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:se(t,r),matched:e?ae(e):[]};return n&&(a.redirectedFrom=se(n,r)),Object.freeze(a)}function re(e){if(Array.isArray(e))return e.map(re);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=re(e[n]);return t}return e}var oe=ie(null,{path:"/"});function ae(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function se(e,t){var n=e.path,i=e.query;void 0===i&&(i={});var r=e.hash;return void 0===r&&(r=""),(n||"/")+(t||te)(i)+r}function le(e,t,n){return t===oe?e===t:!!t&&(e.path&&t.path?e.path.replace(ne,"")===t.path.replace(ne,"")&&(n||e.hash===t.hash&&ue(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&ue(e.query,t.query)&&ue(e.params,t.params))))}function ue(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),i=Object.keys(t).sort();return n.length===i.length&&n.every((function(n,r){var o=e[n];if(i[r]!==n)return!1;var a=t[n];return null==o||null==a?o===a:"object"==typeof o&&"object"==typeof a?ue(o,a):String(o)===String(a)}))}function ce(e){for(var t=0;t=0&&(t=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:t}}(r.path||""),u=t&&t.path||"/",c=l.path?fe(l.path,u,n||r.append):u,d=function(e,t,n){void 0===t&&(t={});var i,r=n||ee;try{i=r(e||"")}catch(e){i={}}for(var o in t){var a=t[o];i[o]=Array.isArray(a)?a.map(Q):Q(a)}return i}(l.query,r.query,i&&i.options.parseQuery),h=r.hash||l.hash;return h&&"#"!==h.charAt(0)&&(h="#"+h),{_normalized:!0,path:c,query:d,hash:h}}var je,Ae=function(){},Ne={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,a=r.route,s=r.href,l={},u=n.options.linkActiveClass,c=n.options.linkExactActiveClass,d=null==u?"router-link-active":u,h=null==c?"router-link-exact-active":c,f=null==this.activeClass?d:this.activeClass,p=null==this.exactActiveClass?h:this.exactActiveClass,m=a.redirectedFrom?ie(null,Ie(a.redirectedFrom),null,n):a;l[p]=le(i,m,this.exactPath),l[f]=this.exact||this.exactPath?l[p]:function(e,t){return 0===e.path.replace(ne,"/").indexOf(t.path.replace(ne,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(i,m);var v=l[p]?this.ariaCurrentValue:null,g=function(e){Le(e)&&(t.replace?n.replace(o,Ae):n.push(o,Ae))},b={click:Le};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=g})):b[this.event]=g;var y={class:l},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:g,isActive:l[f],isExactActive:l[p]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?e():e("span",{},w)}if("a"===this.tag)y.on=b,y.attrs={href:s,"aria-current":v};else{var _=Fe(this.$slots.default);if(_){_.isStatic=!1;var x=_.data=K({},_.data);for(var k in x.on=x.on||{},x.on){var C=x.on[k];k in b&&(x.on[k]=Array.isArray(C)?C:[C])}for(var S in b)S in x.on?x.on[S].push(b[S]):x.on[S]=g;var O=_.data.attrs=K({},_.data.attrs);O.href=s,O["aria-current"]=v}else y.on=b}return e(this.tag,y,this.$slots.default)}};function Le(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Fe(e){if(e)for(var t,n=0;n-1&&(s.params[h]=n.params[h]);return s.path=Pe(c.path,s.params),l(c,s,a)}if(s.path){s.params={};for(var f=0;f-1}function vt(e,t){return mt(e)&&e._isRouter&&(null==t||e.type===t)}function gt(e,t,n){var i=function(r){r>=e.length?n():e[r]?t(e[r],(function(){i(r+1)})):i(r+1)};i(0)}function bt(e){return function(t,n,i){var r=!1,o=0,a=null;yt(e,(function(e,t,n,s){if("function"==typeof e&&void 0===e.cid){r=!0,o++;var l,u=xt((function(t){var r;((r=t).__esModule||_t&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:je.extend(t),n.components[s]=t,--o<=0&&i()})),c=xt((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=mt(e)?e:new Error(t),i(a))}));try{l=e(u,c)}catch(e){c(e)}if(l)if("function"==typeof l.then)l.then(u,c);else{var d=l.component;d&&"function"==typeof d.then&&d.then(u,c)}}})),r||i()}}function yt(e,t){return wt(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function wt(e){return Array.prototype.concat.apply([],e)}var _t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xt(e){var t=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!t)return t=!0,e.apply(this,n)}}var kt=function(e,t){this.router=e,this.base=function(e){if(!e)if(Re){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=oe,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ct(e,t,n,i){var r=yt(e,(function(e,i,r,o){var a=function(e,t){"function"!=typeof e&&(e=je.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,i,r,o)})):n(a,i,r,o)}));return wt(i?r.reverse():r)}function St(e,t){if(t)return function(){return e.apply(t,arguments)}}kt.prototype.listen=function(e){this.cb=e},kt.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},kt.prototype.onError=function(e){this.errorCbs.push(e)},kt.prototype.transitionTo=function(e,t,n){var i,r=this;try{i=this.router.match(e,this.current)}catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var o=this.current;this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.router.afterHooks.forEach((function(e){e&&e(i,o)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(vt(e,ct.redirected)&&o===oe||(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)}))))}))},kt.prototype.confirmTransition=function(e,t,n){var i=this,r=this.current;this.pending=e;var o,a,s=function(e){!vt(e)&&mt(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},l=e.matched.length-1,u=r.matched.length-1;if(le(e,r)&&l===u&&e.matched[l]===r.matched[u])return this.ensureURL(),e.hash&&Xe(this.router,r,e,!1),s(((a=ft(o=r,e,ct.duplicated,'Avoided redundant navigation to current location: "'+o.fullPath+'".')).name="NavigationDuplicated",a));var c=function(e,t){var n,i=Math.max(e.length,t.length);for(n=0;n0)){var t=this.router,n=t.options.scrollBehavior,i=st&&n;i&&this.listeners.push(Ze());var r=function(){var n=e.current,r=Tt(e.base);e.current===oe&&r===e._startLocation||e.transitionTo(r,(function(e){i&&Xe(t,e,n,!0)}))};window.addEventListener("popstate",r),this.listeners.push((function(){window.removeEventListener("popstate",r)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){lt(pe(i.base+e.fullPath)),Xe(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){ut(pe(i.base+e.fullPath)),Xe(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Tt(this.base)!==this.current.fullPath){var t=pe(this.base+this.current.fullPath);e?lt(t):ut(t)}},t.prototype.getCurrentLocation=function(){return Tt(this.base)},t}(kt);function Tt(e){var t=window.location.pathname,n=t.toLowerCase(),i=e.toLowerCase();return!e||n!==i&&0!==n.indexOf(pe(i+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Et=function(e){function t(t,n,i){e.call(this,t,n),i&&function(e){var t=Tt(e);if(!/^\/#/.test(t))return window.location.replace(pe(e+"/#"+t)),!0}(this.base)||Dt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=st&&t;n&&this.listeners.push(Ze());var i=function(){var t=e.current;Dt()&&e.transitionTo($t(),(function(i){n&&Xe(e.router,i,t,!0),st||It(i.fullPath)}))},r=st?"popstate":"hashchange";window.addEventListener(r,i),this.listeners.push((function(){window.removeEventListener(r,i)}))}},t.prototype.push=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){Pt(e.fullPath),Xe(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this,r=this.current;this.transitionTo(e,(function(e){It(e.fullPath),Xe(i.router,e,r,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;$t()!==t&&(e?Pt(t):It(t))},t.prototype.getCurrentLocation=function(){return $t()},t}(kt);function Dt(){var e=$t();return"/"===e.charAt(0)||(It("/"+e),!1)}function $t(){var e=window.location.href,t=e.indexOf("#");return t<0?"":e=e.slice(t+1)}function Mt(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Pt(e){st?lt(Mt(e)):window.location.hash=e}function It(e){st?ut(Mt(e)):window.location.replace(Mt(e))}var jt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index+1).concat(e),i.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var i=this;this.transitionTo(e,(function(e){i.stack=i.stack.slice(0,i.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){var e=t.current;t.index=n,t.updateRoute(i),t.router.afterHooks.forEach((function(t){t&&t(i,e)}))}),(function(e){vt(e,ct.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(kt),At=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=He(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!st&&!1!==e.fallback,this.fallback&&(t="hash"),Re||(t="abstract"),this.mode=t,t){case"history":this.history=new Ot(this,e.base);break;case"hash":this.history=new Et(this,e.base,this.fallback);break;case"abstract":this.history=new jt(this,e.base)}},Nt={currentRoute:{configurable:!0}};At.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Nt.currentRoute.get=function(){return this.history&&this.history.current},At.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof Ot||n instanceof Et){var i=function(e){n.setupListeners(),function(e){var i=n.current,r=t.options.scrollBehavior;st&&r&&"fullPath"in e&&Xe(t,e,i,!1)}(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},At.prototype.beforeEach=function(e){return Ft(this.beforeHooks,e)},At.prototype.beforeResolve=function(e){return Ft(this.resolveHooks,e)},At.prototype.afterEach=function(e){return Ft(this.afterHooks,e)},At.prototype.onReady=function(e,t){this.history.onReady(e,t)},At.prototype.onError=function(e){this.history.onError(e)},At.prototype.push=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){i.history.push(e,t,n)}));this.history.push(e,t,n)},At.prototype.replace=function(e,t,n){var i=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){i.history.replace(e,t,n)}));this.history.replace(e,t,n)},At.prototype.go=function(e){this.history.go(e)},At.prototype.back=function(){this.go(-1)},At.prototype.forward=function(){this.go(1)},At.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},At.prototype.resolve=function(e,t,n){var i=Ie(e,t=t||this.history.current,n,this),r=this.match(i,t),o=r.redirectedFrom||r.fullPath,a=function(e,t,n){var i="hash"===n?"#"+t:t;return e?pe(e+"/"+i):i}(this.history.base,o,this.mode);return{location:i,route:r,href:a,normalizedTo:i,resolved:r}},At.prototype.getRoutes=function(){return this.matcher.getRoutes()},At.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==oe&&this.history.transitionTo(this.history.getCurrentLocation())},At.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==oe&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(At.prototype,Nt);var Lt=At;function Ft(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}At.install=function e(t){if(!e.installed||je!==t){e.installed=!0,je=t;var n=function(e){return void 0!==e},i=function(e,t){var i=e.$options._parentVnode;n(i)&&n(i=i.data)&&n(i=i.registerRouteInstance)&&i(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,i(this,this)},destroyed:function(){i(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",de),t.component("RouterLink",Ne);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}},At.version="3.6.5",At.isNavigationFailure=vt,At.NavigationFailureType=ct,At.START_LOCATION=oe,Re&&window.Vue&&window.Vue.use(At);var Rt=n(54705),Bt=n.n(Rt),Vt=n(40158),zt=n.n(Vt);const Ht={windowWidth:$A(window).width(),windowHeight:$A(window).height(),windowScrollY:0,windowLarge:$A(window).width()>768,windowSmall:$A(window).width()<=768,windowActive:!0,appNotificationPermission:!0,audioPlaying:null,routeHistorys:[],routeHistoryLast:{},loads:[],loadDashboardTasks:!1,loadUserBasic:!1,loadProjects:0,loadDialogs:0,floatSpinnerTimer:[],floatSpinnerLoad:0,touchBackInProgress:!1,cacheUserActive:{},cacheUserWait:[],cacheUserBasic:[],cacheDialogs:[],cacheProjects:[],cacheColumns:[],cacheTasks:[],cacheProjectParameter:[],cacheTaskBrowse:[],cacheServerUrl:"",ajaxWsReady:!1,ajaxWsListener:[],ajaxNetworkException:!1,ws:null,wsMsg:{},wsCall:{},wsTimeout:null,wsRandom:0,wsOpenNum:0,wsListener:{},wsReadTimeout:null,wsReadWaitList:[],userInfo:{},userId:0,userToken:"",userIsAdmin:!1,userOnline:{},userAvatar:{},dialogId:0,dialogSearchMsgId:0,dialogIns:[],dialogMsgs:[],dialogTodos:[],dialogHistory:[],dialogInputCache:[],dialogMsgTransfer:{time:0},dialogDeletedAt:null,fileLists:[],projectId:0,projectTotal:0,projectLoad:0,taskId:0,taskCompleteTemps:[],taskContents:[],taskFiles:[],taskLogs:[],taskOperation:{},taskOneLoad:{},taskFlows:[],taskFlowItems:[],taskPriority:[],columnTemplate:[],columnColorList:[{name:"默认",color:""},{name:"灰色",color:"#444444"},{name:"棕色",color:"#947364"},{name:"橘色",color:"#faaa6c"},{name:"黄色",color:"#f2d86d"},{name:"绿色",color:"#73b45c"},{name:"蓝色",color:"#51abea"},{name:"紫色",color:"#b583e3"},{name:"粉色",color:"#ff819c"},{name:"红色",color:"#ff7070"}],taskColorList:[{name:"默认",color:""},{name:"黄色",color:"#fffae6"},{name:"蓝色",color:"#e5f5ff"},{name:"绿色",color:"#ecffe5"},{name:"粉色",color:"#ffeaee"},{name:"紫色",color:"#f6ecff"},{name:"灰色",color:"#f3f3f3"}],themeMode:window.localStorage.getItem("__theme:mode__"),themeList:[{name:"跟随系统",value:"auto"},{name:"明亮",value:"light"},{name:"暗黑",value:"dark"}],themeIsDark:!1,clientNewVersion:null,previewImageIndex:0,previewImageList:[],reportUnreadNumber:0};function Wt(e){return function(e){if(Array.isArray(e))return qt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0}},projectData:function(e){if(e.projectId>0){var t=e.cacheProjects.find((function(t){return t.id==e.projectId}));if(t){var n=e.cacheProjectParameter.find((function(t){return t.project_id==e.projectId}));return n||(n=$A.projectParameterTemplate(e.projectId),e.cacheProjectParameter.push(n)),void 0===n.menuType&&(n.menuType="column"),t.cacheParameter=n,t}}return{cacheParameter:{}}},taskData:function(e){var t=e.taskId;if(0==t&&(t=$A.runNum(window.__taskId)),t>0){window.__taskId=t;var n=e.cacheTasks.find((function(e){return e.id==t}));if(n)return n}return{}},transforTasks:function(e){return function(t){return t.filter((function(e){var n=e.parent_id;return!(n>0&&t.find((function(e){return e.id==n})))})).map((function(n){if(n.parent_id>0){var i=e.cacheTasks.find((function(e){return e.id==n.parent_id}));return i?Object.assign({},i,{id:n.id,parent_id:n.parent_id,name:n.name,start_at:n.start_at,end_at:n.end_at,complete_at:n.complete_at,_time:n._time,flow_item_id:n.flow_item_id,flow_item_name:n.flow_item_name,flow_item_status:n.flow_item_status,sub_top:!0,sub_my:[]}):Object.assign({},n,{sub_top:!0,sub_my:[]})}return Object.assign({},n,{sub_top:!1,sub_my:t.filter((function(e){return e.parent_id==n.id}))})}))}},dashboardTask:function(e){var t=$A.Date($A.formatDate("Y-m-d 00:00:00")),n=$A.Date($A.formatDate("Y-m-d 23:59:59")),i=$A.Date($A.formatDate("Y-m-d H:i:s")),r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!e.archived_at&&((!e.complete_at||!0!==t)&&e.owner)},o=e.cacheTasks.filter((function(e){return r(e)})),a=0;if(e.taskCompleteTemps.length>0){var s,l=e.cacheTasks.filter((function(t){return e.taskCompleteTemps.includes(t.id)&&r(t,!1)}));if(l.length>0)a=l.length,(s=o=$A.cloneJSON(o)).push.apply(s,Wt(l))}var u=o.filter((function(e){var i=$A.Date(e.end_at);return t<=i&&i<=n})),c=o.filter((function(e){return e.end_at&&$A.Date(e.end_at)<=i})),d={today:u,today_count:u.length,overdue:c,overdue_count:c.length,all:o,all_count:o.length};return a>0&&(d.today_count-=u.filter((function(t){return e.taskCompleteTemps.includes(t.id)})).length,d.overdue_count-=c.filter((function(t){return e.taskCompleteTemps.includes(t.id)})).length,d.all_count-=a),d},assistTask:function(e){var t=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!e.archived_at&&((!e.complete_at||!0!==t)&&(e.assist&&!e.owner))},n=e.cacheTasks.filter((function(e){return t(e)}));if(e.taskCompleteTemps.length>0){var i,r=e.cacheTasks.filter((function(n){return e.taskCompleteTemps.includes(n.id)&&t(n,!1)}));if(r.length>0)(i=n=$A.cloneJSON(n)).push.apply(i,Wt(r))}return n}};function Kt(e){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(e)}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return s}}(e,t)||Jt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yt(e){return function(e){if(Array.isArray(e))return Zt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Jt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jt(e,t){if(e){if("string"==typeof e)return Zt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(e,t):void 0}}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function en(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function tn(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function a(e){en(o,i,r,a,s,"next",e)}function s(e){en(o,i,r,a,s,"throw",e)}a(void 0)}))}}const nn={init:function(e){var t=e.state;e.dispatch;return new Promise(function(){var e=tn(Qt().mark((function e(n){var i;return Qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,$A.IDBBoolean("initTag");case 2:if(e.sent){e.next=13;break}return e.next=6,$A.IDBSet("initTag",!0);case 6:if(!((i=$A.getStorageJson("userInfo")).userid>0)){e.next=13;break}return e.next=10,$A.IDBSet("userInfo",i);case 10:return e.next=12,$A.IDBSet("cacheServerUrl",$A.getStorageString("cacheServerUrl"));case 12:window.localStorage.clear();case 13:return e.next=15,$A.IDBString("cacheServerUrl");case 15:return t.cacheServerUrl=e.sent,e.next=18,$A.IDBArray("cacheUserBasic");case 18:return t.cacheUserBasic=e.sent,e.next=21,$A.IDBArray("cacheDialogs");case 21:return t.cacheDialogs=e.sent.map((function(e){return Object.assign(e,{loading:!1})})),e.next=24,$A.IDBArray("cacheProjects");case 24:return t.cacheProjects=e.sent,e.next=27,$A.IDBArray("cacheColumns");case 27:return t.cacheColumns=e.sent,e.next=30,$A.IDBArray("cacheTasks");case 30:return t.cacheTasks=e.sent,e.next=33,$A.IDBArray("cacheProjectParameter");case 33:return t.cacheProjectParameter=e.sent,e.next=36,$A.IDBArray("cacheTaskBrowse");case 36:return t.cacheTaskBrowse=e.sent,e.next=39,$A.IDBArray("dialogMsgs");case 39:return t.dialogMsgs=e.sent,e.next=42,$A.IDBArray("dialogInputCache");case 42:return t.dialogInputCache=e.sent,e.next=45,$A.IDBArray("fileLists");case 45:return t.fileLists=e.sent,e.next=48,$A.IDBJson("userInfo");case 48:t.userInfo=e.sent,t.userInfo.userid&&(t.userId=t.userInfo.userid=$A.runNum(t.userInfo.userid),t.userToken=t.userInfo.token,t.userIsAdmin=$A.inArray("admin",t.userInfo.identity)),t.cacheServerUrl&&(window.systemInfo.apiUrl=t.cacheServerUrl),e.t0=t.themeMode,e.next="dark"===e.t0?54:"light"===e.t0?56:58;break;case 54:return $A.dark.enableDarkMode(),e.abrupt("break",61);case 56:return $A.dark.disableDarkMode(),e.abrupt("break",61);case 58:return t.themeMode="auto",$A.dark.autoDarkMode(),e.abrupt("break",61);case 61:t.themeIsDark=$A.dark.isDarkEnabled(),n();case 63:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},call:function(e,t){var n=e.state,r=e.dispatch;$A.isJson(t)||(t={url:t});var o={"Content-Type":"application/json",language:i.AX,token:n.userToken,fd:$A.getSessionStorageString("userWsFd"),version:window.systemInfo.version||"0.0.1",platform:$A.Platform};$A.isJson(t.header)?t.header=Object.assign(o,t.header):t.header=o,t.url=$A.apiUrl(t.url),t.data=$A.date2string(t.data);var a=$A.cloneJSON(t);return new Promise((function(e,i){if(!0===t.spinner||"number"==typeof t.spinner&&t.spinner>0){var o=t,s=o.before,l=o.complete;t.before=function(){r("showSpinner","number"==typeof t.spinner?t.spinner:0),"function"==typeof s&&s()},t.complete=function(){r("hiddenSpinner"),"function"==typeof l&&l()}}if(t.success=function(o,s,l){if(n.ajaxNetworkException=!1,!$A.isJson(o))return console.log(o,s,l),void i({ret:-1,data:{},msg:"Return error"});var u=o.ret,c=o.data,d=o.msg;if(-1===u&&!1!==t.checkRole)return $A.modalError({content:d,onOk:function(){r("logout")}}),void i(o);-2!==u||!1===t.checkNick?-3!==u||!1===t.checkTel?1===u?e({data:c,msg:d}):(i({ret:u,data:c,msg:d||"Unknown error"}),-4001===u?r("forgetProject",c.project_id):-4002===u?r("forgetTask",c.task_id):-4003===u&&r("forgetDialog",c.dialog_id)):r("userEditInput","tel").then((function(){r("call",a).then(e).catch(i)})).catch((function(e){i({ret:-1,data:c,msg:e||$A.L("请设置联系电话!")})})):r("userEditInput","nickname").then((function(){r("call",a).then(e).catch(i)})).catch((function(e){i({ret:-1,data:c,msg:e||$A.L("请设置昵称!")})}))},t.error=function(e,r){var o=!1===window.navigator.onLine||0===r&&4===e.readyState;!1!==t.checkNetwork&&(n.ajaxNetworkException=o),i(o?{ret:-1001,data:{},msg:"Network exception"}:{ret:-1,data:{},msg:"System error"})},!0===t.websocket||!0===t.ws){var u=$A.randomString(16),c=setTimeout((function(){var e=n.ajaxWsListener.find((function(e){return e.apiWebsocket==u}));e&&(e.complete(),e.error("timeout"),e.after()),n.ajaxWsListener=n.ajaxWsListener.filter((function(e){return e.apiWebsocket!=u}))}),t.timeout||3e4);n.ajaxWsListener.push({apiWebsocket:u,complete:"function"==typeof t.complete?t.complete:function(){},success:"function"==typeof t.success?t.success:function(){},error:"function"==typeof t.error?t.error:function(){},after:"function"==typeof t.after?t.after:function(){}}),t.complete=function(){},t.success=function(){},t.error=function(){},t.after=function(){},t.header["Api-Websocket"]=u,!1===n.ajaxWsReady&&(n.ajaxWsReady=!0,r("websocketMsgListener",{name:"apiWebsocket",callback:function(e){if("apiWebsocket"===e.type){clearTimeout(c);var t=e.apiWebsocket,i=e.apiSuccess,r=e.data,o=n.ajaxWsListener.find((function(e){return e.apiWebsocket==t}));o&&(o.complete(),i?o.success(r):o.error(r),o.after()),n.ajaxWsListener=n.ajaxWsListener.filter((function(e){return e.apiWebsocket!=t}))}}}))}$A.ajaxc(t)}))},downUrl:function(e,t){var n=e.state;if(t){var i=t,r=!0;if($A.isJson(t)&&(i=t.url,r=!!t.token),r){var o={token:n.userToken};$A.isJson(t)&&(i=t.url,o=t.params||{}),i=$A.urlAddParams(i,o)}$A.Electron?$A.Electron.request({action:"openExternal",url:i},(function(){}),(function(){})):$A.isEEUiApp?$A.eeuiAppOpenWeb(i):window.open(i)}},toggleProjectParameter:function(e,t){var n=e.state;$A.execMainDispatch("toggleProjectParameter",t);var i=t,r=null,o=n.projectId;if($A.isJson(t)&&(i=t.key,r=t.value,o=t.project_id),o){var a=n.cacheProjectParameter.findIndex((function(e){return e.project_id==o}));-1===a&&(n.cacheProjectParameter.push($A.projectParameterTemplate(o)),a=n.cacheProjectParameter.findIndex((function(e){return e.project_id==o})));var s=n.cacheProjectParameter[a];$A.isJson(i)||(i=Xt({},i,r||!s[i])),n.cacheProjectParameter.splice(a,1,Object.assign(s,i)),$A.IDBSave("cacheProjectParameter",n.cacheProjectParameter)}},setTheme:function(e,t){var n=e.state;return new Promise((function(e){if(void 0!==t){if(!$A.isChrome())return $A.isEEUiApp?$A.modalWarning("仅Android设置支持主题功能"):$A.modalWarning("仅客户端或Chrome浏览器支持主题功能"),void e(!1);switch(t){case"dark":$A.dark.enableDarkMode();break;case"light":$A.dark.disableDarkMode();break;default:$A.dark.autoDarkMode()}n.themeMode=t,n.themeIsDark=$A.dark.isDarkEnabled(),window.localStorage.setItem("__theme:mode__",t),e(!0)}else e(!1)}))},getBasicData:function(e,t){var n=e.state,i=e.dispatch;if("number"==typeof t)return window.__getBasicData&&clearTimeout(window.__getBasicData),void(t>-1&&(window.__getBasicData=setTimeout(i("getBasicData",null),t)));i("getProjects").catch((function(){})),i("getDialogs").catch((function(){})),i("getReportUnread",1e3),i("getTaskForDashboard");var r=Object.values(n.userAvatar).map((function(e){return e.userid}));Yt(new Set(r)).some((function(e){i("getUserBasic",{userid:e})}))},getReportUnread:function(e,t){var n=e.state,i=e.dispatch;window.__getReportUnread&&clearTimeout(window.__getReportUnread),window.__getReportUnread=setTimeout((function(){0===n.userId?n.reportUnreadNumber=0:i("call",{url:"report/unread"}).then((function(e){var t=e.data;n.reportUnreadNumber=t.total||0})).catch((function(e){}))}),"number"==typeof t?t:1e3)},getUserInfo:function(e){var t=e.dispatch;return new Promise((function(e,n){t("call",{url:"users/info"}).then((function(n){t("saveUserInfo",n.data),e(n)})).catch((function(e){console.warn(e),n(e)}))}))},saveUserInfo:function(e,t){var n=e.state,i=e.dispatch;return new Promise(function(){var e=tn(Qt().mark((function e(r){var o;return Qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(o=$A.cloneJSON(t)).userid=$A.runNum(o.userid),o.token=o.userid>0?o.token||n.userToken:"",n.userInfo=o,n.userId=o.userid,n.userToken=o.token,n.userIsAdmin=$A.inArray("admin",o.identity),e.next=9,$A.IDBSet("userInfo",n.userInfo);case 9:i("getBasicData",null),n.userId>0&&i("saveUserBasic",n.userInfo),r();case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},saveUserOnlineStatus:function(e,t){var n=e.state,i=t.userid,r=t.online;n.userOnline[i]!==r&&(n.userOnline=Object.assign({},n.userOnline,Xt({},i,r)))},getUserBasic:function(e,t){var n=e.state,i=e.dispatch;if(!0!==n.loadUserBasic){var r=$A.Time(),o=$A.cloneJSON(n.cacheUserWait);t&&t.userid&&o.push(t),n.cacheUserWait=[];var a=[],s=0;o.some((function(e){var t=n.cacheUserBasic.find((function(t){return t.userid==e.userid}));if(t&&r-t._time<=30)return setTimeout((function(){n.cacheUserActive=Object.assign(t,{__:Math.random()}),m.Store.set("cacheUserActive",t)}),s+=5),!1;a.push(e)})),0!==a.length&&(a.length>30&&(n.cacheUserWait=a.slice(30),a=a.slice(0,30)),n.loadUserBasic=!0,i("call",{url:"users/basic",data:{userid:Yt(new Set(a.map((function(e){return e.userid}))))},checkRole:!1}).then((function(e){r=$A.Time(),a.forEach((function(t){var n=e.data.find((function(e){return e.userid==t.userid}))||Object.assign(t,{email:""});n._time=r,i("saveUserBasic",n)})),n.loadUserBasic=!1,i("getUserBasic")})).catch((function(e){console.warn(e),n.loadUserBasic=!1,i("getUserBasic")})))}else t&&n.cacheUserWait.push(t)},saveUserBasic:function(e,t){var n=e.state;$A.execMainDispatch("saveUserBasic",t);var i=n.cacheUserBasic.findIndex((function(e){return e.userid==t.userid}));i>-1?(t=Object.assign({},n.cacheUserBasic[i],t),n.cacheUserBasic.splice(i,1,t)):n.cacheUserBasic.push(t),n.cacheUserActive=Object.assign(t,{__:Math.random()}),m.Store.set("cacheUserActive",t),$A.IDBSave("cacheUserBasic",n.cacheUserBasic)},userEditInput:function(e,t){var n=e.dispatch;return new Promise((function(e,i){var r="";if("nickname"===t)r="昵称";else{if("tel"!==t)return void i("参数错误");r="联系电话"}setTimeout((function(o){$A.modalInput({title:"设置".concat(r),placeholder:"请输入您的".concat(r),okText:"保存",onOk:function(i){return i?new Promise((function(r,o){n("call",{url:"users/editdata",data:Xt({},t,i),checkNick:!1,checkTel:!1}).then((function(){n("getUserInfo").finally((function(t){r(),e()}))})).catch((function(e){var t=e.msg;o(t)}))})):"请输入".concat(r)},onCancel:function(e){return i}})}),100)}))},logout:function(e){e.state;var t=e.dispatch,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t("handleClearCache",{}).then((function(){var e=["/","/login"].includes(window.location.pathname)?"":encodeURIComponent(window.location.href);!1===n&&(e=null),$A.goForward({name:"login",query:e?{from:e}:{}},!0)}))},handleClearCache:function(e,t){var n=e.state,i=e.dispatch;return new Promise(function(){var e=tn(Qt().mark((function e(r){var o,a,s,l,u;return Qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.cacheUserBasic=[],n.cacheDialogs=[],n.cacheProjects=[],n.cacheColumns=[],n.cacheTasks=[],o=window.localStorage.getItem("__language:type__"),a=window.localStorage.getItem("__keyboard:data__"),s=window.localStorage.getItem("__theme:mode__"),window.localStorage.clear(),window.localStorage.setItem("__language:type__",o),window.localStorage.setItem("__keyboard:data__",a),window.localStorage.setItem("__theme:mode__",s),e.next=15,$A.IDBString("cacheLoginEmail");case 15:return l=e.sent,e.next=18,$A.IDBJson("cacheFileSort");case 18:return u=e.sent,e.next=21,$A.IDBClear();case 21:return e.next=23,$A.IDBSet("cacheServerUrl",n.cacheServerUrl);case 23:return e.next=25,$A.IDBSet("cacheProjectParameter",n.cacheProjectParameter);case 25:return e.next=27,$A.IDBSet("cacheLoginEmail",l);case 27:return e.next=29,$A.IDBSet("cacheFileSort",u);case 29:return e.next=31,$A.IDBSet("cacheTaskBrowse",n.cacheTaskBrowse);case 31:i("saveUserInfo",$A.isJson(t)?t:n.userInfo).then(r),e.next=37;break;case 34:e.prev=34,e.t0=e.catch(0),r();case 37:case"end":return e.stop()}}),e,null,[[0,34]])})));return function(t){return e.apply(this,arguments)}}())},saveFile:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveFile",t),$A.isArray(t))t.forEach((function(e){i("saveFile",e)}));else if($A.isJson(t)){var r={_load:!1,_edit:!1},o=n.fileLists.findIndex((function(e){return e.id==t.id}));o>-1?n.fileLists.splice(o,1,Object.assign(r,n.fileLists[o],t)):n.fileLists.push(Object.assign(r,t)),$A.IDBSave("fileLists",n.fileLists,600)}},forgetFile:function(e,t){var n=e.state,i=e.dispatch;$A.execMainDispatch("forgetFile",t),($A.isArray(t)?t:[t]).some((function(e){n.fileLists=n.fileLists.filter((function(t){return t.id!=e})),n.fileLists.some((function(t){t.pid==e&&i("forgetFile",t.id)})),$A.IDBSave("fileLists",n.fileLists,600)}))},getFiles:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){i("call",{url:"file/lists",data:{pid:t}}).then((function(r){var o=r.data.map((function(e){return e.id}));n.fileLists=n.fileLists.filter((function(e){return e.pid!=t||o.includes(e.id)})),$A.IDBSave("fileLists",n.fileLists,600),i("saveFile",r.data),e(r)})).catch((function(e){console.warn(e),r(e)}))}))},searchFiles:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){n("call",{url:"file/search",data:{key:t}}).then((function(t){n("saveFile",t.data),e(t)})).catch((function(e){console.warn(e),i(e)}))}))},saveProject:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveProject",t),$A.isArray(t))t.forEach((function(e){i("saveProject",e)}));else if($A.isJson(t)){void 0!==t.project_column&&(i("saveColumn",t.project_column),delete t.project_column);var r=n.cacheProjects.findIndex((function(e){return e.id==t.id}));r>-1?n.cacheProjects.splice(r,1,Object.assign({},n.cacheProjects[r],t)):(void 0===t.project_user&&(t.project_user=[]),n.cacheProjects.push(t),n.projectTotal++),n.cacheDialogs.some((function(e){if("group"==e.type&&"project"==e.group_type&&e.group_info.id==t.id)for(var n in void 0!==t.name&&(e.name=t.name),e.group_info)e.group_info.hasOwnProperty(n)&&void 0!==t[n]&&(e.group_info[n]=t[n])})),$A.IDBSave("cacheProjects",n.cacheProjects)}},forgetProject:function(e,t){var n=e.state;$A.execMainDispatch("forgetProject",t);var i=$A.isArray(t)?t:[t];if(i.some((function(e){var t=n.cacheProjects.findIndex((function(t){return t.id==e}));t>-1&&(n.cacheProjects.splice(t,1),n.projectTotal=Math.max(0,n.projectTotal-1))})),i.includes(n.projectId)){var r=$A.cloneJSON(n.cacheProjects).sort((function(e,t){return e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):t.id-e.id})).find((function(e){var n=e.id;return n&&n!=t}));r?$A.goForward({name:"manage-project",params:{projectId:r.id}}):$A.goForward({name:"manage-dashboard"})}$A.IDBSave("cacheProjects",n.cacheProjects)},getProjects:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){if(0===n.userId)return n.cacheProjects=[],void r({msg:"Parameter error"});var o=t||{},a=!0;void 0!==o.hideLoad&&(a=!o.hideLoad,delete o.hideLoad),a&&n.loadProjects++,i("call",{url:"project/lists",data:o}).then((function(t){var r=t.data;n.projectTotal=r.total_all,i("saveProject",r.data),e(r)})).catch((function(e){console.warn(e),r(e)})).finally((function(e){a&&n.loadProjects--}))}))},getProjectOne:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){0!==$A.runNum(t)?(n.projectLoad++,i("call",{url:"project/one",data:{project_id:t}}).then((function(t){setTimeout((function(){n.projectLoad--}),10),i("saveProject",t.data),e(t)})).catch((function(e){console.warn(e),n.projectLoad--,r(e)}))):r({msg:"Parameter error"})}))},archivedProject:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t)?n("call",{url:"project/archived",data:{project_id:t}}).then((function(i){n("forgetProject",t),e(i)})).catch((function(e){console.warn(e),n("getProjectOne",t).catch((function(){})),i(e)})):i({msg:"Parameter error"})}))},removeProject:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t)?n("call",{url:"project/remove",data:{project_id:t}}).then((function(i){n("forgetProject",t),e(i)})).catch((function(e){console.warn(e),n("getProjectOne",t).catch((function(){})),i(e)})):i({msg:"Parameter error"})}))},exitProject:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t)?n("call",{url:"project/exit",data:{project_id:t}}).then((function(i){n("forgetProject",t),e(i)})).catch((function(e){console.warn(e),n("getProjectOne",t).catch((function(){})),i(e)})):i({msg:"Parameter error"})}))},saveColumn:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveColumn",t),$A.isArray(t))t.forEach((function(e){i("saveColumn",e)}));else if($A.isJson(t)){var r=n.cacheColumns.findIndex((function(e){return e.id==t.id}));r>-1?n.cacheColumns.splice(r,1,Object.assign({},n.cacheColumns[r],t)):n.cacheColumns.push(t),$A.IDBSave("cacheColumns",n.cacheColumns)}},forgetColumn:function(e,t){var n=e.state,i=e.dispatch;$A.execMainDispatch("forgetColumn",t);var r=$A.isArray(t)?t:[t],o=[];r.some((function(e){var t=n.cacheColumns.findIndex((function(t){return t.id==e}));t>-1&&(o.push(n.cacheColumns[t].project_id),i("getProjectOne",n.cacheColumns[t].project_id).catch((function(){})),n.cacheColumns.splice(t,1))})),Array.from(new Set(o)).some((function(e){return i("getProjectOne",e).catch((function(){}))})),$A.IDBSave("cacheColumns",n.cacheColumns)},getColumns:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){if(0===n.userId)return n.cacheColumns=[],void r({msg:"Parameter error"});n.projectLoad++,i("call",{url:"project/column/lists",data:{project_id:t}}).then((function(r){var o=r.data;n.projectLoad--;var a=o.data.map((function(e){return e.id}));if(n.cacheColumns=n.cacheColumns.filter((function(e){return e.project_id!=t||a.includes(e.id)})),i("saveColumn",o.data),e(o.data),1===n.cacheColumns.filter((function(e){return e.project_id==t})).length){var s=n.cacheProjectParameter.find((function(e){return e.project_id==t}))||{};void 0!==s.menuInit&&!1!==s.menuInit||i("toggleProjectParameter",{project_id:t,key:{menuInit:!0,menuType:"table"}})}})).catch((function(e){console.warn(e),n.projectLoad--,r(e)}))}))},removeColumn:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t)?n("call",{url:"project/column/remove",data:{column_id:t}}).then((function(i){n("forgetColumn",t),e(i)})).catch((function(e){console.warn(e),i(e)})):i({msg:"Parameter error"})}))},saveTask:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveTask",t),$A.isArray(t))t.forEach((function(e){i("saveTask",e)}));else if($A.isJson(t)){if(t._time=$A.Time(),t.flow_item_name&&-1!==t.flow_item_name.indexOf("|")){var r=Gt(t.flow_item_name.split("|"),2);t.flow_item_status=r[0],t.flow_item_name=r[1]}void 0!==t.archived_at&&n.cacheTasks.filter((function(e){return e.parent_id==t.id})).some((function(e){i("saveTask",Object.assign(e,{archived_at:t.archived_at,archived_userid:t.archived_userid}))}));var o={};void 0!==t.update_marking&&(o=$A.isJson(t.update_marking)?t.update_marking:{},delete t.update_marking);var a=n.cacheTasks.findIndex((function(e){return e.id==t.id}));a>-1?n.cacheTasks.splice(a,1,Object.assign({},n.cacheTasks[a],t)):n.cacheTasks.push(t),(!0===o.is_update_maintask||t.parent_id>0&&-1===n.cacheTasks.findIndex((function(e){return e.id==t.parent_id})))&&i("getTaskOne",t.parent_id).catch((function(){})),!0===o.is_update_project&&i("getProjectOne",t.project_id).catch((function(){})),!0===o.is_update_content&&i("getTaskContent",t.id),!0===o.is_update_subtask&&i("getTaskForParent",t.id).catch((function(){})),n.cacheDialogs.some((function(e){if("group"==e.type&&"task"==e.group_type&&e.group_info.id==t.id)for(var n in void 0!==t.name&&(e.name=t.name),e.group_info)e.group_info.hasOwnProperty(n)&&void 0!==t[n]&&(e.group_info[n]=t[n])})),$A.IDBSave("cacheTasks",n.cacheTasks)}},forgetTask:function(e,t){var n=e.state,i=e.dispatch;$A.execMainDispatch("forgetTask",t);var r=$A.isArray(t)?t:[t],o=[],a=[];r.some((function(e){var t=n.cacheTasks.findIndex((function(t){return t.id==e}));t>-1&&(n.cacheTasks[t].parent_id&&o.push(n.cacheTasks[t].parent_id),a.push(n.cacheTasks[t].project_id),n.cacheTasks.splice(t,1)),n.cacheTasks.filter((function(t){return t.parent_id==e})).some((function(e){var t=n.cacheTasks.findIndex((function(t){return t.id==e.id}));t>-1&&(a.push(e.project_id),n.cacheTasks.splice(t,1))}))})),Array.from(new Set(o)).some((function(e){return i("getTaskOne",e).catch((function(){}))})),Array.from(new Set(a)).some((function(e){return i("getProjectOne",e).catch((function(){}))})),r.includes(n.taskId)&&(n.taskId=0),$A.IDBSave("cacheTasks",n.cacheTasks)},increaseTaskMsgNum:function(e,t){var n=e.state;if($A.execMainDispatch("increaseTaskMsgNum",t),!$A.execMainCacheJudge("increaseTaskMsgNum:".concat(t.id))&&t.dialog_id){var i=n.cacheTasks.find((function(e){return e.dialog_id===t.dialog_id}));i&&i.msg_num++}},increaseMsgReplyNum:function(e,t){var n=e.state;e.dispatch;if($A.execMainDispatch("increaseMsgReplyNum",t),!$A.execMainCacheJudge("increaseMsgReplyNum:".concat(t.id))&&t.reply_id>0){var i=n.dialogMsgs.find((function(e){return e.id==t.reply_id}));i&&i.reply_num++}},decrementMsgReplyNum:function(e,t){var n=e.state;e.dispatch;if($A.execMainDispatch("decrementMsgReplyNum",t),!$A.execMainCacheJudge("decrementMsgReplyNum:".concat(t.id))&&t.reply_id>0){var i=n.dialogMsgs.find((function(e){return e.id==t.reply_id}));i&&i.reply_num--}},getTasks:function(e,t){var n=e.state,i=e.dispatch,r=[];return $A.isArray(t.taskData)&&(r=t.taskData,delete t.taskData),new Promise((function(e,o){if(0===n.userId)return n.cacheTasks=[],void o({msg:"Parameter error"});t.project_id&&n.projectLoad++,i("call",{url:"project/task/lists",data:t}).then((function(a){var s;t.project_id&&n.projectLoad--;var l=a.data;if((s=r).push.apply(s,Yt(l.data)),l.next_page_url){var u=Object.assign(t,{page:l.current_page+1,taskData:r});l.current_page%5==0?$A.modalWarning({content:"数据已超过"+l.to+"条,是否继续加载?",onOk:function(){i("getTasks",u).then(e).catch(o)},onCancel:function(){i("saveTask",r),e()}}):i("getTasks",u).then(e).catch(o)}else i("saveTask",r),e()})).catch((function(e){console.warn(e),o(e),t.project_id&&n.projectLoad--}))}))},getTaskOne:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){/^\d+$/.test(t)&&(t={task_id:t}),0!==$A.runNum(t.task_id)?$A.isArray(n.taskOneLoad[t.task_id])?n.taskOneLoad[t.task_id].push({resolve:e,reject:r}):(n.taskOneLoad[t.task_id]=[],i("call",{url:"project/task/one",data:t}).then((function(r){i("saveTask",r.data),e(r),n.taskOneLoad[t.task_id].some((function(e){e.resolve(r)}))})).catch((function(e){console.warn(e),r(e),n.taskOneLoad[t.task_id].some((function(t){t.reject(e)}))})).finally((function(e){delete n.taskOneLoad[t.task_id]}))):r({msg:"Parameter error"})}))},getTaskForDashboard:function(e,t){var n=e.state,i=e.dispatch,r=e.getters;if(window.__getTaskForDashboard&&clearTimeout(window.__getTaskForDashboard),"number"!=typeof t){if(!0!==n.loadDashboardTasks){n.loadDashboardTasks=!0;var o=$A.Time(),a=r.dashboardTask,s=a.today,l=a.overdue,u=a.all,c=s.map((function(e){return e.id}));c.push.apply(c,Yt(l.map((function(e){return e.id})))),c.push.apply(c,Yt(u.map((function(e){return e.id})))),c.push.apply(c,Yt(r.assistTask.map((function(e){return e.id})))),i("getTasks",{complete:"no"}).then((function(e){var t=r.dashboardTask,n=t.today,a=t.overdue,s=t.all,l=n.filter((function(e){return e._time>=o})).map((function(e){return e.id}));l.push.apply(l,Yt(a.filter((function(e){return e._time>=o})).map((function(e){return e.id})))),l.push.apply(l,Yt(s.filter((function(e){return e._time>=o})).map((function(e){return e.id})))),l.push.apply(l,Yt(r.assistTask.filter((function(e){return e._time>=o})).map((function(e){return e.id})))),i("forgetTask",c.filter((function(e){return-1==l.indexOf(e)})))})).finally((function(e){n.loadDashboardTasks=!1}))}}else t>-1&&(window.__getTaskForDashboard=setTimeout((function(e){return i("getTaskForDashboard",null)}),t))},getTaskForProject:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var o=$A.Time(),a=n.cacheTasks.filter((function(e){return e.project_id==t})).map((function(e){return e.id})),s=function(){var e=n.cacheTasks.filter((function(e){return e.project_id==t&&e._time>=o})).map((function(e){return e.id}));i("forgetTask",a.filter((function(t){return-1==e.indexOf(t)})))};i("getTasks",{project_id:t}).then((function(){s(),e()})).catch((function(){s(),r()}))}))},getTaskForParent:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var o=$A.Time(),a=n.cacheTasks.filter((function(e){return e.parent_id==t})).map((function(e){return e.id})),s=function(){var e=n.cacheTasks.filter((function(e){return e.parent_id==t&&e._time>=o})).map((function(e){return e.id}));i("forgetTask",a.filter((function(t){return-1==e.indexOf(t)})))};i("getTasks",{parent_id:t,archived:"all"}).then((function(){s(),e()})).catch((function(){s(),r()}))}))},removeTask:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t.task_id)?(n("setLoad",{key:"task-".concat(t.task_id),delay:300}),n("call",{url:"project/task/remove",data:t}).then((function(i){n("forgetTask",t.task_id),e(i)})).catch((function(e){console.warn(e),n("getTaskOne",t.task_id).catch((function(){})),i(e)})).finally((function(e){n("cancelLoad","task-".concat(t.task_id))}))):i({msg:"Parameter error"})}))},archivedTask:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){/^\d+$/.test(t)&&(t={task_id:t}),0!==$A.runNum(t.task_id)?(n("setLoad",{key:"task-".concat(t.task_id),delay:300}),n("call",{url:"project/task/archived",data:t}).then((function(t){n("saveTask",t.data),e(t)})).catch((function(e){console.warn(e),n("getTaskOne",t.task_id).catch((function(){})),i(e)})).finally((function(e){n("cancelLoad","task-".concat(t.task_id))}))):i({msg:"Parameter error"})}))},getTaskContent:function(e,t){e.state;var n=e.dispatch;0!==$A.runNum(t)&&n("call",{url:"project/task/content",data:{task_id:t}}).then((function(e){n("saveTaskContent",e.data)})).catch((function(e){console.warn(e)}))},saveTaskContent:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveTaskContent",t),$A.isArray(t))t.forEach((function(e){i("saveTaskContent",e)}));else if($A.isJson(t)){var r=n.taskContents.findIndex((function(e){return e.task_id==t.task_id}));r>-1?n.taskContents.splice(r,1,Object.assign({},n.taskContents[r],t)):n.taskContents.push(t)}},getTaskFiles:function(e,t){var n=e.state,i=e.dispatch;0!==$A.runNum(t)&&i("call",{url:"project/task/files",data:{task_id:t}}).then((function(e){e.data.forEach((function(e){var t=n.taskFiles.findIndex((function(t){return t.id==e.id}));t>-1?n.taskFiles.splice(t,1,e):n.taskFiles.push(e)})),i("saveTask",{id:t,file_num:e.data.length})})).catch((function(e){console.warn(e)}))},forgetTaskFile:function(e,t){var n=e.state;e.dispatch;($A.isArray(t)?t:[t]).some((function(e){var t=n.taskFiles.findIndex((function(t){return t.id==e}));t>-1&&n.taskFiles.splice(t,1)}))},openTask:function(e,t){var n=e.state,i=e.dispatch,r=t;$A.isJson(t)&&(r=t.parent_id>0?t.parent_id:t.id),n.taskId=r,r>0&&i("getTaskOne",{task_id:r,archived:"all"}).then((function(){i("getTaskContent",r),i("getTaskFiles",r),i("getTaskForParent",r).catch((function(){})),i("saveTaskBrowse",r)})).catch((function(e){var t=e.msg;$A.modalWarning({content:t,onOk:function(){n.taskId=0}})}))},taskAdd:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){var r=$A.cloneJSON($A.date2string(t));$A.isArray(r.column_id)&&(r.column_id=r.column_id.find((function(e){return e}))),n("call",{url:"project/task/add",data:r,method:"post"}).then((function(t){n("addTaskSuccess",t.data),e(t)})).catch((function(e){console.warn(e),i(e)}))}))},taskAddSub:function(e,t){var n=e.dispatch;return new Promise((function(e,i){n("call",{url:"project/task/addsub",data:t}).then((function(t){n("addTaskSuccess",t.data),e(t)})).catch((function(e){console.warn(e),i(e)}))}))},addTaskSuccess:function(e,t){var n=e.dispatch;void 0!==t.new_column&&(n("saveColumn",t.new_column),delete t.new_column),n("saveTask",t),n("getProjectOne",t.project_id).catch((function(){}))},taskUpdate:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){n("taskBeforeUpdate",t).then((function(t){t.confirm;var r=t.post;n("setLoad",{key:"task-".concat(r.task_id),delay:300}),n("call",{url:"project/task/update",data:r,method:"post"}).then((function(t){n("saveTask",t.data),e(t)})).catch((function(e){console.warn(e),n("getTaskOne",r.task_id).catch((function(){})),i(e)})).finally((function(e){n("cancelLoad","task-".concat(r.task_id))}))})).catch(i)}))},taskBeforeUpdate:function(e,t){var n=e.state;e.dispatch;return new Promise((function(e,i){var r=$A.cloneJSON($A.date2string(t)),o="温馨提示",a=null;if(void 0!==r.times){!1===t.times[0]&&(a="你确定要取消任务时间吗?");var s=n.cacheTasks.find((function(e){return e.id==r.task_id}));o=s.parent_id>0?"更新子任务":"更新主任务",s&&(s.parent_id>0?r.times[0]&&n.cacheTasks.some((function(e){if(e.id!=s.parent_id)return!1;if(!e.end_at)return a="主任务没有设置时间,设置子任务将同步设置主任务",!0;var t=$A.Date(r.times[0],!0),n=$A.Date(r.times[1],!0),i=$A.Date(e.start_at,!0),o=$A.Date(e.end_at,!0);return to?(a="新设置的子任务结束时间在主任务时间之外,修改后将同步修改主任务",!0):void 0})):n.cacheTasks.some((function(e){if(e.parent_id!=s.id)return!1;if(!e.end_at)return!1;var t=$A.Date(r.times[0],!0),n=$A.Date(r.times[1],!0),i=$A.Date(s.start_at,!0),o=$A.Date(s.end_at,!0),l=$A.Date(e.start_at,!0),u=$A.Date(e.end_at,!0);return(i!=l||o!=u)&&(r.times[0]?t>l?(a="新设置的开始时间在子任务(".concat(e.name,")时间之内,修改后将同步修改子任务"),!0):n-1?n.taskFlowItems.splice(t,1,e):n.taskFlowItems.push(e),o&&o.flow_item_id==e.id&&o.flow_item_name!=e.name&&n.cacheTasks.filter((function(t){return t.flow_item_id==e.id})).some((function(t){i("saveTask",{id:t.id,flow_item_name:"".concat(e.status,"|").concat(e.name)})}))})),delete a.turns;var s=n.taskFlows.findIndex((function(e){return e.task_id==a.task_id}));s>-1?n.taskFlows.splice(s,1,a):n.taskFlows.push(a),e(r)})).catch((function(e){console.warn(e),r(e)}))}))},getTaskPriority:function(e){var t=e.state,n=e.dispatch;return new Promise((function(e,i){n("call",{url:"system/priority"}).then((function(n){t.taskPriority=n.data,e(n)})).catch((function(e){console.warn(e),i(e)}))}))},getColumnTemplate:function(e){var t=e.state,n=e.dispatch;return new Promise((function(e,i){n("call",{url:"system/column/template"}).then((function(n){t.columnTemplate=n.data,e(n)})).catch((function(e){console.warn(e),i(e)}))}))},saveTaskCompleteTemp:function(e,t){var n=e.state;/^\d+$/.test(t)&&!n.taskCompleteTemps.includes(t)&&n.taskCompleteTemps.push(t)},forgetTaskCompleteTemp:function(e,t){var n=e.state;!0===t?n.taskCompleteTemps=[]:/^\d+$/.test(t)&&(n.taskCompleteTemps=n.taskCompleteTemps.filter((function(e){return e!=t})))},saveTaskBrowse:function(e,t){var n=e.state,i=n.cacheTaskBrowse.findIndex((function(e){return e.id==t}));i>-1&&n.cacheTaskBrowse.splice(i,1),n.cacheTaskBrowse.unshift({id:t,userid:n.userId}),n.cacheTaskBrowse.length>200&&n.cacheTaskBrowse.splice(200),$A.IDBSave("cacheTaskBrowse",n.cacheTaskBrowse)},saveDialog:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveDialog",t),$A.isArray(t))t.forEach((function(e){i("saveDialog",e)}));else if($A.isJson(t)){var r=n.cacheDialogs.findIndex((function(e){return e.id==t.id}));if(r>-1){var o=n.cacheDialogs[r];"number"==typeof t.unread&&t.unread>o.unread&&t.last_umid<=o.last_umid&&(t.unread=o.unread,t.mention=o.mention),n.cacheDialogs.splice(r,1,Object.assign({},o,t))}else n.cacheDialogs.push(t);$A.IDBSave("cacheDialogs",n.cacheDialogs)}},updateDialogLastMsg:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("updateDialogLastMsg",t),$A.isArray(t))t.forEach((function(e){i("updateDialogLastMsg",e)}));else if($A.isJson(t)){if(n.cacheDialogs.findIndex((function(e){return e.id==t.dialog_id}))>-1){var r={id:t.dialog_id,last_msg:t,last_at:$A.formatDate("Y-m-d H:i:s")};"tag"==t.mtype&&(r.has_tag=!0),"image"==t.mtype&&(r.has_image=!0),"file"==t.mtype&&(r.has_file=!0),t.link&&(r.has_link=!0),i("saveDialog",r)}else i("getDialogOne",t.dialog_id).catch((function(){}))}},getDialogs:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){if(0===n.userId)return n.cacheDialogs=[],void r({msg:"Parameter error"});if(!0!==(t=$A.isJson(t)?t:{}).hideLoad&&n.loadDialogs++,void 0===t.pagesize&&(t.pagesize=20),void 0===t.page&&(t.page=1,n.cacheDialogs.length>0)){var o=n.cacheDialogs.sort((function(e,t){return e.top_at||t.top_at?$A.Date(t.top_at)-$A.Date(e.top_at):$A.Date(t.last_at)-$A.Date(e.last_at)}));t.at_after=o[0].last_at}(n.dialogDeletedAt||t.at_after)&&(t.deleted_at=n.dialogDeletedAt=n.dialogDeletedAt||t.at_after),i("call",{url:"dialog/lists",data:t}).then((function(o){var a=o.data;i("saveDialog",a.data),a.deleted_at&&(n.dialogDeletedAt=a.deleted_at,a.deleted_data.some((function(e){return i("forgetDialog",e)}))),a.next_page_url&&a.current_page<5?(t.page++,i("getDialogs",t).then(e).catch(r)):e()})).catch((function(e){console.warn(e),r(e)})).finally((function(e){!0!==t.hideLoad&&n.loadDialogs--}))}))},getDialogOne:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){0!==$A.runNum(t)?n("call",{url:"dialog/one",data:{dialog_id:t}}).then((function(t){n("saveDialog",t.data),e(t)})).catch((function(e){console.warn(e),i(e)})):i({msg:"Parameter error"})}))},getDialogTodo:function(e,t){var n=e.state,i=e.dispatch;i("call",{url:"dialog/todo",data:{dialog_id:t}}).then((function(e){var r=e.data;$A.arrayLength(r)>0?(i("saveDialog",{id:t,todo_num:$A.arrayLength(r)}),n.dialogTodos=n.dialogTodos.filter((function(e){return e.dialog_id!=t})),i("saveDialogTodo",r)):i("saveDialog",{id:t,todo_num:0})})).catch(console.warn)},openDialog:function(e,t){var n,i=e.state;e.dispatch;$A.isJson(t)&&(n=t.search_msg_id,t=t.dialog_id),requestAnimationFrame((function(e){i.dialogSearchMsgId=/^\d+$/.test(n)?n:0,i.dialogId=/^\d+$/.test(t)?t:0}))},openDialogUserid:function(e,t){var n=e.state,i=e.dispatch;return new Promise((function(e,r){var o=n.cacheDialogs.find((function(e){return!("user"!==e.type||!e.dialog_user)&&e.dialog_user.userid===t}));if(o)return i("openDialog",o.id),void e(o);i("call",{url:"dialog/open/user",data:{userid:t}}).then((function(t){var n=t.data;i("saveDialog",n),i("openDialog",n.id),e(n)})).catch((function(e){console.warn(e),r(e)}))}))},forgetDialog:function(e,t){var n=e.state;$A.execMainDispatch("forgetDialog",t);var i=$A.isArray(t)?t:[t];i.some((function(e){var t=n.cacheDialogs.findIndex((function(t){return t.id==e}));t>-1&&n.cacheDialogs.splice(t,1)})),i.includes(n.dialogId)&&(n.dialogId=0),$A.IDBSave("cacheDialogs",n.cacheDialogs)},saveInDialog:function(e,t){var n=e.state;e.dispatch;$A.execMainDispatch("saveInDialog",t);var i=n.dialogIns.findIndex((function(e){return e.uid==t.uid}));i>-1?n.dialogIns.splice(i,1,Object.assign({},n.dialogIns[i],t)):n.dialogIns.push(t);if(n.dialogHistory=n.dialogHistory.filter((function(e){return e!=t.dialog_id})),n.dialogHistory.push(t.dialog_id),n.dialogMsgs.length>1500&&n.dialogHistory.length>30){var r=n.dialogHistory.slice().reverse(),o=[],a=[];r.forEach((function(e){o.length<30||n.dialogIns.findIndex((function(t){return t.dialog_id==e}))>-1?o.push(e):a.push(e)})),a.length>0&&(n.dialogMsgs=n.dialogMsgs.filter((function(e){return!a.includes(e.dialog_id)})),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),n.dialogHistory=o}},forgetInDialog:function(e,t){var n=e.state;e.dispatch;$A.execMainDispatch("forgetInDialog",t);var i=n.dialogIns.findIndex((function(e){return e.uid==t}));i>-1&&n.dialogIns.splice(i,1)},closeDialog:function(e,t){var n=e.state;e.dispatch;if($A.execMainDispatch("closeDialog",t),/^\d+$/.test(t)){var i=n.dialogMsgs.filter((function(e){return e.dialog_id==t}));if(i.length>50){var r=i.sort((function(e,t){return t.id-e.id})).splice(50).map((function(e){return e.id}));n.dialogMsgs=n.dialogMsgs.filter((function(e){return!r.includes(e.id)})),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}}},saveDialogTodo:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveDialogTodo",t),$A.isArray(t))t.forEach((function(e){i("saveDialogTodo",e)}));else if($A.isJson(t)){var r=n.dialogTodos.findIndex((function(e){return e.id==t.id}));r>-1?n.dialogTodos.splice(r,1,Object.assign({},n.dialogTodos[r],t)):n.dialogTodos.push(t)}},forgetDialogTodoForMsgId:function(e,t){var n=e.state;e.dispatch;$A.execMainDispatch("forgetDialogTodoForMsgId",t);var i=n.dialogTodos.findIndex((function(e){return e.msg_id==t}));i>-1&&n.dialogTodos.splice(i,1)},saveDialogInputCache:function(e,t){var n=e.state,i=n.dialogInputCache.findIndex((function(e){return e.key==t.key}));i>-1?n.dialogInputCache.splice(i,1,t):n.dialogInputCache.push(t),$A.IDBSave("dialogInputCache",n.dialogInputCache,600)},saveDialogMsg:function(e,t){var n=e.state,i=e.dispatch;if($A.execMainDispatch("saveDialogMsg",t),$A.isArray(t))t.forEach((function(e){i("saveDialogMsg",e)}));else if($A.isJson(t)){var r=n.dialogMsgs.findIndex((function(e){return e.id==t.id}));t=Object.assign({},n.dialogMsgs[r],t),r>-1?n.dialogMsgs.splice(r,1,t):n.dialogMsgs.push(t),$A.IDBSave("dialogMsgs",n.dialogMsgs,600);var o=n.cacheDialogs.find((function(e){var n=e.id,i=e.last_msg;return n==t.dialog_id&&i&&i.id===t.id}));o&&i("saveDialog",{id:t.dialog_id,last_msg:Object.assign({},o.last_msg,t)})}},forgetDialogMsg:function(e,t){var n=e.state,i=e.dispatch;$A.execMainDispatch("forgetDialogMsg",t),($A.isArray(t)?t:[t]).some((function(e){var t=n.dialogMsgs.findIndex((function(t){return t.id==e}));t>-1&&(i("decrementMsgReplyNum",n.dialogMsgs[t]),m.Store.set("audioSubscribe",e),n.dialogMsgs.splice(t,1),$A.IDBSave("dialogMsgs",n.dialogMsgs,600))})),i("forgetDialogTodoForMsgId",t)},getDialogMsgs:function(e,t){var n=e.state,i=e.dispatch,r=e.getters;return new Promise((function(e,o){var a=function(e){},s=!1,l=!1;void 0!==t.save_before&&(a="function"==typeof t.save_before?t.save_before:function(e){},delete t.save_before),void 0!==t.clear_before&&(s="boolean"==typeof t.clear_before&&t.clear_before,delete t.clear_before),void 0!==t.spinner&&(l=t.spinner,delete t.spinner);var u="msg::".concat(t.dialog_id,"-").concat(t.msg_id,"-").concat(t.msg_type||"");r.isLoad(u)?o({msg:"Loading"}):(i("setLoad",u),s&&(n.dialogMsgs=n.dialogMsgs.filter((function(e){return e.dialog_id!==t.dialog_id})),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)),i("call",{url:"dialog/msg/list",data:t,spinner:l,complete:function(e){return i("cancelLoad",u)}}).then((function(r){a();var o=r.data;if($A.isJson(o.dialog)){i("saveDialog",o.dialog);var s=o.list.map((function(e){return e.id}));n.dialogMsgs=n.dialogMsgs.filter((function(e){return e.dialog_id!=t.dialog_id||s.includes(e.id)||$A.Time(e.created_at)>=o.time})),$A.IDBSave("dialogMsgs",n.dialogMsgs,600)}$A.isArray(o.todo)&&(n.dialogTodos=n.dialogTodos.filter((function(e){return e.dialog_id!=t.dialog_id})),i("saveDialogTodo",o.todo)),i("saveDialogMsg",o.list),e(r)})).catch((function(e){console.warn(e),o(e)})).finally((function(e){if(t.prev_id){var i=n.dialogMsgs.find((function(e){return e.prev_id==t.prev_id}));i&&(i.prev_id=0)}if(t.next_id){var r=n.dialogMsgs.find((function(e){return e.next_id==t.next_id}));r&&(r.next_id=0)}})))}))},dialogMsgRead:function(e,t){var n=e.state,i=e.dispatch;if(t.userid!=n.userId&&!t.read_at){t.read_at=$A.formatDate();var r=n.cacheDialogs.find((function(e){return e.id==t.dialog_id}));if(r&&r.unread>0){var o={id:t.dialog_id,mark_unread:0};o.unread=r.unread-1,t.mention&&(o.mention=r.mention-1),i("saveDialog",o)}n.wsReadWaitList.push(t.id),clearTimeout(n.wsReadTimeout),n.wsReadTimeout=setTimeout((function(){var e=$A.cloneJSON(n.wsReadWaitList);n.wsReadWaitList=[],i("call",{url:"dialog/msg/read",data:{id:e.join(",")}}).catch((function(t){var i;(i=n.wsReadWaitList).push.apply(i,Yt(e))}))}),50)}},dialogMsgMark:function(e,t){e.state;var n=e.dispatch;return new Promise((function(e,i){n("call",{url:"dialog/msg/mark",data:t}).then((function(t){n("saveDialog",t.data),e(t)})).catch((function(e){i(e)}))}))},setLoad:function(e,t){var n=e.state,i=e.dispatch;if($A.isJson(t))setTimeout((function(e){i("setLoad",t.key)}),t.delay||0);else{var r=n.loads.find((function(e){return e.key==t}));r?r.num++:n.loads.push({key:t,num:1})}},cancelLoad:function(e,t){var n=e.state,i=n.loads.find((function(e){return e.key==t}));i?i.num--:n.loads.push({key:t,num:-1})},showSpinner:function(e,t){var n=e.state,i=$A.randomString(6);n.floatSpinnerTimer.push({id:i,timer:setTimeout((function(e){n.floatSpinnerTimer=n.floatSpinnerTimer.filter((function(e){return e.id!==i})),n.floatSpinnerLoad++}),"number"==typeof t?t:0)})},hiddenSpinner:function(e){var t=e.state,n=t.floatSpinnerTimer.shift();n?clearTimeout(n.timer):t.floatSpinnerLoad--},websocketConnection:function(e){var t=e.state,n=e.dispatch;e.commit;if(clearTimeout(t.wsTimeout),t.ws&&(t.ws.close(),t.ws=null),0!==t.userId){var i=$A.apiUrl("../ws");i=(i=i.replace("https://","wss://")).replace("http://","ws://"),i+="?action=web&token="+t.userToken;var r=$A.openLog,o=$A.randomString(16);t.wsRandom=o,t.ws=new WebSocket(i),t.ws.onopen=function(e){r&&console.log("[WS] Open",e,$A.formatDate()),t.wsOpenNum++},t.ws.onclose=function(e){r&&console.log("[WS] Close",e,$A.formatDate()),t.ws=null,clearTimeout(t.wsTimeout),t.wsTimeout=setTimeout((function(){o===t.wsRandom&&n("websocketConnection")}),3e3)},t.ws.onerror=function(e){r&&console.log("[WS] Error",e,$A.formatDate()),t.ws=null,clearTimeout(t.wsTimeout),t.wsTimeout=setTimeout((function(){o===t.wsRandom&&n("websocketConnection")}),3e3)},t.ws.onmessage=function(e){r&&console.log("[WS] Message",e);var i=$A.formatMsgBasic($A.jsonParse(e.data)),o=i.type,a=i.msgId;switch(o){case"open":$A.setSessionStorage("userWsFd",i.data.fd);break;case"receipt":"function"==typeof t.wsCall[a]&&t.wsCall[a](i.body,!0),delete t.wsCall[a];break;case"line":n("saveUserOnlineStatus",i.data);break;default:switch(a&&n("websocketSend",{type:"receipt",msgId:a}),t.wsMsg=i,Object.values(t.wsListener).forEach((function(e){if("function"==typeof e)try{e(i)}catch(e){r&&console.log("[WS] Callerr",e)}})),o){case"dialog":!function(e){var i=e.mode,r=e.silence,o=e.data,a=o.dialog_id;switch(i){case"delete":if(n("forgetDialogMsg",o.id),t.cacheDialogs.find((function(e){return e.id==a}))){var s={id:a,last_at:o.last_msg&&o.last_msg.created_at,last_msg:o.last_msg};o.update_read?n("call",{url:"dialog/msg/unread",data:{dialog_id:a}}).then((function(e){s.unread=e.data.unread,s.last_umid=e.data.last_umid,n("saveDialog",s)})).catch((function(){})):n("saveDialog",s)}break;case"add":case"chat":if(!t.dialogMsgs.find((function(e){return e.id==o.id}))){if(n("increaseTaskMsgNum",o),n("increaseMsgReplyNum",o),"chat"===i)return;if(o.userid!==t.userId){var l=t.cacheDialogs.find((function(e){return e.id==a}));if(l){var u={id:a,last_umid:o.id};u.unread=l.unread+1,o.mention&&(u.mention=l.mention+1),n("saveDialog",u)}}r||m.Store.set("dialogMsgPush",o)}n("saveDialogMsg",o),n("updateDialogLastMsg",o);break;case"update":case"readed":t.dialogMsgs.find((function(e){return e.id==o.id}))&&(n("saveDialogMsg",o),void 0!==o.todo&&n("getDialogTodo",a));break;case"groupAdd":case"groupJoin":n("getDialogOne",o.id).catch((function(){}));break;case"groupUpdate":t.cacheDialogs.find((function(e){return e.id==o.id}))&&n("saveDialog",o);break;case"groupExit":case"groupDelete":n("forgetDialog",o.id)}}(i);break;case"project":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveProject",i);break;case"detail":n("getProjectOne",i.id).catch((function(){})),n("getTaskForProject",i.id).catch((function(){}));break;case"archived":case"delete":n("forgetProject",i.id);break;case"sort":n("getTaskForProject",i.id).catch((function(){}))}}(i);break;case"projectColumn":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveColumn",i);break;case"delete":n("forgetColumn",i.id)}}(i);break;case"projectTask":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"restore":n("addTaskSuccess",i);break;case"update":n("saveTask",i);break;case"dialog":n("saveTask",i),n("getDialogOne",i.dialog_id).catch((function(){}));break;case"upload":n("getTaskFiles",i.task_id);break;case"filedelete":n("forgetTaskFile",i.id);break;case"delete":n("forgetTask",i.id)}}(i);break;case"file":!function(e){var t=e.action,i=e.data;switch(t){case"add":case"update":n("saveFile",i);break;case"delete":n("forgetFile",i.id)}}(i)}}}}},websocketSend:function(e,t){var n=e.state;return new Promise((function(e,i){if($A.isJson(t)){var r=t.type,o=t.data,a=t.callback,s=void 0;if(!n.ws)return"function"==typeof a&&a(null,!1),void i();"function"==typeof a&&(s=$A.randomString(16),n.wsCall[s]=a);try{n.ws.send(JSON.stringify({type:r,msgId:s,data:o})),e()}catch(e){"function"==typeof a&&a(null,!1),i(e)}}else i()}))},websocketPath:function(e,t){var n=e.state,i=e.dispatch;clearTimeout(n.wsPathTimeout),n.wsPathValue=t,n.wsPathTimeout=setTimeout((function(){n.wsPathValue==t&&i("websocketSend",{type:"path",data:{path:t}})}),1e3)},websocketMsgListener:function(e,t){var n=e.state,i=t.name,r=t.callback;"function"==typeof r?n.wsListener[i]=r:n.wsListener[i]&&delete n.wsListener[i]},websocketClose:function(e){var t=e.state;t.ws&&(t.ws.close(),t.ws=null)}};r.default.use(o.ZP);const rn=new o.ZP.Store({state:Ht,getters:Ut,mutations:{},actions:nn});function on(e){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function sn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==on(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==on(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===on(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ln={computed:function(e){for(var t=1;tMath.floor(e.offsetWidth),this.showTooltip&&this.existSlot){var i=this.$slots.default.map((function(e){return e.text?e.text:e.elm.innerText?e.elm.innerText:""}));this.tooltipContent=i.join("")}t=null},onClick:function(e){this.$emit("on-click",e)}}};const pn=(0,c.Z)(fn,(function(){var e=this,t=e._self._c;return t("ETooltip",{attrs:{content:e.tipText,placement:e.placement,effect:e.tooltipTheme,delay:e.delay,disabled:e.windowSmall||e.$isEEUiApp||!e.showTooltip||e.disabled,"max-width":e.tooltipMaxWidth,transfer:""}},[t("span",{ref:"content",staticClass:"common-auto-tip",on:{mouseenter:e.handleTooltipIn,click:e.onClick}},[e.existSlot?[e._t("default")]:[e._v(e._s(e.content))]],2)])}),[],!1,null,null,null).exports;const mn={name:"TagInput",props:{value:{default:""},cut:{default:","},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},placeholder:{default:""},max:{default:0},enterkeyhint:{type:String,default:""}},data:function(){var e=[];return this.value.split(",").forEach((function(t){t&&e.push(t)})),{minWidth:80,tis:"",tisTimeout:null,showPlaceholder:!0,content:"",disSource:e,isFocus:!1}},mounted:function(){this.wayMinWidth()},watch:{placeholder:function(){this.wayMinWidth()},value:function(e){var t=[];$A.count(e)>0&&e.split(",").forEach((function(e){e&&t.push(e)})),this.disSource=t},disSource:function(e){var t=this,n="";e.forEach((function(e){""!=n&&(n+=t.cut),n+=e})),this.$emit("input",n),this.$emit("on-change")}},computed:{placeholderText:function(){return this.disSource.length>0?"":this.placeholder}},methods:{focus:function(e){var t=this.$refs.myTextarea;t.focus(e);var n=(e||{}).cursor;if(n){var i=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(i,i);break;default:t.setSelectionRange(0,i)}}},wayMinWidth:function(){var e=this;this.showPlaceholder=!0,this.$nextTick((function(){e.$refs.myPlaceholder&&(e.minWidth=Math.max(e.minWidth,e.$refs.myPlaceholder.offsetWidth)),setTimeout((function(){try{e.minWidth=Math.max(e.minWidth,e.$refs.myPlaceholder.offsetWidth),e.showPlaceholder=!1}catch(e){}$A(e.$refs.myPlaceholder).is(":visible")||e.wayMinWidth()}),500)}))},pasteText:function(e){e.preventDefault();var t=(e.clipboardData||window.clipboardData).getData("text");this.addTag(!1,t)},downEnter:function(e){e.preventDefault()},onFocus:function(e){this.isFocus=!0,this.$emit("on-focus",e)},onBlur:function(e){this.isFocus=!1,this.addTag(!1,this.content),this.$emit("on-blur",e)},onKeyup:function(e){var t=this;this.addTag(e,this.content),this.$emit("on-keyup",e),13===e.keyCode&&this.$nextTick((function(){t.$emit("on-enter",e)}))},addTag:function(e,t){var n=this;if(!1===e||13===e.keyCode)return""!=t.trim()&&-1===this.disSource.indexOf(t.trim())&&this.disSource.push(t.trim()),void(this.content="");if(this.max>0&&this.disSource.length>=this.max)return this.content="",this.tis="最多只能添加"+this.max+"个",clearInterval(this.tisTimeout),void(this.tisTimeout=setTimeout((function(){n.tis=""}),2e3));var i=t.trim(),r=i.length-this.cut.length;""!=i&&i.substring(r)===this.cut&&(""!=(i=i.substring(0,r)).trim()&&-1===this.disSource.indexOf(i.trim())&&this.disSource.push(i.trim()),this.content="")},delTag:function(e){if(!1===e){if(""!==this.content)return;e=this.disSource.length-1}this.disSource.splice(e,1),this.focus()}}};const vn=(0,c.Z)(mn,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"common-tag-input",class:{focus:e.isFocus},on:{paste:function(t){return e.pasteText(t)},click:e.focus}},[e._l(e.disSource,(function(n,i){return t("div",{staticClass:"tags-item"},[t("span",{staticClass:"tags-content",on:{click:function(e){e.stopPropagation()}}},[e._v(e._s(n))]),t("span",{staticClass:"tags-del",on:{click:function(t){return t.stopPropagation(),e.delTag(i)}}},[e._v("×")])])})),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],ref:"myTextarea",staticClass:"tags-input",style:{minWidth:e.minWidth+"px"},attrs:{placeholder:e.tis||e.placeholderText,enterkeyhint:e.enterkeyhint,disabled:e.disabled,readonly:e.readonly},domProps:{value:e.content},on:{keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.downEnter(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.delTag(!1)}],keyup:e.onKeyup,focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.content=t.target.value)}}}),e._v(" "),e.showPlaceholder||""!==e.tis?t("span",{ref:"myPlaceholder",staticClass:"tags-placeholder"},[e._v(e._s(e.tis||e.placeholderText))]):e._e()],2)}),[],!1,null,null,null).exports;var gn=n(3869),bn=n.n(gn);r.default.use(bn());const yn={name:"TableAction",props:{column:{type:Object,default:function(){return{}}},autoWidth:{type:Boolean,default:!0},minWidth:{type:Number,default:80},align:{type:String,default:""},menu:{type:Array,default:function(){return[]}}},data:function(){return{width:0,height:0}},mounted:function(){this.onUpdate()},activated:function(){this.onUpdate()},beforeUpdate:function(){this.onUpdate()},computed:{tdStyle:function(){var e={};switch(this.align.toLowerCase()){case"left":e.justifyContent="flex-start";break;case"center":e.justifyContent="center";break;case"right":e.justifyContent="flex-end"}return e}},methods:{isAliIcon:function(e){return $A.leftExists(e,"&#")},handleIn:function(){this.$refs.action.offsetWidth!=this.width&&this.onUpdate()},onUpdate:function(){this.onResize({width:this.$refs.action.offsetWidth,height:this.$refs.action.offsetHeight})},onResize:function(e){var t=this,n=e.width,i=e.height;if(this.autoWidth){$A(".ivu-table-column-"+this.column.__id).each((function(e,t){var r=$A(t).find(".td-action-container");r.length>0&&(n=Math.max(n,r[0].offsetWidth),i=Math.max(i,r[0].offsetHeight))})),this.width=n,this.height=i;var r=Math.max(this.minWidth,this.width+26);this.column.minWidth&&(r=Math.max(this.column.minWidth,r)),this.column.maxWidth&&(r=Math.min(this.column.maxWidth,r)),r!=this.column.width&&this.$nextTick((function(){t.$set(t.column,"width",r)}))}},onClick:function(e){this.$emit("action",e)}}};const wn=(0,c.Z)(yn,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"td-action",style:e.tdStyle,attrs:{"data-width":e.width,"data-height":e.height}},[t("div",{directives:[{name:"resize",rawName:"v-resize",value:e.onResize,expression:"onResize"}],ref:"action",staticClass:"td-action-container",class:{"td-action-menu":e.menu.length>0},on:{mouseenter:e.handleIn}},[e._t("default"),e._v(" "),e._l(e.menu,(function(n,i){return!0!==n.hidden?t("ETooltip",{key:i,attrs:{placement:"top",disabled:e.windowSmall||e.$isEEUiApp||!n.title,content:n.title,enterable:!1,"open-delay":600}},[n.children&&n.children.length>0?t("EDropdown",{staticClass:"menu-dropdown",attrs:{size:"medium",trigger:"click"},on:{command:e.onClick}},[n.label?t("a",{style:n.style||{},attrs:{href:n.href||"javascript:void(0)",target:n.target||"_self"}},[e._v(e._s(n.label))]):e.isAliIcon(n.icon)?t("i",{staticClass:"taskfont menu-icon",style:n.style||{},domProps:{innerHTML:e._s(n.icon)}}):t("Icon",{staticClass:"menu-icon",style:n.style||{},attrs:{type:n.icon}}),e._v(" "),t("EDropdownMenu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(n.children,(function(n,i){return!0!==n.hidden?t("EDropdownItem",{key:i,style:n.style||{},attrs:{command:n.action,disabled:!!n.disabled,divided:!!n.divided}},[t("div",[e._v(e._s(n.title))])]):e._e()})),1)],1):n.label?t("a",{style:n.style||{},attrs:{href:n.href||"javascript:void(0)",target:n.target||"_self"},on:{click:function(t){return e.onClick(n.action)}}},[e._v(e._s(n.label))]):e.isAliIcon(n.icon)?t("i",{staticClass:"taskfont menu-icon",style:n.style||{},domProps:{innerHTML:e._s(n.icon)},on:{click:function(t){return e.onClick(n.action)}}}):t("Icon",{staticClass:"menu-icon",style:n.style||{},attrs:{type:n.icon},on:{click:function(t){return e.onClick(n.action)}}})],1):e._e()}))],2)])}),[],!1,null,null,null).exports;const _n={name:"QuickEdit",directives:{clickoutside:n(28456).Z},props:{value:{},autoEdit:{},isTag:{type:Boolean,default:!1},alwaysIcon:{type:Boolean,default:!1},clickOutSide:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},data:function(){return{isLoad:!1,isEdit:!1,content:""}},mounted:function(){!0===this.autoEdit&&this.onEdit()},watch:{autoEdit:function(e){!0===e&&setTimeout(this.onEdit,0)}},methods:{onEditChange:function(e){this.isEdit=e,this.$emit("on-edit-change",e)},onEdit:function(){var e=this;this.content=this.value,this.onEditChange(!0),this.$nextTick((function(){e.$refs.input.focus({cursor:"all"})}))},onKeydown:function(e){13===e.keyCode?this.onEnter():27===e.keyCode&&(e.preventDefault(),e.stopPropagation(),this.isEdit=!1,this.isLoad=!1)},onEnter:function(){var e=this;this.content!=this.value?this.isLoad||(this.isLoad=!0,this.$emit("input",this.content),this.$emit("on-update",this.content,(function(){e.onEditChange(!1),e.isLoad=!1}))):this.onEditChange(!1)},onClickOut:function(){this.clickOutSide&&this.onEnter()},onBlur:function(){!this.clickOutSide&&this.isEdit&&this.onEnter()}}};const xn=(0,c.Z)(_n,(function(){var e=this,t=e._self._c;return t("div",{staticClass:"quick-edit",class:[e.alwaysIcon?"quick-always":""]},[e.isEdit?t("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.onClickOut,expression:"onClickOut"}],staticClass:"quick-input"},[e.isTag?t("TagInput",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}):t("Input",{ref:"input",attrs:{disabled:e.isLoad,enterkeyhint:"done"},on:{"on-keydown":e.onKeydown,"on-blur":e.onBlur},model:{value:e.content,callback:function(t){e.content=t},expression:"content"}}),e._v(" "),e.isLoad?t("div",{staticClass:"quick-loading"},[t("Loading")],1):e._e()],1):[t("div",{staticClass:"quick-text"},[e._t("default")],2),e._v(" "),e.disabled?e._e():t("Icon",{staticClass:"quick-icon",attrs:{type:"ios-create-outline"},on:{click:function(t){return t.stopPropagation(),e.onEdit.apply(null,arguments)}}})]],2)}),[],!1,null,null,null).exports;function kn(e){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kn(e)}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Sn(e){for(var t=1;t0&&(e.border=t+"px solid "+(n||"#ffffff")),e},spotStyle:function(){var e=this.borderWitdh,t=this.size;return"default"===t&&(t=32),e>0&&(t-=e),32==t?{}:{transform:"scale("+Math.min(1.25,t/32)+")"}},nameStyle:function(){var e=this.showIcon,t=this.user,n=t.delete_at,i=t.disable_at,r={};return e||(r.marginLeft=0),(n||i)&&(r.opacity=.8,r.textDecoration="line-through"),r},avatarSize:function(){var e=this.borderWitdh,t=this.size;return"default"===t&&(t=32),e>0?t-2*e:t},showImg:function(){var e=this.user.userimg;return!!e&&!$A.rightExists(e,"/avatar.png")},showMenu:function(){return this.userId!=this.userid&&(!this.user.delete_at&&!this.user.disable_at&&this.showIconMenu)},isDefault:function(){var e=this.user.userimg;return $A.strExists(e,"/avatar")},isBot:function(){return!(!this.user||!this.user.bot)},nickname:function(){var e=this.user.nickname;if(!e)return"D";var t=e.substring(0,2);return/^[\u4e00-\u9fa5]+$/.test(t)&&(t=t.substring(0,1)),t||"D"}}),watch:{userid:function(){this.getData()},userInfo:function(e){e.userid==this.userid&&this.setUser(e)},userOnline:function(e){this.user&&void 0!==e[this.user.userid]&&this.$set(this.user,"online",e[this.user.userid])},"user.online":function(e){if(e||this.userId===this.userid)this.$emit("update:online",!0);else{var t=$A.Time(),n=$A.Time(this.user.line_at),i=t-n,r="最后在线于很久以前";if(i<60)r="最后在线于刚刚";else if(i<3600)r="最后在线于 ".concat(Math.floor(i/60)," 分钟前");else if(i<21600)r="最后在线于 ".concat(Math.floor(i/3600)," 小时前");else{var o=$A.formatDate("Y-m-d",t),a=$A.formatDate("Y-m-d",n),s=$A.formatDate("H:i",n);o===a?r="最后在线于今天 ".concat(s):$A.formatDate("Y-m-d",t-86400)===a?r="最后在线于昨天 ".concat(s):i<31536e3&&(r="最后在线于 ".concat(a))}this.$emit("update:online",this.$L(r))}}},methods:{getData:function(){var e=this;if(this.userid)if(this.userid!=this.userInfo.userid){var t=this.cacheUserBasic.find((function(t){return t.userid==e.userid}));t&&this.setUser(t),this.$store.dispatch("getUserBasic",{userid:this.userid})}else this.setUser(this.userInfo)},setUser:function(e){try{this.user&&this.user.userimg!=e.userimg&&this.$refs.avatar&&(this.$refs.avatar.$data.isImageExist=!0)}catch(e){}this.user=e,this.userResult(e)},onClickOpen:function(){this.clickOpenDialog&&this.openDialog()},openDialog:function(){this.$store.dispatch("openDialogUserid",this.userid)},onError:function(){return!0}}};const En=(0,c.Z)(Tn,(function(){var e=this,t=e._self._c;return e.user?t("ETooltip",{staticClass:"common-avatar",attrs:{"open-delay":e.openDelay,disabled:e.windowSmall||e.$isEEUiApp||e.tooltipDisabled||e.isBot,placement:e.tooltipPlacement}},[t("div",{staticClass:"common-avatar-transfer",attrs:{slot:"content"},slot:"content"},[e._t("default"),e._v(" "),t("p",[e._v(e._s(e.$L("昵称"))+": "+e._s(e.user.nickname)),e.user.delete_at?t("em",{staticClass:"deleted no-dark-content"},[e._v(e._s(e.$L("已删除")))]):e.user.disable_at?t("em",{staticClass:"disabled no-dark-content"},[e._v(e._s(e.$L("已离职")))]):e._e()]),e._v(" "),t("p",{staticClass:"department-name",attrs:{title:e.user.department_name||""}},[e._v(e._s(e.$L("部门"))+": "+e._s(e.user.department_name||"-"))]),e._v(" "),t("p",[e._v(e._s(e.$L("职位/职称"))+": "+e._s(e.user.profession||"-"))]),e._v(" "),e.user.delete_at?t("p",[t("strong",[e._v(e._s(e.$L("删除时间"))+": "+e._s(e.user.delete_at))])]):e.user.disable_at?t("p",[t("strong",[e._v(e._s(e.$L("离职时间"))+": "+e._s(e.user.disable_at))])]):e._e(),e._v(" "),e._t("end"),e._v(" "),e.showMenu?t("div",{staticClass:"avatar-icons"},[t("Icon",{attrs:{type:"ios-chatbubbles"},on:{click:e.openDialog}})],1):e._e()],2),e._v(" "),t("div",{staticClass:"avatar-wrapper",class:{"avatar-pointer":e.clickOpenDialog},on:{click:e.onClickOpen}},[e.showIcon?t("div",{class:e.boxClass,style:e.boxStyle},[t("em",{style:e.spotStyle}),e._v(" "),e.showImg?t("EAvatar",{ref:"avatar",class:{"avatar-default":e.isDefault},attrs:{src:e.user.userimg,size:e.avatarSize,error:e.onError}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])]):t("EAvatar",{staticClass:"avatar-text",attrs:{size:e.avatarSize}},[t("span",{staticClass:"avatar-char",style:e.spotStyle},[e._v(e._s(e.nickname))])])],1):e._e(),e._v(" "),e.showName?t("div",{staticClass:"avatar-name",style:e.nameStyle},[e.user.bot?t("div",{staticClass:"taskfont bot"},[e._v("")]):e._e(),e._v(" "),t("span",[e._v(e._s(e.nameText||e.user.nickname))])]):e._e()])]):e._e()}),[],!1,null,null,null).exports;const Dn={name:"ImgView",props:{src:{default:""},alt:{default:""}},computed:{srcValue:function(){var e=this.src;return"data:image"===e.substring(0,10)||"//"===e.substring(0,2)||"http://"===e.substring(0,7)||"https://"===e.substring(0,8)||"ftp://"===e.substring(0,6)||"/"===e.substring(0,1)?e:$A.apiUrl("../".concat(e))}}};const $n=(0,c.Z)(Dn,(function(){var e=this;return(0,e._self._c)("img",{attrs:{src:e.srcValue,alt:e.alt}})}),[],!1,null,null,null).exports;var Mn=n(64720),Pn=window&&window.process&&window.process.type,In=window&&window.navigator&&/eeui/i.test(window.navigator.userAgent);r.default.use(o.ZP),r.default.use(zt(),{modal:{checkEscClose:!0}}),r.default.use(Bt(),{config:{autoSetContainer:!0}}),r.default.use(Lt),r.default.component("PageTitle",cn),r.default.component("Loading",hn),r.default.component("AutoTip",pn),r.default.component("TagInput",vn),r.default.component("TableAction",wn),r.default.component("QuickEdit",xn),r.default.component("UserAvatar",En),r.default.component("ImgView",$n),r.default.component("EAvatar",Mn.Avatar),r.default.component("ETooltip",Mn.Tooltip),r.default.component("EPopover",Mn.Popover),r.default.component("EDropdown",Mn.Dropdown),r.default.component("EDropdownMenu",Mn.DropdownMenu),r.default.component("EDropdownItem",Mn.DropdownItem);var jn=Lt.prototype.push;Lt.prototype.push=function(e){return jn.call(this,e).catch((function(e){return e}))};var An,Nn=new Lt({mode:Pn||In?"hash":"history",routes:U});Pn||In||(zt().LoadingBar.config({color:"#3fcc25",failedColor:"#ff0000"}),Nn.beforeEach((function(e,t,n){zt().LoadingBar._timer&&clearTimeout(zt().LoadingBar._timer),zt().LoadingBar._timer=setTimeout((function(e){zt().LoadingBar._load=!0,zt().LoadingBar.start()}),300),n()})),Nn.afterEach((function(){zt().LoadingBar._timer&&clearTimeout(zt().LoadingBar._timer),!0===zt().LoadingBar._load&&(zt().LoadingBar._load=!1,zt().LoadingBar.finish())}))),r.default.prototype.goForward=function(e,t){"string"==typeof e&&(e={name:e}),0===An.$store.state.routeHistorys.length&&An.$store.state.routeHistorys.push(An.$route),!0===t?An.$router.replace(e).then((function(e){An.$store.state.routeHistorys.pop(),An.$store.state.routeHistorys.push(e)})).catch((function(e){})):An.$router.push(e).then((function(e){var t=An.$store.state.routeHistorys.push(e);t>120&&An.$store.state.routeHistorys.splice(t-100),An.$store.state.routeHistoryLast=t>=2?An.$store.state.routeHistorys[t-2]:{}})).catch((function(e){}))},r.default.prototype.goBack=function(){if(An.$store.state.routeHistorys.length>1){An.$router.back(),An.$store.state.routeHistorys.pop();var e=An.$store.state.routeHistorys.length;An.$store.state.routeHistoryLast=e>=2?An.$store.state.routeHistorys[e-2]:{}}else An.$router.replace({path:"/"}).catch((function(e){})),An.$store.state.routeHistorys=[],An.$store.state.routeHistoryLast={}},$A.L=i.V8,$A.Electron=null,$A.Platform="web",$A.isMainElectron=!1,$A.isSubElectron=!1,$A.isEEUiApp=In,$A.openLog=!1,Pn&&($A.Electron=electron,$A.Platform=/macintosh|mac os x/i.test(navigator.userAgent)?"mac":"win",$A.isMainElectron=/\s+MainTaskWindow\//.test(window.navigator.userAgent),$A.isSubElectron=/\s+SubTaskWindow\//.test(window.navigator.userAgent)),$A.execMainDispatch=function(e,t){$A.isSubElectron&&$A.Electron.sendMessage("sendForwardMain",{channel:"dispatch",data:{action:e,data:t}})},window.execMainCacheData={},$A.execMainCacheJudge=function(e){var t=window.execMainCacheData[e]||!1;return window.execMainCacheData[e]=!0,t},$A.bindScreenshotKey=function(e){var t="",n=(e.screenshot_key||"").trim().toLowerCase();n&&(e.screenshot_mate||e.screenshot_shift)&&(e.screenshot_mate&&(t=/macintosh|mac os x/i.test(navigator.userAgent)?"command":"ctrl"),e.screenshot_shift&&(t="".concat(t?"".concat(t,"+"):"","shift")),t="".concat(t,"+").concat(n.toLowerCase())),$A.Electron.sendMessage("bindScreenshotKey",{key:t})},r.default.prototype.$A=$A,r.default.prototype.$L=i.V8,r.default.prototype.$Electron=$A.Electron,r.default.prototype.$Platform=$A.Platform,r.default.prototype.$isMainElectron=$A.isMainElectron,r.default.prototype.$isSubElectron=$A.isSubElectron,r.default.prototype.$isEEUiApp=$A.isEEUiApp,r.default.config.productionTip=!1,r.default.mixin(ln),rn.dispatch("init").then((function(e){An=new r.default({el:"#app",router:Nn,store:rn,template:"",components:{App:q}}),$A.goForward=An.goForward,$A.goBack=An.goBack,$A.Message=An.$Message,$A.Notice=An.$Notice,$A.Modal=An.$Modal}))},18728:e=>{e.exports=function(e){var t={begin:"`[\\s\\S]"};return{case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},96656:e=>{e.exports=function(e){var t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},i={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,i,r,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[i,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},i,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,i,r]}]}]}}},31561:e=>{e.exports=function(e){var t={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},9779:e=>{e.exports=function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],keywords:t,illegal:"{e.exports=function(e){var t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n=t+"(<"+t+"(\\s*,\\s*"+t+")*>)?",i="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",r={className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0};return{aliases:["jsp"],keywords:i,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+n+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:i,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:i,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r,{className:"meta",begin:"@[A-Za-z]+"}]}}},367:e=>{e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},o={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,r],subLanguage:"css"}},s={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,i,e.REGEXP_MODE];var l=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:n,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,a,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:l}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:l}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},17415:e=>{e.exports=function(e){var t="[\\w-]+",n="("+t+"|@{"+t+"})",i=[],r=[],o=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},a=function(e,t,n){return{className:e,begin:t,relevance:n}},s={begin:"\\(",end:"\\)",contains:r,relevance:0};r.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o("'"),o('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a("number","#[0-9A-Fa-f]+\\b"),s,a("variable","@@?"+t,10),a("variable","@{"+t+"}"),a("built_in","~?`[^`]*?`"),{className:"attribute",begin:t+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var l=r.concat({begin:"{",end:"}",contains:i}),u={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(r)},c={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:r}}]},d={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:r,relevance:0}},h={className:"variable",variants:[{begin:"@"+t+"\\s*:",relevance:15},{begin:"@"+t}],starts:{end:"[;}]",returnEnd:!0,contains:l}},f={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u,a("keyword","all\\b"),a("variable","@{"+t+"}"),a("selector-tag",n+"%?",0),a("selector-id","#"+n),a("selector-class","\\."+n,0),a("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:l},{begin:"!important"}]};return i.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,h,c,f),{case_insensitive:!0,illegal:"[=>'/<($\"]",contains:i}}},11521:e=>{e.exports=function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^\\s*([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}|\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},13591:e=>{e.exports=function(e){var t={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={className:"meta",begin:/<\?(php)?|\?>/},i={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,r]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},i,r]}}},803:e=>{e.exports=function(e){var t={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},n={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,i]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,i]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},o={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},a={className:"params",begin:/\(/,end:/\)/,contains:["self",n,o,r]};return i.contains=[r,o,n],{aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,o,r,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,a,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}},44719:e=>{e.exports=function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",n={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"},i={className:"meta",begin:"@"+t},r={begin:"\\(",end:/\)/,keywords:n,contains:["self",e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.NUMBER_MODE]},o={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,r]},a={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},l={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"xml"}},u={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"css"}},c={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};return s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,c,a,e.REGEXP_MODE],{aliases:["ts"],keywords:n,contains:[{className:"meta",begin:/^\s*['"]use strict['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,u,c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+e.IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.IDENT_RE},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}]}]}],relevance:0},{className:"function",begin:"function",end:/[\{;]/,excludeEnd:!0,keywords:n,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),o],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0,contains:["self",o]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+e.IDENT_RE,relevance:0},i,r]}}},85835:e=>{e.exports=function(e){var t={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:"|$)",end:">",keywords:{name:"style"},contains:[t],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"|$)",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml","vbscript"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},50337:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i={add:function(e,t){var n="toc".concat(t).concat(++this.index),i={anchor:n,level:t,text:e},r=this.tocItems;return i.level<=5&&r.push(i),n},reset:function(){this.tocItems=[],this.index=0},tocItems:[],index:0}},43760:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Ce});var i={},r=[],o=Object.keys,a={},s={},l=/^(no-?highlight|plain|text)$/i,u=/\blang(?:uage)?-([\w-]+)\b/i,c=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,d="",h={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function f(e){return e.replace(/&/g,"&").replace(//g,">")}function p(e){return e.nodeName.toLowerCase()}function m(e,t){var n=e&&e.exec(t);return n&&0===n.index}function v(e){return l.test(e)}function g(e){var t,n={},i=Array.prototype.slice.call(arguments,1);for(t in e)n[t]=e[t];return i.forEach((function(e){for(t in e)n[t]=e[t]})),n}function b(e){var t=[];return function e(n,i){for(var r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?i+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:i,node:r}),i=e(r,i),p(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:r}));return i}(e,0),t}function y(e){function t(e){return e&&e.source||e}function n(n,i){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(i?"g":""))}!function i(r,a){if(!r.compiled){if(r.compiled=!0,r.keywords=r.keywords||r.beginKeywords,r.keywords){var s={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach((function(e){var n=e.split("|");s[n[0]]=[t,n[1]?Number(n[1]):1]}))};"string"==typeof r.keywords?l("keyword",r.keywords):o(r.keywords).forEach((function(e){l(e,r.keywords[e])})),r.keywords=s}r.lexemesRe=n(r.lexemes||/\w+/,!0),a&&(r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")\\b"),r.begin||(r.begin=/\B|\b/),r.beginRe=n(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(r.endRe=n(r.end)),r.terminator_end=t(r.end)||"",r.endsWithParent&&a.terminator_end&&(r.terminator_end+=(r.end?"|":"")+a.terminator_end)),r.illegal&&(r.illegalRe=n(r.illegal)),null==r.relevance&&(r.relevance=1),r.contains||(r.contains=[]),r.contains=Array.prototype.concat.apply([],r.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(t){return g(e,{variants:null},t)}))),e.cached_variants||e.endsWithParent&&[g(e)]||[e]}("self"===e?r:e)}))),r.contains.forEach((function(e){i(e,r)})),r.starts&&i(r.starts,a);var u=r.contains.map((function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin})).concat([r.terminator_end,r.illegal]).map(t).filter(Boolean);r.terminators=u.length?n(function(e,n){for(var i=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,o="",a=0;a0&&(o+=n);l.length>0;){var u=i.exec(l);if(null==u){o+=l;break}o+=l.substring(0,u.index),l=l.substring(u.index+u[0].length),"\\"==u[0][0]&&u[1]?o+="\\"+String(Number(u[1])+s):(o+=u[0],"("==u[0]&&r++)}}return o}(u,"|"),!0):{exec:function(){return null}}}}(e)}function w(e,t,n,i){function r(e){return new RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function o(e,t){if(m(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}if(e.endsWithParent)return o(e.parent,t)}function s(e,t){var n=v.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function l(e,t,n,i){var r='')+t+(n?"":d):t}function u(){k+=null!=b.subLanguage?function(){var e="string"==typeof b.subLanguage;if(e&&!a[b.subLanguage])return f(C);var t=e?w(b.subLanguage,C,!0,x[b.subLanguage]):_(C,b.subLanguage.length?b.subLanguage:void 0);return b.relevance>0&&(O+=t.relevance),e&&(x[b.subLanguage]=t.top),l(t.language,t.value,!1,!0)}():function(){var e,t,n,i;if(!b.keywords)return f(C);for(i="",t=0,b.lexemesRe.lastIndex=0,n=b.lexemesRe.exec(C);n;)i+=f(C.substring(t,n.index)),(e=s(b,n))?(O+=e[1],i+=l(e[0],f(n[0]))):i+=f(n[0]),t=b.lexemesRe.lastIndex,n=b.lexemesRe.exec(C);return i+f(C.substr(t))}(),C=""}function c(e){k+=e.className?l(e.className,"",!0):"",b=Object.create(e,{parent:{value:b}})}function p(e,t){if(C+=e,null==t)return u(),0;var i=function(e,t){var n,i;for(n=0,i=t.contains.length;n")+'"');return C+=t,t.length||1}var v=S(e);if(!v)throw new Error('Unknown language: "'+e+'"');y(v);var g,b=i||v,x={},k="";for(g=b;g!==v;g=g.parent)g.className&&(k=l(g.className,"",!0)+k);var C="",O=0;try{for(var T,E,D=0;b.terminators.lastIndex=D,T=b.terminators.exec(t);)E=p(t.substring(D,T.index),T[0]),D=T.index+E;for(p(t.substr(D)),g=b;g.parent;g=g.parent)g.className&&(k+=d);return{relevance:O,value:k,language:e,top:b}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:f(t)};throw e}}function _(e,t){t=t||h.languages||o(a);var n={relevance:0,value:f(e)},i=n;return t.filter(S).filter(O).forEach((function(t){var r=w(t,e,!1);r.language=t,r.relevance>i.relevance&&(i=r),r.relevance>n.relevance&&(i=n,n=r)})),i.language&&(n.second_best=i),n}function x(e){return h.tabReplace||h.useBR?e.replace(c,(function(e,t){return h.useBR&&"\n"===e?"
":h.tabReplace?t.replace(/\t/g,h.tabReplace):""})):e}function k(e){var t,n,i,o,a,l=function(e){var t,n,i,r,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",n=u.exec(o))return S(n[1])?n[1]:"no-highlight";for(t=0,i=(o=o.split(/\s+/)).length;t/g,"\n"):t=e,a=t.textContent,i=l?w(l,a,!0):_(a),(n=b(t)).length&&((o=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=i.value,i.value=function(e,t,n){var i=0,o="",a=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function u(e){o+=""}function c(e){("start"===e.event?l:u)(e.node)}for(;e.length||t.length;){var d=s();if(o+=f(n.substring(i,d[0].offset)),i=d[0].offset,d===e){a.reverse().forEach(u);do{c(d.splice(0,1)[0]),d=s()}while(d===e&&d.length&&d[0].offset===i);a.reverse().forEach(l)}else"start"===d[0].event?a.push(d[0].node):a.pop(),c(d.splice(0,1)[0])}return o+f(n.substr(i))}(n,b(o),a)),i.value=x(i.value),e.innerHTML=i.value,e.className=function(e,t,n){var i=t?s[t]:n,r=[e.trim()];return e.match(/\bhljs\b/)||r.push("hljs"),-1===e.indexOf(i)&&r.push(i),r.join(" ").trim()}(e.className,l,i.language),e.result={language:i.language,re:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance}))}function C(){if(!C.called){C.called=!0;var e=document.querySelectorAll("pre code");r.forEach.call(e,k)}}function S(e){return e=(e||"").toLowerCase(),a[e]||a[s[e]]}function O(e){var t=S(e);return t&&!t.disableAutodetect}i.highlight=w,i.highlightAuto=_,i.fixMarkup=x,i.highlightBlock=k,i.configure=function(e){h=g(h,e)},i.initHighlighting=C,i.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",C,!1),addEventListener("load",C,!1)},i.registerLanguage=function(e,t){var n=a[e]=t(i);n.aliases&&n.aliases.forEach((function(t){s[t]=e}))},i.listLanguages=function(){return o(a)},i.getLanguage=S,i.autoDetection=O,i.inherit=g,i.IDENT_RE="[a-zA-Z]\\w*",i.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",i.NUMBER_RE="\\b\\d+(\\.\\d+)?",i.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",i.BINARY_NUMBER_RE="\\b(0b[01]+)",i.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",i.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},i.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},i.COMMENT=function(e,t,n){var r=i.inherit({className:"comment",begin:e,end:t,contains:[]},n||{});return r.contains.push(i.PHRASAL_WORDS_MODE),r.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),r},i.C_LINE_COMMENT_MODE=i.COMMENT("//","$"),i.C_BLOCK_COMMENT_MODE=i.COMMENT("/\\*","\\*/"),i.HASH_COMMENT_MODE=i.COMMENT("#","$"),i.NUMBER_MODE={className:"number",begin:i.NUMBER_RE,relevance:0},i.C_NUMBER_MODE={className:"number",begin:i.C_NUMBER_RE,relevance:0},i.BINARY_NUMBER_MODE={className:"number",begin:i.BINARY_NUMBER_RE,relevance:0},i.CSS_NUMBER_MODE={className:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},i.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[i.BACKSLASH_ESCAPE]}]},i.TITLE_MODE={className:"title",begin:i.IDENT_RE,relevance:0},i.UNDERSCORE_TITLE_MODE={className:"title",begin:i.UNDERSCORE_IDENT_RE,relevance:0},i.METHOD_GUARD={begin:"\\.\\s*"+i.UNDERSCORE_IDENT_RE,relevance:0};const T=i;var E=n(367),D=n.n(E),$=n(57238),M=n.n($),P=n(31561),I=n.n(P),j=n(17415),A=n.n(j),N=n(9779),L=n.n(N),F=n(11521),R=n.n(F),B=n(13591),V=n.n(B),z=n(803),H=n.n(z),W=n(44719),q=n.n(W),U=n(85835),K=n.n(U),G=n(18728),Y=n.n(G),J=n(96656),Z=n.n(J),X={javascript:D(),java:M(),css:I(),less:A(),markdown:R(),go:L(),php:V(),python:H(),typescript:q(),xml:K(),autohotkey:Y(),auto:Z()};Object.keys(X).forEach((function(e){T.registerLanguage(e,X[e])}));const Q=T;var ee=n(50337);void 0===window._goTocAction&&(window._goTocAction=function(e,t,n){var i=$A(e).parents(".markdown-preview");if(i){var r=i.find("h"+t+'[toc-id="'+n+'"]');r&&i.animate({scrollTop:r.offset().top-i.offset().top+i.scrollTop()})}});var te={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:me,table:me,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function ne(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_e.defaults,this.rules=te.normal,this.options.pedantic?this.rules=te.pedantic:this.options.gfm&&(this.rules=te.gfm)}te._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,te._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,te.def=de(te.def).replace("label",te._label).replace("title",te._title).getRegex(),te.bullet=/(?:[*+-]|\d{1,9}\.)/,te.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,te.item=de(te.item,"gm").replace(/bull/g,te.bullet).getRegex(),te.list=de(te.list).replace(/bull/g,te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+te.def.source+")").getRegex(),te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te._comment=//,te.html=de(te.html,"i").replace("comment",te._comment).replace("tag",te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),te.paragraph=de(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",te._tag).getRegex(),te.blockquote=de(te.blockquote).replace("paragraph",te.paragraph).getRegex(),te.normal=ve({},te),te.gfm=ve({},te.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),te.pedantic=ve({},te.normal,{html:de("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:me,paragraph:de(te.normal._paragraph).replace("hr",te.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),ne.rules=te,ne.lex=function(e,t){return new ne(t).lex(e)},ne.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},ne.prototype.token=function(e,t){var n,i,r,o,a,s,l,u,c,d,h,f,p,m,v,g;for(e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e)){var b=this.tokens[this.tokens.length-1];e=e.substring(r[0].length),b&&"paragraph"===b.type?b.text+="\n"+r[0].trimRight():(r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?r:be(r,"\n")}))}else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2]?r[2].trim():r[2],text:r[3]||""});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if((r=this.rules.nptable.exec(e))&&(s={type:"table",header:ge(r[1].replace(/^ *| *\| *$/g,"")),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3]?r[3].replace(/\n$/,"").split("\n"):[]}).header.length===s.align.length){for(e=e.substring(r[0].length),h=0;h ?/gm,""),this.token(r,t),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),l={type:"list_start",ordered:m=(o=r[2]).length>1,start:m?+o:"",loose:!1},this.tokens.push(l),u=[],n=!1,p=(r=r[0].match(this.rules.item)).length,h=0;h1?1===a.length:a.length>1||this.options.smartLists&&a!==o)&&(e=r.slice(h+1).join("\n")+e,h=p-1)),i=n||/\n\n(?!\s*$)/.test(s),h!==p-1&&(n="\n"===s.charAt(s.length-1),i||(i=n)),i&&(l.loose=!0),g=void 0,(v=/^\[[ xX]\] /.test(s))&&(g=" "!==s[1],s=s.replace(/^\[[ xX]\] +/,"")),c={type:"list_item_start",task:v,checked:g,loose:i},u.push(c),this.tokens.push(c),this.token(s,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(p=u.length,h=0;h?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:me,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",ie.em=de(ie.em).replace(/punctuation/g,ie._punctuation).getRegex(),ie._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ie._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ie._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,ie.autolink=de(ie.autolink).replace("scheme",ie._scheme).replace("email",ie._email).getRegex(),ie._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ie.tag=de(ie.tag).replace("comment",te._comment).replace("attribute",ie._attribute).getRegex(),ie._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ie._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,ie._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ie.link=de(ie.link).replace("label",ie._label).replace("href",ie._href).replace("title",ie._title).getRegex(),ie.reflink=de(ie.reflink).replace("label",ie._label).getRegex(),ie.normal=ve({},ie),ie.pedantic=ve({},ie.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:de(/^!?\[(label)\]\((.*?)\)/).replace("label",ie._label).getRegex(),reflink:de(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ie._label).getRegex()}),ie.gfm=ve({},ie.normal,{escape:de(ie.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(o[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(o[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(o[0])&&(this.inRawBlock=!1),e=e.substring(o[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):ue(o[0]):o[0];else if(o=this.rules.link.exec(e)){var l=ye(o[2],"()");if(l>-1){var u=4+o[1].length+l;o[2]=o[2].substring(0,l),o[0]=o[0].substring(0,u).trim(),o[3]=""}e=e.substring(o[0].length),this.inLink=!0,i=o[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i))?(i=t[1],r=t[3]):r="":r=o[3]?o[3].slice(1,-1):"",i=i.trim().replace(/^<([\s\S]*)>$/,"$1"),s+=this.outputLink(o,{href:re.escapes(i),title:re.escapes(r)}),this.inLink=!1}else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){s+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),s+=this.renderer.strong(this.output(o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),s+=this.renderer.em(this.output(o[6]||o[5]||o[4]||o[3]||o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),s+=this.renderer.codespan(ue(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),s+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),s+=this.renderer.del(this.output(o[1]));else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),i="@"===o[2]?"mailto:"+(n=ue(this.mangle(o[1]))):n=ue(o[1]),s+=this.renderer.link(i,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.inRawBlock?s+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):ue(o[0]):o[0]):s+=this.renderer.text(ue(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===o[2])i="mailto:"+(n=ue(o[0]));else{do{a=o[0],o[0]=this.rules._backpedal.exec(o[0])[0]}while(a!==o[0]);n=ue(o[0]),i="www."===o[1]?"http://"+n:n}e=e.substring(o[0].length),s+=this.renderer.link(i,null,n)}return s},re.escapes=function(e){return e?e.replace(re.rules._escapes,"$1"):e},re.prototype.outputLink=function(e,t){var n=t.href,i=t.title?ue(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,ue(e[1]))},re.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},re.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,r=0;r.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},oe.prototype.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,i);null!=r&&r!==e&&(n=!0,e=r)}return i?'
'+(n?e:ue(e,!0))+"
\n":"
"+(n?e:ue(e,!0))+"
"},oe.prototype.blockquote=function(e){return"
\n"+e+"
\n"},oe.prototype.html=function(e){return e},oe.prototype.heading=function(e,t,n,i){var r=ee.Z.add(e,t);return this.options.headerIds?"'+e+"\n":"'+e+"\n"},oe.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},oe.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},oe.prototype.listitem=function(e){var t="";return/\/.test(e)&&(t="list-item-checkbox",/checked/.test(e)&&(t+=" list-item-checkbox-checked")),'
  • ').concat(e,"
  • \n")},oe.prototype.checkbox=function(e){return" "},oe.prototype.paragraph=function(e){return"

    "+e+"

    \n"},oe.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},oe.prototype.tablerow=function(e){return"\n"+e+"\n"},oe.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},oe.prototype.strong=function(e){return""+e+""},oe.prototype.em=function(e){return""+e+""},oe.prototype.codespan=function(e){return""+e+""},oe.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},oe.prototype.del=function(e){return""+e+""},oe.prototype.link=function(e,t,n){if(null===(e=he(this.options.sanitize,this.options.baseUrl,e)))return n;var i='"},oe.prototype.image=function(e,t,n){if(null===(e=he(this.options.sanitize,this.options.baseUrl,e)))return n;var i=''+n+'":">"},oe.prototype.text=function(e){return e},ae.prototype.strong=ae.prototype.em=ae.prototype.codespan=ae.prototype.del=ae.prototype.text=function(e){return e},ae.prototype.link=ae.prototype.image=function(e,t,n){return""+n},ae.prototype.br=function(){return""},se.parse=function(e,t){return new se(t).parse(e)},se.prototype.parse=function(e){this.inline=new re(e.links,this.options),this.inlineText=new re(e.links,ve({},this.options,{renderer:new ae})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},se.prototype.next=function(){return this.token=this.tokens.pop(),this.token},se.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},se.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},se.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ce(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,r="",o="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},ue.escapeTest=/[&<>"']/,ue.escapeReplace=/[&<>"']/g,ue.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},ue.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,ue.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var fe={},pe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function me(){}function ve(e){for(var t,n,i=1;i=0&&"\\"===n[r];)i=!i;return i?"|":" |"})).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+ue(e.message+"",!0)+"
    ";throw e}}me.exec=me,_e.options=_e.setOptions=function(e){return ve(_e.defaults,e),_e},_e.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new oe,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_e.defaults=_e.getDefaults(),_e.Parser=se,_e.parser=se.parse,_e.Renderer=oe,_e.TextRenderer=ae,_e.Lexer=ne,_e.lexer=ne.lex,_e.InlineLexer=re,_e.inlineLexer=re.output,_e.Slugger=le,_e.parse=_e;const xe=_e;Q.initHighlightingOnLoad();var ke=new xe.Renderer;const Ce=xe.setOptions({renderer:ke,gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,smartLists:!0,highlight:function(e){return Q.highlightAuto(e).value}})},28456:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i={bind:function(e,t,n){function i(n){if(e.contains(n.target))return!1;t.expression&&t.value(n)}e.__vueClickOutside__=i,document.addEventListener("click",i)},update:function(){},unbind:function(e,t){document.removeEventListener("click",e.__vueClickOutside__),delete e.__vueClickOutside__}}},26029:(e,t,n)=>{function i(){"use strict";i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function d(e,t,n,i){var o=t&&t.prototype instanceof p?t:p,a=Object.create(o.prototype),s=new T(i||[]);return r(a,"_invoke",{value:k(e,n,s)}),a}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=d;var f={};function p(){}function m(){}function v(){}var g={};c(g,s,(function(){return this}));var b=Object.getPrototypeOf,y=b&&b(b(E([])));y&&y!==t&&n.call(y,s)&&(g=y);var w=v.prototype=p.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(r,o,s,l){var u=h(e[r],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==a(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,l)}),(function(e){i("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return i("throw",e,s,l)}))}l(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function k(e,t,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=h(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=h(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function E(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function r(e,t,n,i,r,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,l,"next",e)}function l(e){r(a,i,o,s,l,"throw",e)}s(void 0)}))}}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var s=n(69483);!function(e,t,n){e.systemInfo=e.systemInfo||{},e.modalTransferIndex=1e3,s.config({name:"DooTask",storeName:"common"}),t.extend({isArray:function(e){return"object"==a(e)&&"[object array]"==Object.prototype.toString.call(e).toLowerCase()&&"number"==typeof e.length},isJson:function(e){return"object"==a(e)&&"[object object]"==Object.prototype.toString.call(e).toLowerCase()&&void 0===e.length},inArray:function(e,t){return!!this.isArray(t)&&t.includes(e)},randNum:function(e,t){var n=t-e,i=Math.random();return e+Math.round(i*n)},last:function(e){var t=!1;return"object"===a(e)&&e.length>0&&(t=e[e.length-1]),t},strExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),-1!==e.indexOf(t)},leftExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(0,t.length)===t},leftDelete:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",this.leftExists(e,t,i)&&(e=e.substring(t.length)),e||""},rightExists:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",!0!==i&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(e.length-t.length)===t},rightDelete:function(e,t){var i=arguments.length>2&&arguments[2]!==n&&arguments[2];return e+="",t+="",this.rightExists(e,t,i)&&(e=e.substring(0,e.length-t.length)),e||""},getMiddle:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:null,i=arguments.length>2&&arguments[2]!==n?arguments[2]:null;return e=e.toString(),this.isHave(t)&&this.strExists(e,t)&&(e=e.substring(e.indexOf(t)+t.length)),this.isHave(i)&&this.strExists(e,i)&&(e=e.substring(0,e.indexOf(i))),e},subString:function(e,t,n){return e+="",this.isHave(n)||(n=e.length),e.substring(t,n)},randomString:function(e){e=e||32;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",n=t.length,i="",r=0;r1&&arguments[1]!==n?arguments[1]:null,i=Number(e);if(i+""=="NaN"&&(i=0),t&&/^[0-9]*[1-9][0-9]*$/.test(t)){var r=(i=i.toFixed(t)).indexOf(".");if(r<0){i+=".";for(var o=0;o0&&arguments[0]!==n?arguments[0]:n;return"string"==typeof t&&this.strExists(t,"-")?(t=t.replace(/-/g,"/"),e=new Date(t).getTime()):e=(new Date).getTime(),Math.round(e/1e3)},Date:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){var t=arguments.length>1&&arguments[1]!==n&&arguments[1];return"string"==typeof e&&this.strExists(e,"-")&&(e=e.replace(/-/g,"/")),!0===t?Math.round(new Date(e).getTime()/1e3):new Date(e)})),zeroFill:function(e,t,n){if((e+="").length>=t)return e;for(var i="",r=0;r86400){var i=Math.floor(n/86400),r=Math.ceil((n-86400*i)/3600);return r>0?i+"天"+r+"小时":i+"天"}return n>3600?Math.ceil(n/3600)+"小时":n>60?Math.ceil(n/60)+"分钟":n>10?n+"秒":"刚刚"},isMobile:function(e){return/^1([3456789])\d{9}$/.test(e)},isEmail:function(e){return/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*\.)+[a-zA-Z]*)$/i.test(e)},getDistance:function(e,t,n,i){var r,o,a,s,l,u=3.14159265359,c=6.28318530712,d=.01745329252,h=6370693.5;return r=t*d,o=i*d,(l=e*d-n*d)>u?l=c-l:l<-u&&(l=c+l),a=h*Math.cos(r)*l,s=h*(r-o),Math.sqrt(a*a+s*s).toFixed(0)},setTile:function(e){document.title=e;var t=navigator.userAgent.toLowerCase();if(/iphone|ipad|ipod/.test(t)){var n=document.createElement("iframe");n.style.display="none",n.setAttribute("src","/favicon.ico");n.addEventListener("load",(function e(){setTimeout((function(){n.removeEventListener("load",e),document.body.removeChild(n)}),0)})),document.body.appendChild(n)}},cloneJSON:function(e){return"object"!==a(e)||null===e?e:$A.jsonParse($A.jsonStringify(e))},jsonParse:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:n;if(null===e)return t||{};if("object"===a(e))return e;try{return JSON.parse(e.replace(/\n/g,"\\n").replace(/\r/g,"\\r"))}catch(e){return t||{}}},jsonStringify:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:n;if("object"!==a(e))return e;try{return JSON.stringify(e)}catch(e){return t||""}},resize:function(e,t){var n=$A(e);if(0!==n.length)var i=parseInt(n.outerHeight()),r=parseInt(n.outerWidth()),o=setInterval((function(){0===n.length&&clearInterval(o);var e=parseInt(n.outerHeight()),a=parseInt(n.outerWidth());i===e&&r===a||(i=e,r=a,console.log(r,i),"function"==typeof t&&t())}),250)},isIos:function(){var t=void 0!==e&&e.navigator.userAgent.toLowerCase();return t&&/iphone|ipad|ipod|ios/.test(t)},isAndroid:function(){var t=void 0!==e&&e.navigator.userAgent.toLowerCase();return t&&t.indexOf("android")>0},isWeixin:function(){return(void 0!==e&&e.navigator.userAgent.toLowerCase()).match(/MicroMessenger/i)+""=="micromessenger"},isChrome:function(){return(void 0!==e&&e.navigator.userAgent.toLowerCase()).match(/Chrome/i)+""=="chrome"},isDesktop:function(){return!(void 0!==e&&e.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)},getObject:function(e,t){var n=e;return 0===this.count(e)||0===this.count(t)?"":(t.replace(/,/g,"|").replace(/\./g,"|").split("|").some((function(e){n=void 0===n[e]?"":n[e]})),n)},count:function(e){try{if(void 0===e)return 0;if("number"==typeof e&&(e+=""),"number"==typeof e.length)return e.length;var t,n=0;for(t in e)n++;return n}catch(e){return 0}},stringLength:function(e){return"number"==typeof e||"string"==typeof e?(e+"").length:0},arrayLength:function(e){if(e)try{return e.length}catch(e){return 0}return 0},objImplode:function(e){var t=this;if(null===e)return"";var n="";return $A.each(e,(function(e,i){null!==i&&("object"===a(i)&&t.count(i)>0?n+=t.objImplode(i):n+=String(i))})),n.replace(/\s/g,"").replace(/undefined/g,"")},urlParameter:function(e){var t=this.urlParameterAll();return void 0===e?t:t[e]},urlParameterAll:function(){var t=e.location.search||e.location.hash||"",n=[];this.strExists(t,"?")&&(n=this.getMiddle(t,"?").split("&"));for(var i={},r=0;r=2){for(var i=encodeURIComponent(t)+"=",r=n[1].split(/[&;]/g),o=r.length;o-- >0;)-1!==r[o].lastIndexOf(i,0)&&r.splice(o,1);return n[0]+(r.length>0?"?"+r.join("&"):"")}return e},urlAddParams:function(e,t){if($A.isJson(t))for(var n in e&&(e=this.removeURLParameter(e,Object.keys(t))),e+="",e+=-1===e.indexOf("?")?"?":"",t)t.hasOwnProperty(n)&&(e+="&"+n+"="+t[n]);return this.rightDelete(e.replace("?&","?"),"?")},reloadUrl:function(){if($A.isEEUiApp&&$A.isAndroid()){var t=e.location.href,n="_=",i=new RegExp("_=\\d+"),r=this.Time();if(t.indexOf(n)>-1)t=t.replace(i,n+r);else if(t.indexOf("?")>-1){var o=t.split("?");t=o[1]?o[0]+"?"+n+r+"&"+o[1]:o[0]+"?"+n+r}else t=t.indexOf("#")>-1?t.split("#")[0]+"?"+n+r+location.hash:t+"?"+n+r;$A.eeuiAppSetUrl(t)}else e.location.reload()},stringConnect:function(){for(var e=null,t="",n=arguments.length,i=new Array(n),r=0;r0&&(e=e[0]);var n="object"===a(e.$el)?$A(e.$el):$A(e);if(0!==n.length){var i=n[0];if("INPUT"!=i.tagName&&"TEXTAREA"!=i.tagName&&(n=0===n.find("input").length?n.find("textarea"):n.find("input")),0!==n.length&&("INPUT"==(i=n[0]).tagName||"TEXTAREA"==i.tagName)){var r=n.val(),o=i,s=o.selectionStart,l=o.selectionEnd;n.val("".concat(r.substring(0,s)).concat(t).concat(r.substring(l,r.length))),i.dispatchEvent(new Event("input")),setTimeout((function(){if(i.setSelectionRange){var e=r.substring(0,s).length+t.length;i.focus(),i.setSelectionRange(e,e)}}),10)}}}},iOSKeyboardFixer:function(){this.isIos()&&(document.body.scrollTop=document.body.scrollTop+1,document.body.scrollTop=document.body.scrollTop-1)},loadScript:function(t,n){var i=this;if(t=$A.originUrl(t),this.rightExists(t,".css"))this.loadCss(t,n);else if(!0!==this.__loadScript[t]){var r=document.createElement("script");r.type="text/javascript",r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i.__loadScript[t]=!0,"function"==typeof n&&n(null))}:(r.onload=function(){i.__loadScript[t]=!0,"function"==typeof n&&n(null)},r.onerror=function(e){"function"==typeof n&&n(e)}),this.rightExists(t,".js")?r.src=t+"?hash="+e.systemInfo.version:r.src=t,document.body.appendChild(r)}else"function"==typeof n&&n(null)},loadScriptS:function(e,t){var n=this,i=0;this.loadScript(e[0],(function r(){++i&"]/g,(function(e){return{"<":"<",">":">","&":"&",'"':"""}[e]})):""},getDomain:function(e){var t=(e+"").match(/http(s)?:\/\/([^\/]+)/i);return null!=t&&t.length>0?t[2]:""},scrollToView:function(t,n){if(t)if(void 0===n||!0===n?n={block:"start",inline:"nearest"}:!1===n&&(n={block:"end",inline:"nearest"}),void 0===n.scrollMode||"function"!=typeof e.scrollIntoView)try{t.scrollIntoView(n)}catch(i){"function"==typeof e.scrollIntoView&&e.scrollIntoView(t,n)}else e.scrollIntoView(t,n)},scrollIntoViewIfNeeded:function(e){e&&("function"==typeof e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded():$A.scrollToView(e,{block:"nearest",inline:"nearest"}))},scaleToScale:function(e,t,n,i){var r,o;return e>0&&t>0?(e/t>=n/i?e>n?(r=n,o=t*n/e):(r=e,o=t):t>i?(o=i,r=e*i/t):(r=e,o=t),{width:parseInt(r),height:parseInt(o)}):{width:e,height:t}},scrollPreventThrough:function(e){if(e&&"yes"!==e.getAttribute("data-prevent-through")){e.setAttribute("data-prevent-through","yes");var t=null;e.addEventListener("touchstart",(function(e){t=Math.floor(e.targetTouches[0].clientY)})),e.addEventListener("touchmove",(function(n){var i=Math.floor(n.targetTouches[0].clientY),r=e.scrollTop,o=e.scrollHeight,a=e.clientHeight;(r<=0&&i-t>0||r>=o-a&&i-t<0)&&n.preventDefault()}),!1)}},getAttr:function(e,t){var i=arguments.length>2&&arguments[2]!==n?arguments[2]:"";return e?e.getAttribute(t):i},onBlur:function(){var e=arguments.length>0&&arguments[0]!==n?arguments[0]:null,t=arguments.length>1&&arguments[1]!==n&&arguments[1];setTimeout((function(n){if($A.eeuiAppKeyboardHide(),"boolean"==typeof e&&(t=e,e=null),e)e.blur();else if(document.activeElement)if(!0===t&&"BODY"===document.activeElement.tagName){var i=document.getElementById("toLoseFocusInput");i||((i=document.createElement("input")).id="toLoseFocusInput",i.type="text",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.zIndex="-1",i.style.opacity="0",i.addEventListener("focus",(function(e){document.activeElement.blur()})),document.body.appendChild(i)),setTimeout((function(e){i.focus()}),1)}else document.activeElement.blur()}),1)}}),t.extend({__IDBTimer:{},IDBSave:function(e,t){var r=arguments.length>2&&arguments[2]!==n?arguments[2]:100;void 0!==this.__IDBTimer[e]&&(clearTimeout(this.__IDBTimer[e]),delete this.__IDBTimer[e]),this.__IDBTimer[e]=setTimeout(function(){var n=o(i().mark((function n(r){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s.setItem(e,t);case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),r)},IDBDel:function(e){s.removeItem(e).then((function(e){}))},IDBSet:function(e,t){return s.setItem(e,t)},IDBRemove:function(e){return s.removeItem(e)},IDBClear:function(){return s.clear()},IDBValue:function(e){return s.getItem(e)},IDBString:function(e){var t=arguments,r=this;return o(i().mark((function o(){var a,s;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.length>1&&t[1]!==n?t[1]:"",i.next=3,r.IDBValue(e);case 3:return s=i.sent,i.abrupt("return","string"==typeof s||"number"==typeof s?s:a);case 5:case"end":return i.stop()}}),o)})))()},IDBInt:function(e){var t=arguments,r=this;return o(i().mark((function o(){var a,s;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.length>1&&t[1]!==n?t[1]:0,i.next=3,r.IDBValue(e);case 3:return s=i.sent,i.abrupt("return","number"==typeof s?s:a);case 5:case"end":return i.stop()}}),o)})))()},IDBBoolean:function(e){var t=arguments,r=this;return o(i().mark((function o(){var a,s;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.length>1&&t[1]!==n&&t[1],i.next=3,r.IDBValue(e);case 3:return s=i.sent,i.abrupt("return","boolean"==typeof s?s:a);case 5:case"end":return i.stop()}}),o)})))()},IDBArray:function(e){var t=arguments,r=this;return o(i().mark((function o(){var a,s;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.length>1&&t[1]!==n?t[1]:[],i.next=3,r.IDBValue(e);case 3:return s=i.sent,i.abrupt("return",r.isArray(s)?s:a);case 5:case"end":return i.stop()}}),o)})))()},IDBJson:function(e){var t=arguments,r=this;return o(i().mark((function o(){var a,s;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return a=t.length>1&&t[1]!==n?t[1]:{},i.next=3,r.IDBValue(e);case 3:return s=i.sent,i.abrupt("return",r.isJson(s)?s:a);case 5:case"end":return i.stop()}}),o)})))()}}),t.extend({setStorage:function(e,t){return this.__operationStorage(e,t)},getStorageValue:function(e){return this.__operationStorage(e)},getStorageString:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:"",i=this.__operationStorage(e);return"string"==typeof i||"number"==typeof i?i:t},getStorageInt:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:0,i=this.__operationStorage(e);return"number"==typeof i?i:t},getStorageBoolean:function(e){var t=arguments.length>1&&arguments[1]!==n&&arguments[1],i=this.__operationStorage(e);return"boolean"==typeof i?i:t},getStorageArray:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:[],i=this.__operationStorage(e);return this.isArray(i)?i:t},getStorageJson:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:{},i=this.__operationStorage(e);return this.isJson(i)?i:t},__operationStorage:function(e,t){if(e){var n="__state__";if("cache"===e.substring(0,5)&&(n="__state:"+e+"__"),void 0===t)return this.__loadFromlLocal(e,"",n);this.__savaToLocal(e,t,n)}},__savaToLocal:function(t,n,i){try{void 0===i&&(i="__seller__");var r=e.localStorage[i];(r=r?JSON.parse(r):{})[t]=n,e.localStorage[i]=JSON.stringify(r)}catch(e){}},__loadFromlLocal:function(t,n,i){try{void 0===i&&(i="__seller__");var r=e.localStorage[i];return r&&((r=JSON.parse(r))&&void 0!==r[t])?r[t]:n}catch(e){return n}}}),t.extend({setSessionStorage:function(e,t){return this.__operationSessionStorage(e,t)},getSessionStorageValue:function(e){return this.__operationSessionStorage(e)},getSessionStorageString:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:"",i=this.__operationSessionStorage(e);return"string"==typeof i||"number"==typeof i?i:t},getSessionStorageInt:function(e){var t=arguments.length>1&&arguments[1]!==n?arguments[1]:0,i=this.__operationSessionStorage(e);return"number"==typeof i?i:t},__operationSessionStorage:function(e,t){if(e){var n="__state__";if("cache"===e.substring(0,5)&&(n="__state:"+e+"__"),void 0===t)return this.__loadFromlSession(e,"",n);this.__savaToSession(e,t,n)}},__savaToSession:function(t,n,i){try{void 0===i&&(i="__seller__");var r=e.sessionStorage.getItem(i);(r=r?JSON.parse(r):{})[t]=n,e.sessionStorage.setItem(i,JSON.stringify(r))}catch(e){}},__loadFromlSession:function(t,n,i){try{void 0===i&&(i="__seller__");var r=e.sessionStorage.getItem(i);return r&&((r=JSON.parse(r))&&void 0!==r[t])?r[t]:n}catch(e){return n}}}),t.extend({serializeObject:function(e,n){if("string"==typeof e)return e;var i,r=[];function o(e){if(n.length>0){for(var t="",i=0;i0&&r.push(u.join("&"))}else null===e[l]?r.push(o(l)+"="):"object"===a(e[l])?((i=n.slice()).push(l),""!==(u=t.serializeObject(e[l],i))&&r.push(u)):void 0!==e[l]&&""!==e[l]?r.push(o(l)+"="+s(e[l])):""===e[l]&&r.push(o(l))}return r.join("&")},globalAjaxOptions:{},ajaxSetup:function(e){e.type&&(e.method=e.type),t.each(e,(function(e,n){t.globalAjaxOptions[e]=n}))},_jsonpRequests:0,ihttp:function(i){var r={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},o=["beforeSend","error","complete","success","statusCode"];function a(e,n,r){var o=arguments;e&&t(document).trigger(e,n),r&&(r in t.globalAjaxOptions&&t.globalAjaxOptions[r](o[3],o[4],o[5],o[6]),i[r]&&i[r](o[3],o[4],o[5],o[6]))}i.type&&(i.method=i.type),t.each(t.globalAjaxOptions,(function(e,t){o.indexOf(e)<0&&(r[e]=t)})),t.each(r,(function(e,t){e in i||(i[e]=t)})),i.url||(i.url=e.location.toString());var s,l=i.url.indexOf("?")>=0?"&":"?",u=i.method.toUpperCase();"GET"!==u&&"HEAD"!==u&&"OPTIONS"!==u&&"DELETE"!==u||!i.data||(s="string"==typeof i.data?i.data.indexOf("?")>=0?i.data.split("?")[1]:i.data:t.serializeObject(i.data)).length&&(i.url+=l+s,"?"===l&&(l="&"));if("json"===i.dataType&&i.url.indexOf("callback=")>=0){var c,d="f7jsonp_"+Date.now()+t._jsonpRequests++,h=i.url.split("callback="),f=h[0]+"callback="+d;if(h[1].indexOf("&")>=0){var p=h[1].split("&").filter((function(e){return e.indexOf("=")>0})).join("&");p.length>0&&(f+="&"+p)}var m=document.createElement("script");return m.type="text/javascript",m.onerror=function(){clearTimeout(c),a(n,n,"error",null,"scripterror"),a("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},m.src=f,e[d]=function(t){clearTimeout(c),a(n,n,"success",t),m.parentNode.removeChild(m),m=null,delete e[d]},document.querySelector("head").appendChild(m),void(i.timeout>0&&(c=setTimeout((function(){m.parentNode.removeChild(m),m=null,a(n,n,"error",null,"timeout")}),i.timeout)))}"GET"!==u&&"HEAD"!==u&&"OPTIONS"!==u&&"DELETE"!==u||!1===i.cache&&(i.url+=l+"_nocache="+Date.now());var v=new XMLHttpRequest;v.requestUrl=i.url,v.requestParameters=i,v.open(u,i.url,i.async,i.user,i.password);var g,b=null;if(("POST"===u||"PUT"===u||"PATCH"===u)&&i.data)if(i.processData)if([ArrayBuffer,Blob,Document,FormData].indexOf(i.data.constructor)>=0)b=i.data;else{var y="---------------------------"+Date.now().toString(16);"multipart/form-data"===i.contentType?v.setRequestHeader("Content-Type","multipart/form-data; boundary="+y):v.setRequestHeader("Content-Type",i.contentType),b="";var w=t.serializeObject(i.data);if("multipart/form-data"===i.contentType){y="---------------------------"+Date.now().toString(16),w=w.split("&");for(var _=[],x=0;x=200&&v.status<300||0===v.status)if("json"===i.dataType)try{n=JSON.parse(v.responseText),a("ajaxSuccess ajax:success",{xhr:v},"success",n,v.status,v)}catch(e){console.error(e),a("ajaxError ajax:error",{xhr:v,parseerror:!0},"error",v,"parseerror")}else n="text"===v.responseType||""===v.responseType?v.responseText:v.response,a("ajaxSuccess ajax:success",{xhr:v},"success",n,v.status,v);else a("ajaxError ajax:error",{xhr:v},"error",v,v.status);i.statusCode&&(t.globalAjaxOptions.statusCode&&t.globalAjaxOptions.statusCode[v.status]&&t.globalAjaxOptions.statusCode[v.status](v),i.statusCode[v.status]&&i.statusCode[v.status](v)),a("ajaxComplete ajax:complete",{xhr:v},"complete",v,v.status)},v.onerror=function(e){g&&clearTimeout(g),a("ajaxError ajax:error",{xhr:v},"error",v,v.status),a("ajaxComplete ajax:complete",{xhr:v,error:!0},"complete",v,"error")},a("ajaxStart ajax:start",{xhr:v},"start",v),a(n,n,"beforeSend",v),i.timeout>0&&(v.onabort=function(){g&&clearTimeout(g)},g=setTimeout((function(){v.abort(),a("ajaxError ajax:error",{xhr:v,timeout:!0},"error",v,"timeout"),a("ajaxComplete ajax:complete",{xhr:v,timeout:!0},"complete",v,"timeout")}),i.timeout)),v.send(b),v}}),t.extend({ajaxc:function(e){return!!e&&(void 0!==e.url&&(void 0===e.data&&(e.data={}),void 0===e.cache&&(e.cache=!1),void 0===e.method&&(e.method="GET"),void 0===e.timeout&&(e.timeout=3e4),void 0===e.dataType&&(e.dataType="json"),void 0===e.before&&(e.before=function(){}),void 0===e.complete&&(e.complete=function(){}),void 0===e.after&&(e.after=function(){}),void 0===e.success&&(e.success=function(){}),void 0===e.error&&(e.error=function(){}),void 0===e.header&&(e.header={}),e.before(),void $A.ihttp({url:e.url,data:e.data,cache:e.cache,headers:e.header,method:e.method.toUpperCase(),contentType:"OPTIONS",crossDomain:!0,dataType:e.dataType,timeout:e.timeout,success:function(t,n,i){e.complete(),e.success(t,n,i),e.after(!0)},error:function(t,n){e.complete(),e.error(t,n),e.after(!1)}})))}}),e.$A=t}(window,window.$=window.jQuery=n(19755))},8480:()=>{!function(e){var t=e.$A;t.extend({eeuiAppAlert:function(e,t){$A.isEEUiApp&&("function"!=typeof t&&(t=function(e){}),requireModuleJs("eeui").alert(e,t))},eeuiAppToast:function(e){$A.isEEUiApp&&requireModuleJs("eeui").toast(e)},eeuiAppRewriteUrl:function(e){if($A.isEEUiApp)return requireModuleJs("eeui").rewriteUrl(e)},eeuiAppOpenPage:function(e,t){$A.isEEUiApp&&("function"!=typeof t&&(t=function(e){}),requireModuleJs("eeui").openPage(e,t))},eeuiAppOpenWeb:function(e){$A.isEEUiApp&&requireModuleJs("eeui").openWeb(e)},eeuiAppSetPageBackPressed:function(e,t){$A.isEEUiApp&&("function"!=typeof t&&(t=function(e){}),requireModuleJs("eeui").setPageBackPressed(e,t))},eeuiAppGoDesktop:function(){$A.isEEUiApp&&requireModuleJs("eeui").goDesktop()},eeuiAppKeepScreenOn:function(){$A.isEEUiApp&&requireModuleJs("eeui").keepScreenOn()},eeuiAppKeepScreenOff:function(){$A.isEEUiApp&&requireModuleJs("eeui").keepScreenOff()},eeuiAppKeyboardHide:function(){$A.isEEUiApp&&requireModuleJs("eeui").keyboardHide()},eeuiAppSendMessage:function(e){$A.isEEUiApp&&requireModuleJs("webview").sendMessage(e)},eeuiAppSetUrl:function(e){$A.isEEUiApp&&requireModuleJs("webview").setUrl(e)},eeuiAppScan:function(e){$A.isEEUiApp&&requireModuleJs("eeui").openScaner({},(function(t){if("success"===t.status)e(t.text)}))}}),e.$A=t}(window)},71878:()=>{!function(e){var t=e.$A;t.extend({apiUrl:function(t){if("privacy"==t){var n=$A.getDomain(e.systemInfo.apiUrl);if(""==n||"public"==n)return"https://www.dootask.com/privacy.html";t="../privacy.html"}if("//"===t.substring(0,2)||"http://"===t.substring(0,7)||"https://"===t.substring(0,8)||"ftp://"===t.substring(0,6)||"/"===t.substring(0,1))return t;for(t="string"==typeof e.systemInfo.apiUrl?e.systemInfo.apiUrl+t:e.location.origin+"/api/"+t;-1!==t.indexOf("/../");)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},originUrl:function(t){if("//"===t.substring(0,2)||"http://"===t.substring(0,7)||"https://"===t.substring(0,8)||"ftp://"===t.substring(0,6)||"/"===t.substring(0,1))return t;for(t="string"==typeof e.systemInfo.origin?e.systemInfo.origin+t:e.location.origin+"/"+t;-1!==t.indexOf("/../");)t=t.replace(/\/(((?!\/).)*)\/\.\.\//,"/");return t},projectParameterTemplate:function(e){return{project_id:e,menuInit:!1,menuType:"column",chat:!1,showMy:!0,showHelp:!0,showUndone:!0,showCompleted:!1,completedTask:!1}},formatTime:function(e){var t=$A.Time(),n=$A.Date(e,!0);return(Math.abs(t-n)<21600||$A.formatDate("Ymd",t)===$A.formatDate("Ymd",n)?$A.formatDate("H:i",n):$A.formatDate("Y",t)===$A.formatDate("Y",n)?$A.formatDate("m-d",n):$A.formatDate("Y-m-d",n))||""},formatBit:function(e){return(e=+e)>9?e:"0"+e},formatSeconds:function(e){var t,n=Math.floor(e/86400),i=Math.floor(e%86400/3600),r=Math.floor(e%86400%3600/60),o=Math.floor(e%86400%3600%60);return n>0?t=i>0?n+"d,"+this.formatBit(i)+"h":r>0?n+"d,"+this.formatBit(r)+"min":o>0?n+"d,"+this.formatBit(o)+"s":n+"d":i>0?t=this.formatBit(i)+":"+this.formatBit(r)+":"+this.formatBit(o):r>0?t=this.formatBit(r)+":"+this.formatBit(o):o>0&&(t=this.formatBit(o)+"s"),t},countDownFormat:function(e,t){var n=Math.round(this.Date(e).getTime()/1e3)-t;return n<604800&&n>0?this.formatSeconds(n):n<0?"-"+this.formatSeconds(-1*n):0==n?"0s":this.formatTime(e)},dateRangeUtil:{getCurrentDate:function(){return new Date},getCurrentWeek:function(){var e=[],t=this.getCurrentDate(),n=t.getDay(),i=864e5,r=0!=n?n-1:6,o=new Date(t.getTime()-r*i),a=new Date(o.getTime()+5184e5);return e.push(o),e.push(a),e},getCurrentMonth:function(){var e=[],t=this.getCurrentDate(),n=t.getMonth(),i=t.getFullYear(),r=new Date(i,n,1);11==n?(i++,n=0):n++;var o=new Date(i,n,1),a=new Date(o.getTime()-864e5);return e.push(r),e.push(a),e},getQuarterSeasonStartMonth:function(e){return e<3?0:e<6?3:e<9?6:9},getMonthDays:function(e,t){var n=new Date(e,t,1),i=n.getMonth(),r=n.getFullYear();11==i?(r++,i=0):i++;var o=new Date(r,i,1);return new Date(o.getTime()-864e5).getDate()},getCurrentSeason:function(){var e=[],t=this.getCurrentDate(),n=t.getMonth(),i=t.getFullYear(),r=this.getQuarterSeasonStartMonth(n),o=r+2,a=new Date(i,r,1),s=new Date(i,o,this.getMonthDays(i,o));return e.push(a),e.push(s),e},getCurrentYear:function(){var e=[],t=this.getCurrentDate().getFullYear(),n=new Date(t,0,1),i=new Date(t,11,31);return e.push(n),e.push(i),e},getPriorMonthFirstDay:function(e,t){return 0==t?(t=11,e--,new Date(e,t,1)):(t--,new Date(e,t,1))},getPreviousMonth:function(){var e=[],t=this.getCurrentDate(),n=t.getMonth(),i=t.getFullYear(),r=this.getPriorMonthFirstDay(i,n),o=new Date(r.getFullYear(),r.getMonth(),this.getMonthDays(r.getFullYear(),r.getMonth()));return e.push(r),e.push(o),e},getPreviousWeek:function(){var e=[],t=this.getCurrentDate(),n=t.getDay(),i=864e5,r=0!=n?n-1:6,o=new Date(t.getTime()-i*r),a=new Date(o.getTime()-i),s=new Date(a.getTime()-5184e5);return e.push(s),e.push(a),e},getPriorSeasonFirstDay:function(e,t){switch(t){case 0:e--,t=9;break;case 3:t=0;break;case 6:t=3;break;case 9:t=6}return new Date(e,t,1)},getPreviousSeason:function(){var e=[],t=this.getCurrentDate(),n=t.getMonth(),i=t.getFullYear(),r=this.getPriorSeasonFirstDay(i,n),o=new Date(r.getFullYear(),r.getMonth()+2,this.getMonthDays(r.getFullYear(),r.getMonth()+2));return e.push(r),e.push(o),e},getPreviousYear:function(){var e=[],t=this.getCurrentDate().getFullYear();t--;var n=new Date(t,0,1),i=new Date(t,11,1);return e.push(n),e.push(i),e}},getSpecifyDate:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(new Date).getTime();switch(e){case"昨天":n-=864e5;break;case"前天":n-=1728e5;break;case"本周":n=$A.dateRangeUtil.getCurrentWeek()[0].getTime();break;case"本周结束":n=$A.dateRangeUtil.getCurrentWeek()[1].getTime();break;case"上周":n=$A.dateRangeUtil.getPreviousWeek()[0].getTime();break;case"上周结束":n=$A.dateRangeUtil.getPreviousWeek()[1].getTime();break;case"本月":n=$A.dateRangeUtil.getCurrentMonth()[0].getTime();break;case"本月结束":n=$A.dateRangeUtil.getCurrentMonth()[1].getTime();break;case"上个月":n=$A.dateRangeUtil.getPreviousMonth()[0].getTime();break;case"上个月结束":n=$A.dateRangeUtil.getPreviousMonth()[1].getTime();break;case"本季度":n=$A.dateRangeUtil.getCurrentSeason()[0].getTime();break;case"本季度结束":n=$A.dateRangeUtil.getCurrentSeason()[1].getTime()}return n=$A.formatDate("Y-m-d",Math.floor(n/1e3)),!0===t?new Date(n):n},timeOptionShortcuts:function(){var e=function(e){return $A.Date($A.formatDate("Y-m-d 23:59:29",Math.round(e/1e3)))};return[{text:$A.L("今天"),value:function(){return[new Date,e((new Date).getTime())]}},{text:$A.L("明天"),value:function(){var t=new Date;return t.setDate(t.getDate()+1),[new Date,e(t.getTime())]}},{text:$A.L("本周"),value:function(){return[new Date,e($A.getSpecifyDate("本周结束",!0).getTime())]}},{text:$A.L("本月"),value:function(){return[new Date,e($A.getSpecifyDate("本月结束",!0).getTime())]}},{text:$A.L("3天"),value:function(){var t=new Date;return t.setDate(t.getDate()+2),[new Date,e(t.getTime())]}},{text:$A.L("5天"),value:function(){var t=new Date;return t.setDate(t.getDate()+4),[new Date,e(t.getTime())]}},{text:$A.L("7天"),value:function(){var t=new Date;return t.setDate(t.getDate()+6),[new Date,e(t.getTime())]}}]},dialogTags:function(e){var t=[];return"group"==e.type&&["project","task"].includes(e.group_type)&&$A.isJson(e.group_info)&&("task"==e.group_type&&e.group_info.complete_at&&t.push({color:"success",text:"已完成"}),e.group_info.deleted_at?t.push({color:"red",text:"已删除"}):e.group_info.archived_at&&t.push({color:"default",text:"已归档"})),t},dialogCompleted:function(e){return this.dialogTags(e).find((function(e){return"success"==e.color}))},getDialogUnread:function(e,t){var n=t||!e.silence?e.unread:0;return e&&(n||e.mark_unread)||0},getDialogMention:function(e){return e&&e.mention||0},getMsgTextPreview:function(e){return e?e=(e=(e=(e=(e=(e=(e=(e=e.replace(/]*?alt="(\S+)"[^>]*?>/g,"[$1]")).replace(/]*?>/g,"[".concat($A.L("动画表情"),"]"))).replace(/]*?>/g,"[".concat($A.L("图片"),"]"))).replace(/<[^>]+>/g,"")).replace(/ /g," ")).replace(/&/g,"&")).replace(/</g,"<")).replace(/>/g,">"):""},formatMsgBasic:function(e){if(!e)return e;if($A.isJson(e))for(var t in e)e.hasOwnProperty(t)&&(e[t]=$A.formatMsgBasic(e[t]));else $A.isArray(e)?e.forEach((function(t,n){e[n]=$A.formatMsgBasic(t)})):"string"==typeof e&&(e=e.replace(/\{\{RemoteURL\}\}/g,this.apiUrl("../")));return e},formatTextMsg:function(e,t){if(!e)return"";var n=new RegExp(''),"g");e=(e=(e=(e=(e=e.trim().replace(/(\n\x20*){3,}/g,"\n\n")).replace(/ /g," ")).replace(/

    <\/p>/g,"


    ")).replace(/\{\{RemoteURL\}\}/g,$A.apiUrl("../"))).replace(n,'')),/https*:\/\//.test(e)&&(e=e.split(/(<[^>]*>)/g).map((function(e){return e&&!/<[^>]*>/.test(e)&&(e=e.replace(/(^|[^'"])((https*:\/\/)((\w|=|\?|\.|\/|&|-|:|\+|%|;|#)+))/g,'$1
    $2')),e})).join(""));var i=e.match(/]*?>/g);if(i){var r=new RegExp('width="(\\d+)"'),o=new RegExp('height="(\\d+)"');i.some((function(t){var n=t.match(r),i=t.match(o);if(n&&i){var a=parseInt(n[1]),s=parseInt(i[1]),l=t.indexOf("emoticon")>-1?150:220,u=$A.scaleToScale(a,s,l,l),c=t.replace(r,'original-width="'.concat(a,'" width="').concat(u.width,'"')).replace(o,'original-height="'.concat(s,'" height="').concat(u.height,'"'));e=e.replace(t,c)}}))}return e},getTextImagesInfo:function(e){var t=$A.apiUrl("../"),n=e.match(new RegExp("]*?>","g")),i=[];if(n){var r=new RegExp("src=([\"'])([^'\"]*)\\1"),o=new RegExp('(original-)?width="(\\d+)"'),a=new RegExp('(original-)?height="(\\d+)"');n.some((function(e){var n=e.match(r),s=e.match(o),l=e.match(a);n&&i.push({src:n[2].replace(/\{\{RemoteURL\}\}/g,t),width:s?s[2]:-1,height:l?l[2]:-1})}))}return i},getMsgSimpleDesc:function(e){if($A.isJson(e))switch(e.type){case"text":return $A.getMsgTextPreview(e.msg.text);case"record":return"[".concat($A.L("语音"),"]");case"meeting":return"[".concat($A.L("会议"),"] ").concat(e.msg.name);case"file":return"img"==e.msg.type?"[".concat($A.L("图片"),"]"):"[".concat($A.L("文件"),"] ").concat(e.msg.name);case"tag":return"[".concat($A.L("remove"===e.msg.action?"取消标注":"标注"),"] ").concat($A.getMsgSimpleDesc(e.msg.data));case"todo":return"[".concat($A.L("remove"===e.msg.action?"取消待办":"done"===e.msg.action?"完成":"设待办"),"] ").concat($A.getMsgSimpleDesc(e.msg.data));case"notice":return e.msg.notice;default:return"[".concat($A.L("未知的消息"),"]")}return""},getFileName:function(e){var t=e.name||"",n=e.ext||"";return""!=n&&(t+="."+n),t}}),t.extend({modalConfig:function(e){return void 0===e?e={content:"Undefined"}:"string"==typeof e&&(e={content:e}),e.title=e.title||(void 0===e.render?"温馨提示":""),e.content=e.content||"",e.okText=e.okText||"确定",e.cancelText=e.cancelText||"取消",!1!==e.language&&(delete e.language,e.title=$A.L(e.title),e.content=$A.L(e.content),e.okText=$A.L(e.okText),e.cancelText=$A.L(e.cancelText)),e},modalInput:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t>0)setTimeout((function(){$A.modalInput(e)}),t);else{"string"==typeof e&&(e={title:e});var n="modalInput_"+$A.randomString(6),i=function(){return new Promise((function(t,n){if(e.onOk){var i=e.onOk(e.value);i?i.then?i.then((function(e){e&&$A.messageSuccess(e),t()})).catch((function(e){e&&$A.messageError(e),n()})):("string"==typeof i&&$A.messageError(i),n()):t()}else n()}))},r=function(){"function"==typeof e.onCancel&&e.onCancel()};$A.Modal.confirm({render:function(t){return t("div",[t("div",{style:{fontSize:"16px",fontWeight:"500",marginBottom:"20px"}},$A.L(e.title)),t("Input",{props:{value:e.value,placeholder:$A.L(e.placeholder),elementId:n},on:{input:function(t){e.value=t},"on-enter":function(e){$A(e.target).parents(".ivu-modal-body").find(".ivu-btn-primary").click()}}})])},onOk:i,onCancel:r,loading:!0,okText:$A.L(e.okText||"确定"),cancelText:$A.L(e.cancelText||"取消")}),setTimeout((function(){document.getElementById(n)&&document.getElementById(n).focus()}))}},modalConfirm:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!1!==e)if(t>0)setTimeout((function(){$A.modalConfirm(e)}),t);else{if((e=$A.modalConfig(e)).loading){var n=e,i=n.onOk;e.onOk=function(){return new Promise((function(e,t){if(i){var n=i();n?n.then?n.then((function(t){t&&$A.messageSuccess(t),e()})).catch((function(e){e&&$A.messageError(e),t()})):("string"==typeof n&&$A.messageError(n),t()):e()}else t()}))}}$A.Modal.confirm($A.modalConfig(e))}},modalSuccess:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!1!==e&&(t>0?setTimeout((function(){$A.modalSuccess(e)}),t):$A.Modal.success($A.modalConfig(e)))},modalInfo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!1!==e&&(t>0?setTimeout((function(){$A.modalInfo(e)}),t):$A.Modal.info($A.modalConfig(e)))},modalWarning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!1!==e&&(t>0?setTimeout((function(){$A.modalWarning(e)}),t):"string"==typeof e&&"Network exception"===e||$A.isJson(e)&&"Network exception"===e.content||$A.Modal.warning($A.modalConfig(e)))},modalError:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;!1!==e&&(t>0?setTimeout((function(){$A.modalError(e)}),t):"string"==typeof e&&"Network exception"===e||$A.isJson(e)&&"Network exception"===e.content||$A.Modal.error($A.modalConfig(e)))},modalAlert:function(e){!1!==e&&alert($A.L(e))},messageSuccess:function(e){$A.Message.success($A.L(e))},messageWarning:function(e){"string"==typeof e&&"Network exception"===e||$A.Message.warning($A.L(e))},messageError:function(e){"string"==typeof e&&"Network exception"===e||$A.Message.error($A.L(e))},noticeConfig:function(e){return void 0===e?e={desc:"Undefined"}:"string"==typeof e&&(e={desc:e}),e.title=$A.L(e.title||(void 0===e.render?"温馨提示":"")),e.desc=$A.L(e.desc||""),e},noticeSuccess:function(e){$A.Notice.success($A.noticeConfig(e))},noticeWarning:function(e){$A.Notice.warning($A.noticeConfig(e))},noticeError:function(e){"string"==typeof e&&(e={desc:e,duration:6}),$A.Notice.error($A.noticeConfig(e))}}),t.extend({dark:{utils:{filter:"-webkit-filter: url(#dark-mode-filter) !important; filter: url(#dark-mode-filter) !important;",reverseFilter:"-webkit-filter: url(#dark-mode-reverse-filter) !important; filter: url(#dark-mode-reverse-filter) !important;",noneFilter:"-webkit-filter: none !important; filter: none !important;",addExtraStyle:function(){try{return""}catch(e){return""}},addStyle:function(e,t,n){t=t||"style";var i=document;if(!i.getElementById(e)){var r=i.createElement(t);r.rel="stylesheet",r.id=e,"style"===t?r.innerHTML=n:r.href=n,document.head.appendChild(r)}},getClassList:function(e){return e.classList||[]},addClass:function(e,t){return this.getClassList(e).add(t),this},removeClass:function(e,t){return this.getClassList(e).remove(t),this},hasClass:function(e,t){return this.getClassList(e).contains(t)},hasElementById:function(e){return document.getElementById(e)},removeElementById:function(e){var t=document.getElementById(e);t&&t.parentNode.removeChild(t)}},createDarkFilter:function(){if(!this.utils.hasElementById("dark-mode-svg")){var e=document.createElementNS("http://www.w3.org/1999/xhtml","div");e.innerHTML='';for(var t=document.createDocumentFragment();e.firstChild;)t.appendChild(e.firstChild);document.head.appendChild(t)}},createDarkStyle:function(){this.utils.addStyle("dark-mode-style","style","\n @media screen {\n html {\n ".concat(this.utils.filter,'\n }\n\n /* Default Reverse rule */\n img,\n video,\n iframe,\n canvas,\n :not(object):not(body) > embed,\n object,\n svg image,\n [style*="background:url"],\n [style*="background-image:url"],\n [style*="background: url"],\n [style*="background-image: url"],\n [background],\n .no-dark-mode,\n .no-dark-content,\n .no-dark-before:before {\n ').concat(this.utils.reverseFilter,'\n }\n\n [style*="background:url"] *,\n [style*="background-image:url"] *,\n [style*="background: url"] *,\n [style*="background-image: url"] *,\n input,\n [background] *,\n .no-dark-content img,\n .no-dark-content canvas,\n .no-dark-content svg image {\n ').concat(this.utils.noneFilter,"\n }\n\n /* Text contrast */\n html {\n text-shadow: 0 0 0 !important;\n }\n\n /* Full screen */\n .no-filter,\n :-webkit-full-screen,\n :-webkit-full-screen *,\n :-moz-full-screen,\n :-moz-full-screen *,\n :fullscreen,\n :fullscreen * {\n ").concat(this.utils.noneFilter,"\n }\n\n /* Page background */\n html {\n background: #fff !important;\n }\n ").concat(this.utils.addExtraStyle(),"\n }\n\n @media print {\n .no-print {\n display: none !important;\n }\n }"))},enableDarkMode:function(){$A.isChrome()&&(this.isDarkEnabled()||(this.createDarkFilter(),this.createDarkStyle(),this.utils.addClass(document.body,"dark-mode-reverse")))},disableDarkMode:function(){this.isDarkEnabled()&&(this.utils.removeElementById("dark-mode-svg"),this.utils.removeElementById("dark-mode-style"),this.utils.removeClass(document.body,"dark-mode-reverse"))},autoDarkMode:function(){e.matchMedia&&e.matchMedia("(prefers-color-scheme: dark)").matches?this.enableDarkMode():this.disableDarkMode()},isDarkEnabled:function(){return this.utils.hasClass(document.body,"dark-mode-reverse")}}}),e.$A=t}(window)},33875:(e,t,n)=>{"use strict";n.d(t,{mF:()=>v,s0:()=>p,AX:()=>f,m0:()=>g,V8:()=>b});var i=[];function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n127){var o=r.toString(16);n+="\\u"+(o=String("0000").substring(o.length,4)+o)}else n+=t[i]}return n},u=function(e,t){for(var n=1;-1!==e.indexOf("(*)");)e="object"===a(t[n])?e.replace("(*)",""):e.replace("(*)",t[n]),n++;return e},c=function(e){return e&&""!=e?e.replace(/\(\*\)/g,"~%~").replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&").replace(/~%~/g,"(.*?)"):""},d=!1,h=[],f=function(){if("string"==typeof window.localStorage.getItem("__language:type__"))return window.localStorage.getItem("__language:type__");var e="EN",t=((window.navigator.language||navigator.userLanguage)+"").toUpperCase();switch(t){case"EN":case"KM":case"TH":case"KO":case"JA":e=t;break;case"ZH-CN":case"ZH":e="CN";break;case"ZH-TW":case"ZH-HK":e="TC"}return window.localStorage.setItem("__language:type__",e),e}(),p={EN:"English",KM:"ភាសាខ្មែរ",TH:"ภาษาไทย",KO:"한국어",JA:"日本語",CN:"简体中文",TC:"繁體中文"},m={};function v(e){s(e)&&h.unshift.apply(h,r(e))}function g(e){void 0!==e&&$A.modalConfirm({content:"切换语言需要刷新后生效,是否确定刷新?",cancelText:"取消",okText:"确定",onOk:function(){window.localStorage.setItem("__language:type__",e),$A.reloadUrl()}})}function b(e){if(void 0!==arguments[1])return b(u(e,arguments));if("string"!=typeof e||!e)return e;!1===d&&(d=!0,v(i),v(window.languageData));var t=l(e);if(void 0===m[t]){var n=null,r=null,o=h.find((function(t){return-1===(n="".concat(t._||t.CN)).indexOf("(*)")?(r=null,e==n):(r=new RegExp("^"+c(n)+"$","g"),!!e.match(r))}));m[t]={rege:r,data:o}}var a=m[t],p=a.rege,g=a.data;if(g){var y=g[f];if(y){if(null===p)return y;var w=0;return y=y.replace(/\(\*\)/g,(function(){return"$"+ ++w})),e.replace(p,y)}}return"yes"===window.systemInfo.debug&&setTimeout((function(t){try{var n="__language:Undefined__",i=JSON.parse(window.localStorage.getItem(n)||"[]");s(i)||(i=[]);var r=null;i.find((function(t){return r=new RegExp("^"+t.replace(/\(\*\)/g,"(.*?)")+"$","g"),!!e.match(r)}))||(i.push(e),window.localStorage.setItem(n,JSON.stringify(i)))}catch(e){}}),10),e}},52945:(e,t,n)=>{e.exports={default:n(56981),__esModule:!0}},93516:(e,t,n)=>{e.exports={default:n(80025),__esModule:!0}},64275:(e,t,n)=>{e.exports={default:n(52392),__esModule:!0}},88239:(e,t,n)=>{"use strict";var i,r=n(52945),o=(i=r)&&i.__esModule?i:{default:i};t.Z=o.default||function(e){for(var t=1;t{"use strict";var i=a(n(64275)),r=a(n(93516)),o="function"==typeof r.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.Z="function"==typeof r.default&&"symbol"===o(i.default)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":o(e)}},81653:function(e){e.exports=function(){return t={686:function(e,t,n){"use strict";n.d(t,{default:function(){return b}}),t=n(279);var i=n.n(t),r=(t=n(370),n.n(t)),o=(t=n(817),n.n(t));function a(e){try{return document.execCommand(e)}catch(e){return}}var s=function(e){return e=o()(e),a("cut"),e};function l(e,t){var n,i;return n=e,i="rtl"===document.documentElement.getAttribute("dir"),(e=document.createElement("textarea")).style.fontSize="12pt",e.style.border="0",e.style.padding="0",e.style.margin="0",e.style.position="absolute",e.style[i?"right":"left"]="-9999px",i=window.pageYOffset||document.documentElement.scrollTop,e.style.top="".concat(i,"px"),e.setAttribute("readonly",""),e.value=n,t.container.appendChild(e),t=o()(e),a("copy"),e.remove(),t}var u=function(e){var t=1{n(72699),e.exports=n(34579).Object.assign},80025:(e,t,n)=>{n(46840),n(94058),n(8174),n(36461),e.exports=n(34579).Symbol},52392:(e,t,n)=>{n(91867),n(73871),e.exports=n(25103).f("iterator")},85663:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},79003:e=>{e.exports=function(){}},12159:(e,t,n)=>{var i=n(36727);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},57428:(e,t,n)=>{var i=n(7932),r=n(78728),o=n(16531);e.exports=function(e){return function(t,n,a){var s,l=i(t),u=r(l.length),c=o(a,u);if(e&&n!=n){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},32894:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},34579:e=>{var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},19216:(e,t,n)=>{var i=n(85663);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},8333:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},89666:(e,t,n)=>{e.exports=!n(7929)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},97467:(e,t,n)=>{var i=n(36727),r=n(33938).document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},73338:e=>{e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},70337:(e,t,n)=>{var i=n(46162),r=n(48195),o=n(86274);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var a,s=n(e),l=o.f,u=0;s.length>u;)l.call(e,a=s[u++])&&t.push(a);return t}},83856:(e,t,n)=>{var i=n(33938),r=n(34579),o=n(19216),a=n(41818),s=n(27069),l="prototype",u=function(e,t,n){var c,d,h,f=e&u.F,p=e&u.G,m=e&u.S,v=e&u.P,g=e&u.B,b=e&u.W,y=p?r:r[t]||(r[t]={}),w=y[l],_=p?i:m?i[t]:(i[t]||{})[l];for(c in p&&(n=t),n)(d=!f&&_&&void 0!==_[c])&&s(y,c)||(h=d?_[c]:n[c],y[c]=p&&"function"!=typeof _[c]?n[c]:g&&d?o(h,i):b&&_[c]==h?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t[l]=e[l],t}(h):v&&"function"==typeof h?o(Function.call,h):h,v&&((y.virtual||(y.virtual={}))[c]=h,e&u.R&&w&&!w[c]&&a(w,c,h)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},7929:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},33938:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},27069:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},41818:(e,t,n)=>{var i=n(4743),r=n(83101);e.exports=n(89666)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},54881:(e,t,n)=>{var i=n(33938).document;e.exports=i&&i.documentElement},33758:(e,t,n)=>{e.exports=!n(89666)&&!n(7929)((function(){return 7!=Object.defineProperty(n(97467)("div"),"a",{get:function(){return 7}}).a}))},50799:(e,t,n)=>{var i=n(32894);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},71421:(e,t,n)=>{var i=n(32894);e.exports=Array.isArray||function(e){return"Array"==i(e)}},36727:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},33945:(e,t,n)=>{"use strict";var i=n(98989),r=n(83101),o=n(25378),a={};n(41818)(a,n(22939)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(a,{next:r(1,n)}),o(e,t+" Iterator")}},45700:(e,t,n)=>{"use strict";var i=n(16227),r=n(83856),o=n(57470),a=n(41818),s=n(15449),l=n(33945),u=n(25378),c=n(95089),d=n(22939)("iterator"),h=!([].keys&&"next"in[].keys()),f="keys",p="values",m=function(){return this};e.exports=function(e,t,n,v,g,b,y){l(n,t,v);var w,_,x,k=function(e){if(!h&&e in T)return T[e];switch(e){case f:case p:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",S=g==p,O=!1,T=e.prototype,E=T[d]||T["@@iterator"]||g&&T[g],D=E||k(g),$=g?S?k("entries"):D:void 0,M="Array"==t&&T.entries||E;if(M&&(x=c(M.call(new e)))!==Object.prototype&&x.next&&(u(x,C,!0),i||"function"==typeof x[d]||a(x,d,m)),S&&E&&E.name!==p&&(O=!0,D=function(){return E.call(this)}),i&&!y||!h&&!O&&T[d]||a(T,d,D),s[t]=D,s[C]=m,g)if(w={values:S?D:k(p),keys:b?D:k(f),entries:$},y)for(_ in w)_ in T||o(T,_,w[_]);else r(r.P+r.F*(h||O),t,w);return w}},85084:e=>{e.exports=function(e,t){return{value:t,done:!!e}}},15449:e=>{e.exports={}},16227:e=>{e.exports=!0},77177:(e,t,n)=>{var i=n(65730)("meta"),r=n(36727),o=n(27069),a=n(4743).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(7929)((function(){return l(Object.preventExtensions({}))})),c=function(e){a(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,i)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[i].i},getWeak:function(e,t){if(!o(e,i)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[i].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!o(e,i)&&c(e),e}}},88082:(e,t,n)=>{"use strict";var i=n(89666),r=n(46162),o=n(48195),a=n(86274),s=n(66530),l=n(50799),u=Object.assign;e.exports=!u||n(7929)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=i}))?function(e,t){for(var n=s(e),u=arguments.length,c=1,d=o.f,h=a.f;u>c;)for(var f,p=l(arguments[c++]),m=d?r(p).concat(d(p)):r(p),v=m.length,g=0;v>g;)f=m[g++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:u},98989:(e,t,n)=>{var i=n(12159),r=n(57856),o=n(73338),a=n(58989)("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n(97467)("iframe"),i=o.length;for(t.style.display="none",n(54881).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("